diff --git a/.circleci/config.yml b/.circleci/config.yml index 286e12e..16753a7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,9 +4,9 @@ aliases: latest-gate-version: &default-gate-version gate_api_branch: type: string - default: release-1.21.x + default: release-1.23.x supported-spinnaker-releases: &gate-versions - gate_api_branch: [ "release-1.21.x", "release-1.20.x", "release-1.19.x" ] + gate_api_branch: [ "release-1.23.x", "release-1.22.x" ] supported-client-os: &build-os-type build_os: [ "linux", "darwin" ] release-filters: &filters-release @@ -90,7 +90,7 @@ jobs: - gate-swagger.json - gateapi - store_artifacts: - path: /floodgate/gate/swagger/gate-swagger.json + path: /floodgate/gate/gate-swagger.json destination: gate-swagger.json build: diff --git a/gate-swagger.json b/gate-swagger.json index f425396..2c6eee3 100644 --- a/gate-swagger.json +++ b/gate-swagger.json @@ -1,466 +1,658 @@ { - "basePath": "/", - "definitions": { - "Account": { - "properties": { - "accountId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "permissions": { + "definitions" : { + "URI" : { + "properties" : { + "opaque" : { + "type" : "boolean" + }, + "absolute" : { + "type" : "boolean" + }, + "authority" : { + "type" : "string" + }, + "userInfo" : { + "type" : "string" + }, + "schemeSpecificPart" : { + "type" : "string" + }, + "port" : { + "format" : "int32", + "type" : "integer" + }, + "path" : { + "type" : "string" + }, + "rawQuery" : { + "type" : "string" + }, + "rawAuthority" : { + "type" : "string" + }, + "host" : { + "type" : "string" + }, + "rawSchemeSpecificPart" : { + "type" : "string" + }, + "fragment" : { + "type" : "string" + }, + "scheme" : { + "type" : "string" + }, + "rawPath" : { + "type" : "string" + }, + "query" : { + "type" : "string" + }, + "rawFragment" : { + "type" : "string" + }, + "rawUserInfo" : { + "type" : "string" + } + }, + "title" : "URI", + "type" : "object" + }, + "User" : { + "type" : "object", + "properties" : { + "authorities" : { + "items" : { + "$ref" : "#/definitions/GrantedAuthority" + }, + "type" : "array" + }, + "username" : { + "type" : "string" + }, + "credentialsNonExpired" : { + "type" : "boolean" + }, + "email" : { + "type" : "string" + }, + "roles" : { + "items" : { + "type" : "string" + }, + "type" : "array" + }, + "lastName" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "allowedAccounts" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "firstName" : { + "type" : "string" + }, + "accountNonLocked" : { + "type" : "boolean" + }, + "accountNonExpired" : { + "type" : "boolean" + } + }, + "title" : "User" + }, + "DeckPluginVersion" : { + "required" : [ + "id", + "version" + ], + "properties" : { + "version" : { + "type" : "string" + }, + "id" : { + "type" : "string" + } + }, + "title" : "DeckPluginVersion", + "type" : "object" + }, + "SpinnakerPluginInfo" : { + "properties" : { + "description" : { + "type" : "string" + }, + "provider" : { + "type" : "string" + }, + "projectUrl" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "releases" : { + "items" : { + "$ref" : "#/definitions/SpinnakerPluginRelease" + }, + "type" : "array" + }, + "repositoryId" : { + "type" : "string" + }, + "id" : { + "type" : "string" + } + }, + "required" : [ + "releases" + ], + "title" : "SpinnakerPluginInfo", + "type" : "object" + }, + "Notification" : { + "properties" : { + "address" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "frequency" : { + "type" : "string" + } + }, + "title" : "Notification", + "type" : "object" + }, + "Version" : { + "title" : "Version", + "properties" : { + "version" : { + "type" : "string" + } + }, + "type" : "object" + }, + "Map«string,string»" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "title" : "Map«string,string»" + }, + "Http" : { + "type" : "object", + "title" : "Http", + "properties" : { + "config" : { + "additionalProperties" : { + "type" : "string" + }, + "type" : "object" + }, + "url" : { + "type" : "string" + }, + "queryParams" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "headers" : { + "$ref" : "#/definitions/Headers" + } + } + }, + "SpinnakerPluginRelease" : { + "title" : "SpinnakerPluginRelease", + "properties" : { + "version" : { + "type" : "string" + }, + "requires" : { + "type" : "string" + }, + "preferred" : { + "type" : "boolean" + }, + "date" : { + "type" : "string", + "format" : "date-time" + }, + "url" : { + "type" : "string" + }, + "sha512sum" : { + "type" : "string" + }, + "remoteExtensions" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/RemoteExtensionConfig" + } + } + }, + "type" : "object" + }, + "SpinnakerPluginDescriptor" : { + "type" : "object", + "title" : "SpinnakerPluginDescriptor", + "properties" : { + "pluginDescription" : { + "type" : "string" + }, + "provider" : { + "type" : "string" + }, + "pluginClass" : { + "type" : "string" + }, + "unsafe" : { + "type" : "boolean" + }, + "license" : { + "type" : "string" + }, + "pluginId" : { + "type" : "string" + }, + "dependencies" : { + "items" : { + "$ref" : "#/definitions/PluginDependency" + }, + "type" : "array" + }, + "requires" : { + "type" : "string" + }, + "version" : { + "type" : "string" + } + }, + "required" : [ + "unsafe" + ] + }, + "EnvironmentArtifactPin" : { + "properties" : { + "targetEnvironment" : { + "type" : "string" + }, + "pinnedBy" : { + "type" : "string" + }, + "reference" : { + "type" : "string" + }, + "comment" : { + "type" : "string" + }, + "version" : { + "type" : "string" + } + }, + "title" : "EnvironmentArtifactPin", + "type" : "object" + }, + "ReorderPipelinesCommand" : { + "type" : "object", + "properties" : { + "application" : { + "type" : "string" + }, + "idsToIndices" : { + "type" : "object", + "additionalProperties" : { + "format" : "int32", + "type" : "integer" + } + } + }, + "title" : "ReorderPipelinesCommand" + }, + "RemoteExtensionConfig" : { + "type" : "object", + "properties" : { + "type" : { + "type" : "string" + }, + "transport" : { + "$ref" : "#/definitions/RemoteExtensionTransportConfig" + }, + "config" : { + "type" : "object" + }, + "id" : { + "type" : "string" + } + }, + "title" : "RemoteExtensionConfig" + }, + "PipelineTemplateDependent" : { + "properties" : { + "pipelineConfigId" : { + "type" : "string" + }, + "application" : { + "type" : "string" + }, + "pipelineName" : { + "type" : "string" + } + }, + "title" : "PipelineTemplateDependent", + "type" : "object" + }, + "ConstraintState" : { + "type" : "object", + "title" : "ConstraintState", + "properties" : { + "status" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "deliveryConfigName" : { + "type" : "string" + }, + "judgedBy" : { + "type" : "string" + }, + "attributes" : { + "type" : "object" + }, + "artifactVersion" : { + "type" : "string" + }, + "environmentName" : { + "type" : "string" + }, + "createdAt" : { + "type" : "string" + }, + "judgedAt" : { + "type" : "string" + }, + "comment" : { + "type" : "string" + } + } + }, + "DeliveryConfig" : { + "type" : "object", + "properties" : { + "environments" : { + "items" : { + "$ref" : "#/definitions/Environment" + }, + "type" : "array" + }, + "apiVersion" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "application" : { + "type" : "string" + }, + "serviceAccount" : { + "type" : "string" + }, + "artifacts" : { + "items" : { + "$ref" : "#/definitions/Map«string,object»" + }, + "type" : "array" + } + }, + "title" : "DeliveryConfig" + }, + "HttpEntity" : { + "type" : "object", + "title" : "HttpEntity", + "properties" : { + "body" : { + "type" : "object" + } + } + }, + "Environment" : { + "properties" : { + "locations" : { + "type" : "object" + }, + "constraints" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/Map«string,object»" + } + }, + "resources" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/Resource" + } + }, + "notifications" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/Notification" + } + }, + "name" : { + "type" : "string" + } + }, + "title" : "Environment", + "type" : "object" + }, + "GrantedAuthority" : { + "type" : "object", + "properties" : { + "authority" : { + "type" : "string" + } + }, + "title" : "GrantedAuthority" + }, + "AccountDetails" : { + "properties" : { + "accountType" : { + "type" : "string" + }, + "accountId" : { + "type" : "string" + }, + "primaryAccount" : { + "type" : "boolean" + }, + "challengeDestructiveActions" : { + "type" : "boolean" + }, + "environment" : { + "type" : "string" + }, + "cloudProvider" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "permissions" : { + "type" : "object", "additionalProperties" : { - "items": { - "type": "string" - }, - "type": "array" - }, - "type": "object" - }, - "requiredGroupMembership": { - "items": { - "type": "string" - }, - "type": "array" - }, - "type": { - "type": "string" - } - }, - "title": "Account", - "type": "object" - }, - "AccountDetails": { - "properties": { - "accountId": { - "type": "string" - }, - "accountType": { - "type": "string" - }, - "challengeDestructiveActions": { - "type": "boolean" - }, - "cloudProvider": { - "type": "string" - }, - "environment": { - "type": "string" - }, - "name": { - "type": "string" - }, - "permissions": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "type": "object" - }, - "primaryAccount": { - "type": "boolean" - }, - "requiredGroupMembership": { - "items": { - "type": "string" - }, - "type": "array" - }, - "type": { - "type": "string" - } - }, - "title": "AccountDetails", - "type": "object" - }, - "ConstraintState": { - "properties": { - "artifactVersion": { - "type": "string" - }, - "attributes": { - "type": "object" - }, - "comment": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "deliveryConfigName": { - "type": "string" - }, - "environmentName": { - "type": "string" - }, - "judgedAt": { - "type": "string" - }, - "judgedBy": { - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "title": "ConstraintState", - "type": "object" - }, - "ConstraintStatus": { - "properties": { - "artifactVersion": { - "type": "string" - }, - "comment": { - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "title": "ConstraintStatus", - "type": "object" - }, - "DeckPluginVersion": { - "properties": { - "id": { - "type": "string" - }, - "version": { - "type": "string" - } - }, - "required": [ - "id", - "version" - ], - "title": "DeckPluginVersion", - "type": "object" - }, - "DeliveryConfig": { - "properties": { - "apiVersion": { - "type": "string" - }, - "application": { - "type": "string" - }, - "artifacts": { - "items": { - "$ref": "#/definitions/Map«string,object»" - }, - "type": "array" - }, - "environments": { - "items": { - "$ref": "#/definitions/Environment" - }, - "type": "array" - }, - "name": { - "type": "string" - }, - "serviceAccount": { - "type": "string" - } - }, - "title": "DeliveryConfig", - "type": "object" - }, - "Environment": { - "properties": { - "constraints": { - "items": { - "$ref": "#/definitions/Map«string,object»" - }, - "type": "array" - }, - "locations": { - "type": "object" - }, - "name": { - "type": "string" - }, - "notifications": { - "items": { - "$ref": "#/definitions/Notification" - }, - "type": "array" - }, - "resources": { - "items": { - "$ref": "#/definitions/Resource" - }, - "type": "array" - } - }, - "title": "Environment", - "type": "object" - }, - "EnvironmentArtifactPin": { - "properties": { - "comment": { - "type": "string" - }, - "pinnedBy": { - "type": "string" - }, - "reference": { - "type": "string" - }, - "targetEnvironment": { - "type": "string" - }, - "version": { - "type": "string" - } - }, - "title": "EnvironmentArtifactPin", - "type": "object" - }, - "EnvironmentArtifactVeto": { - "properties": { - "comment": { - "type": "string" - }, - "reference": { - "type": "string" - }, - "targetEnvironment": { - "type": "string" - }, - "version": { - "type": "string" - } - }, - "title": "EnvironmentArtifactVeto", - "type": "object" - }, - "File": { - "properties": { - "absolute": { - "type": "boolean" - }, - "absoluteFile": { - "$ref": "#/definitions/File" - }, - "absolutePath": { - "type": "string" - }, - "canonicalFile": { - "$ref": "#/definitions/File" - }, - "canonicalPath": { - "type": "string" - }, - "directory": { - "type": "boolean" - }, - "executable": { - "type": "boolean" - }, - "file": { - "type": "boolean" - }, - "freeSpace": { - "format": "int64", - "type": "integer" - }, - "hidden": { - "type": "boolean" - }, - "lastModified": { - "format": "int64", - "type": "integer" - }, - "name": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "parentFile": { - "$ref": "#/definitions/File" - }, - "path": { - "type": "string" - }, - "readable": { - "type": "boolean" - }, - "totalSpace": { - "format": "int64", - "type": "integer" - }, - "usableSpace": { - "format": "int64", - "type": "integer" - }, - "writable": { - "type": "boolean" - } - }, - "title": "File", - "type": "object" - }, - "GrantedAuthority": { - "properties": { - "authority": { - "type": "string" - } - }, - "title": "GrantedAuthority", - "type": "object" - }, - "HashMap«string,object»": { - "additionalProperties": { - "type": "object" - }, - "title": "HashMap«string,object»", - "type": "object" - }, - "HttpEntity": { - "properties": { - "body": { - "type": "object" - } - }, - "title": "HttpEntity", - "type": "object" - }, - "InputStream": { - "title": "InputStream", - "type": "object" - }, - "Map«string,object»": { - "additionalProperties": { - "type": "object" - }, - "title": "Map«string,object»", - "type": "object" - }, - "Map«string,string»": { - "additionalProperties": { - "type": "string" - }, - "title": "Map«string,string»", - "type": "object" - }, - "Notification": { - "properties": { - "address": { - "type": "string" - }, - "frequency": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "title": "Notification", - "type": "object" - }, - "PipelineTemplateDependent": { - "properties": { - "application": { - "type": "string" - }, - "pipelineConfigId": { - "type": "string" - }, - "pipelineName": { - "type": "string" - } - }, - "title": "PipelineTemplateDependent", - "type": "object" - }, - "PluginDependency": { - "properties": { - "optional": { - "type": "boolean" - }, - "pluginId": { - "type": "string" - }, - "pluginVersionSupport": { - "type": "string" - } - }, - "title": "PluginDependency", - "type": "object" - }, - "ReorderPipelinesCommand": { - "properties": { - "application": { - "type": "string" - }, - "idsToIndices": { - "additionalProperties": { - "format": "int32", - "type": "integer" - }, + "type" : "array", + "items" : { + "type" : "string" + } + } + }, + "type" : { + "type" : "string" + }, + "requiredGroupMembership" : { + "items" : { + "type" : "string" + }, + "type" : "array" + } + }, + "title" : "AccountDetails", + "type" : "object" + }, + "Resource" : { + "properties" : { + "uri" : { + "$ref" : "#/definitions/URI" + }, + "file" : { + "$ref" : "#/definitions/File" + }, + "readable" : { + "type" : "boolean" + }, + "description" : { + "type" : "string" + }, + "open" : { + "type" : "boolean" + }, + "filename" : { + "type" : "string" + }, + "inputStream" : { + "$ref" : "#/definitions/InputStream" + }, + "url" : { + "$ref" : "#/definitions/URL" + } + }, + "title" : "Resource", + "type" : "object" + }, + "URL" : { + "type" : "object", + "properties" : { + "query" : { + "type" : "string" + }, + "path" : { + "type" : "string" + }, + "deserializedFields" : { + "$ref" : "#/definitions/URLStreamHandler" + }, + "port" : { + "format" : "int32", + "type" : "integer" + }, + "defaultPort" : { + "format" : "int32", + "type" : "integer" + }, + "ref" : { + "type" : "string" + }, + "content" : { "type" : "object" + }, + "userInfo" : { + "type" : "string" + }, + "file" : { + "type" : "string" + }, + "authority" : { + "type" : "string" + }, + "serializedHashCode" : { + "format" : "int32", + "type" : "integer" + }, + "host" : { + "type" : "string" + }, + "protocol" : { + "type" : "string" + } + }, + "title" : "URL" + }, + "URLStreamHandler" : { + "type" : "object", + "title" : "URLStreamHandler" + }, + "ConstraintStatus" : { + "properties" : { + "artifactReference" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "status" : { + "type" : "string" + }, + "artifactVersion" : { + "type" : "string" + }, + "comment" : { + "type" : "string" + } + }, + "title" : "ConstraintStatus", + "type" : "object" + }, + "EnvironmentArtifactVeto" : { + "properties" : { + "comment" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "targetEnvironment" : { + "type" : "string" + }, + "reference" : { + "type" : "string" } }, - "title" : "ReorderPipelinesCommand", + "title" : "EnvironmentArtifactVeto", "type" : "object" }, - "Resource": { - "properties": { - "description": { - "type": "string" - }, - "file": { - "$ref": "#/definitions/File" - }, - "filename": { - "type": "string" - }, - "inputStream": { - "$ref": "#/definitions/InputStream" - }, - "open": { - "type": "boolean" - }, - "readable": { - "type": "boolean" - }, - "uri": { - "$ref": "#/definitions/URI" - }, - "url": { - "$ref": "#/definitions/URL" - } - }, - "title": "Resource", - "type": "object" - }, + "InputStream" : { + "type" : "object", + "title" : "InputStream" + }, "ResponseEntity" : { "properties" : { - "body": { - "type": "object" - }, - "statusCode": { - "enum": [ - "100 CONTINUE", - "101 SWITCHING_PROTOCOLS", - "102 PROCESSING", - "103 CHECKPOINT", - "200 OK", - "201 CREATED", - "202 ACCEPTED", - "203 NON_AUTHORITATIVE_INFORMATION", + "statusCodeValue" : { + "type" : "integer", + "format" : "int32" + }, + "body" : { + "type" : "object" + }, + "statusCode" : { + "enum" : [ + "100 CONTINUE", + "101 SWITCHING_PROTOCOLS", + "102 PROCESSING", + "103 CHECKPOINT", + "200 OK", + "201 CREATED", + "202 ACCEPTED", + "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", @@ -511,10019 +703,10015 @@ "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", - "502 BAD_GATEWAY", - "503 SERVICE_UNAVAILABLE", - "504 GATEWAY_TIMEOUT", - "505 HTTP_VERSION_NOT_SUPPORTED", - "506 VARIANT_ALSO_NEGOTIATES", - "507 INSUFFICIENT_STORAGE", - "508 LOOP_DETECTED", - "509 BANDWIDTH_LIMIT_EXCEEDED", - "510 NOT_EXTENDED", - "511 NETWORK_AUTHENTICATION_REQUIRED" - ], - "type": "string" - }, - "statusCodeValue": { - "format": "int32", - "type": "integer" - } - }, - "title": "ResponseEntity", - "type": "object" - }, - "SpinnakerPluginDescriptor": { - "properties": { - "dependencies": { - "items": { - "$ref": "#/definitions/PluginDependency" - }, - "type": "array" - }, - "license": { - "type": "string" - }, - "pluginClass": { - "type": "string" - }, - "pluginDescription": { - "type": "string" - }, - "pluginId": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "requires": { - "type": "string" - }, - "unsafe": { - "type": "boolean" - }, - "version": { - "type": "string" - } - }, - "required": [ - "unsafe" - ], - "title": "SpinnakerPluginDescriptor", - "type": "object" - }, - "SpinnakerPluginInfo": { - "properties": { - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "projectUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "releases": { - "items": { - "$ref": "#/definitions/SpinnakerPluginRelease" - }, - "type": "array" - }, - "repositoryId": { - "type": "string" - } - }, - "required": [ - "releases" - ], - "title": "SpinnakerPluginInfo", - "type": "object" - }, - "SpinnakerPluginRelease": { - "properties": { - "date": { - "format": "date-time", - "type": "string" - }, - "preferred": { - "type": "boolean" - }, - "requires": { - "type": "string" - }, - "sha512sum": { - "type": "string" - }, - "url": { - "type": "string" - }, - "version": { - "type": "string" - } - }, - "title": "SpinnakerPluginRelease", - "type": "object" - }, - "URI": { - "properties": { - "absolute": { - "type": "boolean" - }, - "authority": { - "type": "string" - }, - "fragment": { - "type": "string" - }, - "host": { - "type": "string" - }, - "opaque": { - "type": "boolean" - }, - "path": { - "type": "string" - }, - "port": { - "format": "int32", - "type": "integer" - }, - "query": { - "type": "string" - }, - "rawAuthority": { - "type": "string" - }, - "rawFragment": { - "type": "string" - }, - "rawPath": { - "type": "string" - }, - "rawQuery": { - "type": "string" - }, - "rawSchemeSpecificPart": { - "type": "string" - }, - "rawUserInfo": { - "type": "string" - }, - "scheme": { - "type": "string" - }, - "schemeSpecificPart": { - "type": "string" - }, - "userInfo": { - "type": "string" - } - }, - "title": "URI", - "type": "object" - }, - "URL": { - "properties": { - "authority": { - "type": "string" - }, - "content": { - "type": "object" - }, - "defaultPort": { - "format": "int32", - "type": "integer" - }, - "deserializedFields": { - "$ref": "#/definitions/URLStreamHandler" - }, - "file": { - "type": "string" - }, - "host": { - "type": "string" - }, - "path": { - "type": "string" - }, - "port": { - "format": "int32", - "type": "integer" - }, - "protocol": { - "type": "string" - }, - "query": { - "type": "string" - }, - "ref": { - "type": "string" - }, - "serializedHashCode": { - "format": "int32", - "type": "integer" - }, - "userInfo": { - "type": "string" - } - }, - "title": "URL", - "type": "object" - }, - "URLStreamHandler": { - "title": "URLStreamHandler", - "type": "object" - }, - "User": { - "properties": { - "accountNonExpired": { - "type": "boolean" - }, - "accountNonLocked": { - "type": "boolean" - }, - "allowedAccounts": { - "items": { - "type": "string" - }, - "type": "array" - }, - "authorities": { - "items": { - "$ref": "#/definitions/GrantedAuthority" - }, - "type": "array" - }, - "credentialsNonExpired": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "roles": { - "items": { - "type": "string" - }, - "type": "array" - }, - "username": { - "type": "string" - } - }, - "title": "User", - "type": "object" - }, - "Version": { - "properties": { - "version": { - "type": "string" - } - }, - "title": "Version", - "type": "object" - } - }, - "host": "localhost", - "info": { - "contact": {}, - "title": "Spinnaker API" - }, - "paths": { - "/actions/pipelines/reorder": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "reorderPipelinesUsingPOST", - "parameters": [ - { - "description": "reorderPipelinesCommand", - "in": "body", - "name": "reorderPipelinesCommand", - "required": true, - "schema": { - "$ref": "#/definitions/ReorderPipelinesCommand" + "502 BAD_GATEWAY", + "503 SERVICE_UNAVAILABLE", + "504 GATEWAY_TIMEOUT", + "505 HTTP_VERSION_NOT_SUPPORTED", + "506 VARIANT_ALSO_NEGOTIATES", + "507 INSUFFICIENT_STORAGE", + "508 LOOP_DETECTED", + "509 BANDWIDTH_LIMIT_EXCEEDED", + "510 NOT_EXTENDED", + "511 NETWORK_AUTHENTICATION_REQUIRED" + ], + "type" : "string" } - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Re-order pipelines", - "tags": [ - "reorder-pipelines-controller" - ] - } + }, + "title" : "ResponseEntity", + "type" : "object" }, - "/applications": { - "get": { - "deprecated": false, - "operationId": "getAllApplicationsUsingGET", - "parameters": [ - { - "allowEmptyValue": false, - "description": "filters results to only include applications deployed in the specified account", - "in": "query", - "name": "account", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "description": "filters results to only include applications owned by the specified email", - "in": "query", - "name": "owner", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" + "PluginDependency" : { + "type" : "object", + "title" : "PluginDependency", + "properties" : { + "optional" : { + "type" : "boolean" + }, + "pluginVersionSupport" : { + "type" : "string" + }, + "pluginId" : { + "type" : "string" } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of applications", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{applicationName}/jobs/{account}/{region}/{name}": { - "get": { - "deprecated": false, - "operationId": "getJobUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "applicationName", - "in": "path", - "name": "applicationName", - "required": true, - "type": "string" - }, - { - "default": "false", - "description": "expand", - "in": "query", - "name": "expand", - "required": false, - "type": "string" - }, - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get job", - "tags": [ - "job-controller" - ] - } - }, - "/applications/{applicationName}/serverGroups": { - "get": { - "deprecated": false, - "operationId": "getServerGroupsForApplicationUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "applicationName", - "in": "path", - "name": "applicationName", - "required": true, - "type": "string" - }, - { - "description": "cloudProvider", - "in": "query", - "name": "cloudProvider", - "required": false, - "type": "string" - }, - { - "description": "clusters", - "in": "query", - "name": "clusters", - "required": false, - "type": "string" - }, - { - "default": "false", - "description": "expand", - "in": "query", - "name": "expand", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of server groups for a given application", - "tags": [ - "server-group-controller" - ] - } - }, - "/applications/{applicationName}/serverGroups/{account}/{region}/{serverGroupName}": { - "get": { - "deprecated": false, - "operationId": "getServerGroupDetailsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "applicationName", - "in": "path", - "name": "applicationName", - "required": true, - "type": "string" - }, - { - "default": "true", - "description": "includeDetails", - "in": "query", - "name": "includeDetails", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - }, - { - "description": "serverGroupName", - "in": "path", - "name": "serverGroupName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a server group's details", - "tags": [ - "server-group-controller" - ] - } + } }, - "/applications/{application}": { - "get": { - "deprecated": false, - "operationId": "getApplicationUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "default": true, - "description": "expand", - "in": "query", - "name": "expand", - "required": false, - "type": "boolean" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve an application's details", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/clusters": { - "get": { - "deprecated": false, - "operationId": "getClustersUsingGET_2", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of cluster names for an application, grouped by account", - "tags": [ - "cluster-controller" - ] - } + "Map«string,object»" : { + "title" : "Map«string,object»", + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" }, - "/applications/{application}/clusters/{account}": { - "get": { - "deprecated": false, - "operationId": "getClustersUsingGET_1", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" + "Account" : { + "type" : "object", + "properties" : { + "requiredGroupMembership" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "permissions" : { + "type" : "object", + "additionalProperties" : { + "items" : { + "type" : "string" + }, + "type" : "array" + } + }, + "name" : { + "type" : "string" + }, + "accountId" : { + "type" : "string" + }, + "type" : { + "type" : "string" } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of clusters for an account", - "tags": [ - "cluster-controller" - ] - } + }, + "title" : "Account" }, - "/applications/{application}/clusters/{account}/{clusterName}": { - "get": { - "deprecated": false, - "operationId": "getClustersUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "clusterName", - "in": "path", - "name": "clusterName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" + "RemoteExtensionTransportConfig" : { + "title" : "RemoteExtensionTransportConfig", + "properties" : { + "http" : { + "$ref" : "#/definitions/Http" } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a cluster's details", - "tags": [ - "cluster-controller" - ] - } - }, - "/applications/{application}/clusters/{account}/{clusterName}/serverGroups": { - "get": { - "deprecated": false, - "operationId": "getServerGroupsUsingGET_1", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "clusterName", - "in": "path", - "name": "clusterName", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of server groups for a cluster", - "tags": [ - "cluster-controller" - ] - } + }, + "type" : "object" }, - "/applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}": { - "get": { - "deprecated": false, - "operationId": "getServerGroupsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "clusterName", - "in": "path", - "name": "clusterName", - "required": true, - "type": "string" - }, - { - "description": "serverGroupName", - "in": "path", - "name": "serverGroupName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a server group's details", - "tags": [ - "cluster-controller" - ] - } - }, - "/applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}/scalingActivities": { - "get": { - "deprecated": false, - "operationId": "getScalingActivitiesUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "clusterName", - "in": "path", - "name": "clusterName", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "query", - "name": "region", - "required": false, - "type": "string" - }, - { - "description": "serverGroupName", - "in": "path", - "name": "serverGroupName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" + "Headers" : { + "properties" : { + "invokeHeaders" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "readHeaders" : { + "additionalProperties" : { + "type" : "string" + }, + "type" : "object" + }, + "writeHeaders" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of scaling activities for a server group", - "tags": [ - "cluster-controller" - ] - } + }, + "title" : "Headers", + "type" : "object" }, - "/applications/{application}/clusters/{account}/{clusterName}/{cloudProvider}/{scope}/serverGroups/target/{target}": { - "get": { - "deprecated": false, - "description": "`scope` is either a zone or a region", - "operationId": "getTargetServerGroupUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "cloudProvider", - "in": "path", - "name": "cloudProvider", - "required": true, - "type": "string" - }, - { - "description": "clusterName", - "in": "path", - "name": "clusterName", - "required": true, - "type": "string" - }, - { - "description": "onlyEnabled", - "in": "query", - "name": "onlyEnabled", - "required": false, - "type": "boolean" - }, - { - "description": "scope", - "in": "path", - "name": "scope", - "required": true, - "type": "string" - }, - { - "description": "target", - "in": "path", - "name": "target", - "required": true, - "type": "string" - }, - { - "description": "validateOldest", - "in": "query", - "name": "validateOldest", - "required": false, - "type": "boolean" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster", - "tags": [ - "cluster-controller" - ] - } - }, - "/applications/{application}/clusters/{account}/{clusterName}/{type}/loadBalancers": { - "get": { - "deprecated": false, - "operationId": "getClusterLoadBalancersUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "applicationName", - "in": "path", - "name": "applicationName", - "required": true, - "type": "string" - }, - { - "description": "clusterName", - "in": "path", - "name": "clusterName", - "required": true, - "type": "string" - }, - { - "description": "type", - "in": "path", - "name": "type", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a cluster's loadbalancers", - "tags": [ - "cluster-controller" - ] - } - }, - "/applications/{application}/executions/search": { - "get": { - "deprecated": false, - "operationId": "searchForPipelineExecutionsByTriggerUsingGET", - "parameters": [ - { - "description": "Only includes executions that are part of this application. If this value is \"*\", results will include executions of all applications.", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "allowEmptyValue": false, - "description": "Only includes executions that were triggered by a trigger with this eventId.", - "in": "query", - "name": "eventId", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "default": false, - "description": "Expands each execution object in the resulting list. If this value is missing, it is defaulted to false.", - "in": "query", - "name": "expand", - "required": false, - "type": "boolean", - "x-example": false - }, - { - "allowEmptyValue": false, - "description": "Only includes executions that with this pipeline name.", - "in": "query", - "name": "pipelineName", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "default": false, - "description": "Reverses the resulting list before it is paginated. If this value is missing, it is defaulted to false.", - "in": "query", - "name": "reverse", - "required": false, - "type": "boolean", - "x-example": false - }, - { - "allowEmptyValue": false, - "default": 10, - "description": "Sets the size of the resulting list for pagination. This value must be > 0. If this value is missing, it is defaulted to 10.", - "format": "int32", - "in": "query", - "name": "size", - "required": false, - "type": "integer" - }, - { - "allowEmptyValue": false, - "default": 0, - "description": "Sets the first item of the resulting list for pagination. The list is 0-indexed. This value must be >= 0. If this value is missing, it is defaulted to 0.", - "format": "int32", - "in": "query", - "name": "startIndex", - "required": false, - "type": "integer" - }, - { - "allowEmptyValue": false, - "description": "Only includes executions with a status that is equal to a status provided in this field. The list of statuses should be given as a comma-delimited string. If this value is missing, includes executions of all statuses. Allowed statuses are: NOT_STARTED, RUNNING, PAUSED, SUSPENDED, SUCCEEDED, FAILED_CONTINUE, TERMINAL, CANCELED, REDIRECT, STOPPED, SKIPPED, BUFFERED.", - "in": "query", - "name": "statuses", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "description": "Only includes executions that were triggered by a trigger that matches the subset of fields provided by this value. This value should be a base64-encoded string of a JSON representation of a trigger object. The comparison succeeds if the execution trigger contains all the fields of the input trigger, the fields are of the same type, and each value of the field \"matches\". The term \"matches\" is specific for each field's type:\n- For Strings: A String value in the execution's trigger matches the input trigger's String value if the former equals the latter (case-insensitive) OR if the former matches the latter as a regular expression.\n- For Maps: A Map value in the execution's trigger matches the input trigger's Map value if the former contains all keys of the latter and their values match.\n- For Collections: A Collection value in the execution's trigger matches the input trigger's Collection value if the former has a unique element that matches each element of the latter.\n- Every other value is compared using the Java \"equals\" method (Groovy \"==\" operator)", - "in": "query", - "name": "trigger", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "default": 9223372036854775807, - "description": "Only includes executions that were built at or before the given time, represented as a Unix timestamp in ms (UTC). This value must be <= 9223372036854775807 (Long.MAX_VALUE) and >= the value of [triggerTimeStartBoundary], if provided. If this value is missing, it is defaulted to 9223372036854775807.", - "format": "int64", - "in": "query", - "name": "triggerTimeEndBoundary", - "required": false, - "type": "integer" - }, - { - "allowEmptyValue": false, - "default": 0, - "description": "Only includes executions that were built at or after the given time, represented as a Unix timestamp in ms (UTC). This value must be >= 0 and <= the value of [triggerTimeEndBoundary], if provided. If this value is missing, it is defaulted to 0.", - "format": "int64", - "in": "query", - "name": "triggerTimeStartBoundary", - "required": false, - "type": "integer" - }, - { - "allowEmptyValue": false, - "description": "Only includes executions that were triggered by a trigger with a type that is equal to a type provided in this field. The list of trigger types should be a comma-delimited string. If this value is missing, results will includes executions of all trigger types.", - "in": "query", - "name": "triggerTypes", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list.", - "tags": [ - "executions-controller" - ] - } - }, - "/applications/{application}/functions": { - "get": { - "deprecated": false, - "operationId": "applicationFunctionsUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get application functions", - "tags": [ - "amazon-infrastructure-controller" - ] - } - }, - "/applications/{application}/history": { - "get": { - "deprecated": false, - "operationId": "getApplicationHistoryUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "default": 20, - "description": "limit", - "format": "int32", - "in": "query", - "name": "limit", - "required": false, - "type": "integer" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" + "File" : { + "type" : "object", + "title" : "File", + "properties" : { + "executable" : { + "type" : "boolean" + }, + "lastModified" : { + "type" : "integer", + "format" : "int64" + }, + "directory" : { + "type" : "boolean" + }, + "writable" : { + "type" : "boolean" + }, + "totalSpace" : { + "format" : "int64", + "type" : "integer" + }, + "readable" : { + "type" : "boolean" + }, + "canonicalFile" : { + "$ref" : "#/definitions/File" + }, + "freeSpace" : { + "format" : "int64", + "type" : "integer" + }, + "file" : { + "type" : "boolean" + }, + "path" : { + "type" : "string" + }, + "usableSpace" : { + "format" : "int64", + "type" : "integer" + }, + "absolutePath" : { + "type" : "string" + }, + "parent" : { + "type" : "string" + }, + "hidden" : { + "type" : "boolean" + }, + "parentFile" : { + "$ref" : "#/definitions/File" + }, + "absolute" : { + "type" : "boolean" + }, + "absoluteFile" : { + "$ref" : "#/definitions/File" + }, + "name" : { + "type" : "string" + }, + "canonicalPath" : { + "type" : "string" } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of an application's configuration revision history", - "tags": [ - "application-controller" - ] - } + } }, - "/applications/{application}/loadBalancers": { - "get": { - "deprecated": false, - "operationId": "getApplicationLoadBalancersUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of load balancers for a given application", - "tags": [ - "load-balancer-controller" - ] - } - }, - "/applications/{application}/pipelineConfigs": { - "get": { - "deprecated": false, - "operationId": "getPipelineConfigsForApplicationUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of an application's pipeline configurations", - "tags": [ - "application-controller" - ] + "HashMap«string,object»" : { + "title" : "HashMap«string,object»", + "type" : "object", + "additionalProperties" : { + "type" : "object" + } } - }, - "/applications/{application}/pipelineConfigs/{pipelineName}": { - "get": { - "deprecated": false, - "operationId": "getPipelineConfigUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "pipelineName", - "in": "path", - "name": "pipelineName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a pipeline configuration", - "tags": [ - "application-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": true, - "operationId": "invokePipelineConfigUsingPOST", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "pipelineName", - "in": "path", - "name": "pipelineName", - "required": true, - "type": "string" - }, - { - "description": "trigger", - "in": "body", - "name": "trigger", - "required": false, - "schema": { - "type": "object" - } - }, - { - "description": "user", - "in": "query", - "name": "user", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/HttpEntity" + }, + "info" : { + "contact" : {}, + "title" : "Spinnaker API" + }, + "host" : "localhost", + "paths" : { + "/applications/{application}/pipelineConfigs/{pipelineName}" : { + "get" : { + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Retrieve a pipeline configuration", + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "description" : "application", + "in" : "path", + "name" : "application", + "required" : true, + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "pipelineName", + "required" : true, + "name" : "pipelineName" + } + ], + "operationId" : "getPipelineConfigUsingGET" + }, + "post" : { + "operationId" : "invokePipelineConfigUsingPOST", + "tags" : [ + "application-controller" + ], + "summary" : "Invoke pipeline config", + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : true, + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "application", + "in" : "path", + "description" : "application" + }, + { + "description" : "pipelineName", + "in" : "path", + "name" : "pipelineName", + "required" : true, + "type" : "string" + }, + { + "required" : false, + "name" : "trigger", + "schema" : { + "type" : "object" + }, + "in" : "body", + "description" : "trigger" + }, + { + "in" : "query", + "description" : "user", + "name" : "user", + "required" : false, + "type" : "string" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "$ref" : "#/definitions/HttpEntity" + }, + "description" : "OK" + } } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Invoke pipeline config", - "tags": [ - "application-controller" - ] - } + } }, - "/applications/{application}/pipelines": { - "get": { - "deprecated": false, - "operationId": "getPipelinesUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "expand", - "in": "query", - "name": "expand", - "required": false, - "type": "boolean" - }, - { - "description": "limit", - "format": "int32", - "in": "query", - "name": "limit", - "required": false, - "type": "integer" - }, - { - "description": "statuses", - "in": "query", - "name": "statuses", - "required": false, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200" : { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of an application's pipeline executions", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/pipelines/{id}/cancel": { - "put": { - "consumes": [ - "application/json" - ], - "deprecated": true, - "operationId": "cancelPipelineUsingPUT", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "reason", - "in": "query", - "name": "reason", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Cancel pipeline", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/serverGroupManagers": { - "get": { - "deprecated": false, - "operationId": "getServerGroupManagersForApplicationUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of server group managers for an application", - "tags": [ - "server-group-manager-controller" - ] - } + "/instanceTypes" : { + "get" : { + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "summary" : "Get instance types", + "tags" : [ + "amazon-infrastructure-controller" + ], + "operationId" : "instanceTypesUsingGET" + } }, - "/applications/{application}/serverGroups/{account}/{serverGroupName}/events": { - "get": { - "deprecated": false, - "operationId": "getEventsUsingGET", - "parameters": [ - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "provider", - "in": "query", - "name": "provider", - "required": true, - "type": "string" - }, - { - "description": "region", - "in": "query", - "name": "region", - "required": true, - "type": "string" - }, - { - "description": "serverGroupName", - "in": "path", - "name": "serverGroupName", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200" : { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieves a list of events for a server group", - "tags": [ - "ecs-server-group-events-controller" - ] - } - }, - "/applications/{application}/snapshots/{account}": { - "get": { - "deprecated": false, - "operationId": "getCurrentSnapshotUsingGET", - "parameters": [ - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get current snapshot", - "tags": [ - "snapshot-controller" - ] - } - }, - "/applications/{application}/snapshots/{account}/history": { - "get": { - "deprecated": false, - "operationId": "getSnapshotHistoryUsingGET", - "parameters": [ - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "default": 20, - "description": "limit", - "format": "int32", - "in": "query", - "name": "limit", - "required": false, - "type": "integer" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get snapshot history", - "tags": [ - "snapshot-controller" - ] - } - }, - "/applications/{application}/strategyConfigs": { - "get": { - "deprecated": false, - "operationId": "getStrategyConfigsForApplicationUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of an application's pipeline strategy configurations", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/strategyConfigs/{strategyName}": { - "get": { - "deprecated": false, - "operationId": "getStrategyConfigUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "strategyName", - "in": "path", - "name": "strategyName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a pipeline strategy configuration", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/tasks": { - "get": { - "deprecated": false, - "operationId": "getTasksUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "limit", - "format": "int32", - "in": "query", - "name": "limit", - "required": false, - "type": "integer" - }, - { - "description": "page", - "format": "int32", - "in": "query", - "name": "page", - "required": false, - "type": "integer" - }, - { - "description": "statuses", - "in": "query", - "name": "statuses", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of an application's tasks", - "tags": [ - "application-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": true, - "operationId": "taskUsingPOST", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "map", - "in": "body", - "name": "map", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Create task", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/tasks/{id}": { - "get": { - "deprecated": true, - "operationId": "getTaskUsingGET", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get task", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/tasks/{id}/cancel": { - "put": { - "consumes": [ - "application/json" - ], - "deprecated": true, - "operationId": "cancelTaskUsingPUT", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Cancel task", - "tags": [ - "application-controller" - ] - } - }, - "/applications/{application}/tasks/{id}/details/{taskDetailsId}": { - "get": { - "deprecated": true, - "operationId": "getTaskDetailsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "taskDetailsId", - "in": "path", - "name": "taskDetailsId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get task details", - "tags": [ - "application-controller" - ] - } - }, - "/artifacts/account/{accountName}/versions": { - "get": { - "deprecated": false, - "operationId": "artifactVersionsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "accountName", - "in": "path", - "name": "accountName", - "required": true, - "type": "string" - }, - { - "description": "artifactName", - "in": "query", - "name": "artifactName", - "required": true, - "type": "string" - }, - { - "description": "type", - "in": "query", - "name": "type", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the list of artifact versions by account and artifact names", - "tags": [ - "artifact-controller" - ] - } - }, - "/artifacts/credentials": { - "get": { - "deprecated": false, - "operationId": "allUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the list of artifact accounts configured in Clouddriver.", - "tags": [ - "artifact-controller" - ] - } - }, - "/artifacts/{provider}/{packageName}/{version}": { - "get": { - "deprecated": false, - "operationId": "getArtifactUsingGET", - "parameters": [ - { - "description": "packageName", - "in": "path", - "name": "packageName", - "required": true, - "type": "string" - }, - { - "description": "provider", - "in": "path", - "name": "provider", - "required": true, - "type": "string" - }, - { - "description": "version", - "in": "path", - "name": "version", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the specified artifact version for an artifact provider and package name", - "tags": [ - "artifact-controller" - ] - } - }, - "/auth/loggedOut": { - "get": { - "deprecated": false, - "operationId": "loggedOutUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get logged out message", - "tags": [ - "auth-controller" - ] - } - }, - "/auth/redirect": { - "get": { - "deprecated": false, - "operationId": "redirectUsingGET", - "parameters": [ - { - "description": "to", - "in": "query", - "name": "to", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Redirect to Deck", - "tags": [ - "auth-controller" - ] - } - }, - "/auth/roles/sync": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "syncUsingPOST", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Sync user roles", - "tags": [ - "auth-controller" - ] - } - }, - "/auth/user": { - "get": { - "deprecated": false, - "operationId": "userUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/User" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get user", - "tags": [ - "auth-controller" - ] - } - }, - "/auth/user/serviceAccounts": { - "get": { - "deprecated": false, - "operationId": "getServiceAccountsUsingGET", - "parameters": [ - { - "description": "application", - "in": "query", - "name": "application", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get service accounts", - "tags": [ - "auth-controller" - ] - } - }, - "/bakery/logs/{region}/{statusId}": { - "get": { - "deprecated": false, - "operationId": "lookupLogsUsingGET", - "parameters": [ - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - }, - { - "description": "statusId", - "in": "path", - "name": "statusId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the logs for a given bake", - "tags": [ - "bake-controller" - ] - } - }, - "/bakery/options": { - "get": { - "deprecated": false, - "operationId": "bakeOptionsUsingGET_1", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of available bakery base images, grouped by cloud provider", - "tags": [ - "bake-controller" - ] - } - }, - "/bakery/options/{cloudProvider}": { - "get": { - "deprecated": false, - "operationId": "bakeOptionsUsingGET", - "parameters": [ - { - "description": "cloudProvider", - "in": "path", - "name": "cloudProvider", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of available bakery base images for a given cloud provider", - "tags": [ - "bake-controller" - ] - } - }, - "/ci/builds": { - "get": { - "deprecated": false, - "operationId": "getBuildsUsingGET_1", - "parameters": [ - { - "description": "completionStatus", - "in": "query", - "name": "completionStatus", - "required": false, - "type": "string" - }, - { - "description": "projectKey", - "in": "query", - "name": "projectKey", - "required": true, - "type": "string" - }, - { - "description": "repoSlug", - "in": "query", - "name": "repoSlug", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "getBuilds", - "tags": [ - "ci-controller" - ] - } - }, - "/concourse/{buildMaster}/teams/{team}/pipelines": { - "get": { - "deprecated": false, - "operationId": "pipelinesUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - }, - { - "description": "team", - "in": "path", - "name": "team", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the list of pipeline names for a given team available to triggers", - "tags": [ - "concourse-controller" - ] - } + "/managed/application/{application}/veto/{targetEnvironment}/{reference}/{version}" : { + "delete" : { + "parameters" : [ + { + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "reference", + "in" : "path", + "description" : "reference" + }, + { + "type" : "string", + "name" : "targetEnvironment", + "required" : true, + "description" : "targetEnvironment", + "in" : "path" + }, + { + "type" : "string", + "name" : "version", + "required" : true, + "in" : "path", + "description" : "version" + } + ], + "operationId" : "deleteVetoUsingDELETE", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK" + }, + "204" : { + "description" : "No Content" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Remove veto of an artifact version in an environment", + "tags" : [ + "managed-controller" + ] + } }, - "/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/jobs": { - "get": { - "deprecated": false, - "operationId": "jobsUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - }, - { - "description": "pipeline", - "in": "path", - "name": "pipeline", - "required": true, - "type": "string" - }, - { - "description": "team", - "in": "path", - "name": "team", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the list of job names for a given pipeline available to triggers", - "tags": [ - "concourse-controller" - ] - } + "/v2/canaryConfig/{id}" : { + "delete" : { + "operationId" : "deleteCanaryConfigUsingDELETE", + "parameters" : [ + { + "type" : "string", + "name" : "configurationAccountName", + "required" : false, + "in" : "query", + "description" : "configurationAccountName" + }, + { + "type" : "string", + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path" + } + ], + "tags" : [ + "v-2-canary-config-controller" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + }, + "204" : { + "description" : "No Content" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Delete a canary configuration" + }, + "put" : { + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "parameters" : [ + { + "description" : "config", + "schema" : { + "type" : "object" + }, + "in" : "body", + "name" : "config", + "required" : true + }, + { + "type" : "string", + "description" : "configurationAccountName", + "in" : "query", + "name" : "configurationAccountName", + "required" : false + }, + { + "type" : "string", + "required" : true, + "name" : "id", + "in" : "path", + "description" : "id" + } + ], + "summary" : "Update a canary configuration", + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "v-2-canary-config-controller" + ], + "operationId" : "updateCanaryConfigUsingPUT" + }, + "get" : { + "parameters" : [ + { + "required" : false, + "name" : "configurationAccountName", + "in" : "query", + "description" : "configurationAccountName", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path" + } + ], + "operationId" : "getCanaryConfigUsingGET", + "summary" : "Retrieve a canary configuration by id", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + } + }, + "tags" : [ + "v-2-canary-config-controller" + ] + } }, - "/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/resources": { - "get": { - "deprecated": false, - "operationId": "resourcesUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - }, - { - "description": "pipeline", - "in": "path", - "name": "pipeline", - "required": true, - "type": "string" - }, - { - "description": "team", - "in": "path", - "name": "team", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the list of resource names for a given pipeline available to the Concourse stage", - "tags": [ - "concourse-controller" - ] - } - }, - "/credentials": { - "get": { - "deprecated": false, - "operationId": "getAccountsUsingGET", - "parameters": [ - { - "in": "query", - "name": "accountNonExpired", - "required": false, - "type": "boolean" - }, - { - "in": "query", - "name": "accountNonLocked", - "required": false, - "type": "boolean" - }, - { - "collectionFormat": "multi", - "in": "query", - "items": { - "type": "string" - }, - "name": "allowedAccounts", - "required": false, - "type": "array" - }, - { - "in": "query", - "name": "authorities[0].authority", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "credentialsNonExpired", - "required": false, - "type": "boolean" - }, - { - "in": "query", - "name": "email", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "enabled", - "required": false, - "type": "boolean" - }, - { - "description": "expand", - "in": "query", - "name": "expand", - "required": false, - "type": "boolean" - }, - { - "in": "query", - "name": "firstName", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "lastName", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "password", - "required": false, - "type": "string" - }, - { - "collectionFormat": "multi", - "in": "query", - "items": { - "type": "string" - }, - "name": "roles", - "required": false, - "type": "array" - }, - { - "in": "query", - "name": "username", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/Account" - }, - "type": "array" + "/pipelineTemplates/{id}" : { + "delete" : { + "operationId" : "deleteUsingDELETE", + "parameters" : [ + { + "in" : "query", + "description" : "application", + "required" : false, + "name" : "application", + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id" + } + ], + "tags" : [ + "pipeline-templates-controller" + ], + "summary" : "Delete a pipeline template.", + "deprecated" : false, + "responses" : { + "204" : { + "description" : "No Content" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "202" : { + "description" : "Accepted", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + } + }, + "produces" : [ + "*/*" + ] + }, + "post" : { + "operationId" : "updateUsingPOST", + "summary" : "Update a pipeline template.", + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "tags" : [ + "pipeline-templates-controller" + ], + "parameters" : [ + { + "in" : "path", + "description" : "id", + "name" : "id", + "required" : true, + "type" : "string" + }, + { + "name" : "pipelineTemplate", + "required" : true, + "schema" : { + "type" : "object" + }, + "in" : "body", + "description" : "pipelineTemplate" + }, + { + "default" : false, + "required" : false, + "name" : "skipPlanDependents", + "in" : "query", + "description" : "skipPlanDependents", + "type" : "boolean" + } + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "202" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "Accepted" + }, + "201" : { + "description" : "Created" + } } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of accounts", - "tags": [ - "credentials-controller" - ] - } + }, + "get" : { + "parameters" : [ + { + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id", + "type" : "string" + } + ], + "operationId" : "getUsingGET", + "summary" : "Get a pipeline template.", + "deprecated" : false, + "responses" : { + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "produces" : [ + "*/*" + ], + "tags" : [ + "pipeline-templates-controller" + ] + } }, - "/credentials/{account}": { - "get": { - "deprecated": false, - "operationId": "getAccountUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "accountNonExpired", - "required": false, - "type": "boolean" - }, - { - "in": "query", - "name": "accountNonLocked", - "required": false, - "type": "boolean" - }, - { - "collectionFormat": "multi", - "in": "query", - "items": { - "type": "string" - }, - "name": "allowedAccounts", - "required": false, - "type": "array" - }, - { - "in": "query", - "name": "authorities[0].authority", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "credentialsNonExpired", - "required": false, - "type": "boolean" - }, - { - "in": "query", - "name": "email", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "enabled", - "required": false, - "type": "boolean" - }, - { - "in": "query", - "name": "firstName", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "lastName", - "required": false, - "type": "string" - }, - { - "in": "query", - "name": "password", - "required": false, - "type": "string" - }, - { - "collectionFormat": "multi", - "in": "query", - "items": { - "type": "string" - }, - "name": "roles", - "required": false, - "type": "array" - }, - { - "in": "query", - "name": "username", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountDetails" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve an account's details", - "tags": [ - "credentials-controller" - ] - } - }, - "/executions": { - "get": { - "deprecated": false, - "operationId": "getLatestExecutionsByConfigIdsUsingGET", - "parameters": [ - { - "allowEmptyValue": false, - "description": "A comma-separated list of executions to retrieve. Either this OR pipelineConfigIds must be supplied, but not both.", - "in": "query", - "name": "executionIds", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "default": true, - "description": "Expands each execution object in the resulting list. If this value is missing, it is defaulted to true.", - "in": "query", - "name": "expand", - "required": false, - "type": "boolean" - }, - { - "allowEmptyValue": false, - "description": "The number of executions to return per pipeline configuration. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to 1.", - "format": "int32", - "in": "query", - "name": "limit", - "required": false, - "type": "integer" - }, - { - "allowEmptyValue": false, - "description": "A comma-separated list of pipeline configuration IDs to retrieve recent executions for. Either this OR pipelineConfigIds must be supplied, but not both.", - "in": "query", - "name": "pipelineConfigIds", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "description": "A comma-separated list of execution statuses to filter by. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to all statuses.", - "in": "query", - "name": "statuses", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown.", - "tags": [ - "executions-controller" - ] - } - }, - "/firewalls": { - "get": { - "deprecated": false, - "operationId": "allUsingGET_1", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "query", - "name": "id", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of firewalls, grouped by account, cloud provider, and region", - "tags": [ - "firewall-controller" - ] - } - }, - "/firewalls/{account}": { - "get": { - "deprecated": false, - "operationId": "allByAccountUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of firewalls for a given account, grouped by region", - "tags": [ - "firewall-controller" - ] - } - }, - "/firewalls/{account}/{region}": { - "get": { - "deprecated": false, - "operationId": "allByAccountAndRegionUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of firewalls for a given account and region", - "tags": [ - "firewall-controller" - ] - } - }, - "/firewalls/{account}/{region}/{name}": { - "get": { - "deprecated": false, - "operationId": "getSecurityGroupUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - }, - { - "description": "vpcId", - "in": "query", - "name": "vpcId", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a firewall's details", - "tags": [ - "firewall-controller" - ] - } - }, - "/functions": { - "get": { - "deprecated": false, - "operationId": "functionsUsingGET", - "parameters": [ - { - "description": "account", - "in": "query", - "name": "account", - "required": false, - "type": "string" - }, - { - "description": "functionName", - "in": "query", - "name": "functionName", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "query", - "name": "region", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get functions", - "tags": [ - "amazon-infrastructure-controller" - ] - } - }, - "/images/find": { - "get": { - "deprecated": false, - "description": "The query parameter `q` filters the list of images by image name", - "operationId": "findImagesUsingGET", - "parameters": [ - { - "description": "account", - "in": "query", - "name": "account", - "required": false, - "type": "string" - }, - { - "description": "count", - "format": "int32", - "in": "query", - "name": "count", - "required": false, - "type": "integer" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "q", - "in": "query", - "name": "q", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "query", - "name": "region", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" + "/applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}/scalingActivities" : { + "get" : { + "operationId" : "getScalingActivitiesUsingGET", + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "X-RateLimit-App", + "description" : "X-RateLimit-App", + "in" : "header" + }, + { + "required" : true, + "name" : "account", + "description" : "account", + "in" : "path", + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "application", + "name" : "application", + "required" : true + }, + { + "description" : "clusterName", + "in" : "path", + "name" : "clusterName", + "required" : true, + "type" : "string" + }, + { + "type" : "string", + "description" : "provider", + "in" : "query", + "required" : false, + "default" : "aws", + "name" : "provider" + }, + { + "type" : "string", + "required" : false, + "name" : "region", + "description" : "region", + "in" : "query" + }, + { + "type" : "string", + "required" : true, + "name" : "serverGroupName", + "in" : "path", + "description" : "serverGroupName" + } + ], + "tags" : [ + "cluster-controller" + ], + "summary" : "Retrieve a list of scaling activities for a server group", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of images, filtered by cloud provider, region, and account", - "tags": [ - "image-controller" - ] - } + } }, - "/images/tags": { - "get": { - "deprecated": false, - "operationId": "findTagsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "query", - "name": "account", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "repository", - "in": "query", - "name": "repository", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Find tags", - "tags": [ - "image-controller" - ] - } + "/firewalls" : { + "get" : { + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "summary" : "Retrieve a list of firewalls, grouped by account, cloud provider, and region", + "tags" : [ + "firewall-controller" + ], + "parameters" : [ + { + "description" : "X-RateLimit-App", + "in" : "header", + "required" : false, + "name" : "X-RateLimit-App", + "type" : "string" + }, + { + "type" : "string", + "name" : "id", + "required" : false, + "in" : "query", + "description" : "id" + } + ], + "operationId" : "allUsingGET_1" + } }, - "/images/{account}/{region}/{imageId}": { - "get": { - "deprecated": false, - "operationId": "getImageDetailsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "imageId", - "in": "path", - "name": "imageId", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get image details", - "tags": [ - "image-controller" - ] - } - }, - "/instanceTypes": { - "get": { - "deprecated": false, - "operationId": "instanceTypesUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" + "/pipelines/move" : { + "post" : { + "operationId" : "renamePipelineUsingPOST", + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "summary" : "Rename a pipeline definition", + "tags" : [ + "pipeline-controller" + ], + "parameters" : [ + { + "required" : true, + "name" : "renameCommand", + "in" : "body", + "schema" : { + "type" : "object" + }, + "description" : "renameCommand" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + } } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get instance types", - "tags": [ - "amazon-infrastructure-controller" - ] - } + } }, - "/instances/{account}/{region}/{instanceId}": { - "get": { - "deprecated": false, - "operationId": "getInstanceDetailsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "instanceId", - "in": "path", - "name": "instanceId", - "required": true, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve an instance's details", - "tags": [ - "instance-controller" - ] - } - }, - "/instances/{account}/{region}/{instanceId}/console": { - "get": { - "deprecated": false, - "operationId": "getConsoleOutputUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "instanceId", - "in": "path", - "name": "instanceId", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve an instance's console output", - "tags": [ - "instance-controller" - ] - } - }, - "/loadBalancers": { - "get": { - "deprecated": false, - "operationId": "getAllUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of load balancers for a given cloud provider", - "tags": [ - "load-balancer-controller" - ] - } - }, - "/loadBalancers/{account}/{region}/{name}": { - "get": { - "deprecated": false, - "operationId": "getLoadBalancerDetailsUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a load balancer's details as a single element list for a given account, region, cloud provider and load balancer name", - "tags": [ - "load-balancer-controller" - ] - } - }, - "/loadBalancers/{name}": { - "get": { - "deprecated": false, - "operationId": "getLoadBalancerUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a load balancer for a given cloud provider", - "tags": [ - "load-balancer-controller" - ] - } - }, - "/managed/api-docs": { - "get": { - "deprecated": false, - "operationId": "getApiDocsUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "getApiDocs", - "tags": [ - "managed-controller" - ] - } + "/pipelines/{id}/cancel" : { + "put" : { + "parameters" : [ + { + "name" : "force", + "default" : false, + "required" : false, + "in" : "query", + "description" : "force", + "type" : "boolean" + }, + { + "type" : "string", + "required" : true, + "name" : "id", + "in" : "path", + "description" : "id" + }, + { + "required" : false, + "name" : "reason", + "description" : "reason", + "in" : "query", + "type" : "string" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + } + }, + "operationId" : "cancelPipelineUsingPUT_1", + "tags" : [ + "pipeline-controller" + ], + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "summary" : "Cancel a pipeline execution" + } }, - "/managed/application/{application}": { - "get": { - "deprecated": false, - "operationId": "getApplicationDetailsUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "collectionFormat": "multi", - "default": "resources", - "description": "entities", - "in": "query", - "items": { - "type": "string" - }, - "name": "entities", - "required": false, - "type": "array" - }, - { - "default": false, - "description": "includeDetails", - "in": "query", - "name": "includeDetails", - "required": false, - "type": "boolean" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get managed details about an application", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/application/{application}/config": { - "delete": { - "deprecated": false, - "operationId": "deleteManifestByAppUsingDELETE", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete a delivery config manifest for an application", - "tags": [ - "managed-controller" - ] - }, - "get": { - "deprecated": false, - "operationId": "getConfigByUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get the delivery config associated with an application", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/application/{application}/environment/{environment}/constraint": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "updateConstraintStatusUsingPOST", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "environment", - "in": "path", - "name": "environment", - "required": true, - "type": "string" - }, - { - "description": "status", - "in": "body", - "name": "status", - "required": true, - "schema": { - "$ref": "#/definitions/ConstraintStatus" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Update the status of an environment constraint", - "tags": [ - "managed-controller" - ] - } + "/firewalls/{account}/{region}" : { + "get" : { + "parameters" : [ + { + "required" : false, + "name" : "X-RateLimit-App", + "in" : "header", + "description" : "X-RateLimit-App", + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "account", + "name" : "account", + "required" : true + }, + { + "name" : "provider", + "default" : "aws", + "required" : false, + "description" : "provider", + "in" : "query", + "type" : "string" + }, + { + "in" : "path", + "description" : "region", + "name" : "region", + "required" : true, + "type" : "string" + } + ], + "operationId" : "allByAccountAndRegionUsingGET", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "summary" : "Retrieve a list of firewalls for a given account and region", + "tags" : [ + "firewall-controller" + ] + } }, - "/managed/application/{application}/environment/{environment}/constraints": { - "get": { - "deprecated": false, - "operationId": "getConstraintStateUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "environment", - "in": "path", - "name": "environment", - "required": true, - "type": "string" - }, - { - "default": "10", - "description": "limit", - "in": "query", - "name": "limit", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ConstraintState" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "List up-to {limit} current constraint states for an environment", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/application/{application}/pause": { - "delete": { - "deprecated": false, - "operationId": "resumeApplicationUsingDELETE", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Resume management of an entire application", - "tags": [ - "managed-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "pauseApplicationUsingPOST", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Pause management of an entire application", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/application/{application}/pin": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "createPinUsingPOST", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "pin", - "in": "body", - "name": "pin", - "required": true, - "schema": { - "$ref": "#/definitions/EnvironmentArtifactPin" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Create a pin for an artifact in an environment", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/application/{application}/pin/{targetEnvironment}": { - "delete": { - "deprecated": false, - "operationId": "deletePinUsingDELETE", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "reference", - "in": "query", - "name": "reference", - "required": false, - "type": "string" - }, - { - "description": "targetEnvironment", - "in": "path", - "name": "targetEnvironment", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Unpin one or more artifact(s) in an environment. If the `reference` parameter is specified, only the corresponding artifact will be unpinned. If it's omitted, all pinned artifacts in the environment will be unpinned.", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/application/{application}/veto": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "vetoUsingPOST", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "veto", - "in": "body", - "name": "veto", - "required": true, - "schema": { - "$ref": "#/definitions/EnvironmentArtifactVeto" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Veto an artifact version in an environment", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/application/{application}/veto/{targetEnvironment}/{reference}/{version}": { - "delete": { - "deprecated": false, - "operationId": "deleteVetoUsingDELETE", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "reference", - "in": "path", - "name": "reference", - "required": true, - "type": "string" - }, - { - "description": "targetEnvironment", - "in": "path", - "name": "targetEnvironment", - "required": true, - "type": "string" - }, - { - "description": "version", - "in": "path", - "name": "version", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Veto an artifact version in an environment", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/delivery-configs": { - "post": { - "consumes": [ - "application/json", - "application/x-yaml" - ], - "deprecated": false, - "operationId": "upsertManifestUsingPOST", - "parameters": [ - { - "description": "manifest", - "in": "body", - "name": "manifest", - "required": true, - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Create or update a delivery config manifest", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/delivery-configs/diff": { - "post": { - "consumes": [ - "application/json", - "application/x-yaml" - ], - "deprecated": false, - "operationId": "diffManifestUsingPOST", - "parameters": [ - { - "description": "manifest", - "in": "body", - "name": "manifest", - "required": true, - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Ad-hoc validate and diff a config manifest", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/delivery-configs/validate": { - "post": { - "consumes": [ - "application/json", - "application/x-yaml" - ], - "deprecated": false, - "operationId": "validateManifestUsingPOST", - "parameters": [ - { - "description": "manifest", - "in": "body", - "name": "manifest", - "required": true, - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - } + "/pipelineConfigs/{pipelineConfigId}/convertToTemplate" : { + "get" : { + "tags" : [ + "pipeline-config-controller" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "string" + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Convert a pipeline config to a pipeline template.", + "operationId" : "convertPipelineConfigToPipelineTemplateUsingGET", + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "pipelineConfigId", + "required" : true, + "name" : "pipelineConfigId" + } + ] + } + }, + "/v2/pipelineTemplates/plan" : { + "post" : { + "parameters" : [ + { + "required" : true, + "name" : "pipeline", + "schema" : { + "type" : "object" + }, + "in" : "body", + "description" : "pipeline" + } + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "operationId" : "planUsingPOST", + "tags" : [ + "v-2-pipeline-templates-controller" + ], + "summary" : "(ALPHA) Plan a pipeline template configuration.", + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false + } + }, + "/loadBalancers/{name}" : { + "get" : { + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "summary" : "Retrieve a load balancer for a given cloud provider", + "tags" : [ + "load-balancer-controller" + ], + "parameters" : [ + { + "type" : "string", + "description" : "X-RateLimit-App", + "in" : "header", + "name" : "X-RateLimit-App", + "required" : false + }, + { + "description" : "name", + "in" : "path", + "name" : "name", + "required" : true, + "type" : "string" + }, + { + "description" : "provider", + "in" : "query", + "default" : "aws", + "required" : false, + "name" : "provider", + "type" : "string" + } + ], + "operationId" : "getLoadBalancerUsingGET" + } + }, + "/v2/canaries/credentials" : { + "get" : { + "operationId" : "listCredentialsUsingGET", + "tags" : [ + "v-2-canary-controller" + ], + "summary" : "Retrieve a list of configured Kayenta accounts", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + } + } + }, + "/pipelines" : { + "post" : { + "responses" : { + "200" : { + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "201" : { + "description" : "Created" + } + }, + "parameters" : [ + { + "schema" : { + "type" : "object" + }, + "in" : "body", + "description" : "pipeline", + "name" : "pipeline", + "required" : true + }, + { + "type" : "boolean", + "name" : "staleCheck", + "default" : false, + "required" : false, + "in" : "query", + "description" : "staleCheck" + } + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Save a pipeline definition", + "tags" : [ + "pipeline-controller" + ], + "operationId" : "savePipelineUsingPOST" + } + }, + "/pipelineTemplates/{id}/dependents" : { + "get" : { + "summary" : "List all pipelines that implement a pipeline template", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "pipeline-templates-controller" + ], + "parameters" : [ + { + "type" : "string", + "description" : "id", + "in" : "path", + "name" : "id", + "required" : true + }, + { + "in" : "query", + "description" : "recursive", + "required" : false, + "name" : "recursive", + "type" : "boolean" + } + ], + "operationId" : "listPipelineTemplateDependentsUsingGET" + } + }, + "/applications/{application}/snapshots/{account}" : { + "get" : { + "parameters" : [ + { + "in" : "path", + "description" : "account", + "name" : "account", + "required" : true, + "type" : "string" + }, + { + "type" : "string", + "description" : "application", + "in" : "path", + "name" : "application", + "required" : true + } + ], + "operationId" : "getCurrentSnapshotUsingGET", + "summary" : "Get current snapshot", + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "snapshot-controller" + ] + } + }, + "/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/jobs" : { + "get" : { + "summary" : "Retrieve the list of job names for a given pipeline available to triggers", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "tags" : [ + "concourse-controller" + ], + "parameters" : [ + { + "type" : "string", + "name" : "buildMaster", + "required" : true, + "in" : "path", + "description" : "buildMaster" + }, + { + "type" : "string", + "description" : "pipeline", + "in" : "path", + "name" : "pipeline", + "required" : true + }, + { + "required" : true, + "name" : "team", + "description" : "team", + "in" : "path", + "type" : "string" + } + ], + "operationId" : "jobsUsingGET" + } + }, + "/v2/canaries/metadata/metricsService" : { + "get" : { + "operationId" : "listMetricsServiceMetadataUsingGET", + "parameters" : [ + { + "required" : false, + "name" : "filter", + "description" : "filter", + "in" : "query", + "type" : "string" + }, + { + "in" : "query", + "description" : "metricsAccountName", + "required" : false, + "name" : "metricsAccountName", + "type" : "string" + } + ], + "tags" : [ + "v-2-canary-controller" + ], + "summary" : "Retrieve a list of descriptors for use in populating the canary config ui", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + } + } + } + }, + "/managed/delivery-configs/{name}/artifacts" : { + "get" : { + "operationId" : "getManifestArtifactsUsingGET", + "parameters" : [ + { + "in" : "path", + "description" : "name", + "required" : true, + "name" : "name", + "type" : "string" + } + ], + "tags" : [ + "managed-controller" + ], + "summary" : "Get the status of each version of each artifact in each environment", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + } + } + } + }, + "/applications/{application}/tasks/{id}/cancel" : { + "put" : { + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id" + } + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "201" : { + "description" : "Created" + } + }, + "operationId" : "cancelTaskUsingPUT", + "deprecated" : true, + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "summary" : "Cancel task", + "tags" : [ + "application-controller" + ] + } + }, + "/tasks/cancel" : { + "put" : { + "parameters" : [ + { + "name" : "ids", + "required" : true, + "collectionFormat" : "multi", + "in" : "query", + "description" : "ids", + "items" : { + "type" : "string" + }, + "type" : "array" + } + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "operationId" : "cancelTasksUsingPUT", + "summary" : "Cancel tasks", + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "task-controller" + ] + } + }, + "/artifacts/account/{accountName}/versions" : { + "get" : { + "tags" : [ + "artifact-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "string" + }, + "type" : "array" + } + } + }, + "summary" : "Retrieve the list of artifact versions by account and artifact names", + "operationId" : "artifactVersionsUsingGET", + "parameters" : [ + { + "in" : "header", + "description" : "X-RateLimit-App", + "required" : false, + "name" : "X-RateLimit-App", + "type" : "string" + }, + { + "type" : "string", + "name" : "accountName", + "required" : true, + "in" : "path", + "description" : "accountName" + }, + { + "required" : true, + "name" : "artifactName", + "description" : "artifactName", + "in" : "query", + "type" : "string" + }, + { + "name" : "type", + "required" : true, + "in" : "query", + "description" : "type", + "type" : "string" + } + ] + } + }, + "/subnets" : { + "get" : { + "tags" : [ + "amazon-infrastructure-controller" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Get subnets", + "operationId" : "subnetsUsingGET" + } + }, + "/applications/{application}/clusters/{account}" : { + "get" : { + "summary" : "Retrieve a list of clusters for an account", + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "cluster-controller" + ], + "parameters" : [ + { + "in" : "header", + "description" : "X-RateLimit-App", + "name" : "X-RateLimit-App", + "required" : false, + "type" : "string" + }, + { + "required" : true, + "name" : "account", + "description" : "account", + "in" : "path", + "type" : "string" + }, + { + "description" : "application", + "in" : "path", + "required" : true, + "name" : "application", + "type" : "string" + } + ], + "operationId" : "getClustersUsingGET_1" + } + }, + "/v2/builds/{buildMaster}/jobs/**" : { + "get" : { + "description" : "Deprecated, use the v3 endpoint instead", + "tags" : [ + "build-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "summary" : "Get job config", + "operationId" : "getJobConfigUsingGET", + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "buildMaster", + "name" : "buildMaster", + "required" : true + } + ] + } + }, + "/applications/{application}/executions/search" : { + "get" : { + "tags" : [ + "executions-controller" + ], + "summary" : "Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list.", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "operationId" : "searchForPipelineExecutionsByTriggerUsingGET", + "parameters" : [ + { + "type" : "string", + "name" : "application", + "required" : true, + "description" : "Only includes executions that are part of this application. If this value is \"*\", results will include executions of all applications.", + "in" : "path" + }, + { + "type" : "string", + "in" : "query", + "description" : "Only includes executions that were triggered by a trigger with this eventId.", + "required" : false, + "name" : "eventId", + "allowEmptyValue" : false + }, + { + "x-example" : false, + "type" : "boolean", + "allowEmptyValue" : false, + "required" : false, + "default" : false, + "description" : "Expands each execution object in the resulting list. If this value is missing, it is defaulted to false.", + "in" : "query", + "name" : "expand" + }, + { + "type" : "string", + "required" : false, + "name" : "pipelineName", + "allowEmptyValue" : false, + "description" : "Only includes executions that with this pipeline name.", + "in" : "query" + }, + { + "x-example" : false, + "type" : "boolean", + "allowEmptyValue" : false, + "default" : false, + "required" : false, + "description" : "Reverses the resulting list before it is paginated. If this value is missing, it is defaulted to false.", + "in" : "query", + "name" : "reverse" + }, + { + "type" : "integer", + "allowEmptyValue" : false, + "default" : 10, + "required" : false, + "description" : "Sets the size of the resulting list for pagination. This value must be > 0. If this value is missing, it is defaulted to 10.", + "in" : "query", + "name" : "size", + "format" : "int32" + }, + { + "name" : "startIndex", + "format" : "int32", + "type" : "integer", + "required" : false, + "default" : 0, + "allowEmptyValue" : false, + "in" : "query", + "description" : "Sets the first item of the resulting list for pagination. The list is 0-indexed. This value must be >= 0. If this value is missing, it is defaulted to 0." + }, + { + "allowEmptyValue" : false, + "name" : "statuses", + "required" : false, + "in" : "query", + "description" : "Only includes executions with a status that is equal to a status provided in this field. The list of statuses should be given as a comma-delimited string. If this value is missing, includes executions of all statuses. Allowed statuses are: NOT_STARTED, RUNNING, PAUSED, SUSPENDED, SUCCEEDED, FAILED_CONTINUE, TERMINAL, CANCELED, REDIRECT, STOPPED, SKIPPED, BUFFERED.", + "type" : "string" + }, + { + "in" : "query", + "description" : "Only includes executions that were triggered by a trigger that matches the subset of fields provided by this value. This value should be a base64-encoded string of a JSON representation of a trigger object. The comparison succeeds if the execution trigger contains all the fields of the input trigger, the fields are of the same type, and each value of the field \"matches\". The term \"matches\" is specific for each field's type:\n- For Strings: A String value in the execution's trigger matches the input trigger's String value if the former equals the latter (case-insensitive) OR if the former matches the latter as a regular expression.\n- For Maps: A Map value in the execution's trigger matches the input trigger's Map value if the former contains all keys of the latter and their values match.\n- For Collections: A Collection value in the execution's trigger matches the input trigger's Collection value if the former has a unique element that matches each element of the latter.\n- Every other value is compared using the Java \"equals\" method (Groovy \"==\" operator)", + "allowEmptyValue" : false, + "required" : false, + "name" : "trigger", + "type" : "string" + }, + { + "format" : "int64", + "name" : "triggerTimeEndBoundary", + "type" : "integer", + "in" : "query", + "description" : "Only includes executions that were built at or before the given time, represented as a Unix timestamp in ms (UTC). This value must be <= 9223372036854775807 (Long.MAX_VALUE) and >= the value of [triggerTimeStartBoundary], if provided. If this value is missing, it is defaulted to 9223372036854775807.", + "allowEmptyValue" : false, + "required" : false, + "default" : 9223372036854775807 + }, + { + "description" : "Only includes executions that were built at or after the given time, represented as a Unix timestamp in ms (UTC). This value must be >= 0 and <= the value of [triggerTimeEndBoundary], if provided. If this value is missing, it is defaulted to 0.", + "in" : "query", + "default" : 0, + "required" : false, + "allowEmptyValue" : false, + "type" : "integer", + "format" : "int64", + "name" : "triggerTimeStartBoundary" + }, + { + "name" : "triggerTypes", + "required" : false, + "allowEmptyValue" : false, + "in" : "query", + "description" : "Only includes executions that were triggered by a trigger with a type that is equal to a type provided in this field. The list of trigger types should be a comma-delimited string. If this value is missing, results will includes executions of all trigger types.", + "type" : "string" + } + ] + } + }, + "/projects" : { + "get" : { + "operationId" : "allUsingGET_3", + "tags" : [ + "project-controller" + ], + "summary" : "Get all projects", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + } + } + } + }, + "/auth/redirect" : { + "get" : { + "operationId" : "redirectUsingGET", + "parameters" : [ + { + "required" : true, + "name" : "to", + "in" : "query", + "description" : "to", + "type" : "string" + } + ], + "tags" : [ + "auth-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "summary" : "Redirect to Deck" + } + }, + "/images/{account}/{region}/{imageId}" : { + "get" : { + "operationId" : "getImageDetailsUsingGET", + "parameters" : [ + { + "description" : "X-RateLimit-App", + "in" : "header", + "name" : "X-RateLimit-App", + "required" : false, + "type" : "string" + }, + { + "in" : "path", + "description" : "account", + "name" : "account", + "required" : true, + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "imageId", + "required" : true, + "name" : "imageId" + }, + { + "type" : "string", + "in" : "query", + "description" : "provider", + "required" : false, + "default" : "aws", + "name" : "provider" + }, + { + "required" : true, + "name" : "region", + "description" : "region", + "in" : "path", + "type" : "string" + } + ], + "tags" : [ + "image-controller" + ], + "responses" : { + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Get image details" + } + }, + "/applications/{application}/clusters" : { + "get" : { + "tags" : [ + "cluster-controller" + ], + "summary" : "Retrieve a list of cluster names for an application, grouped by account", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "operationId" : "getClustersUsingGET_2", + "parameters" : [ + { + "in" : "header", + "description" : "X-RateLimit-App", + "required" : false, + "name" : "X-RateLimit-App", + "type" : "string" + }, + { + "in" : "path", + "description" : "application", + "name" : "application", + "required" : true, + "type" : "string" + } + ] + } + }, + "/concourse/{buildMaster}/teams/{team}/pipelines" : { + "get" : { + "tags" : [ + "concourse-controller" + ], + "summary" : "Retrieve the list of pipeline names for a given team available to triggers", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "operationId" : "pipelinesUsingGET", + "parameters" : [ + { + "name" : "buildMaster", + "required" : true, + "in" : "path", + "description" : "buildMaster", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "team", + "in" : "path", + "description" : "team" + } + ] + } + }, + "/securityGroups/{account}" : { + "get" : { + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of security groups for a given account, grouped by region", + "tags" : [ + "security-group-controller" + ], + "parameters" : [ + { + "in" : "header", + "description" : "X-RateLimit-App", + "name" : "X-RateLimit-App", + "required" : false, + "type" : "string" + }, + { + "type" : "string", + "description" : "account", + "in" : "path", + "required" : true, + "name" : "account" + }, + { + "in" : "query", + "description" : "provider", + "default" : "aws", + "required" : false, + "name" : "provider", + "type" : "string" + } + ], + "operationId" : "allByAccountUsingGET_1" + } + }, + "/v2/builds/{buildMaster}/jobs" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "buildMaster", + "in" : "path", + "description" : "buildMaster" + } + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "operationId" : "getJobsForBuildMasterUsingGET", + "description" : "Deprecated, use the v3 endpoint instead", + "tags" : [ + "build-controller" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Get jobs for build master" + } + }, + "/applications" : { + "get" : { + "tags" : [ + "application-controller" + ], + "summary" : "Retrieve a list of applications", + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "operationId" : "getAllApplicationsUsingGET", + "parameters" : [ + { + "description" : "filters results to only include applications deployed in the specified account", + "in" : "query", + "name" : "account", + "required" : false, + "allowEmptyValue" : false, + "type" : "string" + }, + { + "type" : "string", + "in" : "query", + "description" : "filters results to only include applications owned by the specified email", + "required" : false, + "name" : "owner", + "allowEmptyValue" : false + } + ] + } + }, + "/pipelines/{id}/evaluateExpression" : { + "post" : { + "tags" : [ + "pipeline-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "consumes" : [ + "application/json" + ], + "summary" : "Evaluate a pipeline expression using the provided execution as context", + "operationId" : "evaluateExpressionForExecutionViaPOSTUsingPOST", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "parameters" : [ + { + "type" : "string", + "name" : "id", + "required" : true, + "description" : "id", + "in" : "path" + }, + { + "description" : "pipelineExpression", + "schema" : { + "type" : "object" + }, + "in" : "body", + "name" : "pipelineExpression", + "required" : true + } + ] + }, + "get" : { + "tags" : [ + "pipeline-controller" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Evaluate a pipeline expression using the provided execution as context", + "operationId" : "evaluateExpressionForExecutionUsingGET", + "parameters" : [ + { + "required" : true, + "name" : "expression", + "in" : "query", + "description" : "expression", + "type" : "string" + }, + { + "required" : true, + "name" : "id", + "in" : "path", + "description" : "id", + "type" : "string" + } + ] + } + }, + "/pipelines/{application}/{pipelineName}" : { + "delete" : { + "tags" : [ + "pipeline-controller" + ], + "summary" : "Delete a pipeline definition", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + }, + "204" : { + "description" : "No Content" + }, + "403" : { + "description" : "Forbidden" + } + }, + "operationId" : "deletePipelineUsingDELETE", + "parameters" : [ + { + "name" : "application", + "required" : true, + "description" : "application", + "in" : "path", + "type" : "string" + }, + { + "type" : "string", + "description" : "pipelineName", + "in" : "path", + "name" : "pipelineName", + "required" : true + } + ] + } + }, + "/managed/application/{application}/pin" : { + "post" : { + "operationId" : "createPinUsingPOST", + "tags" : [ + "managed-controller" + ], + "summary" : "Create a pin for an artifact in an environment", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "parameters" : [ + { + "type" : "string", + "name" : "application", + "required" : true, + "in" : "path", + "description" : "application" + }, + { + "required" : true, + "name" : "pin", + "description" : "pin", + "schema" : { + "$ref" : "#/definitions/EnvironmentArtifactPin" + }, + "in" : "body" + } + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + }, + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + } + } + }, + "/subnets/{cloudProvider}" : { + "get" : { + "operationId" : "allByCloudProviderUsingGET_1", + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "cloudProvider", + "description" : "cloudProvider", + "in" : "path" + } + ], + "tags" : [ + "subnet-controller" + ], + "summary" : "Retrieve a list of subnets for a given cloud provider", + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "produces" : [ + "*/*" + ] + } + }, + "/auth/roles/sync" : { + "post" : { + "tags" : [ + "auth-controller" + ], + "summary" : "Sync user roles", + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + } + }, + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "operationId" : "syncUsingPOST" + } + }, + "/images/tags" : { + "get" : { + "summary" : "Find tags", + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "image-controller" + ], + "parameters" : [ + { + "name" : "X-RateLimit-App", + "required" : false, + "in" : "header", + "description" : "X-RateLimit-App", + "type" : "string" + }, + { + "required" : true, + "name" : "account", + "description" : "account", + "in" : "query", + "type" : "string" + }, + { + "name" : "provider", + "default" : "aws", + "required" : false, + "description" : "provider", + "in" : "query", + "type" : "string" + }, + { + "name" : "repository", + "required" : true, + "in" : "query", + "description" : "repository", + "type" : "string" + } + ], + "operationId" : "findTagsUsingGET" + } + }, + "/v2/builds/{buildMaster}/build/{number}/**" : { + "get" : { + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "parameters" : [ + { + "name" : "buildMaster", + "required" : true, + "description" : "buildMaster", + "in" : "path", + "type" : "string" + }, + { + "description" : "number", + "in" : "path", + "required" : true, + "name" : "number", + "type" : "string" + } + ], + "tags" : [ + "build-controller" + ], + "description" : "Deprecated, use the v3 endpoint instead", + "summary" : "Get build for build master", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "operationId" : "getBuildUsingGET" + } + }, + "/plugins/publish/{pluginId}/{pluginVersion}" : { + "post" : { + "parameters" : [ + { + "type" : "file", + "name" : "plugin", + "required" : true, + "description" : "plugin", + "in" : "formData" + }, + { + "name" : "pluginId", + "required" : true, + "in" : "path", + "description" : "pluginId", + "type" : "string" + }, + { + "in" : "formData", + "schema" : { + "$ref" : "#/definitions/SpinnakerPluginInfo" + }, + "description" : "pluginInfo", + "required" : true, + "name" : "pluginInfo" + }, + { + "in" : "path", + "description" : "pluginVersion", + "required" : true, + "name" : "pluginVersion", + "type" : "string" + } + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + }, + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "operationId" : "publishPluginUsingPOST", + "tags" : [ + "plugin-publish-controller" + ], + "summary" : "Publish a plugin binary and the plugin info metadata.", + "consumes" : [ + "multipart/form-data" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false + } + }, + "/pipelines/{id}/{stageId}/evaluateExpression" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "name" : "expression", + "required" : true, + "in" : "query", + "description" : "expression" + }, + { + "type" : "string", + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id" + }, + { + "type" : "string", + "in" : "path", + "description" : "stageId", + "name" : "stageId", + "required" : true + } + ], + "operationId" : "evaluateExpressionForExecutionAtStageUsingGET", + "summary" : "Evaluate a pipeline expression at a specific stage using the provided execution as context", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "pipeline-controller" + ] + } + }, + "/applications/{application}/tasks/{id}" : { + "get" : { + "tags" : [ + "application-controller" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "deprecated" : true, + "produces" : [ + "*/*" + ], + "summary" : "Get task", + "operationId" : "getTaskUsingGET", + "parameters" : [ + { + "required" : true, + "name" : "id", + "in" : "path", + "description" : "id", + "type" : "string" + } + ] + } + }, + "/pipelines/{id}/stages/{stageId}/restart" : { + "put" : { + "parameters" : [ + { + "schema" : { + "type" : "object" + }, + "in" : "body", + "description" : "context", + "required" : true, + "name" : "context" + }, + { + "type" : "string", + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id" + }, + { + "type" : "string", + "required" : true, + "name" : "stageId", + "in" : "path", + "description" : "stageId" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + } + }, + "operationId" : "restartStageUsingPUT", + "tags" : [ + "pipeline-controller" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Restart a stage execution" + } + }, + "/auth/loggedOut" : { + "get" : { + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "string" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "summary" : "Get logged out message", + "tags" : [ + "auth-controller" + ], + "operationId" : "loggedOutUsingGET" + } + }, + "/loadBalancers/{account}/{region}/{name}" : { + "get" : { + "tags" : [ + "load-balancer-controller" + ], + "summary" : "Retrieve a load balancer's details as a single element list for a given account, region, cloud provider and load balancer name", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + } + }, + "operationId" : "getLoadBalancerDetailsUsingGET", + "parameters" : [ + { + "required" : false, + "name" : "X-RateLimit-App", + "description" : "X-RateLimit-App", + "in" : "header", + "type" : "string" + }, + { + "in" : "path", + "description" : "account", + "name" : "account", + "required" : true, + "type" : "string" + }, + { + "type" : "string", + "name" : "name", + "required" : true, + "in" : "path", + "description" : "name" + }, + { + "required" : false, + "default" : "aws", + "name" : "provider", + "in" : "query", + "description" : "provider", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "region", + "in" : "path", + "description" : "region" + } + ] + } + }, + "/v3/builds/{buildMaster}/build/{number}" : { + "get" : { + "parameters" : [ + { + "required" : true, + "name" : "buildMaster", + "in" : "path", + "description" : "buildMaster", + "type" : "string" + }, + { + "description" : "job", + "in" : "query", + "required" : true, + "name" : "job", + "type" : "string" + }, + { + "type" : "string", + "name" : "number", + "required" : true, + "in" : "path", + "description" : "number" + } + ], + "operationId" : "v3GetBuildUsingGET", + "summary" : "Get build for build master", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "build-controller" + ] + } + }, + "/applications/{application}/loadBalancers" : { + "get" : { + "operationId" : "getApplicationLoadBalancersUsingGET", + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "X-RateLimit-App", + "description" : "X-RateLimit-App", + "in" : "header" + }, + { + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application", + "type" : "string" + } + ], + "tags" : [ + "load-balancer-controller" + ], + "summary" : "Retrieve a list of load balancers for a given application", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + } + } + }, + "/v2/pipelineTemplates/create" : { + "post" : { + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "parameters" : [ + { + "name" : "pipelineTemplate", + "required" : true, + "schema" : { + "type" : "object" + }, + "in" : "body", + "description" : "pipelineTemplate" + }, + { + "type" : "string", + "required" : false, + "name" : "tag", + "in" : "query", + "description" : "tag" + } + ], + "summary" : "(ALPHA) Create a pipeline template.", + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "tags" : [ + "v-2-pipeline-templates-controller" + ], + "operationId" : "createUsingPOST_1" + } + }, + "/applications/{applicationName}/serverGroups/{account}/{region}/{serverGroupName}" : { + "get" : { + "parameters" : [ + { + "name" : "X-RateLimit-App", + "required" : false, + "in" : "header", + "description" : "X-RateLimit-App", + "type" : "string" + }, + { + "description" : "account", + "in" : "path", + "required" : true, + "name" : "account", + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "applicationName", + "name" : "applicationName", + "required" : true + }, + { + "required" : false, + "default" : "true", + "name" : "includeDetails", + "in" : "query", + "description" : "includeDetails", + "type" : "string" + }, + { + "name" : "region", + "required" : true, + "description" : "region", + "in" : "path", + "type" : "string" + }, + { + "description" : "serverGroupName", + "in" : "path", + "name" : "serverGroupName", + "required" : true, + "type" : "string" + } + ], + "operationId" : "getServerGroupDetailsUsingGET", + "summary" : "Retrieve a server group's details", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "tags" : [ + "server-group-controller" + ] + } + }, + "/pipelineConfigs" : { + "get" : { + "operationId" : "getAllPipelineConfigsUsingGET", + "summary" : "Get all pipeline configs.", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "tags" : [ + "pipeline-config-controller" + ] + } + }, + "/networks" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "name" : "X-RateLimit-App", + "required" : false, + "in" : "header", + "description" : "X-RateLimit-App" + } + ], + "operationId" : "allUsingGET_2", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of networks, grouped by cloud provider", + "tags" : [ + "network-controller" + ] + } + }, + "/pipelineTemplates/resolve" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "name" : "executionId", + "required" : false, + "description" : "executionId", + "in" : "query" + }, + { + "type" : "string", + "name" : "pipelineConfigId", + "required" : false, + "description" : "pipelineConfigId", + "in" : "query" + }, + { + "name" : "source", + "required" : true, + "in" : "query", + "description" : "source", + "type" : "string" + } + ], + "operationId" : "resolveTemplatesUsingGET", + "responses" : { + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Resolve a pipeline template.", + "tags" : [ + "pipeline-templates-controller" + ] + } + }, + "/managed/delivery-configs" : { + "post" : { + "operationId" : "upsertManifestUsingPOST", + "tags" : [ + "managed-controller" + ], + "summary" : "Create or update a delivery config manifest", + "consumes" : [ + "application/json", + "application/x-yaml" + ], + "produces" : [ + "application/json" + ], + "deprecated" : false, + "parameters" : [ + { + "description" : "manifest", + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + }, + "in" : "body", + "required" : true, + "name" : "manifest" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + }, + "description" : "OK" + } + } + } + }, + "/pubsub/subscriptions" : { + "get" : { + "tags" : [ + "pubsub-subscription-controller" + ], + "summary" : "Retrieve the list of pub/sub subscriptions configured in Echo.", + "deprecated" : false, + "responses" : { + "200" : { + "schema" : { + "items" : { + "$ref" : "#/definitions/Map«string,string»" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "produces" : [ + "*/*" + ], + "operationId" : "allUsingGET_4" + } + }, + "/managed/application/{application}/environment/{environment}/constraints" : { + "get" : { + "summary" : "List up-to {limit} current constraint states for an environment", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/ConstraintState" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "tags" : [ + "managed-controller" + ], + "parameters" : [ + { + "description" : "application", + "in" : "path", + "required" : true, + "name" : "application", + "type" : "string" + }, + { + "type" : "string", + "description" : "environment", + "in" : "path", + "name" : "environment", + "required" : true + }, + { + "default" : "10", + "required" : false, + "name" : "limit", + "in" : "query", + "description" : "limit", + "type" : "string" + } + ], + "operationId" : "getConstraintStateUsingGET" + } + }, + "/v2/pipelineTemplates/update/{id}" : { + "post" : { + "operationId" : "updateUsingPOST_1", + "summary" : "(ALPHA) Update a pipeline template.", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "consumes" : [ + "application/json" + ], + "tags" : [ + "v-2-pipeline-templates-controller" + ], + "parameters" : [ + { + "type" : "string", + "name" : "id", + "required" : true, + "in" : "path", + "description" : "id" + }, + { + "description" : "pipelineTemplate", + "schema" : { + "type" : "object" + }, + "in" : "body", + "name" : "pipelineTemplate", + "required" : true + }, + { + "type" : "boolean", + "in" : "query", + "description" : "skipPlanDependents", + "name" : "skipPlanDependents", + "default" : false, + "required" : false + }, + { + "type" : "string", + "in" : "query", + "description" : "tag", + "required" : false, + "name" : "tag" + } + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + } + } + }, + "/applications/{application}/clusters/{account}/{clusterName}/{type}/loadBalancers" : { + "get" : { + "tags" : [ + "cluster-controller" + ], + "summary" : "Retrieve a cluster's loadbalancers", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "operationId" : "getClusterLoadBalancersUsingGET", + "parameters" : [ + { + "type" : "string", + "description" : "X-RateLimit-App", + "in" : "header", + "name" : "X-RateLimit-App", + "required" : false + }, + { + "name" : "account", + "required" : true, + "description" : "account", + "in" : "path", + "type" : "string" + }, + { + "name" : "applicationName", + "required" : true, + "description" : "applicationName", + "in" : "path", + "type" : "string" + }, + { + "in" : "path", + "description" : "clusterName", + "name" : "clusterName", + "required" : true, + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "type", + "description" : "type", + "in" : "path" + } + ] + } + }, + "/v2/canaries/canary/{canaryConfigId}" : { + "post" : { + "parameters" : [ + { + "type" : "string", + "description" : "application", + "in" : "query", + "required" : false, + "name" : "application" + }, + { + "type" : "string", + "required" : true, + "name" : "canaryConfigId", + "description" : "canaryConfigId", + "in" : "path" + }, + { + "in" : "query", + "description" : "configurationAccountName", + "name" : "configurationAccountName", + "required" : false, + "type" : "string" + }, + { + "required" : true, + "name" : "executionRequest", + "in" : "body", + "schema" : { + "type" : "object" + }, + "description" : "executionRequest" + }, + { + "description" : "metricsAccountName", + "in" : "query", + "required" : false, + "name" : "metricsAccountName", + "type" : "string" + }, + { + "type" : "string", + "required" : false, + "name" : "parentPipelineExecutionId", + "in" : "query", + "description" : "parentPipelineExecutionId" + }, + { + "type" : "string", + "description" : "storageAccountName", + "in" : "query", + "required" : false, + "name" : "storageAccountName" + } + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + } + }, + "operationId" : "initiateCanaryUsingPOST", + "tags" : [ + "v-2-canary-controller" + ], + "summary" : "Start a canary execution", + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false + } + }, + "/v2/canaries/canary" : { + "post" : { + "tags" : [ + "v-2-canary-controller" + ], + "summary" : "Start a canary execution with the supplied canary config", + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "operationId" : "initiateCanaryWithConfigUsingPOST", + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + } + }, + "parameters" : [ + { + "description" : "adhocExecutionRequest", + "schema" : { + "type" : "object" + }, + "in" : "body", + "required" : true, + "name" : "adhocExecutionRequest" + }, + { + "type" : "string", + "required" : false, + "name" : "application", + "description" : "application", + "in" : "query" + }, + { + "required" : false, + "name" : "metricsAccountName", + "in" : "query", + "description" : "metricsAccountName", + "type" : "string" + }, + { + "type" : "string", + "in" : "query", + "description" : "parentPipelineExecutionId", + "name" : "parentPipelineExecutionId", + "required" : false + }, + { + "type" : "string", + "in" : "query", + "description" : "storageAccountName", + "name" : "storageAccountName", + "required" : false + } + ] + } + }, + "/managed/application/{application}/config" : { + "delete" : { + "summary" : "Delete a delivery config manifest for an application", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + } + }, + "204" : { + "description" : "No Content" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "managed-controller" + ], + "parameters" : [ + { + "type" : "string", + "description" : "application", + "in" : "path", + "required" : true, + "name" : "application" + } + ], + "operationId" : "deleteManifestByAppUsingDELETE" + }, + "get" : { + "parameters" : [ + { + "type" : "string", + "description" : "application", + "in" : "path", + "required" : true, + "name" : "application" + } + ], + "operationId" : "getConfigByUsingGET", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "summary" : "Get the delivery config associated with an application", + "tags" : [ + "managed-controller" + ] + } + }, + "/images/find" : { + "get" : { + "parameters" : [ + { + "in" : "query", + "description" : "account", + "name" : "account", + "required" : false, + "type" : "string" + }, + { + "type" : "integer", + "name" : "count", + "required" : false, + "format" : "int32", + "description" : "count", + "in" : "query" + }, + { + "type" : "string", + "required" : false, + "default" : "aws", + "name" : "provider", + "description" : "provider", + "in" : "query" + }, + { + "required" : false, + "name" : "q", + "description" : "q", + "in" : "query", + "type" : "string" + }, + { + "name" : "region", + "required" : false, + "description" : "region", + "in" : "query", + "type" : "string" + } + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "operationId" : "findImagesUsingGET", + "summary" : "Retrieve a list of images, filtered by cloud provider, region, and account", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "tags" : [ + "image-controller" + ], + "description" : "The query parameter `q` filters the list of images by image name" + } + }, + "/managed/delivery-configs/{name}" : { + "get" : { + "summary" : "Get a delivery config manifest", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "managed-controller" + ], + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "name", + "name" : "name", + "required" : true + } + ], + "operationId" : "getManifestUsingGET" + }, + "delete" : { + "summary" : "Delete a delivery config manifest", + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "204" : { + "description" : "No Content" + }, + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "tags" : [ + "managed-controller" + ], + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "name", + "description" : "name", + "in" : "path" + } + ], + "operationId" : "deleteManifestUsingDELETE" + } + }, + "/applications/{applicationName}/jobs/{account}/{region}/{name}" : { + "get" : { + "summary" : "Get job", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "tags" : [ + "job-controller" + ], + "parameters" : [ + { + "type" : "string", + "name" : "X-RateLimit-App", + "required" : false, + "in" : "header", + "description" : "X-RateLimit-App" + }, + { + "type" : "string", + "required" : true, + "name" : "account", + "description" : "account", + "in" : "path" + }, + { + "description" : "applicationName", + "in" : "path", + "required" : true, + "name" : "applicationName", + "type" : "string" + }, + { + "description" : "expand", + "in" : "query", + "required" : false, + "default" : "false", + "name" : "expand", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "name", + "description" : "name", + "in" : "path" + }, + { + "name" : "region", + "required" : true, + "description" : "region", + "in" : "path", + "type" : "string" + } + ], + "operationId" : "getJobUsingGET" + } + }, + "/projects/{id}" : { + "get" : { + "summary" : "Get a project", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "tags" : [ + "project-controller" + ], + "parameters" : [ + { + "required" : true, + "name" : "id", + "in" : "path", + "description" : "id", + "type" : "string" + } + ], + "operationId" : "getUsingGET_1" + } + }, + "/v2/canaries/{application}/executions" : { + "get" : { + "operationId" : "getCanaryResultsByApplicationUsingGET", + "parameters" : [ + { + "name" : "application", + "required" : true, + "in" : "path", + "description" : "application", + "type" : "string" + }, + { + "type" : "integer", + "name" : "limit", + "required" : true, + "description" : "limit", + "format" : "int32", + "in" : "query" + }, + { + "type" : "integer", + "format" : "int32", + "in" : "query", + "description" : "page", + "default" : 1, + "name" : "page", + "required" : false + }, + { + "description" : "Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED, TERMINAL", + "in" : "query", + "allowEmptyValue" : false, + "required" : false, + "name" : "statuses", + "type" : "string" + }, + { + "required" : false, + "name" : "storageAccountName", + "in" : "query", + "description" : "storageAccountName", + "type" : "string" + } + ], + "tags" : [ + "v-2-canary-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "summary" : "Retrieve a list of an application's canary results" + } + }, + "/applications/{application}/clusters/{account}/{clusterName}/{cloudProvider}/{scope}/serverGroups/target/{target}" : { + "get" : { + "operationId" : "getTargetServerGroupUsingGET", + "description" : "`scope` is either a zone or a region", + "tags" : [ + "cluster-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "summary" : "Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster", + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "X-RateLimit-App", + "in" : "header", + "description" : "X-RateLimit-App" + }, + { + "type" : "string", + "required" : true, + "name" : "account", + "in" : "path", + "description" : "account" + }, + { + "name" : "application", + "required" : true, + "description" : "application", + "in" : "path", + "type" : "string" + }, + { + "type" : "string", + "description" : "cloudProvider", + "in" : "path", + "name" : "cloudProvider", + "required" : true + }, + { + "type" : "string", + "description" : "clusterName", + "in" : "path", + "required" : true, + "name" : "clusterName" + }, + { + "type" : "boolean", + "required" : false, + "name" : "onlyEnabled", + "in" : "query", + "description" : "onlyEnabled" + }, + { + "type" : "string", + "required" : true, + "name" : "scope", + "description" : "scope", + "in" : "path" + }, + { + "description" : "target", + "in" : "path", + "required" : true, + "name" : "target", + "type" : "string" + }, + { + "in" : "query", + "description" : "validateOldest", + "required" : false, + "name" : "validateOldest", + "type" : "boolean" + } + ], + "responses" : { + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + } + } + }, + "/projects/{id}/clusters" : { + "get" : { + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "summary" : "Get a project's clusters", + "tags" : [ + "project-controller" + ], + "parameters" : [ + { + "type" : "string", + "description" : "X-RateLimit-App", + "in" : "header", + "name" : "X-RateLimit-App", + "required" : false + }, + { + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id", + "type" : "string" + } + ], + "operationId" : "getClustersUsingGET_3" + } + }, + "/pipelineConfigs/{pipelineConfigId}/history" : { + "get" : { + "summary" : "Get pipeline config history.", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + } + }, + "produces" : [ + "*/*" + ], + "tags" : [ + "pipeline-config-controller" + ], + "parameters" : [ + { + "type" : "integer", + "format" : "int32", + "in" : "query", + "description" : "limit", + "name" : "limit", + "default" : 20, + "required" : false + }, + { + "type" : "string", + "name" : "pipelineConfigId", + "required" : true, + "in" : "path", + "description" : "pipelineConfigId" + } + ], + "operationId" : "getPipelineConfigHistoryUsingGET" + } + }, + "/bakery/options/{cloudProvider}" : { + "get" : { + "tags" : [ + "bake-controller" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of available bakery base images for a given cloud provider", + "operationId" : "bakeOptionsUsingGET", + "parameters" : [ + { + "type" : "string", + "description" : "cloudProvider", + "in" : "path", + "required" : true, + "name" : "cloudProvider" + } + ] + } + }, + "/projects/{id}/pipelines" : { + "get" : { + "operationId" : "allPipelinesForProjectUsingGET", + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id" + }, + { + "default" : 5, + "name" : "limit", + "required" : false, + "description" : "limit", + "format" : "int32", + "in" : "query", + "type" : "integer" + }, + { + "description" : "statuses", + "in" : "query", + "required" : false, + "name" : "statuses", + "type" : "string" + } + ], + "tags" : [ + "project-controller" + ], + "summary" : "Get all pipelines for project", + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ] + } + }, + "/managed/delivery-configs/schema" : { + "get" : { + "operationId" : "schemaUsingGET", + "tags" : [ + "managed-controller" + ], + "summary" : "Ad-hoc validate and diff a config manifest", + "deprecated" : false, + "produces" : [ + "application/json", + "application/x-yaml" + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + } + } + }, + "/managed/resources/export/{cloudProvider}/{account}/{type}/{name}" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "account", + "name" : "account", + "required" : true + }, + { + "type" : "string", + "name" : "cloudProvider", + "required" : true, + "description" : "cloudProvider", + "in" : "path" + }, + { + "description" : "name", + "in" : "path", + "name" : "name", + "required" : true, + "type" : "string" + }, + { + "in" : "query", + "description" : "serviceAccount", + "name" : "serviceAccount", + "required" : true, + "type" : "string" + }, + { + "required" : true, + "name" : "type", + "in" : "path", + "description" : "type", + "type" : "string" + } + ], + "operationId" : "exportResourceUsingGET_1", + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "schema" : { + "$ref" : "#/definitions/Resource" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Generate a keel resource definition for a deployed cloud resource", + "tags" : [ + "managed-controller" + ] + } + }, + "/v2/builds" : { + "get" : { + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + } + }, + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "type", + "in" : "query", + "description" : "type" + } + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "summary" : "Get build masters", + "description" : "Deprecated, use the v3 endpoint instead", + "tags" : [ + "build-controller" + ], + "operationId" : "getBuildMastersUsingGET" + } + }, + "/vpcs" : { + "get" : { + "operationId" : "vpcsUsingGET", + "summary" : "Get VPCs", + "produces" : [ + "*/*" + ], + "deprecated" : true, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "tags" : [ + "amazon-infrastructure-controller" + ] + } + }, + "/v2/pipelineTemplates/{id}/dependents" : { + "get" : { + "tags" : [ + "v-2-pipeline-templates-controller" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "(ALPHA) List all pipelines that implement a pipeline template", + "operationId" : "listPipelineTemplateDependentsUsingGET_1", + "parameters" : [ + { + "name" : "id", + "required" : true, + "in" : "path", + "description" : "id", + "type" : "string" + } + ] + } + }, + "/v2/pipelineTemplates/versions" : { + "get" : { + "operationId" : "listVersionsUsingGET", + "parameters" : [ + { + "collectionFormat" : "multi", + "required" : false, + "name" : "scopes", + "description" : "scopes", + "in" : "query", + "type" : "array", + "items" : { + "type" : "string" + } + } + ], + "tags" : [ + "v-2-pipeline-templates-controller" + ], + "summary" : "List pipeline templates with versions", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + } + } + }, + "/securityGroups" : { + "get" : { + "tags" : [ + "security-group-controller" + ], + "summary" : "Retrieve a list of security groups, grouped by account, cloud provider, and region", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + } + }, + "produces" : [ + "*/*" + ], + "operationId" : "allUsingGET_5", + "parameters" : [ + { + "type" : "string", + "in" : "header", + "description" : "X-RateLimit-App", + "required" : false, + "name" : "X-RateLimit-App" + }, + { + "in" : "query", + "description" : "id", + "name" : "id", + "required" : false, + "type" : "string" + } + ] + } + }, + "/plugins/installed" : { + "get" : { + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SpinnakerPluginDescriptor" + } + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Get all installed Spinnaker plugins", + "tags" : [ + "plugins-installed-controller" + ], + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "service", + "description" : "service", + "in" : "query" + } + ], + "operationId" : "getInstalledPluginsUsingGET" + } + }, + "/version" : { + "get" : { + "operationId" : "getVersionUsingGET", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/Version" + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "summary" : "Fetch Gate's current version", + "tags" : [ + "version-controller" + ] + } + }, + "/managed/resources/diff" : { + "post" : { + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "201" : { + "description" : "Created" + } + }, + "parameters" : [ + { + "name" : "resource", + "required" : true, + "schema" : { + "$ref" : "#/definitions/Resource" + }, + "in" : "body", + "description" : "resource" + } + ], + "consumes" : [ + "application/json", + "application/x-yaml" + ], + "deprecated" : false, + "produces" : [ + "application/json" + ], + "summary" : "Ad-hoc validate and diff a resource", + "tags" : [ + "managed-controller" + ], + "operationId" : "diffResourceUsingPOST" + } + }, + "/applications/{application}/tasks/{id}/details/{taskDetailsId}" : { + "get" : { + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "deprecated" : true, + "produces" : [ + "*/*" + ], + "summary" : "Get task details", + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "type" : "string", + "in" : "header", + "description" : "X-RateLimit-App", + "required" : false, + "name" : "X-RateLimit-App" + }, + { + "required" : true, + "name" : "id", + "in" : "path", + "description" : "id", + "type" : "string" + }, + { + "description" : "taskDetailsId", + "in" : "path", + "name" : "taskDetailsId", + "required" : true, + "type" : "string" + } + ], + "operationId" : "getTaskDetailsUsingGET" + } + }, + "/applications/{application}/strategyConfigs/{strategyName}" : { + "get" : { + "operationId" : "getStrategyConfigUsingGET", + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application" + }, + { + "type" : "string", + "in" : "path", + "description" : "strategyName", + "name" : "strategyName", + "required" : true + } + ], + "tags" : [ + "application-controller" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "summary" : "Retrieve a pipeline strategy configuration" + } + }, + "/search" : { + "get" : { + "operationId" : "searchUsingGET", + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "X-RateLimit-App", + "description" : "X-RateLimit-App", + "in" : "header" + }, + { + "description" : "allowShortQuery", + "in" : "query", + "name" : "allowShortQuery", + "default" : false, + "required" : false, + "type" : "boolean" + }, + { + "default" : 1, + "required" : false, + "name" : "page", + "in" : "query", + "format" : "int32", + "description" : "page", + "type" : "integer" + }, + { + "type" : "integer", + "in" : "query", + "format" : "int32", + "description" : "pageSize", + "default" : 10000, + "required" : false, + "name" : "pageSize" + }, + { + "required" : false, + "name" : "platform", + "description" : "platform", + "in" : "query", + "type" : "string" + }, + { + "required" : false, + "name" : "q", + "description" : "q", + "in" : "query", + "type" : "string" + }, + { + "name" : "type", + "required" : true, + "in" : "query", + "description" : "type", + "type" : "string" + } + ], + "tags" : [ + "search-controller" + ], + "summary" : "Search infrastructure", + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ] + } + }, + "/credentials/{account}" : { + "get" : { + "summary" : "Retrieve an account's details", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "schema" : { + "$ref" : "#/definitions/AccountDetails" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "credentials-controller" + ], + "parameters" : [ + { + "type" : "string", + "name" : "X-RateLimit-App", + "required" : false, + "description" : "X-RateLimit-App", + "in" : "header" + }, + { + "required" : true, + "name" : "account", + "description" : "account", + "in" : "path", + "type" : "string" + }, + { + "in" : "query", + "required" : false, + "name" : "accountNonExpired", + "type" : "boolean" + }, + { + "in" : "query", + "required" : false, + "name" : "accountNonLocked", + "type" : "boolean" + }, + { + "items" : { + "type" : "string" + }, + "type" : "array", + "in" : "query", + "name" : "allowedAccounts", + "required" : false, + "collectionFormat" : "multi" + }, + { + "in" : "query", + "required" : false, + "name" : "authorities[0].authority", + "type" : "string" + }, + { + "type" : "boolean", + "required" : false, + "name" : "credentialsNonExpired", + "in" : "query" + }, + { + "name" : "email", + "required" : false, + "in" : "query", + "type" : "string" + }, + { + "in" : "query", + "name" : "enabled", + "required" : false, + "type" : "boolean" + }, + { + "type" : "string", + "name" : "firstName", + "required" : false, + "in" : "query" + }, + { + "required" : false, + "name" : "lastName", + "in" : "query", + "type" : "string" + }, + { + "type" : "string", + "name" : "password", + "required" : false, + "in" : "query" + }, + { + "collectionFormat" : "multi", + "name" : "roles", + "required" : false, + "in" : "query", + "type" : "array", + "items" : { + "type" : "string" + } + }, + { + "in" : "query", + "required" : false, + "name" : "username", + "type" : "string" + } + ], + "operationId" : "getAccountUsingGET" + } + }, + "/securityGroups/{account}/{region}/{name}" : { + "get" : { + "operationId" : "getSecurityGroupUsingGET_1", + "parameters" : [ + { + "description" : "X-RateLimit-App", + "in" : "header", + "required" : false, + "name" : "X-RateLimit-App", + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "account", + "name" : "account", + "required" : true + }, + { + "description" : "name", + "in" : "path", + "required" : true, + "name" : "name", + "type" : "string" + }, + { + "in" : "query", + "description" : "provider", + "required" : false, + "default" : "aws", + "name" : "provider", + "type" : "string" + }, + { + "type" : "string", + "description" : "region", + "in" : "path", + "required" : true, + "name" : "region" + }, + { + "type" : "string", + "in" : "query", + "description" : "vpcId", + "required" : false, + "name" : "vpcId" + } + ], + "tags" : [ + "security-group-controller" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a security group's details" + } + }, + "/managed/delivery-configs/validate" : { + "post" : { + "tags" : [ + "managed-controller" + ], + "summary" : "Validate a delivery config manifest", + "deprecated" : false, + "produces" : [ + "application/json", + "application/x-yaml" + ], + "consumes" : [ + "application/json", + "application/x-yaml" + ], + "operationId" : "validateManifestUsingPOST", + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "parameters" : [ + { + "required" : true, + "name" : "manifest", + "description" : "manifest", + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + }, + "in" : "body" + } + ] + } + }, + "/applications/{application}/history" : { + "get" : { + "parameters" : [ + { + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application", + "type" : "string" + }, + { + "type" : "integer", + "default" : 20, + "name" : "limit", + "required" : false, + "format" : "int32", + "in" : "query", + "description" : "limit" + } + ], + "operationId" : "getApplicationHistoryUsingGET", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of an application's configuration revision history", + "tags" : [ + "application-controller" + ] + } + }, + "/applications/{application}/functions" : { + "get" : { + "summary" : "Get application functions", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "amazon-infrastructure-controller" + ], + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "application", + "in" : "path", + "description" : "application" + } + ], + "operationId" : "applicationFunctionsUsingGET" + } + }, + "/managed/resources/{resourceId}.yml" : { + "get" : { + "summary" : "Get a resource", + "deprecated" : false, + "produces" : [ + "application/x-yaml" + ], + "responses" : { + "200" : { + "schema" : { + "$ref" : "#/definitions/Resource" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "tags" : [ + "managed-controller" + ], + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "resourceId", + "description" : "resourceId", + "in" : "path" + } + ], + "operationId" : "getResourceYamlUsingGET" + } + }, + "/v2/canaries/canary/{canaryConfigId}/{canaryExecutionId}" : { + "get" : { + "operationId" : "getCanaryResultUsingGET", + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "canaryConfigId", + "description" : "canaryConfigId", + "in" : "path" + }, + { + "type" : "string", + "in" : "path", + "description" : "canaryExecutionId", + "required" : true, + "name" : "canaryExecutionId" + }, + { + "type" : "string", + "name" : "storageAccountName", + "required" : false, + "in" : "query", + "description" : "storageAccountName" + } + ], + "tags" : [ + "v-2-canary-controller" + ], + "summary" : "(DEPRECATED) Retrieve a canary result", + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + } + }, + "deprecated" : true, + "produces" : [ + "*/*" + ] + } + }, + "/firewalls/{account}/{region}/{name}" : { + "get" : { + "summary" : "Retrieve a firewall's details", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + } + }, + "produces" : [ + "*/*" + ], + "tags" : [ + "firewall-controller" + ], + "parameters" : [ + { + "required" : false, + "name" : "X-RateLimit-App", + "in" : "header", + "description" : "X-RateLimit-App", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "account", + "description" : "account", + "in" : "path" + }, + { + "type" : "string", + "name" : "name", + "required" : true, + "description" : "name", + "in" : "path" + }, + { + "type" : "string", + "required" : false, + "default" : "aws", + "name" : "provider", + "description" : "provider", + "in" : "query" + }, + { + "type" : "string", + "in" : "path", + "description" : "region", + "name" : "region", + "required" : true + }, + { + "name" : "vpcId", + "required" : false, + "description" : "vpcId", + "in" : "query", + "type" : "string" + } + ], + "operationId" : "getSecurityGroupUsingGET" + } + }, + "/managed/application/{application}/pause" : { + "post" : { + "parameters" : [ + { + "type" : "string", + "name" : "application", + "required" : true, + "description" : "application", + "in" : "path" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + } + }, + "operationId" : "pauseApplicationUsingPOST", + "summary" : "Pause management of an entire application", + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "managed-controller" + ] + }, + "delete" : { + "tags" : [ + "managed-controller" + ], + "summary" : "Resume management of an entire application", + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "204" : { + "description" : "No Content" + }, + "200" : { + "description" : "OK" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "operationId" : "resumeApplicationUsingDELETE", + "parameters" : [ + { + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application", + "type" : "string" + } + ] + } + }, + "/applications/{application}/pipelines" : { + "get" : { + "operationId" : "getPipelinesUsingGET", + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application" + }, + { + "description" : "expand", + "in" : "query", + "name" : "expand", + "required" : false, + "type" : "boolean" + }, + { + "name" : "limit", + "required" : false, + "format" : "int32", + "description" : "limit", + "in" : "query", + "type" : "integer" + }, + { + "type" : "string", + "name" : "statuses", + "required" : false, + "description" : "statuses", + "in" : "query" + } + ], + "tags" : [ + "application-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Retrieve a list of an application's pipeline executions" + } + }, + "/applications/{application}/clusters/{account}/{clusterName}/serverGroups" : { + "get" : { + "operationId" : "getServerGroupsUsingGET_1", + "parameters" : [ + { + "required" : false, + "name" : "X-RateLimit-App", + "description" : "X-RateLimit-App", + "in" : "header", + "type" : "string" + }, + { + "description" : "account", + "in" : "path", + "required" : true, + "name" : "account", + "type" : "string" + }, + { + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application", + "type" : "string" + }, + { + "required" : true, + "name" : "clusterName", + "in" : "path", + "description" : "clusterName", + "type" : "string" + } + ], + "tags" : [ + "cluster-controller" + ], + "summary" : "Retrieve a list of server groups for a cluster", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + } + } + }, + "/applications/{application}/pipelines/{id}/cancel" : { + "put" : { + "operationId" : "cancelPipelineUsingPUT", + "summary" : "Cancel pipeline", + "deprecated" : true, + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path", + "type" : "string" + }, + { + "in" : "query", + "description" : "reason", + "name" : "reason", + "required" : false, + "type" : "string" + } + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + } + } + }, + "/webhooks/preconfigured" : { + "get" : { + "operationId" : "preconfiguredWebhooksUsingGET", + "tags" : [ + "webhook-controller" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "summary" : "Retrieve a list of preconfigured webhooks in Orca" + } + }, + "/artifacts/{provider}/{packageName}/{version}" : { + "get" : { + "tags" : [ + "artifact-controller" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve the specified artifact version for an artifact provider and package name", + "operationId" : "getArtifactUsingGET", + "parameters" : [ + { + "in" : "path", + "description" : "packageName", + "required" : true, + "name" : "packageName", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "provider", + "in" : "path", + "description" : "provider" + }, + { + "type" : "string", + "required" : true, + "name" : "version", + "description" : "version", + "in" : "path" + } + ] + } + }, + "/managed/application/{application}/environment/{environment}/constraint" : { + "post" : { + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "summary" : "Update the status of an environment constraint", + "tags" : [ + "managed-controller" + ], + "operationId" : "updateConstraintStatusUsingPOST", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + }, + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "parameters" : [ + { + "type" : "string", + "description" : "application", + "in" : "path", + "required" : true, + "name" : "application" + }, + { + "description" : "environment", + "in" : "path", + "required" : true, + "name" : "environment", + "type" : "string" + }, + { + "schema" : { + "$ref" : "#/definitions/ConstraintStatus" + }, + "description" : "status", + "in" : "body", + "required" : true, + "name" : "status" + } + ] + } + }, + "/v3/builds" : { + "get" : { + "summary" : "Get build masters", + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + } + }, + "produces" : [ + "*/*" + ], + "tags" : [ + "build-controller" + ], + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "type", + "description" : "type", + "in" : "query" + } + ], + "operationId" : "v3GetBuildMastersUsingGET" + } + }, + "/tasks/{id}" : { + "delete" : { + "parameters" : [ + { + "name" : "id", + "required" : true, + "description" : "id", + "in" : "path", + "type" : "string" + } + ], + "operationId" : "deleteTaskUsingDELETE", + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "204" : { + "description" : "No Content" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "403" : { + "description" : "Forbidden" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Delete task", + "tags" : [ + "task-controller" + ] + }, + "get" : { + "tags" : [ + "task-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Get task", + "operationId" : "getTaskUsingGET_1", + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path" + } + ] + } + }, + "/v3/builds/{buildMaster}/job" : { + "get" : { + "parameters" : [ + { + "name" : "buildMaster", + "required" : true, + "description" : "buildMaster", + "in" : "path", + "type" : "string" + }, + { + "in" : "query", + "description" : "job", + "name" : "job", + "required" : true, + "type" : "string" + } + ], + "operationId" : "v3GetJobConfigUsingGET", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Get job config", + "tags" : [ + "build-controller" + ] + } + }, + "/auth/user/serviceAccounts" : { + "get" : { + "summary" : "Get service accounts", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + } + }, + "tags" : [ + "auth-controller" + ], + "parameters" : [ + { + "in" : "query", + "description" : "application", + "name" : "application", + "required" : false, + "type" : "string" + } + ], + "operationId" : "getServiceAccountsUsingGET" + } + }, + "/applications/{application}/strategyConfigs" : { + "get" : { + "summary" : "Retrieve a list of an application's pipeline strategy configurations", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "application", + "name" : "application", + "required" : true + } + ], + "operationId" : "getStrategyConfigsForApplicationUsingGET" + } + }, + "/managed/delivery-configs/{name}.yml" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "name", + "required" : true, + "name" : "name" + } + ], + "operationId" : "getManifestYamlUsingGET", + "produces" : [ + "application/x-yaml" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + }, + "description" : "OK" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Get a delivery config manifest", + "tags" : [ + "managed-controller" + ] + } + }, + "/networks/{cloudProvider}" : { + "get" : { + "tags" : [ + "network-controller" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of networks for a given cloud provider", + "operationId" : "allByCloudProviderUsingGET", + "parameters" : [ + { + "description" : "X-RateLimit-App", + "in" : "header", + "required" : false, + "name" : "X-RateLimit-App", + "type" : "string" + }, + { + "description" : "cloudProvider", + "in" : "path", + "required" : true, + "name" : "cloudProvider", + "type" : "string" + } + ] + } + }, + "/instances/{account}/{region}/{instanceId}" : { + "get" : { + "parameters" : [ + { + "name" : "X-RateLimit-App", + "required" : false, + "in" : "header", + "description" : "X-RateLimit-App", + "type" : "string" + }, + { + "type" : "string", + "name" : "account", + "required" : true, + "in" : "path", + "description" : "account" + }, + { + "type" : "string", + "name" : "instanceId", + "required" : true, + "description" : "instanceId", + "in" : "path" + }, + { + "type" : "string", + "in" : "path", + "description" : "region", + "name" : "region", + "required" : true + } + ], + "operationId" : "getInstanceDetailsUsingGET", + "summary" : "Retrieve an instance's details", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "tags" : [ + "instance-controller" + ] + } + }, + "/bakery/logs/{region}/{statusId}" : { + "get" : { + "summary" : "Retrieve the logs for a given bake", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "bake-controller" + ], + "parameters" : [ + { + "type" : "string", + "name" : "region", + "required" : true, + "in" : "path", + "description" : "region" + }, + { + "type" : "string", + "name" : "statusId", + "required" : true, + "in" : "path", + "description" : "statusId" + } + ], + "operationId" : "lookupLogsUsingGET" + } + }, + "/tasks" : { + "post" : { + "parameters" : [ + { + "description" : "map", + "schema" : { + "type" : "object" + }, + "in" : "body", + "required" : true, + "name" : "map" + } + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "operationId" : "taskUsingPOST_1", + "tags" : [ + "task-controller" + ], + "summary" : "Create task", + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false + } + }, + "/v3/builds/{buildMaster}/builds" : { + "get" : { + "tags" : [ + "build-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + } + }, + "summary" : "Get builds for build master", + "operationId" : "v3GetBuildsUsingGET", + "parameters" : [ + { + "required" : true, + "name" : "buildMaster", + "in" : "path", + "description" : "buildMaster", + "type" : "string" + }, + { + "name" : "job", + "required" : true, + "description" : "job", + "in" : "query", + "type" : "string" + } + ] + } + }, + "/actions/pipelines/reorder" : { + "post" : { + "responses" : { + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + } + }, + "parameters" : [ + { + "schema" : { + "$ref" : "#/definitions/ReorderPipelinesCommand" + }, + "description" : "reorderPipelinesCommand", + "in" : "body", + "name" : "reorderPipelinesCommand", + "required" : true + } + ], + "tags" : [ + "reorder-pipelines-controller" + ], + "summary" : "Re-order pipelines", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "operationId" : "reorderPipelinesUsingPOST" + } + }, + "/managed/resources/{resourceId}/status" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "resourceId", + "description" : "resourceId", + "in" : "path" + } + ], + "operationId" : "getResourceStatusUsingGET", + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Get status of a resource", + "tags" : [ + "managed-controller" + ] + } + }, + "/instances/{account}/{region}/{instanceId}/console" : { + "get" : { + "operationId" : "getConsoleOutputUsingGET", + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "X-RateLimit-App", + "in" : "header", + "description" : "X-RateLimit-App" + }, + { + "type" : "string", + "required" : true, + "name" : "account", + "description" : "account", + "in" : "path" + }, + { + "description" : "instanceId", + "in" : "path", + "name" : "instanceId", + "required" : true, + "type" : "string" + }, + { + "in" : "query", + "description" : "provider", + "default" : "aws", + "name" : "provider", + "required" : false, + "type" : "string" + }, + { + "description" : "region", + "in" : "path", + "name" : "region", + "required" : true, + "type" : "string" + } + ], + "tags" : [ + "instance-controller" + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve an instance's console output" + } + }, + "/v3/builds/{buildMaster}/jobs" : { + "get" : { + "operationId" : "v3GetJobsForBuildMasterUsingGET", + "parameters" : [ + { + "type" : "string", + "name" : "buildMaster", + "required" : true, + "in" : "path", + "description" : "buildMaster" + } + ], + "tags" : [ + "build-controller" + ], + "deprecated" : false, + "responses" : { + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Get jobs for build master" + } + }, + "/pipelines/{id}/pause" : { + "put" : { + "parameters" : [ + { + "name" : "id", + "required" : true, + "description" : "id", + "in" : "path", + "type" : "string" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + } + }, + "operationId" : "pausePipelineUsingPUT", + "summary" : "Pause a pipeline execution", + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "pipeline-controller" + ] + } + }, + "/applications/{applicationName}/serverGroups" : { + "get" : { + "tags" : [ + "server-group-controller" + ], + "summary" : "Retrieve a list of server groups for a given application", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "operationId" : "getServerGroupsForApplicationUsingGET", + "parameters" : [ + { + "name" : "X-RateLimit-App", + "required" : false, + "description" : "X-RateLimit-App", + "in" : "header", + "type" : "string" + }, + { + "description" : "applicationName", + "in" : "path", + "required" : true, + "name" : "applicationName", + "type" : "string" + }, + { + "required" : false, + "name" : "cloudProvider", + "in" : "query", + "description" : "cloudProvider", + "type" : "string" + }, + { + "description" : "clusters", + "in" : "query", + "required" : false, + "name" : "clusters", + "type" : "string" + }, + { + "type" : "string", + "default" : "false", + "name" : "expand", + "required" : false, + "description" : "expand", + "in" : "query" + } + ] + } + }, + "/v2/canaries/judges" : { + "get" : { + "operationId" : "listJudgesUsingGET", + "summary" : "Retrieve a list of all configured canary judges", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "tags" : [ + "v-2-canary-controller" + ] + } + }, + "/plugins/deck/plugin-manifest.json" : { + "get" : { + "tags" : [ + "deck-plugins-controller" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/DeckPluginVersion" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Retrieve a plugin manifest", + "operationId" : "getPluginManifestUsingGET" + } + }, + "/tasks/{id}/details/{taskDetailsId}" : { + "get" : { + "parameters" : [ + { + "required" : false, + "name" : "X-RateLimit-App", + "in" : "header", + "description" : "X-RateLimit-App", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path" + }, + { + "type" : "string", + "required" : true, + "name" : "taskDetailsId", + "in" : "path", + "description" : "taskDetailsId" + } + ], + "operationId" : "getTaskDetailsUsingGET_1", + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Get task details", + "tags" : [ + "task-controller" + ] + } + }, + "/v2/canaries/canary/{canaryExecutionId}" : { + "get" : { + "tags" : [ + "v-2-canary-controller" + ], + "summary" : "Retrieve a canary result", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "operationId" : "getCanaryResultUsingGET_1", + "parameters" : [ + { + "required" : true, + "name" : "canaryExecutionId", + "description" : "canaryExecutionId", + "in" : "path", + "type" : "string" + }, + { + "description" : "storageAccountName", + "in" : "query", + "required" : false, + "name" : "storageAccountName", + "type" : "string" + } + ] + } + }, + "/bakery/options" : { + "get" : { + "operationId" : "bakeOptionsUsingGET_1", + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of available bakery base images, grouped by cloud provider", + "tags" : [ + "bake-controller" + ] + } + }, + "/loadBalancers" : { + "get" : { + "tags" : [ + "load-balancer-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Retrieve a list of load balancers for a given cloud provider", + "operationId" : "getAllUsingGET", + "parameters" : [ + { + "type" : "string", + "required" : false, + "name" : "X-RateLimit-App", + "description" : "X-RateLimit-App", + "in" : "header" + }, + { + "description" : "provider", + "in" : "query", + "name" : "provider", + "default" : "aws", + "required" : false, + "type" : "string" + } + ] + } + }, + "/managed/delivery-configs/diff" : { + "post" : { + "summary" : "Ad-hoc validate and diff a config manifest", + "consumes" : [ + "application/json", + "application/x-yaml" + ], + "produces" : [ + "application/json" + ], + "deprecated" : false, + "tags" : [ + "managed-controller" + ], + "operationId" : "diffManifestUsingPOST", + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "parameters" : [ + { + "name" : "manifest", + "required" : true, + "schema" : { + "$ref" : "#/definitions/DeliveryConfig" + }, + "in" : "body", + "description" : "manifest" + } + ] + } + }, + "/applications/{application}/clusters/{account}/{clusterName}" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "name" : "X-RateLimit-App", + "required" : false, + "description" : "X-RateLimit-App", + "in" : "header" + }, + { + "description" : "account", + "in" : "path", + "required" : true, + "name" : "account", + "type" : "string" + }, + { + "description" : "application", + "in" : "path", + "required" : true, + "name" : "application", + "type" : "string" + }, + { + "type" : "string", + "name" : "clusterName", + "required" : true, + "description" : "clusterName", + "in" : "path" + } + ], + "operationId" : "getClustersUsingGET", + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a cluster's details", + "tags" : [ + "cluster-controller" + ] + } + }, + "/pipelines/{id}/evaluateVariables" : { + "post" : { + "operationId" : "evaluateVariablesUsingPOST", + "tags" : [ + "pipeline-controller" + ], + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "summary" : "Evaluate variables same as Evaluate Variables stage using the provided execution as context", + "parameters" : [ + { + "type" : "string", + "description" : "Execution id to run against", + "in" : "query", + "allowEmptyValue" : false, + "name" : "executionId", + "required" : true + }, + { + "x-examples" : { + "application/json" : "[{\"key\":\"a\",\"value\":\"1\"},{\"key\":\"b\",\"value\":\"2\"},{\"key\":\"sum\",\"value\":\"${a+b}\"}]" + }, + "description" : "List of variables/expressions to evaluate", + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/Map«string,string»" + } + }, + "in" : "body", + "name" : "expressions", + "required" : true + }, + { + "in" : "query", + "description" : "Comma separated list of requisite stage IDs for the evaluation stage", + "allowEmptyValue" : false, + "name" : "requisiteStageRefIds", + "required" : false, + "type" : "string" + }, + { + "type" : "string", + "name" : "spelVersion", + "required" : false, + "allowEmptyValue" : false, + "description" : "Version of SpEL evaluation logic to use (v3 or v4)", + "in" : "query" + } + ], + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + } + } + } + }, + "/applications/{application}/serverGroups/{account}/{serverGroupName}/events" : { + "get" : { + "tags" : [ + "ecs-server-group-events-controller" + ], + "summary" : "Retrieves a list of events for a server group", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "operationId" : "getEventsUsingGET", + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "account", + "name" : "account", + "required" : true + }, + { + "type" : "string", + "in" : "path", + "description" : "application", + "name" : "application", + "required" : true + }, + { + "type" : "string", + "description" : "provider", + "in" : "query", + "name" : "provider", + "required" : true + }, + { + "type" : "string", + "name" : "region", + "required" : true, + "description" : "region", + "in" : "query" + }, + { + "description" : "serverGroupName", + "in" : "path", + "name" : "serverGroupName", + "required" : true, + "type" : "string" + } + ] + } + }, + "/pipelines/{application}/{pipelineNameOrId}" : { + "post" : { + "responses" : { + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "202" : { + "schema" : { + "type" : "object" + }, + "description" : "Accepted" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "parameters" : [ + { + "name" : "application", + "required" : true, + "description" : "application", + "in" : "path", + "type" : "string" + }, + { + "type" : "string", + "name" : "pipelineNameOrId", + "required" : true, + "description" : "pipelineNameOrId", + "in" : "path" + }, + { + "name" : "trigger", + "required" : false, + "in" : "body", + "schema" : { + "type" : "object" + }, + "description" : "trigger" + } + ], + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "summary" : "Trigger a pipeline execution", + "tags" : [ + "pipeline-controller" + ], + "operationId" : "invokePipelineConfigUsingPOST_1" + } + }, + "/applications/{application}/snapshots/{account}/history" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "name" : "account", + "required" : true, + "in" : "path", + "description" : "account" + }, + { + "type" : "string", + "description" : "application", + "in" : "path", + "name" : "application", + "required" : true + }, + { + "type" : "integer", + "required" : false, + "default" : 20, + "name" : "limit", + "description" : "limit", + "format" : "int32", + "in" : "query" + } + ], + "operationId" : "getSnapshotHistoryUsingGET", + "summary" : "Get snapshot history", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "tags" : [ + "snapshot-controller" + ] + } + }, + "/applications/{application}" : { + "get" : { + "summary" : "Retrieve an application's details", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + } + }, + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "type" : "string", + "name" : "application", + "required" : true, + "description" : "application", + "in" : "path" + }, + { + "type" : "boolean", + "required" : false, + "default" : true, + "name" : "expand", + "in" : "query", + "description" : "expand" + } + ], + "operationId" : "getApplicationUsingGET" + } + }, + "/firewalls/{account}" : { + "get" : { + "operationId" : "allByAccountUsingGET", + "parameters" : [ + { + "in" : "header", + "description" : "X-RateLimit-App", + "name" : "X-RateLimit-App", + "required" : false, + "type" : "string" + }, + { + "in" : "path", + "description" : "account", + "required" : true, + "name" : "account", + "type" : "string" + }, + { + "type" : "string", + "required" : false, + "default" : "aws", + "name" : "provider", + "description" : "provider", + "in" : "query" + } + ], + "tags" : [ + "firewall-controller" + ], + "summary" : "Retrieve a list of firewalls for a given account, grouped by region", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + } + } + }, + "/pipelines/{id}/resume" : { + "put" : { + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "id", + "required" : true, + "name" : "id" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + } + }, + "operationId" : "resumePipelineUsingPUT", + "summary" : "Resume a pipeline execution", + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "tags" : [ + "pipeline-controller" + ] + } + }, + "/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/resources" : { + "get" : { + "tags" : [ + "concourse-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + } + }, + "summary" : "Retrieve the list of resource names for a given pipeline available to the Concourse stage", + "operationId" : "resourcesUsingGET", + "parameters" : [ + { + "name" : "buildMaster", + "required" : true, + "description" : "buildMaster", + "in" : "path", + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "pipeline", + "name" : "pipeline", + "required" : true + }, + { + "type" : "string", + "required" : true, + "name" : "team", + "in" : "path", + "description" : "team" + } + ] + } + }, + "/executions" : { + "get" : { + "summary" : "Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown.", + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "tags" : [ + "executions-controller" + ], + "parameters" : [ + { + "allowEmptyValue" : false, + "name" : "executionIds", + "required" : false, + "in" : "query", + "description" : "A comma-separated list of executions to retrieve. Either this OR pipelineConfigIds must be supplied, but not both.", + "type" : "string" + }, + { + "type" : "boolean", + "in" : "query", + "description" : "Expands each execution object in the resulting list. If this value is missing, it is defaulted to true.", + "allowEmptyValue" : false, + "required" : false, + "default" : true, + "name" : "expand" + }, + { + "type" : "integer", + "allowEmptyValue" : false, + "name" : "limit", + "required" : false, + "in" : "query", + "format" : "int32", + "description" : "The number of executions to return per pipeline configuration. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to 1." + }, + { + "type" : "string", + "in" : "query", + "description" : "A comma-separated list of pipeline configuration IDs to retrieve recent executions for. Either this OR pipelineConfigIds must be supplied, but not both.", + "required" : false, + "name" : "pipelineConfigIds", + "allowEmptyValue" : false + }, + { + "allowEmptyValue" : false, + "required" : false, + "name" : "statuses", + "in" : "query", + "description" : "A comma-separated list of execution statuses to filter by. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to all statuses.", + "type" : "string" + } + ], + "operationId" : "getLatestExecutionsByConfigIdsUsingGET" + } + }, + "/applications/{application}/tasks" : { + "post" : { + "operationId" : "taskUsingPOST", + "deprecated" : true, + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "summary" : "Create task", + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "name" : "application", + "required" : true, + "description" : "application", + "in" : "path", + "type" : "string" + }, + { + "schema" : { + "type" : "object" + }, + "description" : "map", + "in" : "body", + "name" : "map", + "required" : true + } + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "description" : "OK", + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + } + } + }, + "get" : { + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of an application's tasks", + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "application", + "name" : "application", + "required" : true + }, + { + "type" : "integer", + "description" : "limit", + "format" : "int32", + "in" : "query", + "required" : false, + "name" : "limit" + }, + { + "type" : "integer", + "required" : false, + "name" : "page", + "in" : "query", + "format" : "int32", + "description" : "page" + }, + { + "required" : false, + "name" : "statuses", + "description" : "statuses", + "in" : "query", + "type" : "string" + } + ], + "operationId" : "getTasksUsingGET" + } + }, + "/plugins/info" : { + "put" : { + "operationId" : "persistPluginInfoUsingPUT", + "summary" : "Persist plugin metadata information", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "tags" : [ + "plugin-info-controller" + ], + "parameters" : [ + { + "name" : "pluginInfo", + "required" : true, + "schema" : { + "$ref" : "#/definitions/SpinnakerPluginInfo" + }, + "description" : "pluginInfo", + "in" : "body" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "202" : { + "schema" : { + "type" : "object" + }, + "description" : "Accepted" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + } + } + }, + "post" : { + "tags" : [ + "plugin-info-controller" + ], + "summary" : "Persist plugin metadata information", + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "operationId" : "persistPluginInfoUsingPOST", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "202" : { + "schema" : { + "type" : "object" + }, + "description" : "Accepted" + }, + "403" : { + "description" : "Forbidden" + } + }, + "parameters" : [ + { + "in" : "body", + "schema" : { + "$ref" : "#/definitions/SpinnakerPluginInfo" + }, + "description" : "pluginInfo", + "name" : "pluginInfo", + "required" : true + } + ] + }, + "get" : { + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "summary" : "Get all plugin info objects", + "tags" : [ + "plugin-info-controller" + ], + "parameters" : [ + { + "type" : "string", + "name" : "service", + "required" : false, + "description" : "service", + "in" : "query" + } + ], + "operationId" : "getAllPluginInfoUsingGET" + } + }, + "/v2/builds/{buildMaster}/builds/**" : { + "get" : { + "responses" : { + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "buildMaster", + "name" : "buildMaster", + "required" : true + } + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "summary" : "Get builds for build master", + "description" : "Deprecated, use the v3 endpoint instead", + "tags" : [ + "build-controller" + ], + "operationId" : "getBuildsUsingGET" + } + }, + "/managed/application/{application}/veto" : { + "post" : { + "operationId" : "vetoUsingPOST", + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "summary" : "Veto an artifact version in an environment", + "tags" : [ + "managed-controller" + ], + "parameters" : [ + { + "required" : true, + "name" : "application", + "in" : "path", + "description" : "application", + "type" : "string" + }, + { + "name" : "veto", + "required" : true, + "schema" : { + "$ref" : "#/definitions/EnvironmentArtifactVeto" + }, + "in" : "body", + "description" : "veto" + } + ], + "responses" : { + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK" + } + } + } + }, + "/pipelines/v2/{application}/{pipelineNameOrId}" : { + "post" : { + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application" + }, + { + "required" : true, + "name" : "pipelineNameOrId", + "in" : "path", + "description" : "pipelineNameOrId", + "type" : "string" + }, + { + "in" : "body", + "schema" : { + "type" : "object" + }, + "description" : "trigger", + "required" : false, + "name" : "trigger" + } + ], + "responses" : { + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "201" : { + "description" : "Created" + } + }, + "operationId" : "invokePipelineConfigViaEchoUsingPOST", + "tags" : [ + "pipeline-controller" + ], + "summary" : "Trigger a pipeline execution", + "consumes" : [ + "application/json" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false + } + }, + "/pipelineTemplates" : { + "get" : { + "operationId" : "listUsingGET", + "parameters" : [ + { + "name" : "scopes", + "required" : false, + "collectionFormat" : "multi", + "description" : "scopes", + "in" : "query", + "items" : { + "type" : "string" + }, + "type" : "array" + } + ], + "tags" : [ + "pipeline-templates-controller" + ], + "summary" : "List pipeline templates.", + "responses" : { + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "deprecated" : false, + "produces" : [ + "*/*" + ] + }, + "post" : { + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "202" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + }, + "description" : "Accepted" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "parameters" : [ + { + "schema" : { + "type" : "object" + }, + "description" : "pipelineTemplate", + "in" : "body", + "name" : "pipelineTemplate", + "required" : true + } + ], + "summary" : "Create a pipeline template.", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "tags" : [ + "pipeline-templates-controller" + ], + "operationId" : "createUsingPOST" + } + }, + "/managed/resources/{resourceId}" : { + "get" : { + "summary" : "Get a resource", + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "$ref" : "#/definitions/Resource" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "tags" : [ + "managed-controller" + ], + "parameters" : [ + { + "required" : true, + "name" : "resourceId", + "description" : "resourceId", + "in" : "path", + "type" : "string" + } + ], + "operationId" : "getResourceUsingGET" + } + }, + "/tasks/{id}/cancel" : { + "put" : { + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "201" : { + "description" : "Created" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "parameters" : [ + { + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path", + "type" : "string" + } + ], + "tags" : [ + "task-controller" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Cancel task", + "operationId" : "cancelTaskUsingPUT_1" + } + }, + "/functions" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "name" : "account", + "required" : false, + "in" : "query", + "description" : "account" + }, + { + "in" : "query", + "description" : "functionName", + "name" : "functionName", + "required" : false, + "type" : "string" + }, + { + "required" : false, + "name" : "region", + "in" : "query", + "description" : "region", + "type" : "string" + } + ], + "operationId" : "functionsUsingGET", + "summary" : "Get functions", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + }, + "401" : { + "description" : "Unauthorized" + } + }, + "tags" : [ + "amazon-infrastructure-controller" + ] + } + }, + "/plugins/deck/{pluginId}/{pluginVersion}/{asset}" : { + "get" : { + "operationId" : "getPluginAssetUsingGET", + "parameters" : [ + { + "name" : "asset", + "required" : true, + "description" : "asset", + "in" : "path", + "type" : "string" + }, + { + "name" : "pluginId", + "required" : true, + "description" : "pluginId", + "in" : "path", + "type" : "string" + }, + { + "required" : true, + "name" : "pluginVersion", + "in" : "path", + "description" : "pluginVersion", + "type" : "string" + } + ], + "tags" : [ + "deck-plugins-controller" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "string" + } + } + }, + "summary" : "Retrieve a single plugin asset by version" + } + }, + "/v2/canaries/metricSetPairList/{metricSetPairListId}" : { + "get" : { + "summary" : "Retrieve a metric set pair list", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "tags" : [ + "v-2-canary-controller" + ], + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "metricSetPairListId", + "required" : true, + "name" : "metricSetPairListId" + }, + { + "name" : "storageAccountName", + "required" : false, + "in" : "query", + "description" : "storageAccountName", + "type" : "string" + } + ], + "operationId" : "getMetricSetPairListUsingGET" + } + }, + "/auth/user" : { + "get" : { + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/User" + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Get user", + "tags" : [ + "auth-controller" + ], + "operationId" : "userUsingGET" + } + }, + "/ci/builds" : { + "get" : { + "operationId" : "getBuildsUsingGET_1", + "parameters" : [ + { + "name" : "completionStatus", + "required" : false, + "in" : "query", + "description" : "completionStatus", + "type" : "string" + }, + { + "name" : "projectKey", + "required" : true, + "description" : "projectKey", + "in" : "query", + "type" : "string" + }, + { + "in" : "query", + "description" : "repoSlug", + "required" : true, + "name" : "repoSlug", + "type" : "string" + } + ], + "tags" : [ + "ci-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + } + }, + "summary" : "getBuilds" + } + }, + "/pipelines/{id}/stages/{stageId}" : { + "patch" : { + "parameters" : [ + { + "required" : true, + "name" : "context", + "schema" : { + "type" : "object" + }, + "description" : "context", + "in" : "body" + }, + { + "type" : "string", + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path" + }, + { + "description" : "stageId", + "in" : "path", + "name" : "stageId", + "required" : true, + "type" : "string" + } + ], + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "204" : { + "description" : "No Content" + } + }, + "operationId" : "updateStageUsingPATCH", + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Update a stage execution", + "tags" : [ + "pipeline-controller" + ] + } + }, + "/v2/pipelineTemplates" : { + "get" : { + "operationId" : "listUsingGET_1", + "parameters" : [ + { + "type" : "array", + "items" : { + "type" : "string" + }, + "collectionFormat" : "multi", + "name" : "scopes", + "required" : false, + "in" : "query", + "description" : "scopes" + } + ], + "tags" : [ + "v-2-pipeline-templates-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } + } + }, + "summary" : "(ALPHA) List pipeline templates." + } + }, + "/applications/{application}/serverGroupManagers" : { + "get" : { + "parameters" : [ + { + "name" : "application", + "required" : true, + "description" : "application", + "in" : "path", + "type" : "string" + } + ], + "operationId" : "getServerGroupManagersForApplicationUsingGET", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "summary" : "Retrieve a list of server group managers for an application", + "tags" : [ + "server-group-manager-controller" + ] + } + }, + "/managed/resources/{resourceId}/pause" : { + "delete" : { + "operationId" : "resumeResourceUsingDELETE", + "parameters" : [ + { + "type" : "string", + "description" : "resourceId", + "in" : "path", + "required" : true, + "name" : "resourceId" + } + ], + "tags" : [ + "managed-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK" + }, + "204" : { + "description" : "No Content" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Resume management of a resource" + }, + "post" : { + "tags" : [ + "managed-controller" + ], + "produces" : [ + "*/*" + ], + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "summary" : "Pause management of a resource", + "operationId" : "pauseResourceUsingPOST", + "responses" : { + "200" : { + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "201" : { + "description" : "Created" + } + }, + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "resourceId", + "in" : "path", + "description" : "resourceId" + } + ] + } + }, + "/applications/{application}/pipelineConfigs" : { + "get" : { + "deprecated" : false, + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "200" : { + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of an application's pipeline configurations", + "tags" : [ + "application-controller" + ], + "parameters" : [ + { + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application", + "type" : "string" + } + ], + "operationId" : "getPipelineConfigsForApplicationUsingGET" + } + }, + "/managed/resources/export/artifact/{cloudProvider}/{account}/{clusterName}" : { + "get" : { + "parameters" : [ + { + "in" : "path", + "description" : "account", + "required" : true, + "name" : "account", + "type" : "string" + }, + { + "name" : "cloudProvider", + "required" : true, + "description" : "cloudProvider", + "in" : "path", + "type" : "string" + }, + { + "name" : "clusterName", + "required" : true, + "in" : "path", + "description" : "clusterName", + "type" : "string" + } + ], + "operationId" : "exportResourceUsingGET", + "summary" : "Generates an artifact definition based on the artifact used in a running cluster", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "managed-controller" + ] + } + }, + "/v2/pipelineTemplates/{id}" : { + "delete" : { + "parameters" : [ + { + "name" : "application", + "required" : false, + "in" : "query", + "description" : "application", + "type" : "string" + }, + { + "description" : "digest", + "in" : "query", + "required" : false, + "name" : "digest", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path" + }, + { + "type" : "string", + "description" : "tag", + "in" : "query", + "name" : "tag", + "required" : false + } + ], + "operationId" : "deleteUsingDELETE_1", + "summary" : "Delete a pipeline template.", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "204" : { + "description" : "No Content" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "v-2-pipeline-templates-controller" + ] + }, + "get" : { + "operationId" : "getUsingGET_2", + "parameters" : [ + { + "type" : "string", + "description" : "digest", + "in" : "query", + "required" : false, + "name" : "digest" + }, + { + "name" : "id", + "required" : true, + "in" : "path", + "description" : "id", + "type" : "string" + }, + { + "type" : "string", + "in" : "query", + "description" : "tag", + "name" : "tag", + "required" : false + } + ], + "tags" : [ + "v-2-pipeline-templates-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + } + }, + "summary" : "(ALPHA) Get a pipeline template." + } + }, + "/artifacts/credentials" : { + "get" : { + "operationId" : "allUsingGET", + "parameters" : [ + { + "type" : "string", + "description" : "X-RateLimit-App", + "in" : "header", + "name" : "X-RateLimit-App", + "required" : false + } + ], + "tags" : [ + "artifact-controller" + ], + "summary" : "Retrieve the list of artifact accounts configured in Clouddriver.", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "type" : "object" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + } + } + }, + "/credentials" : { + "get" : { + "parameters" : [ + { + "required" : false, + "name" : "accountNonExpired", + "in" : "query", + "type" : "boolean" + }, + { + "in" : "query", + "required" : false, + "name" : "accountNonLocked", + "type" : "boolean" + }, + { + "type" : "array", + "items" : { + "type" : "string" + }, + "collectionFormat" : "multi", + "required" : false, + "name" : "allowedAccounts", + "in" : "query" + }, + { + "name" : "authorities[0].authority", + "required" : false, + "in" : "query", + "type" : "string" + }, + { + "name" : "credentialsNonExpired", + "required" : false, + "in" : "query", + "type" : "boolean" + }, + { + "type" : "string", + "name" : "email", + "required" : false, + "in" : "query" + }, + { + "name" : "enabled", + "required" : false, + "in" : "query", + "type" : "boolean" + }, + { + "type" : "boolean", + "in" : "query", + "description" : "expand", + "required" : false, + "name" : "expand" + }, + { + "type" : "string", + "in" : "query", + "name" : "firstName", + "required" : false + }, + { + "in" : "query", + "name" : "lastName", + "required" : false, + "type" : "string" + }, + { + "required" : false, + "name" : "password", + "in" : "query", + "type" : "string" + }, + { + "name" : "roles", + "required" : false, + "collectionFormat" : "multi", + "in" : "query", + "items" : { + "type" : "string" + }, + "type" : "array" + }, + { + "name" : "username", + "required" : false, + "in" : "query", + "type" : "string" + } + ], + "operationId" : "getAccountsUsingGET", + "summary" : "Retrieve a list of accounts", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "items" : { + "$ref" : "#/definitions/Account" + }, + "type" : "array" + } + } + }, + "tags" : [ + "credentials-controller" + ] + } + }, + "/webhooks/{type}/{source}" : { + "post" : { + "responses" : { + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + } + }, + "parameters" : [ + { + "name" : "X-Event-Key", + "required" : false, + "in" : "header", + "description" : "X-Event-Key", + "type" : "string" + }, + { + "type" : "string", + "description" : "X-Hub-Signature", + "in" : "header", + "required" : false, + "name" : "X-Hub-Signature" + }, + { + "schema" : { + "type" : "object" + }, + "description" : "event", + "in" : "body", + "required" : false, + "name" : "event" + }, + { + "type" : "string", + "in" : "path", + "description" : "source", + "required" : true, + "name" : "source" + }, + { + "type" : "string", + "in" : "path", + "description" : "type", + "required" : true, + "name" : "type" + } + ], + "tags" : [ + "webhook-controller" + ], + "produces" : [ + "*/*" + ], + "deprecated" : false, + "consumes" : [ + "application/json" + ], + "summary" : "Endpoint for posting webhooks to Spinnaker's webhook service", + "operationId" : "webhooksUsingPOST" + } + }, + "/pipelines/start" : { + "post" : { + "tags" : [ + "pipeline-controller" + ], + "summary" : "Initiate a pipeline execution", + "consumes" : [ + "application/json" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "operationId" : "startUsingPOST", + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "schema" : { + "$ref" : "#/definitions/ResponseEntity" + }, + "description" : "OK" + }, + "201" : { + "description" : "Created" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "parameters" : [ + { + "schema" : { + "type" : "object" + }, + "in" : "body", + "description" : "map", + "required" : true, + "name" : "map" + } + ] + } + }, + "/pipelines/{id}" : { + "delete" : { + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "id", + "description" : "id", + "in" : "path" + } + ], + "operationId" : "deletePipelineUsingDELETE_1", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object" + } + } + }, + "204" : { + "description" : "No Content" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Delete a pipeline execution", + "tags" : [ + "pipeline-controller" + ] + }, + "put" : { + "operationId" : "updatePipelineUsingPUT", + "tags" : [ + "pipeline-controller" + ], + "summary" : "Update a pipeline definition", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "consumes" : [ + "application/json" + ], + "parameters" : [ + { + "type" : "string", + "required" : true, + "name" : "id", + "in" : "path", + "description" : "id" + }, + { + "schema" : { + "type" : "object" + }, + "description" : "pipeline", + "in" : "body", + "name" : "pipeline", + "required" : true + } + ], + "responses" : { + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + }, + "201" : { + "description" : "Created" + }, + "200" : { + "schema" : { + "additionalProperties" : { + "type" : "object" + }, + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + } + } + }, + "get" : { + "tags" : [ + "pipeline-controller" + ], + "summary" : "Retrieve a pipeline execution", + "deprecated" : false, + "responses" : { + "401" : { + "description" : "Unauthorized" + }, + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + } + }, + "produces" : [ + "*/*" + ], + "operationId" : "getPipelineUsingGET", + "parameters" : [ + { + "name" : "id", + "required" : true, + "description" : "id", + "in" : "path", + "type" : "string" + } + ] + } + }, + "/managed/application/{application}" : { + "get" : { + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "application", + "name" : "application", + "required" : true + }, + { + "collectionFormat" : "multi", + "name" : "entities", + "items" : { + "type" : "string" + }, + "required" : false, + "default" : "resources", + "in" : "query", + "description" : "entities", + "type" : "array" + }, + { + "type" : "boolean", + "default" : false, + "name" : "includeDetails", + "required" : false, + "in" : "query", + "description" : "includeDetails" + }, + { + "description" : "maxArtifactVersions", + "format" : "int32", + "in" : "query", + "name" : "maxArtifactVersions", + "required" : false, + "type" : "integer" + } + ], + "operationId" : "getApplicationDetailsUsingGET", + "summary" : "Get managed details about an application", + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "schema" : { + "type" : "object" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "tags" : [ + "managed-controller" + ] + } + }, + "/managed/application/{application}/pin/{targetEnvironment}" : { + "delete" : { + "parameters" : [ + { + "type" : "string", + "in" : "path", + "description" : "application", + "required" : true, + "name" : "application" + }, + { + "description" : "reference", + "in" : "query", + "required" : false, + "name" : "reference", + "type" : "string" + }, + { + "type" : "string", + "required" : true, + "name" : "targetEnvironment", + "in" : "path", + "description" : "targetEnvironment" + } + ], + "operationId" : "deletePinUsingDELETE", + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "200" : { + "description" : "OK" + }, + "204" : { + "description" : "No Content" + }, + "401" : { + "description" : "Unauthorized" + } + }, + "produces" : [ + "*/*" + ], + "summary" : "Unpin one or more artifact(s) in an environment. If the `reference` parameter is specified, only the corresponding artifact will be unpinned. If it's omitted, all pinned artifacts in the environment will be unpinned.", + "tags" : [ + "managed-controller" + ] + } + }, + "/applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}" : { + "get" : { + "tags" : [ + "cluster-controller" + ], + "deprecated" : false, + "produces" : [ + "*/*" + ], + "responses" : { + "200" : { + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + }, + "description" : "OK" + }, + "401" : { + "description" : "Unauthorized" + }, + "404" : { + "description" : "Not Found" + }, + "403" : { + "description" : "Forbidden" + } + }, + "summary" : "Retrieve a server group's details", + "operationId" : "getServerGroupsUsingGET", + "parameters" : [ + { + "description" : "X-RateLimit-App", + "in" : "header", + "name" : "X-RateLimit-App", + "required" : false, + "type" : "string" + }, + { + "type" : "string", + "name" : "account", + "required" : true, + "in" : "path", + "description" : "account" + }, + { + "description" : "application", + "in" : "path", + "name" : "application", + "required" : true, + "type" : "string" + }, + { + "type" : "string", + "in" : "path", + "description" : "clusterName", + "required" : true, + "name" : "clusterName" + }, + { + "in" : "path", + "description" : "serverGroupName", + "name" : "serverGroupName", + "required" : true, + "type" : "string" + } + ] + } + }, + "/v2/canaryConfig" : { + "post" : { + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "object" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "201" : { + "description" : "Created" + } + }, + "parameters" : [ + { + "required" : true, + "name" : "config", + "in" : "body", + "schema" : { + "type" : "object" + }, + "description" : "config" + }, + { + "type" : "string", + "description" : "configurationAccountName", + "in" : "query", + "required" : false, + "name" : "configurationAccountName" + } + ], + "tags" : [ + "v-2-canary-config-controller" + ], + "summary" : "Create a canary configuration", + "consumes" : [ + "application/json" ], "produces" : [ - "application/json", - "application/x-yaml" + "*/*" + ], + "deprecated" : false, + "operationId" : "createCanaryConfigUsingPOST" + }, + "get" : { + "tags" : [ + "v-2-canary-config-controller" ], "responses" : { + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, "200" : { - "description": "OK", - "schema": { - "type": "object" - } + "description" : "OK", + "schema" : { + "items" : { + "type" : "object" + }, + "type" : "array" + } }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } + "401" : { + "description" : "Unauthorized" + } }, - "summary": "Validate a delivery config manifest", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/delivery-configs/{name}": { - "delete": { - "deprecated": false, - "operationId": "deleteManifestUsingDELETE", - "parameters": [ - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete a delivery config manifest", - "tags": [ - "managed-controller" - ] - }, - "get": { - "deprecated": false, - "operationId": "getManifestUsingGET", - "parameters": [ - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DeliveryConfig" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get a delivery config manifest", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/delivery-configs/{name}/artifacts": { - "get": { - "deprecated": false, - "operationId": "getManifestArtifactsUsingGET", - "parameters": [ - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get the status of each version of each artifact in each environment", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/resources/diff": { - "post": { - "consumes": [ - "application/json", - "application/x-yaml" - ], - "deprecated": false, - "operationId": "diffResourceUsingPOST", - "parameters": [ - { - "description": "resource", - "in": "body", - "name": "resource", - "required": true, - "schema": { - "$ref": "#/definitions/Resource" - } - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Ad-hoc validate and diff a resource", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/resources/export/artifact/{cloudProvider}/{account}/{clusterName}": { - "get": { - "deprecated": false, - "operationId": "exportResourceUsingGET", - "parameters": [ - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "cloudProvider", - "in": "path", - "name": "cloudProvider", - "required": true, - "type": "string" - }, - { - "description": "clusterName", - "in": "path", - "name": "clusterName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Generates an artifact definition based on the artifact used in a running cluster", - "tags": [ - "managed-controller" - ] - } + "deprecated" : false, + "produces" : [ + "*/*" + ], + "summary" : "Retrieve a list of canary configurations", + "operationId" : "getCanaryConfigsUsingGET", + "parameters" : [ + { + "type" : "string", + "name" : "application", + "required" : false, + "description" : "application", + "in" : "query" + }, + { + "description" : "configurationAccountName", + "in" : "query", + "name" : "configurationAccountName", + "required" : false, + "type" : "string" + } + ] + } }, - "/managed/resources/export/{cloudProvider}/{account}/{type}/{name}": { - "get": { - "deprecated": false, - "operationId": "exportResourceUsingGET_1", - "parameters": [ - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "cloudProvider", - "in": "path", - "name": "cloudProvider", - "required": true, - "type": "string" - }, - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - }, - { - "description": "serviceAccount", - "in": "query", - "name": "serviceAccount", - "required": true, - "type": "string" - }, - { - "description": "type", - "in": "path", - "name": "type", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Resource" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Generate a keel resource definition for a deployed cloud resource", - "tags": [ - "managed-controller" - ] + "/plugins/info/{id}" : { + "delete" : { + "parameters" : [ + { + "type" : "string", + "description" : "id", + "in" : "path", + "required" : true, + "name" : "id" + } + ], + "operationId" : "deletePluginInfoUsingDELETE", + "produces" : [ + "*/*" + ], + "deprecated" : false, + "responses" : { + "403" : { + "description" : "Forbidden" + }, + "202" : { + "schema" : { + "type" : "object" + }, + "description" : "Accepted" + }, + "401" : { + "description" : "Unauthorized" + }, + "204" : { + "description" : "No Content" + } + }, + "summary" : "Delete plugin info with the provided Id", + "tags" : [ + "plugin-info-controller" + ] + } } + }, + "basePath" : "/", + "tags" : [ + { + "description" : "Amazon Infrastructure Controller", + "name" : "amazon-infrastructure-controller" }, - "/managed/resources/{resourceId}": { - "get": { - "deprecated": false, - "operationId": "getResourceUsingGET", - "parameters": [ - { - "description": "resourceId", - "in": "path", - "name": "resourceId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Resource" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get a resource", - "tags": [ - "managed-controller" - ] - } + { + "description" : "Application Controller", + "name" : "application-controller" }, - "/managed/resources/{resourceId}/pause": { - "delete": { - "deprecated": false, - "operationId": "resumeResourceUsingDELETE", - "parameters": [ - { - "description": "resourceId", - "in": "path", - "name": "resourceId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Resume management of a resource", - "tags": [ - "managed-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "pauseResourceUsingPOST", - "parameters": [ - { - "description": "resourceId", - "in": "path", - "name": "resourceId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Pause management of a resource", - "tags": [ - "managed-controller" - ] - } - }, - "/managed/resources/{resourceId}/status": { - "get": { - "deprecated": false, - "operationId": "getResourceStatusUsingGET", - "parameters": [ - { - "description": "resourceId", - "in": "path", - "name": "resourceId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get status of a resource", - "tags": [ - "managed-controller" - ] - } + { + "description" : "Artifact Controller", + "name" : "artifact-controller" }, - "/networks": { - "get": { - "deprecated": false, - "operationId": "allUsingGET_2", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of networks, grouped by cloud provider", - "tags": [ - "network-controller" - ] - } - }, - "/networks/{cloudProvider}": { - "get": { - "deprecated": false, - "operationId": "allByCloudProviderUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "cloudProvider", - "in": "path", - "name": "cloudProvider", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of networks for a given cloud provider", - "tags": [ - "network-controller" - ] - } - }, - "/pipelineConfigs": { - "get": { - "deprecated": false, - "operationId": "getAllPipelineConfigsUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get all pipeline configs.", - "tags": [ - "pipeline-config-controller" - ] - } - }, - "/pipelineConfigs/{pipelineConfigId}/convertToTemplate": { - "get": { - "deprecated": false, - "operationId": "convertPipelineConfigToPipelineTemplateUsingGET", - "parameters": [ - { - "description": "pipelineConfigId", - "in": "path", - "name": "pipelineConfigId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Convert a pipeline config to a pipeline template.", - "tags": [ - "pipeline-config-controller" - ] - } - }, - "/pipelineConfigs/{pipelineConfigId}/history": { - "get": { - "deprecated": false, - "operationId": "getPipelineConfigHistoryUsingGET", - "parameters": [ - { - "default": 20, - "description": "limit", - "format": "int32", - "in": "query", - "name": "limit", - "required": false, - "type": "integer" - }, - { - "description": "pipelineConfigId", - "in": "path", - "name": "pipelineConfigId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get pipeline config history.", - "tags": [ - "pipeline-config-controller" - ] - } - }, - "/pipelineTemplates": { - "get": { - "deprecated": false, - "operationId": "listUsingGET", - "parameters": [ - { - "collectionFormat": "multi", - "description": "scopes", - "in": "query", - "items": { - "type": "string" - }, - "name": "scopes", - "required": false, - "type": "array" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "List pipeline templates.", - "tags": [ - "pipeline-templates-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "createUsingPOST", - "parameters": [ - { - "description": "pipelineTemplate", - "in": "body", - "name": "pipelineTemplate", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "201": { - "description": "Created" - }, - "202": { - "description": "Accepted", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Create a pipeline template.", - "tags": [ - "pipeline-templates-controller" - ] - } - }, - "/pipelineTemplates/resolve": { - "get": { - "deprecated": false, - "operationId": "resolveTemplatesUsingGET", - "parameters": [ - { - "description": "executionId", - "in": "query", - "name": "executionId", - "required": false, - "type": "string" - }, - { - "description": "pipelineConfigId", - "in": "query", - "name": "pipelineConfigId", - "required": false, - "type": "string" - }, - { - "description": "source", - "in": "query", - "name": "source", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Resolve a pipeline template.", - "tags": [ - "pipeline-templates-controller" - ] - } - }, - "/pipelineTemplates/{id}": { - "delete": { - "deprecated": false, - "operationId": "deleteUsingDELETE", - "parameters": [ - { - "description": "application", - "in": "query", - "name": "application", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "202": { - "description": "Accepted", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete a pipeline template.", - "tags": [ - "pipeline-templates-controller" - ] - }, - "get": { - "deprecated": false, - "operationId": "getUsingGET", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get a pipeline template.", - "tags": [ - "pipeline-templates-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "updateUsingPOST", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "pipelineTemplate", - "in": "body", - "name": "pipelineTemplate", - "required": true, - "schema": { - "type": "object" - } - }, - { - "default": false, - "description": "skipPlanDependents", - "in": "query", - "name": "skipPlanDependents", - "required": false, - "type": "boolean" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "201": { - "description": "Created" - }, - "202": { - "description": "Accepted", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Update a pipeline template.", - "tags": [ - "pipeline-templates-controller" - ] - } - }, - "/pipelineTemplates/{id}/dependents": { - "get": { - "deprecated": false, - "operationId": "listPipelineTemplateDependentsUsingGET", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "recursive", - "in": "query", - "name": "recursive", - "required": false, - "type": "boolean" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200" : { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "List all pipelines that implement a pipeline template", - "tags": [ - "pipeline-templates-controller" - ] - } - }, - "/pipelines": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "savePipelineUsingPOST", - "parameters": [ - { - "description": "pipeline", - "in": "body", - "name": "pipeline", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Save a pipeline definition", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/move": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "renamePipelineUsingPOST", - "parameters": [ - { - "description": "renameCommand", - "in": "body", - "name": "renameCommand", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Rename a pipeline definition", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/start": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "startUsingPOST", - "parameters": [ - { - "description": "map", - "in": "body", - "name": "map", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ResponseEntity" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Initiate a pipeline execution", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/v2/{application}/{pipelineNameOrId}": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "invokePipelineConfigViaEchoUsingPOST", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "pipelineNameOrId", - "in": "path", - "name": "pipelineNameOrId", - "required": true, - "type": "string" - }, - { - "description": "trigger", - "in": "body", - "name": "trigger", - "required": false, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Trigger a pipeline execution", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{application}/{pipelineNameOrId}": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "invokePipelineConfigUsingPOST_1", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "pipelineNameOrId", - "in": "path", - "name": "pipelineNameOrId", - "required": true, - "type": "string" - }, - { - "description": "trigger", - "in": "body", - "name": "trigger", - "required": false, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "201": { - "description": "Created" - }, - "202": { - "description": "Accepted", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Trigger a pipeline execution", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{application}/{pipelineName}": { - "delete": { - "deprecated": false, - "operationId": "deletePipelineUsingDELETE", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "pipelineName", - "in": "path", - "name": "pipelineName", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete a pipeline definition", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{id}": { - "delete": { - "deprecated": false, - "operationId": "deletePipelineUsingDELETE_1", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete a pipeline execution", - "tags": [ - "pipeline-controller" - ] - }, - "get": { - "deprecated": false, - "operationId": "getPipelineUsingGET", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a pipeline execution", - "tags": [ - "pipeline-controller" - ] - }, - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "updatePipelineUsingPUT", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "pipeline", - "in": "body", - "name": "pipeline", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Update a pipeline definition", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{id}/cancel": { - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "cancelPipelineUsingPUT_1", - "parameters": [ - { - "default": false, - "description": "force", - "in": "query", - "name": "force", - "required": false, - "type": "boolean" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "reason", - "in": "query", - "name": "reason", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Cancel a pipeline execution", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{id}/evaluateExpression": { - "get": { - "deprecated": false, - "operationId": "evaluateExpressionForExecutionUsingGET", - "parameters": [ - { - "description": "expression", - "in": "query", - "name": "expression", - "required": true, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Evaluate a pipeline expression using the provided execution as context", - "tags": [ - "pipeline-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "evaluateExpressionForExecutionViaPOSTUsingPOST", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "pipelineExpression", - "in": "body", - "name": "pipelineExpression", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Evaluate a pipeline expression using the provided execution as context", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{id}/evaluateVariables": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "evaluateVariablesUsingPOST", - "parameters": [ - { - "allowEmptyValue": false, - "description": "Execution id to run against", - "in": "query", - "name": "executionId", - "required": true, - "type": "string" - }, - { - "description": "List of variables/expressions to evaluate", - "in": "body", - "name": "expressions", - "required": true, - "schema": { - "items": { - "$ref": "#/definitions/Map«string,string»" - }, - "type": "array" - }, - "x-examples": { - "application/json": "[{\"key\":\"a\",\"value\":\"1\"},{\"key\":\"b\",\"value\":\"2\"},{\"key\":\"sum\",\"value\":\"${a+b}\"}]" - } - }, - { - "allowEmptyValue": false, - "description": "Comma separated list of requisite stage IDs for the evaluation stage", - "in": "query", - "name": "requisiteStageRefIds", - "required": false, - "type": "string" - }, - { - "allowEmptyValue": false, - "description": "Version of SpEL evaluation logic to use (v3 or v4)", - "in": "query", - "name": "spelVersion", - "required": false, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Evaluate variables same as Evaluate Variables stage using the provided execution as context", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{id}/pause": { - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "pausePipelineUsingPUT", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Pause a pipeline execution", - "tags": [ - "pipeline-controller" - ] - } + { + "name" : "auth-controller", + "description" : "Auth Controller" }, - "/pipelines/{id}/resume" : { - "put" : { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "resumePipelineUsingPUT", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Resume a pipeline execution", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{id}/stages/{stageId}": { - "patch": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "updateStageUsingPATCH", - "parameters": [ - { - "description": "context", - "in": "body", - "name": "context", - "required": true, - "schema": { - "type": "object" - } - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "stageId", - "in": "path", - "name": "stageId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Update a stage execution", - "tags": [ - "pipeline-controller" - ] - } + { + "description" : "Bake Controller", + "name" : "bake-controller" }, - "/pipelines/{id}/stages/{stageId}/restart": { - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "restartStageUsingPUT", - "parameters": [ - { - "description": "context", - "in": "body", - "name": "context", - "required": true, - "schema": { - "type": "object" - } - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "stageId", - "in": "path", - "name": "stageId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Restart a stage execution", - "tags": [ - "pipeline-controller" - ] - } - }, - "/pipelines/{id}/{stageId}/evaluateExpression": { - "get": { - "deprecated": false, - "operationId": "evaluateExpressionForExecutionAtStageUsingGET", - "parameters": [ - { - "description": "expression", - "in": "query", - "name": "expression", - "required": true, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "stageId", - "in": "path", - "name": "stageId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Evaluate a pipeline expression at a specific stage using the provided execution as context", - "tags": [ - "pipeline-controller" - ] - } + { + "description" : "Build Controller", + "name" : "build-controller" }, - "/plugins/deck/plugin-manifest.json": { - "get": { - "deprecated": false, - "operationId": "getPluginManifestUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/DeckPluginVersion" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a plugin manifest", - "tags": [ - "deck-plugins-controller" - ] - } - }, - "/plugins/deck/{pluginId}/{pluginVersion}/{asset}": { - "get": { - "deprecated": false, - "operationId": "getPluginAssetUsingGET", - "parameters": [ - { - "description": "asset", - "in": "path", - "name": "asset", - "required": true, - "type": "string" - }, - { - "description": "pluginId", - "in": "path", - "name": "pluginId", - "required": true, - "type": "string" - }, - { - "description": "pluginVersion", - "in": "path", - "name": "pluginVersion", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a single plugin asset by version", - "tags": [ - "deck-plugins-controller" - ] - } - }, - "/plugins/info": { - "get": { - "deprecated": false, - "operationId": "getAllPluginInfoUsingGET", - "parameters": [ - { - "description": "service", - "in": "query", - "name": "service", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/Map«object,object»" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get all plugin info objects", - "tags": [ - "plugin-info-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "persistPluginInfoUsingPOST", - "parameters": [ - { - "description": "pluginInfo", - "in": "body", - "name": "pluginInfo", - "required": true, - "schema": { - "$ref": "#/definitions/SpinnakerPluginInfo" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "201": { - "description": "Created" - }, - "202": { - "description": "Accepted", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Persist plugin metadata information", - "tags": [ - "plugin-info-controller" - ] - }, - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "persistPluginInfoUsingPUT", - "parameters": [ - { - "description": "pluginInfo", - "in": "body", - "name": "pluginInfo", - "required": true, - "schema": { - "$ref": "#/definitions/SpinnakerPluginInfo" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "201": { - "description": "Created" - }, - "202": { - "description": "Accepted", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Persist plugin metadata information", - "tags": [ - "plugin-info-controller" - ] - } - }, - "/plugins/info/{id}": { - "delete": { - "deprecated": false, - "operationId": "deletePluginInfoUsingDELETE", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "202": { - "description": "Accepted", - "schema": { - "type": "object" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete plugin info with the provided Id", - "tags": [ - "plugin-info-controller" - ] - } - }, - "/plugins/installed": { - "get": { - "deprecated": false, - "operationId": "getInstalledPluginsUsingGET", - "parameters": [ - { - "description": "service", - "in": "query", - "name": "service", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "items": { - "$ref": "#/definitions/SpinnakerPluginDescriptor" - }, - "type": "array" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get all installed Spinnaker plugins", - "tags": [ - "plugins-installed-controller" - ] - } - }, - "/plugins/publish/{pluginId}/{pluginVersion}": { - "post": { - "consumes": [ - "multipart/form-data" - ], - "deprecated": false, - "operationId": "publishPluginUsingPOST", - "parameters": [ - { - "description": "plugin", - "in": "formData", - "name": "plugin", - "required": true, - "type": "file" - }, - { - "description": "pluginId", - "in": "path", - "name": "pluginId", - "required": true, - "type": "string" - }, - { - "description": "pluginInfo", - "in": "formData", - "name": "pluginInfo", - "required": true, - "schema": { - "$ref": "#/definitions/SpinnakerPluginInfo" - } - }, - { - "description": "pluginVersion", - "in": "path", - "name": "pluginVersion", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Publish a plugin binary and the plugin info metadata.", - "tags": [ - "plugin-publish-controller" - ] - } - }, - "/projects": { - "get": { - "deprecated": false, - "operationId": "allUsingGET_3", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get all projects", - "tags": [ - "project-controller" - ] - } + { + "name" : "ci-controller", + "description" : "Ci Controller" }, - "/projects/{id}": { - "get": { - "deprecated": false, - "operationId": "getUsingGET_1", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get a project", - "tags": [ - "project-controller" - ] - } - }, - "/projects/{id}/clusters": { - "get": { - "deprecated": false, - "operationId": "getClustersUsingGET_3", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get a project's clusters", - "tags": [ - "project-controller" - ] - } + { + "name" : "cluster-controller", + "description" : "Cluster Controller" }, - "/projects/{id}/pipelines": { - "get": { - "deprecated": false, - "operationId": "allPipelinesForProjectUsingGET", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "default": 5, - "description": "limit", - "format": "int32", - "in": "query", - "name": "limit", - "required": false, - "type": "integer" - }, - { - "description": "statuses", - "in": "query", - "name": "statuses", - "required": false, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get all pipelines for project", - "tags": [ - "project-controller" - ] - } - }, - "/pubsub/subscriptions": { - "get": { - "deprecated": false, - "operationId": "allUsingGET_4", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/Map«string,string»" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve the list of pub/sub subscriptions configured in Echo.", - "tags": [ - "pubsub-subscription-controller" - ] - } + { + "description" : "Concourse Controller", + "name" : "concourse-controller" }, - "/search": { - "get": { - "deprecated": false, - "operationId": "searchUsingGET", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "default": false, - "description": "allowShortQuery", - "in": "query", - "name": "allowShortQuery", - "required": false, - "type": "boolean" - }, - { - "default": 1, - "description": "page", - "format": "int32", - "in": "query", - "name": "page", - "required": false, - "type": "integer" - }, - { - "default": 10000, - "description": "pageSize", - "format": "int32", - "in": "query", - "name": "pageSize", - "required": false, - "type": "integer" - }, - { - "description": "platform", - "in": "query", - "name": "platform", - "required": false, - "type": "string" - }, - { - "description": "q", - "in": "query", - "name": "q", - "required": false, - "type": "string" - }, - { - "description": "type", - "in": "query", - "name": "type", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Search infrastructure", - "tags": [ - "search-controller" - ] - } - }, - "/securityGroups": { - "get": { - "deprecated": false, - "operationId": "allUsingGET_5", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "query", - "name": "id", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of security groups, grouped by account, cloud provider, and region", - "tags": [ - "security-group-controller" - ] - } - }, - "/securityGroups/{account}": { - "get": { - "deprecated": false, - "operationId": "allByAccountUsingGET_1", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of security groups for a given account, grouped by region", - "tags": [ - "security-group-controller" - ] - } - }, - "/securityGroups/{account}/{region}/{name}": { - "get": { - "deprecated": false, - "operationId": "getSecurityGroupUsingGET_1", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "account", - "in": "path", - "name": "account", - "required": true, - "type": "string" - }, - { - "description": "name", - "in": "path", - "name": "name", - "required": true, - "type": "string" - }, - { - "default": "aws", - "description": "provider", - "in": "query", - "name": "provider", - "required": false, - "type": "string" - }, - { - "description": "region", - "in": "path", - "name": "region", - "required": true, - "type": "string" - }, - { - "description": "vpcId", - "in": "query", - "name": "vpcId", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a security group's details", - "tags": [ - "security-group-controller" - ] - } - }, - "/subnets": { - "get": { - "deprecated": false, - "operationId": "subnetsUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get subnets", - "tags": [ - "amazon-infrastructure-controller" - ] - } - }, - "/subnets/{cloudProvider}": { - "get": { - "deprecated": false, - "operationId": "allByCloudProviderUsingGET_1", - "parameters": [ - { - "description": "cloudProvider", - "in": "path", - "name": "cloudProvider", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200" : { - "description" : "OK", - "schema" : { - "items" : { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of subnets for a given cloud provider", - "tags": [ - "subnet-controller" - ] - } - }, - "/tasks": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "taskUsingPOST_1", - "parameters": [ - { - "description": "map", - "in": "body", - "name": "map", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Create task", - "tags": [ - "task-controller" - ] - } - }, - "/tasks/cancel": { - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "cancelTasksUsingPUT", - "parameters": [ - { - "collectionFormat": "multi", - "description": "ids", - "in": "query", - "items": { - "type": "string" - }, - "name": "ids", - "required": true, - "type": "array" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Cancel tasks", - "tags": [ - "task-controller" - ] - } - }, - "/tasks/{id}": { - "delete": { - "deprecated": false, - "operationId": "deleteTaskUsingDELETE", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete task", - "tags": [ - "task-controller" - ] - }, - "get": { - "deprecated": false, - "operationId": "getTaskUsingGET_1", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get task", - "tags": [ - "task-controller" - ] - } - }, - "/tasks/{id}/cancel": { - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "cancelTaskUsingPUT_1", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Cancel task", - "tags": [ - "task-controller" - ] - } + { + "description" : "Credentials Controller", + "name" : "credentials-controller" }, - "/tasks/{id}/details/{taskDetailsId}": { - "get": { - "deprecated": false, - "operationId": "getTaskDetailsUsingGET_1", - "parameters": [ - { - "description": "X-RateLimit-App", - "in": "header", - "name": "X-RateLimit-App", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "taskDetailsId", - "in": "path", - "name": "taskDetailsId", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get task details", - "tags": [ - "task-controller" - ] - } + { + "name" : "deck-plugins-controller", + "description" : "Deck Plugins Controller" }, - "/v2/builds": { - "get": { - "deprecated": false, - "description": "Deprecated, use the v3 endpoint instead", - "operationId": "getBuildMastersUsingGET", - "parameters": [ - { - "description": "type", - "in": "query", - "name": "type", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get build masters", - "tags": [ - "build-controller" - ] - } + { + "name" : "ecs-server-group-events-controller", + "description" : "Ecs Server Group Events Controller" }, - "/v2/builds/{buildMaster}/build/{number}/**": { - "get": { - "deprecated": false, - "description": "Deprecated, use the v3 endpoint instead", - "operationId": "getBuildUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - }, - { - "description": "number", - "in": "path", - "name": "number", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get build for build master", - "tags": [ - "build-controller" - ] - } - }, - "/v2/builds/{buildMaster}/builds/**": { - "get": { - "deprecated": false, - "description": "Deprecated, use the v3 endpoint instead", - "operationId": "getBuildsUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get builds for build master", - "tags": [ - "build-controller" - ] - } + { + "description" : "Executions Controller", + "name" : "executions-controller" }, - "/v2/builds/{buildMaster}/jobs": { - "get": { - "deprecated": false, - "description": "Deprecated, use the v3 endpoint instead", - "operationId": "getJobsForBuildMasterUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get jobs for build master", - "tags": [ - "build-controller" - ] - } + { + "name" : "firewall-controller", + "description" : "Firewall Controller" }, - "/v2/builds/{buildMaster}/jobs/**": { - "get": { - "deprecated": false, - "description": "Deprecated, use the v3 endpoint instead", - "operationId": "getJobConfigUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get job config", - "tags": [ - "build-controller" - ] - } - }, - "/v2/canaries/canary": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "initiateCanaryWithConfigUsingPOST", - "parameters": [ - { - "description": "adhocExecutionRequest", - "in": "body", - "name": "adhocExecutionRequest", - "required": true, - "schema": { - "type": "object" - } - }, - { - "description": "application", - "in": "query", - "name": "application", - "required": false, - "type": "string" - }, - { - "description": "metricsAccountName", - "in": "query", - "name": "metricsAccountName", - "required": false, - "type": "string" - }, - { - "description": "parentPipelineExecutionId", - "in": "query", - "name": "parentPipelineExecutionId", - "required": false, - "type": "string" - }, - { - "description": "storageAccountName", - "in": "query", - "name": "storageAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Start a canary execution with the supplied canary config", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaries/canary/{canaryConfigId}": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "initiateCanaryUsingPOST", - "parameters": [ - { - "description": "application", - "in": "query", - "name": "application", - "required": false, - "type": "string" - }, - { - "description": "canaryConfigId", - "in": "path", - "name": "canaryConfigId", - "required": true, - "type": "string" - }, - { - "description": "configurationAccountName", - "in": "query", - "name": "configurationAccountName", - "required": false, - "type": "string" - }, - { - "description": "executionRequest", - "in": "body", - "name": "executionRequest", - "required": true, - "schema": { - "type": "object" - } - }, - { - "description": "metricsAccountName", - "in": "query", - "name": "metricsAccountName", - "required": false, - "type": "string" - }, - { - "description": "parentPipelineExecutionId", - "in": "query", - "name": "parentPipelineExecutionId", - "required": false, - "type": "string" - }, - { - "description": "storageAccountName", - "in": "query", - "name": "storageAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Start a canary execution", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaries/canary/{canaryConfigId}/{canaryExecutionId}": { - "get": { - "deprecated": true, - "operationId": "getCanaryResultUsingGET", - "parameters": [ - { - "description": "canaryConfigId", - "in": "path", - "name": "canaryConfigId", - "required": true, - "type": "string" - }, - { - "description": "canaryExecutionId", - "in": "path", - "name": "canaryExecutionId", - "required": true, - "type": "string" - }, - { - "description": "storageAccountName", - "in": "query", - "name": "storageAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "(DEPRECATED) Retrieve a canary result", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaries/canary/{canaryExecutionId}": { - "get": { - "deprecated": false, - "operationId": "getCanaryResultUsingGET_1", - "parameters": [ - { - "description": "canaryExecutionId", - "in": "path", - "name": "canaryExecutionId", - "required": true, - "type": "string" - }, - { - "description": "storageAccountName", - "in": "query", - "name": "storageAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a canary result", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaries/credentials": { - "get": { - "deprecated": false, - "operationId": "listCredentialsUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of configured Kayenta accounts", - "tags": [ - "v-2-canary-controller" - ] - } + { + "description" : "Image Controller", + "name" : "image-controller" }, - "/v2/canaries/judges": { - "get": { - "deprecated": false, - "operationId": "listJudgesUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of all configured canary judges", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaries/metadata/metricsService": { - "get": { - "deprecated": false, - "operationId": "listMetricsServiceMetadataUsingGET", - "parameters": [ - { - "description": "filter", - "in": "query", - "name": "filter", - "required": false, - "type": "string" - }, - { - "description": "metricsAccountName", - "in": "query", - "name": "metricsAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of descriptors for use in populating the canary config ui", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaries/metricSetPairList/{metricSetPairListId}": { - "get": { - "deprecated": false, - "operationId": "getMetricSetPairListUsingGET", - "parameters": [ - { - "description": "metricSetPairListId", - "in": "path", - "name": "metricSetPairListId", - "required": true, - "type": "string" - }, - { - "description": "storageAccountName", - "in": "query", - "name": "storageAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a metric set pair list", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaries/{application}/executions": { - "get": { - "deprecated": false, - "operationId": "getCanaryResultsByApplicationUsingGET", - "parameters": [ - { - "description": "application", - "in": "path", - "name": "application", - "required": true, - "type": "string" - }, - { - "description": "limit", - "format": "int32", - "in": "query", - "name": "limit", - "required": true, - "type": "integer" - }, - { - "allowEmptyValue": false, - "description": "Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED, TERMINAL", - "in": "query", - "name": "statuses", - "required": false, - "type": "string" - }, - { - "description": "storageAccountName", - "in": "query", - "name": "storageAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of an application's canary results", - "tags": [ - "v-2-canary-controller" - ] - } - }, - "/v2/canaryConfig": { - "get": { - "deprecated": false, - "operationId": "getCanaryConfigsUsingGET", - "parameters": [ - { - "description": "application", - "in": "query", - "name": "application", - "required": false, - "type": "string" - }, - { - "description": "configurationAccountName", - "in": "query", - "name": "configurationAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of canary configurations", - "tags": [ - "v-2-canary-config-controller" - ] - }, - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "createCanaryConfigUsingPOST", - "parameters": [ - { - "description": "config", - "in": "body", - "name": "config", - "required": true, - "schema": { - "type": "object" - } - }, - { - "description": "configurationAccountName", - "in": "query", - "name": "configurationAccountName", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Create a canary configuration", - "tags": [ - "v-2-canary-config-controller" - ] - } - }, - "/v2/canaryConfig/{id}": { - "delete": { - "deprecated": false, - "operationId": "deleteCanaryConfigUsingDELETE", - "parameters": [ - { - "description": "configurationAccountName", - "in": "query", - "name": "configurationAccountName", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete a canary configuration", - "tags": [ - "v-2-canary-config-controller" - ] - }, - "get": { - "deprecated": false, - "operationId": "getCanaryConfigUsingGET", - "parameters": [ - { - "description": "configurationAccountName", - "in": "query", - "name": "configurationAccountName", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a canary configuration by id", - "tags": [ - "v-2-canary-config-controller" - ] - }, - "put": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "updateCanaryConfigUsingPUT", - "parameters": [ - { - "description": "config", - "in": "body", - "name": "config", - "required": true, - "schema": { - "type": "object" - } - }, - { - "description": "configurationAccountName", - "in": "query", - "name": "configurationAccountName", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Update a canary configuration", - "tags": [ - "v-2-canary-config-controller" - ] - } - }, - "/v2/pipelineTemplates": { - "get": { - "deprecated": false, - "operationId": "listUsingGET_1", - "parameters": [ - { - "collectionFormat": "multi", - "description": "scopes", - "in": "query", - "items": { - "type": "string" - }, - "name": "scopes", - "required": false, - "type": "array" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "(ALPHA) List pipeline templates.", - "tags": [ - "v-2-pipeline-templates-controller" - ] - } - }, - "/v2/pipelineTemplates/create": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "createUsingPOST_1", - "parameters": [ - { - "description": "pipelineTemplate", - "in": "body", - "name": "pipelineTemplate", - "required": true, - "schema": { - "type": "object" - } - }, - { - "description": "tag", - "in": "query", - "name": "tag", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "201": { - "description": "Created" - }, - "202": { - "description": "Accepted", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "(ALPHA) Create a pipeline template.", - "tags": [ - "v-2-pipeline-templates-controller" - ] - } - }, - "/v2/pipelineTemplates/plan": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "planUsingPOST", - "parameters": [ - { - "description": "pipeline", - "in": "body", - "name": "pipeline", - "required": true, - "schema": { - "type": "object" - } - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "(ALPHA) Plan a pipeline template configuration.", - "tags": [ - "v-2-pipeline-templates-controller" - ] - } - }, - "/v2/pipelineTemplates/update/{id}": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "updateUsingPOST_1", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "pipelineTemplate", - "in": "body", - "name": "pipelineTemplate", - "required": true, - "schema": { - "type": "object" - } - }, - { - "default": false, - "description": "skipPlanDependents", - "in": "query", - "name": "skipPlanDependents", - "required": false, - "type": "boolean" - }, - { - "description": "tag", - "in": "query", - "name": "tag", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "201": { - "description": "Created" - }, - "202": { - "description": "Accepted", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "(ALPHA) Update a pipeline template.", - "tags": [ - "v-2-pipeline-templates-controller" - ] - } - }, - "/v2/pipelineTemplates/versions": { - "get": { - "deprecated": false, - "operationId": "listVersionsUsingGET", - "parameters": [ - { - "collectionFormat": "multi", - "description": "scopes", - "in": "query", - "items": { - "type": "string" - }, - "name": "scopes", - "required": false, - "type": "array" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "List pipeline templates with versions", - "tags": [ - "v-2-pipeline-templates-controller" - ] - } - }, - "/v2/pipelineTemplates/{id}": { - "delete": { - "deprecated": false, - "operationId": "deleteUsingDELETE_1", - "parameters": [ - { - "description": "application", - "in": "query", - "name": "application", - "required": false, - "type": "string" - }, - { - "description": "digest", - "in": "query", - "name": "digest", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "tag", - "in": "query", - "name": "tag", - "required": false, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "202": { - "description": "Accepted", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - } - }, - "summary": "Delete a pipeline template.", - "tags": [ - "v-2-pipeline-templates-controller" - ] - }, - "get": { - "deprecated": false, - "operationId": "getUsingGET_2", - "parameters": [ - { - "description": "digest", - "in": "query", - "name": "digest", - "required": false, - "type": "string" - }, - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - }, - { - "description": "tag", - "in": "query", - "name": "tag", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "(ALPHA) Get a pipeline template.", - "tags": [ - "v-2-pipeline-templates-controller" - ] - } + { + "name" : "instance-controller", + "description" : "Instance Controller" }, - "/v2/pipelineTemplates/{id}/dependents": { - "get": { - "deprecated": false, - "operationId": "listPipelineTemplateDependentsUsingGET_1", - "parameters": [ - { - "description": "id", - "in": "path", - "name": "id", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "(ALPHA) List all pipelines that implement a pipeline template", - "tags": [ - "v-2-pipeline-templates-controller" - ] - } + { + "description" : "Job Controller", + "name" : "job-controller" }, - "/v3/builds": { - "get": { - "deprecated": false, - "operationId": "v3GetBuildMastersUsingGET", - "parameters": [ - { - "description": "type", - "in": "query", - "name": "type", - "required": false, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get build masters", - "tags": [ - "build-controller" - ] - } + { + "description" : "Load Balancer Controller", + "name" : "load-balancer-controller" }, - "/v3/builds/{buildMaster}/build/{number}": { - "get": { - "deprecated": false, - "operationId": "v3GetBuildUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - }, - { - "description": "job", - "in": "query", - "name": "job", - "required": true, - "type": "string" - }, - { - "description": "number", - "in": "path", - "name": "number", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200" : { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get build for build master", - "tags": [ - "build-controller" - ] - } - }, - "/v3/builds/{buildMaster}/builds": { - "get": { - "deprecated": false, - "operationId": "v3GetBuildsUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - }, - { - "description": "job", - "in": "query", - "name": "job", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get builds for build master", - "tags": [ - "build-controller" - ] - } - }, - "/v3/builds/{buildMaster}/job": { - "get": { - "deprecated": false, - "operationId": "v3GetJobConfigUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - }, - { - "description": "job", - "in": "query", - "name": "job", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "additionalProperties": { - "type": "object" - }, - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get job config", - "tags": [ - "build-controller" - ] - } - }, - "/v3/builds/{buildMaster}/jobs": { - "get": { - "deprecated": false, - "operationId": "v3GetJobsForBuildMasterUsingGET", - "parameters": [ - { - "description": "buildMaster", - "in": "path", - "name": "buildMaster", - "required": true, - "type": "string" - } - ], - "produces": [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get jobs for build master", - "tags": [ - "build-controller" - ] - } + { + "name" : "managed-controller", + "description" : "Managed Controller" }, - "/version": { - "get": { - "deprecated": false, - "operationId": "getVersionUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Version" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Fetch Gate's current version", - "tags": [ - "version-controller" - ] - } - }, - "/vpcs": { - "get": { - "deprecated": true, - "operationId": "vpcsUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Get VPCs", - "tags": [ - "amazon-infrastructure-controller" - ] - } - }, - "/webhooks/preconfigured": { - "get": { - "deprecated": false, - "operationId": "preconfiguredWebhooksUsingGET", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Retrieve a list of preconfigured webhooks in Orca", - "tags": [ - "webhook-controller" - ] - } - }, - "/webhooks/{type}/{source}": { - "post": { - "consumes": [ - "application/json" - ], - "deprecated": false, - "operationId": "webhooksUsingPOST", - "parameters": [ - { - "description": "X-Event-Key", - "in": "header", - "name": "X-Event-Key", - "required": false, - "type": "string" - }, - { - "description": "X-Hub-Signature", - "in": "header", - "name": "X-Hub-Signature", - "required": false, - "type": "string" - }, - { - "description": "event", - "in": "body", - "name": "event", - "required": false, - "schema": { - "type": "object" - } - }, - { - "description": "source", - "in": "path", - "name": "source", - "required": true, - "type": "string" - }, - { - "description": "type", - "in": "path", - "name": "type", - "required": true, - "type": "string" - } - ], - "produces" : [ - "*/*" - ], - "responses" : { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "201": { - "description": "Created" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Not Found" - } - }, - "summary": "Endpoint for posting webhooks to Spinnaker's webhook service", - "tags": [ - "webhook-controller" - ] + { + "description" : "Network Controller", + "name" : "network-controller" + }, + { + "name" : "pipeline-config-controller", + "description" : "Pipeline Config Controller" + }, + { + "description" : "Pipeline Controller", + "name" : "pipeline-controller" + }, + { + "description" : "Pipeline Templates Controller", + "name" : "pipeline-templates-controller" + }, + { + "description" : "Plugin Info Controller", + "name" : "plugin-info-controller" + }, + { + "description" : "Plugin Publish Controller", + "name" : "plugin-publish-controller" + }, + { + "name" : "plugins-installed-controller", + "description" : "Plugins Installed Controller" + }, + { + "description" : "Project Controller", + "name" : "project-controller" + }, + { + "description" : "Pubsub Subscription Controller", + "name" : "pubsub-subscription-controller" + }, + { + "name" : "reorder-pipelines-controller", + "description" : "Reorder Pipelines Controller" + }, + { + "description" : "Search Controller", + "name" : "search-controller" + }, + { + "description" : "Security Group Controller", + "name" : "security-group-controller" + }, + { + "name" : "server-group-controller", + "description" : "Server Group Controller" + }, + { + "description" : "Server Group Manager Controller", + "name" : "server-group-manager-controller" + }, + { + "name" : "snapshot-controller", + "description" : "Snapshot Controller" + }, + { + "description" : "Subnet Controller", + "name" : "subnet-controller" + }, + { + "name" : "task-controller", + "description" : "Task Controller" + }, + { + "name" : "v-2-canary-config-controller", + "description" : "V 2 Canary Config Controller" + }, + { + "name" : "v-2-canary-controller", + "description" : "V 2 Canary Controller" + }, + { + "description" : "V 2 Pipeline Templates Controller", + "name" : "v-2-pipeline-templates-controller" + }, + { + "description" : "Version Controller", + "name" : "version-controller" + }, + { + "name" : "webhook-controller", + "description" : "Webhook Controller" } - } - }, - "swagger": "2.0", - "tags": [ - { - "description": "Amazon Infrastructure Controller", - "name": "amazon-infrastructure-controller" - }, - { - "description": "Application Controller", - "name": "application-controller" - }, - { - "description": "Artifact Controller", - "name": "artifact-controller" - }, - { - "description": "Auth Controller", - "name": "auth-controller" - }, - { - "description": "Bake Controller", - "name": "bake-controller" - }, - { - "description": "Build Controller", - "name": "build-controller" - }, - { - "description": "Ci Controller", - "name": "ci-controller" - }, - { - "description": "Cluster Controller", - "name": "cluster-controller" - }, - { - "description": "Concourse Controller", - "name": "concourse-controller" - }, - { - "description": "Credentials Controller", - "name": "credentials-controller" - }, - { - "description": "Deck Plugins Controller", - "name": "deck-plugins-controller" - }, - { - "description": "Ecs Server Group Events Controller", - "name": "ecs-server-group-events-controller" - }, - { - "description": "Executions Controller", - "name": "executions-controller" - }, - { - "description": "Firewall Controller", - "name": "firewall-controller" - }, - { - "description": "Image Controller", - "name": "image-controller" - }, - { - "description": "Instance Controller", - "name": "instance-controller" - }, - { - "description": "Job Controller", - "name": "job-controller" - }, - { - "description": "Load Balancer Controller", - "name": "load-balancer-controller" - }, - { - "description": "Managed Controller", - "name": "managed-controller" - }, - { - "description": "Network Controller", - "name": "network-controller" - }, - { - "description": "Pipeline Config Controller", - "name": "pipeline-config-controller" - }, - { - "description": "Pipeline Controller", - "name": "pipeline-controller" - }, - { - "description": "Pipeline Templates Controller", - "name": "pipeline-templates-controller" - }, - { - "description": "Plugin Info Controller", - "name": "plugin-info-controller" - }, - { - "description": "Plugin Publish Controller", - "name": "plugin-publish-controller" - }, - { - "description": "Plugins Installed Controller", - "name": "plugins-installed-controller" - }, - { - "description": "Project Controller", - "name": "project-controller" - }, - { - "description": "Pubsub Subscription Controller", - "name": "pubsub-subscription-controller" - }, - { - "description": "Reorder Pipelines Controller", - "name": "reorder-pipelines-controller" - }, - { - "description": "Search Controller", - "name": "search-controller" - }, - { - "description": "Security Group Controller", - "name": "security-group-controller" - }, - { - "description": "Server Group Controller", - "name": "server-group-controller" - }, - { - "description": "Server Group Manager Controller", - "name": "server-group-manager-controller" - }, - { - "description": "Snapshot Controller", - "name": "snapshot-controller" - }, - { - "description": "Subnet Controller", - "name": "subnet-controller" - }, - { - "description": "Task Controller", - "name": "task-controller" - }, - { - "description": "V 2 Canary Config Controller", - "name": "v-2-canary-config-controller" - }, - { - "description": "V 2 Canary Controller", - "name": "v-2-canary-controller" - }, - { - "description": "V 2 Pipeline Templates Controller", - "name": "v-2-pipeline-templates-controller" - }, - { - "description": "Version Controller", - "name": "version-controller" - }, - { - "description": "Webhook Controller", - "name": "webhook-controller" - } - ] + ], + "swagger" : "2.0" } diff --git a/gateapi/README.md b/gateapi/README.md index e142fc3..95ffb3e 100644 --- a/gateapi/README.md +++ b/gateapi/README.md @@ -99,23 +99,25 @@ Class | Method | HTTP request | Description *ManagedControllerApi* | [**DeleteManifestByAppUsingDELETE**](docs/ManagedControllerApi.md#deletemanifestbyappusingdelete) | **Delete** /managed/application/{application}/config | Delete a delivery config manifest for an application *ManagedControllerApi* | [**DeleteManifestUsingDELETE**](docs/ManagedControllerApi.md#deletemanifestusingdelete) | **Delete** /managed/delivery-configs/{name} | Delete a delivery config manifest *ManagedControllerApi* | [**DeletePinUsingDELETE**](docs/ManagedControllerApi.md#deletepinusingdelete) | **Delete** /managed/application/{application}/pin/{targetEnvironment} | Unpin one or more artifact(s) in an environment. If the `reference` parameter is specified, only the corresponding artifact will be unpinned. If it's omitted, all pinned artifacts in the environment will be unpinned. -*ManagedControllerApi* | [**DeleteVetoUsingDELETE**](docs/ManagedControllerApi.md#deletevetousingdelete) | **Delete** /managed/application/{application}/veto/{targetEnvironment}/{reference}/{version} | Veto an artifact version in an environment +*ManagedControllerApi* | [**DeleteVetoUsingDELETE**](docs/ManagedControllerApi.md#deletevetousingdelete) | **Delete** /managed/application/{application}/veto/{targetEnvironment}/{reference}/{version} | Remove veto of an artifact version in an environment *ManagedControllerApi* | [**DiffManifestUsingPOST**](docs/ManagedControllerApi.md#diffmanifestusingpost) | **Post** /managed/delivery-configs/diff | Ad-hoc validate and diff a config manifest *ManagedControllerApi* | [**DiffResourceUsingPOST**](docs/ManagedControllerApi.md#diffresourceusingpost) | **Post** /managed/resources/diff | Ad-hoc validate and diff a resource *ManagedControllerApi* | [**ExportResourceUsingGET**](docs/ManagedControllerApi.md#exportresourceusingget) | **Get** /managed/resources/export/artifact/{cloudProvider}/{account}/{clusterName} | Generates an artifact definition based on the artifact used in a running cluster *ManagedControllerApi* | [**ExportResourceUsingGET1**](docs/ManagedControllerApi.md#exportresourceusingget1) | **Get** /managed/resources/export/{cloudProvider}/{account}/{type}/{name} | Generate a keel resource definition for a deployed cloud resource -*ManagedControllerApi* | [**GetApiDocsUsingGET**](docs/ManagedControllerApi.md#getapidocsusingget) | **Get** /managed/api-docs | getApiDocs *ManagedControllerApi* | [**GetApplicationDetailsUsingGET**](docs/ManagedControllerApi.md#getapplicationdetailsusingget) | **Get** /managed/application/{application} | Get managed details about an application *ManagedControllerApi* | [**GetConfigByUsingGET**](docs/ManagedControllerApi.md#getconfigbyusingget) | **Get** /managed/application/{application}/config | Get the delivery config associated with an application *ManagedControllerApi* | [**GetConstraintStateUsingGET**](docs/ManagedControllerApi.md#getconstraintstateusingget) | **Get** /managed/application/{application}/environment/{environment}/constraints | List up-to {limit} current constraint states for an environment *ManagedControllerApi* | [**GetManifestArtifactsUsingGET**](docs/ManagedControllerApi.md#getmanifestartifactsusingget) | **Get** /managed/delivery-configs/{name}/artifacts | Get the status of each version of each artifact in each environment *ManagedControllerApi* | [**GetManifestUsingGET**](docs/ManagedControllerApi.md#getmanifestusingget) | **Get** /managed/delivery-configs/{name} | Get a delivery config manifest +*ManagedControllerApi* | [**GetManifestYamlUsingGET**](docs/ManagedControllerApi.md#getmanifestyamlusingget) | **Get** /managed/delivery-configs/{name}.yml | Get a delivery config manifest *ManagedControllerApi* | [**GetResourceStatusUsingGET**](docs/ManagedControllerApi.md#getresourcestatususingget) | **Get** /managed/resources/{resourceId}/status | Get status of a resource *ManagedControllerApi* | [**GetResourceUsingGET**](docs/ManagedControllerApi.md#getresourceusingget) | **Get** /managed/resources/{resourceId} | Get a resource +*ManagedControllerApi* | [**GetResourceYamlUsingGET**](docs/ManagedControllerApi.md#getresourceyamlusingget) | **Get** /managed/resources/{resourceId}.yml | Get a resource *ManagedControllerApi* | [**PauseApplicationUsingPOST**](docs/ManagedControllerApi.md#pauseapplicationusingpost) | **Post** /managed/application/{application}/pause | Pause management of an entire application *ManagedControllerApi* | [**PauseResourceUsingPOST**](docs/ManagedControllerApi.md#pauseresourceusingpost) | **Post** /managed/resources/{resourceId}/pause | Pause management of a resource *ManagedControllerApi* | [**ResumeApplicationUsingDELETE**](docs/ManagedControllerApi.md#resumeapplicationusingdelete) | **Delete** /managed/application/{application}/pause | Resume management of an entire application *ManagedControllerApi* | [**ResumeResourceUsingDELETE**](docs/ManagedControllerApi.md#resumeresourceusingdelete) | **Delete** /managed/resources/{resourceId}/pause | Resume management of a resource +*ManagedControllerApi* | [**SchemaUsingGET**](docs/ManagedControllerApi.md#schemausingget) | **Get** /managed/delivery-configs/schema | Ad-hoc validate and diff a config manifest *ManagedControllerApi* | [**UpdateConstraintStatusUsingPOST**](docs/ManagedControllerApi.md#updateconstraintstatususingpost) | **Post** /managed/application/{application}/environment/{environment}/constraint | Update the status of an environment constraint *ManagedControllerApi* | [**UpsertManifestUsingPOST**](docs/ManagedControllerApi.md#upsertmanifestusingpost) | **Post** /managed/delivery-configs | Create or update a delivery config manifest *ManagedControllerApi* | [**ValidateManifestUsingPOST**](docs/ManagedControllerApi.md#validatemanifestusingpost) | **Post** /managed/delivery-configs/validate | Validate a delivery config manifest @@ -219,6 +221,8 @@ Class | Method | HTTP request | Description - [File](docs/File.md) - [GrantedAuthority](docs/GrantedAuthority.md) - [HashMapstringobject](docs/HashMapstringobject.md) + - [Headers](docs/Headers.md) + - [Http](docs/Http.md) - [HttpEntity](docs/HttpEntity.md) - [InputStream](docs/InputStream.md) - [Mapstringobject](docs/Mapstringobject.md) @@ -226,6 +230,8 @@ Class | Method | HTTP request | Description - [Notification](docs/Notification.md) - [PipelineTemplateDependent](docs/PipelineTemplateDependent.md) - [PluginDependency](docs/PluginDependency.md) + - [RemoteExtensionConfig](docs/RemoteExtensionConfig.md) + - [RemoteExtensionTransportConfig](docs/RemoteExtensionTransportConfig.md) - [ReorderPipelinesCommand](docs/ReorderPipelinesCommand.md) - [Resource](docs/Resource.md) - [ResponseEntity](docs/ResponseEntity.md) diff --git a/gateapi/api/swagger.yaml b/gateapi/api/swagger.yaml index b2ca4d1..9d7a68e 100644 --- a/gateapi/api/swagger.yaml +++ b/gateapi/api/swagger.yaml @@ -6,154 +6,116 @@ info: host: "localhost" basePath: "/" tags: - - name: "amazon-infrastructure-controller" - description: "Amazon Infrastructure Controller" - - name: "application-controller" - description: "Application Controller" - - name: "artifact-controller" - description: "Artifact Controller" - - name: "auth-controller" - description: "Auth Controller" - - name: "bake-controller" - description: "Bake Controller" - - name: "build-controller" - description: "Build Controller" - - name: "ci-controller" - description: "Ci Controller" - - name: "cluster-controller" - description: "Cluster Controller" - - name: "concourse-controller" - description: "Concourse Controller" - - name: "credentials-controller" - description: "Credentials Controller" - - name: "deck-plugins-controller" - description: "Deck Plugins Controller" - - name: "ecs-server-group-events-controller" - description: "Ecs Server Group Events Controller" - - name: "executions-controller" - description: "Executions Controller" - - name: "firewall-controller" - description: "Firewall Controller" - - name: "image-controller" - description: "Image Controller" - - name: "instance-controller" - description: "Instance Controller" - - name: "job-controller" - description: "Job Controller" - - name: "load-balancer-controller" - description: "Load Balancer Controller" - - name: "managed-controller" - description: "Managed Controller" - - name: "network-controller" - description: "Network Controller" - - name: "pipeline-config-controller" - description: "Pipeline Config Controller" - - name: "pipeline-controller" - description: "Pipeline Controller" - - name: "pipeline-templates-controller" - description: "Pipeline Templates Controller" - - name: "plugin-info-controller" - description: "Plugin Info Controller" - - name: "plugin-publish-controller" - description: "Plugin Publish Controller" - - name: "plugins-installed-controller" - description: "Plugins Installed Controller" - - name: "project-controller" - description: "Project Controller" - - name: "pubsub-subscription-controller" - description: "Pubsub Subscription Controller" - - name: "reorder-pipelines-controller" - description: "Reorder Pipelines Controller" - - name: "search-controller" - description: "Search Controller" - - name: "security-group-controller" - description: "Security Group Controller" - - name: "server-group-controller" - description: "Server Group Controller" - - name: "server-group-manager-controller" - description: "Server Group Manager Controller" - - name: "snapshot-controller" - description: "Snapshot Controller" - - name: "subnet-controller" - description: "Subnet Controller" - - name: "task-controller" - description: "Task Controller" - - name: "v-2-canary-config-controller" - description: "V 2 Canary Config Controller" - - name: "v-2-canary-controller" - description: "V 2 Canary Controller" - - name: "v-2-pipeline-templates-controller" - description: "V 2 Pipeline Templates Controller" - - name: "version-controller" - description: "Version Controller" - - name: "webhook-controller" - description: "Webhook Controller" +- name: "amazon-infrastructure-controller" + description: "Amazon Infrastructure Controller" +- name: "application-controller" + description: "Application Controller" +- name: "artifact-controller" + description: "Artifact Controller" +- name: "auth-controller" + description: "Auth Controller" +- name: "bake-controller" + description: "Bake Controller" +- name: "build-controller" + description: "Build Controller" +- name: "ci-controller" + description: "Ci Controller" +- name: "cluster-controller" + description: "Cluster Controller" +- name: "concourse-controller" + description: "Concourse Controller" +- name: "credentials-controller" + description: "Credentials Controller" +- name: "deck-plugins-controller" + description: "Deck Plugins Controller" +- name: "ecs-server-group-events-controller" + description: "Ecs Server Group Events Controller" +- name: "executions-controller" + description: "Executions Controller" +- name: "firewall-controller" + description: "Firewall Controller" +- name: "image-controller" + description: "Image Controller" +- name: "instance-controller" + description: "Instance Controller" +- name: "job-controller" + description: "Job Controller" +- name: "load-balancer-controller" + description: "Load Balancer Controller" +- name: "managed-controller" + description: "Managed Controller" +- name: "network-controller" + description: "Network Controller" +- name: "pipeline-config-controller" + description: "Pipeline Config Controller" +- name: "pipeline-controller" + description: "Pipeline Controller" +- name: "pipeline-templates-controller" + description: "Pipeline Templates Controller" +- name: "plugin-info-controller" + description: "Plugin Info Controller" +- name: "plugin-publish-controller" + description: "Plugin Publish Controller" +- name: "plugins-installed-controller" + description: "Plugins Installed Controller" +- name: "project-controller" + description: "Project Controller" +- name: "pubsub-subscription-controller" + description: "Pubsub Subscription Controller" +- name: "reorder-pipelines-controller" + description: "Reorder Pipelines Controller" +- name: "search-controller" + description: "Search Controller" +- name: "security-group-controller" + description: "Security Group Controller" +- name: "server-group-controller" + description: "Server Group Controller" +- name: "server-group-manager-controller" + description: "Server Group Manager Controller" +- name: "snapshot-controller" + description: "Snapshot Controller" +- name: "subnet-controller" + description: "Subnet Controller" +- name: "task-controller" + description: "Task Controller" +- name: "v-2-canary-config-controller" + description: "V 2 Canary Config Controller" +- name: "v-2-canary-controller" + description: "V 2 Canary Controller" +- name: "v-2-pipeline-templates-controller" + description: "V 2 Pipeline Templates Controller" +- name: "version-controller" + description: "Version Controller" +- name: "webhook-controller" + description: "Webhook Controller" paths: - /actions/pipelines/reorder: - post: - tags: - - "reorder-pipelines-controller" - summary: "Re-order pipelines" - operationId: "reorderPipelinesUsingPOST" - consumes: - - "application/json" - produces: - - "*/*" - parameters: - - in: "body" - name: "reorderPipelinesCommand" - description: "reorderPipelinesCommand" - required: true - schema: - $ref: "#/definitions/ReorderPipelinesCommand" - x-exportParamName: "ReorderPipelinesCommand" - responses: - "200": - description: "OK" - schema: - type: "object" - "201": - description: "Created" - "401": - description: "Unauthorized" - "403": - description: "Forbidden" - "404": - description: "Not Found" - deprecated: false - /applications: + /applications/{application}/pipelineConfigs/{pipelineName}: get: tags: - - "application-controller" - summary: "Retrieve a list of applications" - operationId: "getAllApplicationsUsingGET" + - "application-controller" + summary: "Retrieve a pipeline configuration" + operationId: "getPipelineConfigUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "account" - in: "query" - description: "filters results to only include applications deployed in the\ - \ specified account" - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "Account" - x-optionalDataType: "String" - - name: "owner" - in: "query" - description: "filters results to only include applications owned by the specified\ - \ email" - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "Owner" - x-optionalDataType: "String" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "pipelineName" + in: "path" + description: "pipelineName" + required: true + type: "string" + x-exportParamName: "PipelineName" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -163,113 +125,65 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{applicationName}/jobs/{account}/{region}/{name}: - get: + post: tags: - - "job-controller" - summary: "Get job" - operationId: "getJobUsingGET" + - "application-controller" + summary: "Invoke pipeline config" + operationId: "invokePipelineConfigUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "applicationName" - in: "path" - description: "applicationName" - required: true - type: "string" - x-exportParamName: "ApplicationName" - - name: "expand" - in: "query" - description: "expand" - required: false - type: "string" - default: "false" - x-exportParamName: "Expand" - x-optionalDataType: "String" - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "pipelineName" + in: "path" + description: "pipelineName" + required: true + type: "string" + x-exportParamName: "PipelineName" + - in: "body" + name: "trigger" + description: "trigger" + required: false + schema: + type: "object" + x-exportParamName: "Trigger" + - name: "user" + in: "query" + description: "user" + required: false + type: "string" + x-exportParamName: "User" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: - type: "object" - properties: {} + $ref: "#/definitions/HttpEntity" + "201": + description: "Created" "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: false - /applications/{applicationName}/serverGroups: + deprecated: true + /instanceTypes: get: tags: - - "server-group-controller" - summary: "Retrieve a list of server groups for a given application" - operationId: "getServerGroupsForApplicationUsingGET" + - "amazon-infrastructure-controller" + summary: "Get instance types" + operationId: "instanceTypesUsingGET" produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "applicationName" - in: "path" - description: "applicationName" - required: true - type: "string" - x-exportParamName: "ApplicationName" - - name: "cloudProvider" - in: "query" - description: "cloudProvider" - required: false - type: "string" - x-exportParamName: "CloudProvider" - x-optionalDataType: "String" - - name: "clusters" - in: "query" - description: "clusters" - required: false - type: "string" - x-exportParamName: "Clusters" - x-optionalDataType: "String" - - name: "expand" - in: "query" - description: "expand" - required: false - type: "string" - default: "false" - x-exportParamName: "Expand" - x-optionalDataType: "String" + - "*/*" + parameters: [] responses: "200": description: "OK" @@ -285,97 +199,76 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{applicationName}/serverGroups/{account}/{region}/{serverGroupName}: - get: + /managed/application/{application}/veto/{targetEnvironment}/{reference}/{version}: + delete: tags: - - "server-group-controller" - summary: "Retrieve a server group's details" - operationId: "getServerGroupDetailsUsingGET" + - "managed-controller" + summary: "Remove veto of an artifact version in an environment" + operationId: "deleteVetoUsingDELETE" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "applicationName" - in: "path" - description: "applicationName" - required: true - type: "string" - x-exportParamName: "ApplicationName" - - name: "includeDetails" - in: "query" - description: "includeDetails" - required: false - type: "string" - default: "true" - x-exportParamName: "IncludeDetails" - x-optionalDataType: "String" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" - - name: "serverGroupName" - in: "path" - description: "serverGroupName" - required: true - type: "string" - x-exportParamName: "ServerGroupName" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "reference" + in: "path" + description: "reference" + required: true + type: "string" + x-exportParamName: "Reference" + - name: "targetEnvironment" + in: "path" + description: "targetEnvironment" + required: true + type: "string" + x-exportParamName: "TargetEnvironment" + - name: "version" + in: "path" + description: "version" + required: true + type: "string" + x-exportParamName: "Version" responses: "200": description: "OK" - schema: - type: "object" + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - /applications/{application}: + /v2/canaryConfig/{id}: get: tags: - - "application-controller" - summary: "Retrieve an application's details" - operationId: "getApplicationUsingGET" + - "v-2-canary-config-controller" + summary: "Retrieve a canary configuration by id" + operationId: "getCanaryConfigUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "expand" - in: "query" - description: "expand" - required: false - type: "boolean" - default: true - x-exportParamName: "Expand" - x-optionalDataType: "Bool" + - name: "configurationAccountName" + in: "query" + description: "configurationAccountName" + required: false + type: "string" + x-exportParamName: "ConfigurationAccountName" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: type: "object" - additionalProperties: - type: "object" - properties: {} "401": description: "Unauthorized" "403": @@ -383,36 +276,43 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/clusters: - get: + put: tags: - - "cluster-controller" - summary: "Retrieve a list of cluster names for an application, grouped by account" - operationId: "getClustersUsingGET_2" - produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - "v-2-canary-config-controller" + summary: "Update a canary configuration" + operationId: "updateCanaryConfigUsingPUT" + consumes: + - "application/json" + produces: + - "*/*" + parameters: + - in: "body" + name: "config" + description: "config" + required: true + schema: + type: "object" + x-exportParamName: "Config" + - name: "configurationAccountName" + in: "query" + description: "configurationAccountName" + required: false + type: "string" + x-exportParamName: "ConfigurationAccountName" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: type: "object" - additionalProperties: - type: "object" - properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -420,83 +320,52 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/clusters/{account}: - get: + delete: tags: - - "cluster-controller" - summary: "Retrieve a list of clusters for an account" - operationId: "getClustersUsingGET_1" + - "v-2-canary-config-controller" + summary: "Delete a canary configuration" + operationId: "deleteCanaryConfigUsingDELETE" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "configurationAccountName" + in: "query" + description: "configurationAccountName" + required: false + type: "string" + x-exportParamName: "ConfigurationAccountName" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" - schema: - type: "array" - items: - type: "object" - properties: {} + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - /applications/{application}/clusters/{account}/{clusterName}: + /pipelineTemplates/{id}: get: tags: - - "cluster-controller" - summary: "Retrieve a cluster's details" - operationId: "getClustersUsingGET" + - "pipeline-templates-controller" + summary: "Get a pipeline template." + operationId: "getUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "clusterName" - in: "path" - description: "clusterName" - required: true - type: "string" - x-exportParamName: "ClusterName" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" @@ -512,46 +381,45 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/clusters/{account}/{clusterName}/serverGroups: - get: + post: tags: - - "cluster-controller" - summary: "Retrieve a list of server groups for a cluster" - operationId: "getServerGroupsUsingGET_1" + - "pipeline-templates-controller" + summary: "Update a pipeline template." + operationId: "updateUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "clusterName" - in: "path" - description: "clusterName" - required: true - type: "string" - x-exportParamName: "ClusterName" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - in: "body" + name: "pipelineTemplate" + description: "pipelineTemplate" + required: true + schema: + type: "object" + x-exportParamName: "PipelineTemplate" + - name: "skipPlanDependents" + in: "query" + description: "skipPlanDependents" + required: false + type: "boolean" + default: false + x-exportParamName: "SkipPlanDependents" + x-optionalDataType: "Bool" responses: - "200": - description: "OK" + "201": + description: "Created" + "202": + description: "Accepted" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -561,116 +429,97 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}: - get: + delete: tags: - - "cluster-controller" - summary: "Retrieve a server group's details" - operationId: "getServerGroupsUsingGET" + - "pipeline-templates-controller" + summary: "Delete a pipeline template." + operationId: "deleteUsingDELETE" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "clusterName" - in: "path" - description: "clusterName" - required: true - type: "string" - x-exportParamName: "ClusterName" - - name: "serverGroupName" - in: "path" - description: "serverGroupName" - required: true - type: "string" - x-exportParamName: "ServerGroupName" + - name: "application" + in: "query" + description: "application" + required: false + type: "string" + x-exportParamName: "Application" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: - "200": - description: "OK" + "202": + description: "Accepted" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false /applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}/scalingActivities: get: tags: - - "cluster-controller" + - "cluster-controller" summary: "Retrieve a list of scaling activities for a server group" operationId: "getScalingActivitiesUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "clusterName" - in: "path" - description: "clusterName" - required: true - type: "string" - x-exportParamName: "ClusterName" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "region" - in: "query" - description: "region" - required: false - type: "string" - x-exportParamName: "Region" - x-optionalDataType: "String" - - name: "serverGroupName" - in: "path" - description: "serverGroupName" - required: true - type: "string" - x-exportParamName: "ServerGroupName" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "clusterName" + in: "path" + description: "clusterName" + required: true + type: "string" + x-exportParamName: "ClusterName" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "region" + in: "query" + description: "region" + required: false + type: "string" + x-exportParamName: "Region" + x-optionalDataType: "String" + - name: "serverGroupName" + in: "path" + description: "serverGroupName" + required: true + type: "string" + x-exportParamName: "ServerGroupName" responses: "200": description: "OK" @@ -686,82 +535,35 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/clusters/{account}/{clusterName}/{cloudProvider}/{scope}/serverGroups/target/{target}: + /firewalls: get: tags: - - "cluster-controller" - summary: "Retrieve a server group that matches a target coordinate (e.g., newest,\ - \ ancestor) relative to a cluster" - description: "`scope` is either a zone or a region" - operationId: "getTargetServerGroupUsingGET" + - "firewall-controller" + summary: "Retrieve a list of firewalls, grouped by account, cloud provider,\ + \ and region" + operationId: "allUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "cloudProvider" - in: "path" - description: "cloudProvider" - required: true - type: "string" - x-exportParamName: "CloudProvider" - - name: "clusterName" - in: "path" - description: "clusterName" - required: true - type: "string" - x-exportParamName: "ClusterName" - - name: "onlyEnabled" - in: "query" - description: "onlyEnabled" - required: false - type: "boolean" - x-exportParamName: "OnlyEnabled" - x-optionalDataType: "Bool" - - name: "scope" - in: "path" - description: "scope" - required: true - type: "string" - x-exportParamName: "Scope" - - name: "target" - in: "path" - description: "target" - required: true - type: "string" - x-exportParamName: "Target" - - name: "validateOldest" - in: "query" - description: "validateOldest" - required: false - type: "boolean" - x-exportParamName: "ValidateOldest" - x-optionalDataType: "Bool" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "id" + in: "query" + description: "id" + required: false + type: "string" + x-exportParamName: "Id" + x-optionalDataType: "String" responses: "200": description: "OK" schema: type: "object" - additionalProperties: - type: "object" - properties: {} "401": description: "Unauthorized" "403": @@ -769,54 +571,29 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/clusters/{account}/{clusterName}/{type}/loadBalancers: - get: + /pipelines/move: + post: tags: - - "cluster-controller" - summary: "Retrieve a cluster's loadbalancers" - operationId: "getClusterLoadBalancersUsingGET" - produces: - - "*/*" + - "pipeline-controller" + summary: "Rename a pipeline definition" + operationId: "renamePipelineUsingPOST" + consumes: + - "application/json" + produces: + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "applicationName" - in: "path" - description: "applicationName" - required: true - type: "string" - x-exportParamName: "ApplicationName" - - name: "clusterName" - in: "path" - description: "clusterName" - required: true - type: "string" - x-exportParamName: "ClusterName" - - name: "type" - in: "path" - description: "type" - required: true - type: "string" - x-exportParamName: "Type_" + - in: "body" + name: "renameCommand" + description: "renameCommand" + required: true + schema: + type: "object" + x-exportParamName: "RenameCommand" responses: "200": description: "OK" - schema: - type: "array" - items: - type: "object" - properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -824,165 +601,43 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/executions/search: - get: + /pipelines/{id}/cancel: + put: tags: - - "executions-controller" - summary: "Search for pipeline executions using a combination of criteria. The\ - \ returned list is sorted by buildTime (trigger time) in reverse order so\ - \ that newer executions are first in the list." - operationId: "searchForPipelineExecutionsByTriggerUsingGET" + - "pipeline-controller" + summary: "Cancel a pipeline execution" + operationId: "cancelPipelineUsingPUT_1" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "Only includes executions that are part of this application.\ - \ If this value is \"*\", results will include executions of all applications." - required: true - type: "string" - x-exportParamName: "Application" - - name: "eventId" - in: "query" - description: "Only includes executions that were triggered by a trigger with\ - \ this eventId." - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "EventId" - x-optionalDataType: "String" - - name: "expand" - in: "query" - description: "Expands each execution object in the resulting list. If this\ - \ value is missing, it is defaulted to false." - required: false - type: "boolean" - default: false - allowEmptyValue: false - x-example: false - x-exportParamName: "Expand" - x-optionalDataType: "Bool" - - name: "pipelineName" - in: "query" - description: "Only includes executions that with this pipeline name." - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "PipelineName" - x-optionalDataType: "String" - - name: "reverse" - in: "query" - description: "Reverses the resulting list before it is paginated. If this\ - \ value is missing, it is defaulted to false." - required: false - type: "boolean" - default: false - allowEmptyValue: false - x-example: false - x-exportParamName: "Reverse" - x-optionalDataType: "Bool" - - name: "size" - in: "query" - description: "Sets the size of the resulting list for pagination. This value\ - \ must be > 0. If this value is missing, it is defaulted to 10." - required: false - type: "integer" - default: 10 - format: "int32" - allowEmptyValue: false - x-exportParamName: "Size" - x-optionalDataType: "Int32" - - name: "startIndex" - in: "query" - description: "Sets the first item of the resulting list for pagination. The\ - \ list is 0-indexed. This value must be >= 0. If this value is missing,\ - \ it is defaulted to 0." - required: false - type: "integer" - default: 0 - format: "int32" - allowEmptyValue: false - x-exportParamName: "StartIndex" - x-optionalDataType: "Int32" - - name: "statuses" - in: "query" - description: "Only includes executions with a status that is equal to a status\ - \ provided in this field. The list of statuses should be given as a comma-delimited\ - \ string. If this value is missing, includes executions of all statuses.\ - \ Allowed statuses are: NOT_STARTED, RUNNING, PAUSED, SUSPENDED, SUCCEEDED,\ - \ FAILED_CONTINUE, TERMINAL, CANCELED, REDIRECT, STOPPED, SKIPPED, BUFFERED." - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "Statuses" - x-optionalDataType: "String" - - name: "trigger" - in: "query" - description: "Only includes executions that were triggered by a trigger that\ - \ matches the subset of fields provided by this value. This value should\ - \ be a base64-encoded string of a JSON representation of a trigger object.\ - \ The comparison succeeds if the execution trigger contains all the fields\ - \ of the input trigger, the fields are of the same type, and each value\ - \ of the field \"matches\". The term \"matches\" is specific for each field's\ - \ type:\n- For Strings: A String value in the execution's trigger matches\ - \ the input trigger's String value if the former equals the latter (case-insensitive)\ - \ OR if the former matches the latter as a regular expression.\n- For Maps:\ - \ A Map value in the execution's trigger matches the input trigger's Map\ - \ value if the former contains all keys of the latter and their values match.\n\ - - For Collections: A Collection value in the execution's trigger matches\ - \ the input trigger's Collection value if the former has a unique element\ - \ that matches each element of the latter.\n- Every other value is compared\ - \ using the Java \"equals\" method (Groovy \"==\" operator)" - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "Trigger" - x-optionalDataType: "String" - - name: "triggerTimeEndBoundary" - in: "query" - description: "Only includes executions that were built at or before the given\ - \ time, represented as a Unix timestamp in ms (UTC). This value must be\ - \ <= 9223372036854775807 (Long.MAX_VALUE) and >= the value of [triggerTimeStartBoundary],\ - \ if provided. If this value is missing, it is defaulted to 9223372036854775807." - required: false - type: "integer" - default: 9223372036854775807 - format: "int64" - allowEmptyValue: false - x-exportParamName: "TriggerTimeEndBoundary" - x-optionalDataType: "Int64" - - name: "triggerTimeStartBoundary" - in: "query" - description: "Only includes executions that were built at or after the given\ - \ time, represented as a Unix timestamp in ms (UTC). This value must be\ - \ >= 0 and <= the value of [triggerTimeEndBoundary], if provided. If this\ - \ value is missing, it is defaulted to 0." - required: false - type: "integer" - default: 0 - format: "int64" - allowEmptyValue: false - x-exportParamName: "TriggerTimeStartBoundary" - x-optionalDataType: "Int64" - - name: "triggerTypes" - in: "query" - description: "Only includes executions that were triggered by a trigger with\ - \ a type that is equal to a type provided in this field. The list of trigger\ - \ types should be a comma-delimited string. If this value is missing, results\ - \ will includes executions of all trigger types." - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "TriggerTypes" - x-optionalDataType: "String" + - name: "force" + in: "query" + description: "force" + required: false + type: "boolean" + default: false + x-exportParamName: "Force" + x-optionalDataType: "Bool" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "reason" + in: "query" + description: "reason" + required: false + type: "string" + x-exportParamName: "Reason" + x-optionalDataType: "String" responses: "200": description: "OK" - schema: - type: "array" - items: - type: "object" - properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -990,21 +645,42 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/functions: + /firewalls/{account}/{region}: get: tags: - - "amazon-infrastructure-controller" - summary: "Get application functions" - operationId: "applicationFunctionsUsingGET" + - "firewall-controller" + summary: "Retrieve a list of firewalls for a given account and region" + operationId: "allByAccountAndRegionUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" responses: "200": description: "OK" @@ -1020,38 +696,26 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/history: + /pipelineConfigs/{pipelineConfigId}/convertToTemplate: get: tags: - - "application-controller" - summary: "Retrieve a list of an application's configuration revision history" - operationId: "getApplicationHistoryUsingGET" + - "pipeline-config-controller" + summary: "Convert a pipeline config to a pipeline template." + operationId: "convertPipelineConfigToPipelineTemplateUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "limit" - in: "query" - description: "limit" - required: false - type: "integer" - default: 20 - format: "int32" - x-exportParamName: "Limit" - x-optionalDataType: "Int32" + - name: "pipelineConfigId" + in: "path" + description: "pipelineConfigId" + required: true + type: "string" + x-exportParamName: "PipelineConfigId" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "string" "401": description: "Unauthorized" "403": @@ -1059,36 +723,34 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/loadBalancers: - get: + /v2/pipelineTemplates/plan: + post: tags: - - "load-balancer-controller" - summary: "Retrieve a list of load balancers for a given application" - operationId: "getApplicationLoadBalancersUsingGET" + - "v-2-pipeline-templates-controller" + summary: "(ALPHA) Plan a pipeline template configuration." + operationId: "planUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - in: "body" + name: "pipeline" + description: "pipeline" + required: true + schema: + type: "object" + x-exportParamName: "Pipeline" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -1096,27 +758,42 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/pipelineConfigs: + /loadBalancers/{name}: get: tags: - - "application-controller" - summary: "Retrieve a list of an application's pipeline configurations" - operationId: "getPipelineConfigsForApplicationUsingGET" + - "load-balancer-controller" + summary: "Retrieve a load balancer for a given cloud provider" + operationId: "getLoadBalancerUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -1126,33 +803,21 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/pipelineConfigs/{pipelineName}: + /v2/canaries/credentials: get: tags: - - "application-controller" - summary: "Retrieve a pipeline configuration" - operationId: "getPipelineConfigUsingGET" + - "v-2-canary-controller" + summary: "Retrieve a list of configured Kayenta accounts" + operationId: "listCredentialsUsingGET" produces: - - "*/*" - parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "pipelineName" - in: "path" - description: "pipelineName" - required: true - type: "string" - x-exportParamName: "PipelineName" + - "*/*" + parameters: [] responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -1162,47 +827,35 @@ paths: "404": description: "Not Found" deprecated: false + /pipelines: post: tags: - - "application-controller" - summary: "Invoke pipeline config" - operationId: "invokePipelineConfigUsingPOST" + - "pipeline-controller" + summary: "Save a pipeline definition" + operationId: "savePipelineUsingPOST" consumes: - - "application/json" - produces: - - "*/*" - parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "pipelineName" - in: "path" - description: "pipelineName" - required: true - type: "string" - x-exportParamName: "PipelineName" - - in: "body" - name: "trigger" - description: "trigger" - required: false - schema: - type: "object" - x-exportParamName: "Trigger" - - name: "user" - in: "query" - description: "user" - required: false - type: "string" - x-exportParamName: "User" - x-optionalDataType: "String" + - "application/json" + produces: + - "*/*" + parameters: + - in: "body" + name: "pipeline" + description: "pipeline" + required: true + schema: + type: "object" + x-exportParamName: "Pipeline" + - name: "staleCheck" + in: "query" + description: "staleCheck" + required: false + type: "boolean" + default: false + x-exportParamName: "StaleCheck" + x-optionalDataType: "Bool" responses: "200": description: "OK" - schema: - $ref: "#/definitions/HttpEntity" "201": description: "Created" "401": @@ -1211,44 +864,29 @@ paths: description: "Forbidden" "404": description: "Not Found" - deprecated: true - /applications/{application}/pipelines: + deprecated: false + /pipelineTemplates/{id}/dependents: get: tags: - - "application-controller" - summary: "Retrieve a list of an application's pipeline executions" - operationId: "getPipelinesUsingGET" + - "pipeline-templates-controller" + summary: "List all pipelines that implement a pipeline template" + operationId: "listPipelineTemplateDependentsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "expand" - in: "query" - description: "expand" - required: false - type: "boolean" - x-exportParamName: "Expand" - x-optionalDataType: "Bool" - - name: "limit" - in: "query" - description: "limit" - required: false - type: "integer" - format: "int32" - x-exportParamName: "Limit" - x-optionalDataType: "Int32" - - name: "statuses" - in: "query" - description: "statuses" - required: false - type: "string" - x-exportParamName: "Statuses" - x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "recursive" + in: "query" + description: "recursive" + required: false + type: "boolean" + x-exportParamName: "Recursive" + x-optionalDataType: "Bool" responses: "200": description: "OK" @@ -1264,30 +902,27 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/pipelines/{id}/cancel: - put: + /applications/{application}/snapshots/{account}: + get: tags: - - "application-controller" - summary: "Cancel pipeline" - operationId: "cancelPipelineUsingPUT" - consumes: - - "application/json" + - "snapshot-controller" + summary: "Get current snapshot" + operationId: "getCurrentSnapshotUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "reason" - in: "query" - description: "reason" - required: false - type: "string" - x-exportParamName: "Reason" - x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" @@ -1296,30 +931,40 @@ paths: additionalProperties: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: true - /applications/{application}/serverGroupManagers: + deprecated: false + /concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/jobs: get: tags: - - "server-group-manager-controller" - summary: "Retrieve a list of server group managers for an application" - operationId: "getServerGroupManagersForApplicationUsingGET" + - "concourse-controller" + summary: "Retrieve the list of job names for a given pipeline available to triggers" + operationId: "jobsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" + - name: "pipeline" + in: "path" + description: "pipeline" + required: true + type: "string" + x-exportParamName: "Pipeline" + - name: "team" + in: "path" + description: "team" + required: true + type: "string" + x-exportParamName: "Team" responses: "200": description: "OK" @@ -1335,45 +980,30 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/serverGroups/{account}/{serverGroupName}/events: + /v2/canaries/metadata/metricsService: get: tags: - - "ecs-server-group-events-controller" - summary: "Retrieves a list of events for a server group" - operationId: "getEventsUsingGET" + - "v-2-canary-controller" + summary: "Retrieve a list of descriptors for use in populating the canary config\ + \ ui" + operationId: "listMetricsServiceMetadataUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "provider" - in: "query" - description: "provider" - required: true - type: "string" - x-exportParamName: "Provider" - - name: "region" - in: "query" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" - - name: "serverGroupName" - in: "path" - description: "serverGroupName" - required: true - type: "string" - x-exportParamName: "ServerGroupName" + - name: "filter" + in: "query" + description: "filter" + required: false + type: "string" + x-exportParamName: "Filter" + x-optionalDataType: "String" + - name: "metricsAccountName" + in: "query" + description: "metricsAccountName" + required: false + type: "string" + x-exportParamName: "MetricsAccountName" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -1389,33 +1019,27 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/snapshots/{account}: + /managed/delivery-configs/{name}/artifacts: get: tags: - - "snapshot-controller" - summary: "Get current snapshot" - operationId: "getCurrentSnapshotUsingGET" + - "managed-controller" + summary: "Get the status of each version of each artifact in each environment" + operationId: "getManifestArtifactsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -1425,74 +1049,70 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/snapshots/{account}/history: - get: + /applications/{application}/tasks/{id}/cancel: + put: tags: - - "snapshot-controller" - summary: "Get snapshot history" - operationId: "getSnapshotHistoryUsingGET" + - "application-controller" + summary: "Cancel task" + operationId: "cancelTaskUsingPUT" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "limit" - in: "query" - description: "limit" - required: false - type: "integer" - default: 20 - format: "int32" - x-exportParamName: "Limit" - x-optionalDataType: "Int32" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} - "401": + "201": + description: "Created" + "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: false - /applications/{application}/strategyConfigs: - get: + deprecated: true + /tasks/cancel: + put: tags: - - "application-controller" - summary: "Retrieve a list of an application's pipeline strategy configurations" - operationId: "getStrategyConfigsForApplicationUsingGET" + - "task-controller" + summary: "Cancel tasks" + operationId: "cancelTasksUsingPUT" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true + - name: "ids" + in: "query" + description: "ids" + required: true + type: "array" + items: type: "string" - x-exportParamName: "Application" + collectionFormat: "multi" + x-exportParamName: "Ids" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -1500,35 +1120,47 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/strategyConfigs/{strategyName}: + /artifacts/account/{accountName}/versions: get: tags: - - "application-controller" - summary: "Retrieve a pipeline strategy configuration" - operationId: "getStrategyConfigUsingGET" + - "artifact-controller" + summary: "Retrieve the list of artifact versions by account and artifact names" + operationId: "artifactVersionsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "strategyName" - in: "path" - description: "strategyName" - required: true - type: "string" - x-exportParamName: "StrategyName" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "accountName" + in: "path" + description: "accountName" + required: true + type: "string" + x-exportParamName: "AccountName" + - name: "artifactName" + in: "query" + description: "artifactName" + required: true + type: "string" + x-exportParamName: "ArtifactName" + - name: "type" + in: "query" + description: "type" + required: true + type: "string" + x-exportParamName: "Type_" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: - type: "object" - properties: {} + type: "array" + items: + type: "string" "401": description: "Unauthorized" "403": @@ -1536,44 +1168,15 @@ paths: "404": description: "Not Found" deprecated: false - /applications/{application}/tasks: + /subnets: get: tags: - - "application-controller" - summary: "Retrieve a list of an application's tasks" - operationId: "getTasksUsingGET" + - "amazon-infrastructure-controller" + summary: "Get subnets" + operationId: "subnetsUsingGET" produces: - - "*/*" - parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "limit" - in: "query" - description: "limit" - required: false - type: "integer" - format: "int32" - x-exportParamName: "Limit" - x-optionalDataType: "Int32" - - name: "page" - in: "query" - description: "page" - required: false - type: "integer" - format: "int32" - x-exportParamName: "Page" - x-optionalDataType: "Int32" - - name: "statuses" - in: "query" - description: "statuses" - required: false - type: "string" - x-exportParamName: "Statuses" - x-optionalDataType: "String" + - "*/*" + parameters: [] responses: "200": description: "OK" @@ -1589,61 +1192,65 @@ paths: "404": description: "Not Found" deprecated: false - post: + /applications/{application}/clusters/{account}: + get: tags: - - "application-controller" - summary: "Create task" - operationId: "taskUsingPOST" - consumes: - - "application/json" + - "cluster-controller" + summary: "Retrieve a list of clusters for an account" + operationId: "getClustersUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - in: "body" - name: "map" - description: "map" - required: true - schema: - type: "object" - x-exportParamName: "Map_" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: true - /applications/{application}/tasks/{id}: + deprecated: false + /v2/builds/{buildMaster}/jobs/**: get: tags: - - "application-controller" - summary: "Get task" - operationId: "getTaskUsingGET" + - "build-controller" + summary: "Get job config" + description: "Deprecated, use the v3 endpoint instead" + operationId: "getJobConfigUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" responses: "200": description: "OK" @@ -1658,75 +1265,188 @@ paths: description: "Forbidden" "404": description: "Not Found" - deprecated: true - /applications/{application}/tasks/{id}/cancel: - put: + deprecated: false + /applications/{application}/executions/search: + get: tags: - - "application-controller" - summary: "Cancel task" - operationId: "cancelTaskUsingPUT" - consumes: - - "application/json" + - "executions-controller" + summary: "Search for pipeline executions using a combination of criteria. The\ + \ returned list is sorted by buildTime (trigger time) in reverse order so\ + \ that newer executions are first in the list." + operationId: "searchForPipelineExecutionsByTriggerUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "application" + in: "path" + description: "Only includes executions that are part of this application.\ + \ If this value is \"*\", results will include executions of all applications." + required: true + type: "string" + x-exportParamName: "Application" + - name: "eventId" + in: "query" + description: "Only includes executions that were triggered by a trigger with\ + \ this eventId." + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "EventId" + x-optionalDataType: "String" + - name: "expand" + in: "query" + description: "Expands each execution object in the resulting list. If this\ + \ value is missing, it is defaulted to false." + required: false + type: "boolean" + default: false + allowEmptyValue: false + x-example: false + x-exportParamName: "Expand" + x-optionalDataType: "Bool" + - name: "pipelineName" + in: "query" + description: "Only includes executions that with this pipeline name." + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "PipelineName" + x-optionalDataType: "String" + - name: "reverse" + in: "query" + description: "Reverses the resulting list before it is paginated. If this\ + \ value is missing, it is defaulted to false." + required: false + type: "boolean" + default: false + allowEmptyValue: false + x-example: false + x-exportParamName: "Reverse" + x-optionalDataType: "Bool" + - name: "size" + in: "query" + description: "Sets the size of the resulting list for pagination. This value\ + \ must be > 0. If this value is missing, it is defaulted to 10." + required: false + type: "integer" + default: 10 + format: "int32" + allowEmptyValue: false + x-exportParamName: "Size" + x-optionalDataType: "Int32" + - name: "startIndex" + in: "query" + description: "Sets the first item of the resulting list for pagination. The\ + \ list is 0-indexed. This value must be >= 0. If this value is missing,\ + \ it is defaulted to 0." + required: false + type: "integer" + default: 0 + format: "int32" + allowEmptyValue: false + x-exportParamName: "StartIndex" + x-optionalDataType: "Int32" + - name: "statuses" + in: "query" + description: "Only includes executions with a status that is equal to a status\ + \ provided in this field. The list of statuses should be given as a comma-delimited\ + \ string. If this value is missing, includes executions of all statuses.\ + \ Allowed statuses are: NOT_STARTED, RUNNING, PAUSED, SUSPENDED, SUCCEEDED,\ + \ FAILED_CONTINUE, TERMINAL, CANCELED, REDIRECT, STOPPED, SKIPPED, BUFFERED." + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "Statuses" + x-optionalDataType: "String" + - name: "trigger" + in: "query" + description: "Only includes executions that were triggered by a trigger that\ + \ matches the subset of fields provided by this value. This value should\ + \ be a base64-encoded string of a JSON representation of a trigger object.\ + \ The comparison succeeds if the execution trigger contains all the fields\ + \ of the input trigger, the fields are of the same type, and each value\ + \ of the field \"matches\". The term \"matches\" is specific for each field's\ + \ type:\n- For Strings: A String value in the execution's trigger matches\ + \ the input trigger's String value if the former equals the latter (case-insensitive)\ + \ OR if the former matches the latter as a regular expression.\n- For Maps:\ + \ A Map value in the execution's trigger matches the input trigger's Map\ + \ value if the former contains all keys of the latter and their values match.\n\ + - For Collections: A Collection value in the execution's trigger matches\ + \ the input trigger's Collection value if the former has a unique element\ + \ that matches each element of the latter.\n- Every other value is compared\ + \ using the Java \"equals\" method (Groovy \"==\" operator)" + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "Trigger" + x-optionalDataType: "String" + - name: "triggerTimeEndBoundary" + in: "query" + description: "Only includes executions that were built at or before the given\ + \ time, represented as a Unix timestamp in ms (UTC). This value must be\ + \ <= 9223372036854775807 (Long.MAX_VALUE) and >= the value of [triggerTimeStartBoundary],\ + \ if provided. If this value is missing, it is defaulted to 9223372036854775807." + required: false + type: "integer" + default: 9223372036854775807 + format: "int64" + allowEmptyValue: false + x-exportParamName: "TriggerTimeEndBoundary" + x-optionalDataType: "Int64" + - name: "triggerTimeStartBoundary" + in: "query" + description: "Only includes executions that were built at or after the given\ + \ time, represented as a Unix timestamp in ms (UTC). This value must be\ + \ >= 0 and <= the value of [triggerTimeEndBoundary], if provided. If this\ + \ value is missing, it is defaulted to 0." + required: false + type: "integer" + default: 0 + format: "int64" + allowEmptyValue: false + x-exportParamName: "TriggerTimeStartBoundary" + x-optionalDataType: "Int64" + - name: "triggerTypes" + in: "query" + description: "Only includes executions that were triggered by a trigger with\ + \ a type that is equal to a type provided in this field. The list of trigger\ + \ types should be a comma-delimited string. If this value is missing, results\ + \ will includes executions of all trigger types." + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "TriggerTypes" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: true - /applications/{application}/tasks/{id}/details/{taskDetailsId}: + deprecated: false + /projects: get: tags: - - "application-controller" - summary: "Get task details" - operationId: "getTaskDetailsUsingGET" + - "project-controller" + summary: "Get all projects" + operationId: "allUsingGET_3" produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "taskDetailsId" - in: "path" - description: "taskDetailsId" - required: true - type: "string" - x-exportParamName: "TaskDetailsId" + - "*/*" + parameters: [] responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -1735,48 +1455,25 @@ paths: description: "Forbidden" "404": description: "Not Found" - deprecated: true - /artifacts/account/{accountName}/versions: + deprecated: false + /auth/redirect: get: tags: - - "artifact-controller" - summary: "Retrieve the list of artifact versions by account and artifact names" - operationId: "artifactVersionsUsingGET" + - "auth-controller" + summary: "Redirect to Deck" + operationId: "redirectUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "accountName" - in: "path" - description: "accountName" - required: true - type: "string" - x-exportParamName: "AccountName" - - name: "artifactName" - in: "query" - description: "artifactName" - required: true - type: "string" - x-exportParamName: "ArtifactName" - - name: "type" - in: "query" - description: "type" - required: true - type: "string" - x-exportParamName: "Type_" + - name: "to" + in: "query" + description: "to" + required: true + type: "string" + x-exportParamName: "To" responses: "200": description: "OK" - schema: - type: "array" - items: - type: "string" "401": description: "Unauthorized" "403": @@ -1784,22 +1481,48 @@ paths: "404": description: "Not Found" deprecated: false - /artifacts/credentials: + /images/{account}/{region}/{imageId}: get: tags: - - "artifact-controller" - summary: "Retrieve the list of artifact accounts configured in Clouddriver." - operationId: "allUsingGET" + - "image-controller" + summary: "Get image details" + operationId: "getImageDetailsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "imageId" + in: "path" + description: "imageId" + required: true + type: "string" + x-exportParamName: "ImageId" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" responses: "200": description: "OK" @@ -1815,39 +1538,36 @@ paths: "404": description: "Not Found" deprecated: false - /artifacts/{provider}/{packageName}/{version}: + /applications/{application}/clusters: get: tags: - - "artifact-controller" - summary: "Retrieve the specified artifact version for an artifact provider and\ - \ package name" - operationId: "getArtifactUsingGET" + - "cluster-controller" + summary: "Retrieve a list of cluster names for an application, grouped by account" + operationId: "getClustersUsingGET_2" produces: - - "*/*" + - "*/*" parameters: - - name: "packageName" - in: "path" - description: "packageName" - required: true - type: "string" - x-exportParamName: "PackageName" - - name: "provider" - in: "path" - description: "provider" - required: true - type: "string" - x-exportParamName: "Provider" - - name: "version" - in: "path" - description: "version" - required: true - type: "string" - x-exportParamName: "Version" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -1855,20 +1575,36 @@ paths: "404": description: "Not Found" deprecated: false - /auth/loggedOut: + /concourse/{buildMaster}/teams/{team}/pipelines: get: tags: - - "auth-controller" - summary: "Get logged out message" - operationId: "loggedOutUsingGET" + - "concourse-controller" + summary: "Retrieve the list of pipeline names for a given team available to\ + \ triggers" + operationId: "pipelinesUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" + - name: "team" + in: "path" + description: "team" + required: true + type: "string" + x-exportParamName: "Team" responses: "200": description: "OK" schema: - type: "string" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -1876,24 +1612,42 @@ paths: "404": description: "Not Found" deprecated: false - /auth/redirect: + /securityGroups/{account}: get: tags: - - "auth-controller" - summary: "Redirect to Deck" - operationId: "redirectUsingGET" + - "security-group-controller" + summary: "Retrieve a list of security groups for a given account, grouped by\ + \ region" + operationId: "allByAccountUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "to" - in: "query" - description: "to" - required: true - type: "string" - x-exportParamName: "To" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" responses: "200": description: "OK" + schema: + type: "object" "401": description: "Unauthorized" "403": @@ -1901,22 +1655,30 @@ paths: "404": description: "Not Found" deprecated: false - /auth/roles/sync: - post: + /v2/builds/{buildMaster}/jobs: + get: tags: - - "auth-controller" - summary: "Sync user roles" - operationId: "syncUsingPOST" - consumes: - - "application/json" + - "build-controller" + summary: "Get jobs for build master" + description: "Deprecated, use the v3 endpoint instead" + operationId: "getJobsForBuildMasterUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" responses: "200": description: "OK" - "201": - description: "Created" + schema: + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -1924,20 +1686,41 @@ paths: "404": description: "Not Found" deprecated: false - /auth/user: + /applications: get: tags: - - "auth-controller" - summary: "Get user" - operationId: "userUsingGET" + - "application-controller" + summary: "Retrieve a list of applications" + operationId: "getAllApplicationsUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "account" + in: "query" + description: "filters results to only include applications deployed in the\ + \ specified account" + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "Account" + x-optionalDataType: "String" + - name: "owner" + in: "query" + description: "filters results to only include applications owned by the specified\ + \ email" + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "Owner" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - $ref: "#/definitions/User" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -1945,28 +1728,33 @@ paths: "404": description: "Not Found" deprecated: false - /auth/user/serviceAccounts: + /pipelines/{id}/evaluateExpression: get: tags: - - "auth-controller" - summary: "Get service accounts" - operationId: "getServiceAccountsUsingGET" + - "pipeline-controller" + summary: "Evaluate a pipeline expression using the provided execution as context" + operationId: "evaluateExpressionForExecutionUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "query" - description: "application" - required: false - type: "string" - x-exportParamName: "Application" - x-optionalDataType: "String" + - name: "expression" + in: "query" + description: "expression" + required: true + type: "string" + x-exportParamName: "Expression" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -1976,32 +1764,39 @@ paths: "404": description: "Not Found" deprecated: false - /bakery/logs/{region}/{statusId}: - get: + post: tags: - - "bake-controller" - summary: "Retrieve the logs for a given bake" - operationId: "lookupLogsUsingGET" + - "pipeline-controller" + summary: "Evaluate a pipeline expression using the provided execution as context" + operationId: "evaluateExpressionForExecutionViaPOSTUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" - - name: "statusId" - in: "path" - description: "statusId" - required: true - type: "string" - x-exportParamName: "StatusId" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - in: "body" + name: "pipelineExpression" + description: "pipelineExpression" + required: true + schema: + type: "object" + x-exportParamName: "PipelineExpression" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -2009,49 +1804,66 @@ paths: "404": description: "Not Found" deprecated: false - /bakery/options: - get: + /pipelines/{application}/{pipelineName}: + delete: tags: - - "bake-controller" - summary: "Retrieve a list of available bakery base images, grouped by cloud\ - \ provider" - operationId: "bakeOptionsUsingGET_1" + - "pipeline-controller" + summary: "Delete a pipeline definition" + operationId: "deletePipelineUsingDELETE" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "pipelineName" + in: "path" + description: "pipelineName" + required: true + type: "string" + x-exportParamName: "PipelineName" responses: "200": description: "OK" - schema: - type: "object" + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - /bakery/options/{cloudProvider}: - get: + /managed/application/{application}/pin: + post: tags: - - "bake-controller" - summary: "Retrieve a list of available bakery base images for a given cloud\ - \ provider" - operationId: "bakeOptionsUsingGET" + - "managed-controller" + summary: "Create a pin for an artifact in an environment" + operationId: "createPinUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "cloudProvider" - in: "path" - description: "cloudProvider" - required: true - type: "string" - x-exportParamName: "CloudProvider" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - in: "body" + name: "pin" + description: "pin" + required: true + schema: + $ref: "#/definitions/EnvironmentArtifactPin" + x-exportParamName: "Pin" responses: "200": description: "OK" - schema: - type: "object" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -2059,34 +1871,21 @@ paths: "404": description: "Not Found" deprecated: false - /ci/builds: + /subnets/{cloudProvider}: get: tags: - - "ci-controller" - summary: "getBuilds" - operationId: "getBuildsUsingGET_1" + - "subnet-controller" + summary: "Retrieve a list of subnets for a given cloud provider" + operationId: "allByCloudProviderUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "completionStatus" - in: "query" - description: "completionStatus" - required: false - type: "string" - x-exportParamName: "CompletionStatus" - x-optionalDataType: "String" - - name: "projectKey" - in: "query" - description: "projectKey" - required: true - type: "string" - x-exportParamName: "ProjectKey" - - name: "repoSlug" - in: "query" - description: "repoSlug" - required: true - type: "string" - x-exportParamName: "RepoSlug" + - name: "cloudProvider" + in: "path" + description: "cloudProvider" + required: true + type: "string" + x-exportParamName: "CloudProvider" responses: "200": description: "OK" @@ -2102,36 +1901,22 @@ paths: "404": description: "Not Found" deprecated: false - /concourse/{buildMaster}/teams/{team}/pipelines: - get: + /auth/roles/sync: + post: tags: - - "concourse-controller" - summary: "Retrieve the list of pipeline names for a given team available to\ - \ triggers" - operationId: "pipelinesUsingGET" + - "auth-controller" + summary: "Sync user roles" + operationId: "syncUsingPOST" + consumes: + - "application/json" produces: - - "*/*" - parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" - - name: "team" - in: "path" - description: "team" - required: true - type: "string" - x-exportParamName: "Team" + - "*/*" + parameters: [] responses: "200": description: "OK" - schema: - type: "array" - items: - type: "object" - properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -2139,33 +1924,42 @@ paths: "404": description: "Not Found" deprecated: false - /concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/jobs: + /images/tags: get: tags: - - "concourse-controller" - summary: "Retrieve the list of job names for a given pipeline available to triggers" - operationId: "jobsUsingGET" + - "image-controller" + summary: "Find tags" + operationId: "findTagsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" - - name: "pipeline" - in: "path" - description: "pipeline" - required: true - type: "string" - x-exportParamName: "Pipeline" - - name: "team" - in: "path" - description: "team" - required: true - type: "string" - x-exportParamName: "Team" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "query" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "repository" + in: "query" + description: "repository" + required: true + type: "string" + x-exportParamName: "Repository" responses: "200": description: "OK" @@ -2181,40 +1975,34 @@ paths: "404": description: "Not Found" deprecated: false - /concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/resources: + /v2/builds/{buildMaster}/build/{number}/**: get: tags: - - "concourse-controller" - summary: "Retrieve the list of resource names for a given pipeline available\ - \ to the Concourse stage" - operationId: "resourcesUsingGET" + - "build-controller" + summary: "Get build for build master" + description: "Deprecated, use the v3 endpoint instead" + operationId: "getBuildUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" - - name: "pipeline" - in: "path" - description: "pipeline" - required: true - type: "string" - x-exportParamName: "Pipeline" - - name: "team" - in: "path" - description: "team" - required: true - type: "string" - x-exportParamName: "Team" + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" + - name: "number" + in: "path" + description: "number" + required: true + type: "string" + x-exportParamName: "Number" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -2224,105 +2012,45 @@ paths: "404": description: "Not Found" deprecated: false - /credentials: - get: + /plugins/publish/{pluginId}/{pluginVersion}: + post: tags: - - "credentials-controller" - summary: "Retrieve a list of accounts" - operationId: "getAccountsUsingGET" - produces: - - "*/*" - parameters: - - name: "accountNonExpired" - in: "query" - required: false - type: "boolean" - x-exportParamName: "AccountNonExpired" - x-optionalDataType: "Bool" - - name: "accountNonLocked" - in: "query" - required: false - type: "boolean" - x-exportParamName: "AccountNonLocked" - x-optionalDataType: "Bool" - - name: "allowedAccounts" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "AllowedAccounts" - - name: "authorities[0].authority" - in: "query" - required: false - type: "string" - x-exportParamName: "Authorities0Authority" - x-optionalDataType: "String" - - name: "credentialsNonExpired" - in: "query" - required: false - type: "boolean" - x-exportParamName: "CredentialsNonExpired" - x-optionalDataType: "Bool" - - name: "email" - in: "query" - required: false - type: "string" - x-exportParamName: "Email" - x-optionalDataType: "String" - - name: "enabled" - in: "query" - required: false - type: "boolean" - x-exportParamName: "Enabled" - x-optionalDataType: "Bool" - - name: "expand" - in: "query" - description: "expand" - required: false - type: "boolean" - x-exportParamName: "Expand" - x-optionalDataType: "Bool" - - name: "firstName" - in: "query" - required: false - type: "string" - x-exportParamName: "FirstName" - x-optionalDataType: "String" - - name: "lastName" - in: "query" - required: false - type: "string" - x-exportParamName: "LastName" - x-optionalDataType: "String" - - name: "password" - in: "query" - required: false - type: "string" - x-exportParamName: "Password" - x-optionalDataType: "String" - - name: "roles" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "Roles" - - name: "username" - in: "query" - required: false - type: "string" - x-exportParamName: "Username" - x-optionalDataType: "String" + - "plugin-publish-controller" + summary: "Publish a plugin binary and the plugin info metadata." + operationId: "publishPluginUsingPOST" + consumes: + - "multipart/form-data" + produces: + - "*/*" + parameters: + - name: "plugin" + in: "formData" + description: "plugin" + required: true + type: "file" + x-exportParamName: "Plugin" + - name: "pluginId" + in: "path" + description: "pluginId" + required: true + type: "string" + x-exportParamName: "PluginId" + - name: "pluginInfo" + in: "formData" + description: "pluginInfo" + required: true + x-exportParamName: "PluginInfo" + - name: "pluginVersion" + in: "path" + description: "pluginVersion" + required: true + type: "string" + x-exportParamName: "PluginVersion" responses: "200": description: "OK" - schema: - type: "array" - items: - $ref: "#/definitions/Account" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -2330,109 +2058,42 @@ paths: "404": description: "Not Found" deprecated: false - /credentials/{account}: + /pipelines/{id}/{stageId}/evaluateExpression: get: tags: - - "credentials-controller" - summary: "Retrieve an account's details" - operationId: "getAccountUsingGET" + - "pipeline-controller" + summary: "Evaluate a pipeline expression at a specific stage using the provided\ + \ execution as context" + operationId: "evaluateExpressionForExecutionAtStageUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "accountNonExpired" - in: "query" - required: false - type: "boolean" - x-exportParamName: "AccountNonExpired" - x-optionalDataType: "Bool" - - name: "accountNonLocked" - in: "query" - required: false - type: "boolean" - x-exportParamName: "AccountNonLocked" - x-optionalDataType: "Bool" - - name: "allowedAccounts" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "AllowedAccounts" - - name: "authorities[0].authority" - in: "query" - required: false - type: "string" - x-exportParamName: "Authorities0Authority" - x-optionalDataType: "String" - - name: "credentialsNonExpired" - in: "query" - required: false - type: "boolean" - x-exportParamName: "CredentialsNonExpired" - x-optionalDataType: "Bool" - - name: "email" - in: "query" - required: false - type: "string" - x-exportParamName: "Email" - x-optionalDataType: "String" - - name: "enabled" - in: "query" - required: false - type: "boolean" - x-exportParamName: "Enabled" - x-optionalDataType: "Bool" - - name: "firstName" - in: "query" - required: false - type: "string" - x-exportParamName: "FirstName" - x-optionalDataType: "String" - - name: "lastName" - in: "query" - required: false - type: "string" - x-exportParamName: "LastName" - x-optionalDataType: "String" - - name: "password" - in: "query" - required: false - type: "string" - x-exportParamName: "Password" - x-optionalDataType: "String" - - name: "roles" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "Roles" - - name: "username" - in: "query" - required: false - type: "string" - x-exportParamName: "Username" - x-optionalDataType: "String" + - name: "expression" + in: "query" + description: "expression" + required: true + type: "string" + x-exportParamName: "Expression" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "stageId" + in: "path" + description: "stageId" + required: true + type: "string" + x-exportParamName: "StageId" responses: "200": description: "OK" schema: - $ref: "#/definitions/AccountDetails" + type: "object" + additionalProperties: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -2440,74 +2101,27 @@ paths: "404": description: "Not Found" deprecated: false - /executions: + /applications/{application}/tasks/{id}: get: tags: - - "executions-controller" - summary: "Retrieves an ad-hoc collection of executions based on a number of\ - \ user-supplied parameters. Either executionIds or pipelineConfigIds must\ - \ be supplied in order to return any results. If both are supplied, an exception\ - \ will be thrown." - operationId: "getLatestExecutionsByConfigIdsUsingGET" + - "application-controller" + summary: "Get task" + operationId: "getTaskUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "executionIds" - in: "query" - description: "A comma-separated list of executions to retrieve. Either this\ - \ OR pipelineConfigIds must be supplied, but not both." - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "ExecutionIds" - x-optionalDataType: "String" - - name: "expand" - in: "query" - description: "Expands each execution object in the resulting list. If this\ - \ value is missing, it is defaulted to true." - required: false - type: "boolean" - default: true - allowEmptyValue: false - x-exportParamName: "Expand" - x-optionalDataType: "Bool" - - name: "limit" - in: "query" - description: "The number of executions to return per pipeline configuration.\ - \ Ignored if executionIds parameter is supplied. If this value is missing,\ - \ it is defaulted to 1." - required: false - type: "integer" - format: "int32" - allowEmptyValue: false - x-exportParamName: "Limit" - x-optionalDataType: "Int32" - - name: "pipelineConfigIds" - in: "query" - description: "A comma-separated list of pipeline configuration IDs to retrieve\ - \ recent executions for. Either this OR pipelineConfigIds must be supplied,\ - \ but not both." - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "PipelineConfigIds" - x-optionalDataType: "String" - - name: "statuses" - in: "query" - description: "A comma-separated list of execution statuses to filter by. Ignored\ - \ if executionIds parameter is supplied. If this value is missing, it is\ - \ defaulted to all statuses." - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "Statuses" - x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -2516,36 +2130,47 @@ paths: description: "Forbidden" "404": description: "Not Found" - deprecated: false - /firewalls: - get: + deprecated: true + /pipelines/{id}/stages/{stageId}/restart: + put: tags: - - "firewall-controller" - summary: "Retrieve a list of firewalls, grouped by account, cloud provider,\ - \ and region" - operationId: "allUsingGET_1" - produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "id" - in: "query" - description: "id" - required: false - type: "string" - x-exportParamName: "Id" - x-optionalDataType: "String" + - "pipeline-controller" + summary: "Restart a stage execution" + operationId: "restartStageUsingPUT" + consumes: + - "application/json" + produces: + - "*/*" + parameters: + - in: "body" + name: "context" + description: "context" + required: true + schema: + type: "object" + x-exportParamName: "Context" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "stageId" + in: "path" + description: "stageId" + required: true + type: "string" + x-exportParamName: "StageId" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -2553,41 +2178,20 @@ paths: "404": description: "Not Found" deprecated: false - /firewalls/{account}: + /auth/loggedOut: get: tags: - - "firewall-controller" - summary: "Retrieve a list of firewalls for a given account, grouped by region" - operationId: "allByAccountUsingGET" + - "auth-controller" + summary: "Get logged out message" + operationId: "loggedOutUsingGET" produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" + - "*/*" + parameters: [] responses: "200": description: "OK" schema: - type: "object" + type: "string" "401": description: "Unauthorized" "403": @@ -2595,42 +2199,49 @@ paths: "404": description: "Not Found" deprecated: false - /firewalls/{account}/{region}: + /loadBalancers/{account}/{region}/{name}: get: tags: - - "firewall-controller" - summary: "Retrieve a list of firewalls for a given account and region" - operationId: "allByAccountAndRegionUsingGET" + - "load-balancer-controller" + summary: "Retrieve a load balancer's details as a single element list for a\ + \ given account, region, cloud provider and load balancer name" + operationId: "getLoadBalancerDetailsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" responses: "200": description: "OK" @@ -2646,60 +2257,41 @@ paths: "404": description: "Not Found" deprecated: false - /firewalls/{account}/{region}/{name}: + /v3/builds/{buildMaster}/build/{number}: get: tags: - - "firewall-controller" - summary: "Retrieve a firewall's details" - operationId: "getSecurityGroupUsingGET" + - "build-controller" + summary: "Get build for build master" + operationId: "v3GetBuildUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" - - name: "vpcId" - in: "query" - description: "vpcId" - required: false - type: "string" - x-exportParamName: "VpcId" - x-optionalDataType: "String" + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" + - name: "job" + in: "query" + description: "job" + required: true + type: "string" + x-exportParamName: "Job" + - name: "number" + in: "path" + description: "number" + required: true + type: "string" + x-exportParamName: "Number" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -2707,36 +2299,28 @@ paths: "404": description: "Not Found" deprecated: false - /functions: + /applications/{application}/loadBalancers: get: tags: - - "amazon-infrastructure-controller" - summary: "Get functions" - operationId: "functionsUsingGET" + - "load-balancer-controller" + summary: "Retrieve a list of load balancers for a given application" + operationId: "getApplicationLoadBalancersUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "account" - in: "query" - description: "account" - required: false - type: "string" - x-exportParamName: "Account" - x-optionalDataType: "String" - - name: "functionName" - in: "query" - description: "functionName" - required: false - type: "string" - x-exportParamName: "FunctionName" - x-optionalDataType: "String" - - name: "region" - in: "query" - description: "region" - required: false - type: "string" - x-exportParamName: "Region" - x-optionalDataType: "String" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" @@ -2752,62 +2336,41 @@ paths: "404": description: "Not Found" deprecated: false - /images/find: - get: + /v2/pipelineTemplates/create: + post: tags: - - "image-controller" - summary: "Retrieve a list of images, filtered by cloud provider, region, and\ - \ account" - description: "The query parameter `q` filters the list of images by image name" - operationId: "findImagesUsingGET" - produces: - - "*/*" - parameters: - - name: "account" - in: "query" - description: "account" - required: false - type: "string" - x-exportParamName: "Account" - x-optionalDataType: "String" - - name: "count" - in: "query" - description: "count" - required: false - type: "integer" - format: "int32" - x-exportParamName: "Count" - x-optionalDataType: "Int32" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "q" - in: "query" - description: "q" - required: false - type: "string" - x-exportParamName: "Q" - x-optionalDataType: "String" - - name: "region" - in: "query" - description: "region" - required: false - type: "string" - x-exportParamName: "Region" - x-optionalDataType: "String" + - "v-2-pipeline-templates-controller" + summary: "(ALPHA) Create a pipeline template." + operationId: "createUsingPOST_1" + consumes: + - "application/json" + produces: + - "*/*" + parameters: + - in: "body" + name: "pipelineTemplate" + description: "pipelineTemplate" + required: true + schema: + type: "object" + x-exportParamName: "PipelineTemplate" + - name: "tag" + in: "query" + description: "tag" + required: false + type: "string" + x-exportParamName: "Tag" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -2815,50 +2378,59 @@ paths: "404": description: "Not Found" deprecated: false - /images/tags: + /applications/{applicationName}/serverGroups/{account}/{region}/{serverGroupName}: get: tags: - - "image-controller" - summary: "Find tags" - operationId: "findTagsUsingGET" + - "server-group-controller" + summary: "Retrieve a server group's details" + operationId: "getServerGroupDetailsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "query" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "repository" - in: "query" - description: "repository" - required: true - type: "string" - x-exportParamName: "Repository" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "applicationName" + in: "path" + description: "applicationName" + required: true + type: "string" + x-exportParamName: "ApplicationName" + - name: "includeDetails" + in: "query" + description: "includeDetails" + required: false + type: "string" + default: "true" + x-exportParamName: "IncludeDetails" + x-optionalDataType: "String" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" + - name: "serverGroupName" + in: "path" + description: "serverGroupName" + required: true + type: "string" + x-exportParamName: "ServerGroupName" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" "401": description: "Unauthorized" "403": @@ -2866,48 +2438,15 @@ paths: "404": description: "Not Found" deprecated: false - /images/{account}/{region}/{imageId}: + /pipelineConfigs: get: tags: - - "image-controller" - summary: "Get image details" - operationId: "getImageDetailsUsingGET" + - "pipeline-config-controller" + summary: "Get all pipeline configs." + operationId: "getAllPipelineConfigsUsingGET" produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "imageId" - in: "path" - description: "imageId" - required: true - type: "string" - x-exportParamName: "ImageId" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" + - "*/*" + parameters: [] responses: "200": description: "OK" @@ -2923,21 +2462,28 @@ paths: "404": description: "Not Found" deprecated: false - /instanceTypes: + /networks: get: tags: - - "amazon-infrastructure-controller" - summary: "Get instance types" - operationId: "instanceTypesUsingGET" + - "network-controller" + summary: "Retrieve a list of networks, grouped by cloud provider" + operationId: "allUsingGET_2" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -2947,45 +2493,43 @@ paths: "404": description: "Not Found" deprecated: false - /instances/{account}/{region}/{instanceId}: + /pipelineTemplates/resolve: get: tags: - - "instance-controller" - summary: "Retrieve an instance's details" - operationId: "getInstanceDetailsUsingGET" + - "pipeline-templates-controller" + summary: "Resolve a pipeline template." + operationId: "resolveTemplatesUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "instanceId" - in: "path" - description: "instanceId" - required: true - type: "string" - x-exportParamName: "InstanceId" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" + - name: "executionId" + in: "query" + description: "executionId" + required: false + type: "string" + x-exportParamName: "ExecutionId" + x-optionalDataType: "String" + - name: "pipelineConfigId" + in: "query" + description: "pipelineConfigId" + required: false + type: "string" + x-exportParamName: "PipelineConfigId" + x-optionalDataType: "String" + - name: "source" + in: "query" + description: "source" + required: true + type: "string" + x-exportParamName: "Source" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -2993,53 +2537,32 @@ paths: "404": description: "Not Found" deprecated: false - /instances/{account}/{region}/{instanceId}/console: - get: + /managed/delivery-configs: + post: tags: - - "instance-controller" - summary: "Retrieve an instance's console output" - operationId: "getConsoleOutputUsingGET" + - "managed-controller" + summary: "Create or update a delivery config manifest" + operationId: "upsertManifestUsingPOST" + consumes: + - "application/json" + - "application/x-yaml" produces: - - "*/*" + - "application/json" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "instanceId" - in: "path" - description: "instanceId" - required: true - type: "string" - x-exportParamName: "InstanceId" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" + - in: "body" + name: "manifest" + description: "manifest" + required: true + schema: + $ref: "#/definitions/DeliveryConfig" + x-exportParamName: "Manifest" responses: "200": description: "OK" schema: - type: "object" + $ref: "#/definitions/DeliveryConfig" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -3047,38 +2570,22 @@ paths: "404": description: "Not Found" deprecated: false - /loadBalancers: + /pubsub/subscriptions: get: tags: - - "load-balancer-controller" - summary: "Retrieve a list of load balancers for a given cloud provider" - operationId: "getAllUsingGET" + - "pubsub-subscription-controller" + summary: "Retrieve the list of pub/sub subscriptions configured in Echo." + operationId: "allUsingGET_4" produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" + - "*/*" + parameters: [] responses: "200": description: "OK" schema: type: "array" items: - type: "object" - properties: {} + $ref: "#/definitions/Map«string,string»" "401": description: "Unauthorized" "403": @@ -3086,57 +2593,40 @@ paths: "404": description: "Not Found" deprecated: false - /loadBalancers/{account}/{region}/{name}: + /managed/application/{application}/environment/{environment}/constraints: get: tags: - - "load-balancer-controller" - summary: "Retrieve a load balancer's details as a single element list for a\ - \ given account, region, cloud provider and load balancer name" - operationId: "getLoadBalancerDetailsUsingGET" + - "managed-controller" + summary: "List up-to {limit} current constraint states for an environment" + operationId: "getConstraintStateUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "environment" + in: "path" + description: "environment" + required: true + type: "string" + x-exportParamName: "Environment" + - name: "limit" + in: "query" + description: "limit" + required: false + type: "string" + default: "10" + x-exportParamName: "Limit" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + $ref: "#/definitions/ConstraintState" "401": description: "Unauthorized" "403": @@ -3144,36 +2634,45 @@ paths: "404": description: "Not Found" deprecated: false - /loadBalancers/{name}: - get: + /v2/pipelineTemplates/update/{id}: + post: tags: - - "load-balancer-controller" - summary: "Retrieve a load balancer for a given cloud provider" - operationId: "getLoadBalancerUsingGET" + - "v-2-pipeline-templates-controller" + summary: "(ALPHA) Update a pipeline template." + operationId: "updateUsingPOST_1" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - in: "body" + name: "pipelineTemplate" + description: "pipelineTemplate" + required: true + schema: + type: "object" + x-exportParamName: "PipelineTemplate" + - name: "skipPlanDependents" + in: "query" + description: "skipPlanDependents" + required: false + type: "boolean" + default: false + x-exportParamName: "SkipPlanDependents" + x-optionalDataType: "Bool" + - name: "tag" + in: "query" + description: "tag" + required: false + type: "string" + x-exportParamName: "Tag" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -3182,6 +2681,8 @@ paths: additionalProperties: type: "object" properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -3189,20 +2690,54 @@ paths: "404": description: "Not Found" deprecated: false - /managed/api-docs: + /applications/{application}/clusters/{account}/{clusterName}/{type}/loadBalancers: get: tags: - - "managed-controller" - summary: "getApiDocs" - operationId: "getApiDocsUsingGET" + - "cluster-controller" + summary: "Retrieve a cluster's loadbalancers" + operationId: "getClusterLoadBalancersUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "applicationName" + in: "path" + description: "applicationName" + required: true + type: "string" + x-exportParamName: "ApplicationName" + - name: "clusterName" + in: "path" + description: "clusterName" + required: true + type: "string" + x-exportParamName: "ClusterName" + - name: "type" + in: "path" + description: "type" + required: true + type: "string" + x-exportParamName: "Type_" responses: "200": description: "OK" schema: - type: "object" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -3210,43 +2745,72 @@ paths: "404": description: "Not Found" deprecated: false - /managed/application/{application}: - get: + /v2/canaries/canary/{canaryConfigId}: + post: tags: - - "managed-controller" - summary: "Get managed details about an application" - operationId: "getApplicationDetailsUsingGET" + - "v-2-canary-controller" + summary: "Start a canary execution" + operationId: "initiateCanaryUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "entities" - in: "query" - description: "entities" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "Entities" - - name: "includeDetails" - in: "query" - description: "includeDetails" - required: false - type: "boolean" - default: false - x-exportParamName: "IncludeDetails" - x-optionalDataType: "Bool" + - name: "application" + in: "query" + description: "application" + required: false + type: "string" + x-exportParamName: "Application" + x-optionalDataType: "String" + - name: "canaryConfigId" + in: "path" + description: "canaryConfigId" + required: true + type: "string" + x-exportParamName: "CanaryConfigId" + - name: "configurationAccountName" + in: "query" + description: "configurationAccountName" + required: false + type: "string" + x-exportParamName: "ConfigurationAccountName" + x-optionalDataType: "String" + - in: "body" + name: "executionRequest" + description: "executionRequest" + required: true + schema: + type: "object" + x-exportParamName: "ExecutionRequest" + - name: "metricsAccountName" + in: "query" + description: "metricsAccountName" + required: false + type: "string" + x-exportParamName: "MetricsAccountName" + x-optionalDataType: "String" + - name: "parentPipelineExecutionId" + in: "query" + description: "parentPipelineExecutionId" + required: false + type: "string" + x-exportParamName: "ParentPipelineExecutionId" + x-optionalDataType: "String" + - name: "storageAccountName" + in: "query" + description: "storageAccountName" + required: false + type: "string" + x-exportParamName: "StorageAccountName" + x-optionalDataType: "String" responses: "200": description: "OK" schema: type: "object" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -3254,21 +2818,81 @@ paths: "404": description: "Not Found" deprecated: false - /managed/application/{application}/config: + /v2/canaries/canary: + post: + tags: + - "v-2-canary-controller" + summary: "Start a canary execution with the supplied canary config" + operationId: "initiateCanaryWithConfigUsingPOST" + consumes: + - "application/json" + produces: + - "*/*" + parameters: + - in: "body" + name: "adhocExecutionRequest" + description: "adhocExecutionRequest" + required: true + schema: + type: "object" + x-exportParamName: "AdhocExecutionRequest" + - name: "application" + in: "query" + description: "application" + required: false + type: "string" + x-exportParamName: "Application" + x-optionalDataType: "String" + - name: "metricsAccountName" + in: "query" + description: "metricsAccountName" + required: false + type: "string" + x-exportParamName: "MetricsAccountName" + x-optionalDataType: "String" + - name: "parentPipelineExecutionId" + in: "query" + description: "parentPipelineExecutionId" + required: false + type: "string" + x-exportParamName: "ParentPipelineExecutionId" + x-optionalDataType: "String" + - name: "storageAccountName" + in: "query" + description: "storageAccountName" + required: false + type: "string" + x-exportParamName: "StorageAccountName" + x-optionalDataType: "String" + responses: + "200": + description: "OK" + schema: + type: "object" + "201": + description: "Created" + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + "404": + description: "Not Found" + deprecated: false + /managed/application/{application}/config: get: tags: - - "managed-controller" + - "managed-controller" summary: "Get the delivery config associated with an application" operationId: "getConfigByUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" @@ -3283,18 +2907,18 @@ paths: deprecated: false delete: tags: - - "managed-controller" + - "managed-controller" summary: "Delete a delivery config manifest for an application" operationId: "deleteManifestByAppUsingDELETE" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" @@ -3307,41 +2931,62 @@ paths: "403": description: "Forbidden" deprecated: false - /managed/application/{application}/environment/{environment}/constraint: - post: + /images/find: + get: tags: - - "managed-controller" - summary: "Update the status of an environment constraint" - operationId: "updateConstraintStatusUsingPOST" - consumes: - - "application/json" + - "image-controller" + summary: "Retrieve a list of images, filtered by cloud provider, region, and\ + \ account" + description: "The query parameter `q` filters the list of images by image name" + operationId: "findImagesUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "environment" - in: "path" - description: "environment" - required: true - type: "string" - x-exportParamName: "Environment" - - in: "body" - name: "status" - description: "status" - required: true - schema: - $ref: "#/definitions/ConstraintStatus" - x-exportParamName: "Status" + - name: "account" + in: "query" + description: "account" + required: false + type: "string" + x-exportParamName: "Account" + x-optionalDataType: "String" + - name: "count" + in: "query" + description: "count" + required: false + type: "integer" + format: "int32" + x-exportParamName: "Count" + x-optionalDataType: "Int32" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "q" + in: "query" + description: "q" + required: false + type: "string" + x-exportParamName: "Q" + x-optionalDataType: "String" + - name: "region" + in: "query" + description: "region" + required: false + type: "string" + x-exportParamName: "Region" + x-optionalDataType: "String" responses: "200": description: "OK" - "201": - description: "Created" + schema: + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -3349,40 +2994,26 @@ paths: "404": description: "Not Found" deprecated: false - /managed/application/{application}/environment/{environment}/constraints: + /managed/delivery-configs/{name}: get: tags: - - "managed-controller" - summary: "List up-to {limit} current constraint states for an environment" - operationId: "getConstraintStateUsingGET" + - "managed-controller" + summary: "Get a delivery config manifest" + operationId: "getManifestUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "environment" - in: "path" - description: "environment" - required: true - type: "string" - x-exportParamName: "Environment" - - name: "limit" - in: "query" - description: "limit" - required: false - type: "string" - default: "10" - x-exportParamName: "Limit" - x-optionalDataType: "String" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" responses: "200": description: "OK" schema: - $ref: "#/definitions/ConstraintState" + $ref: "#/definitions/DeliveryConfig" "401": description: "Unauthorized" "403": @@ -3390,88 +3021,118 @@ paths: "404": description: "Not Found" deprecated: false - /managed/application/{application}/pause: - post: + delete: tags: - - "managed-controller" - summary: "Pause management of an entire application" - operationId: "pauseApplicationUsingPOST" - consumes: - - "application/json" + - "managed-controller" + summary: "Delete a delivery config manifest" + operationId: "deleteManifestUsingDELETE" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" responses: "200": description: "OK" - "201": - description: "Created" + schema: + $ref: "#/definitions/DeliveryConfig" + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - delete: + /applications/{applicationName}/jobs/{account}/{region}/{name}: + get: tags: - - "managed-controller" - summary: "Resume management of an entire application" - operationId: "resumeApplicationUsingDELETE" + - "job-controller" + summary: "Get job" + operationId: "getJobUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "applicationName" + in: "path" + description: "applicationName" + required: true + type: "string" + x-exportParamName: "ApplicationName" + - name: "expand" + in: "query" + description: "expand" + required: false + type: "string" + default: "false" + x-exportParamName: "Expand" + x-optionalDataType: "String" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" responses: "200": description: "OK" - "204": - description: "No Content" + schema: + type: "object" + additionalProperties: + type: "object" + properties: {} "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /managed/application/{application}/pin: - post: + /projects/{id}: + get: tags: - - "managed-controller" - summary: "Create a pin for an artifact in an environment" - operationId: "createPinUsingPOST" - consumes: - - "application/json" + - "project-controller" + summary: "Get a project" + operationId: "getUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - in: "body" - name: "pin" - description: "pin" - required: true - schema: - $ref: "#/definitions/EnvironmentArtifactPin" - x-exportParamName: "Pin" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" - "201": - description: "Created" + schema: + type: "object" + additionalProperties: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -3479,75 +3140,144 @@ paths: "404": description: "Not Found" deprecated: false - /managed/application/{application}/pin/{targetEnvironment}: - delete: + /v2/canaries/{application}/executions: + get: tags: - - "managed-controller" - summary: "Unpin one or more artifact(s) in an environment. If the `reference`\ - \ parameter is specified, only the corresponding artifact will be unpinned.\ - \ If it's omitted, all pinned artifacts in the environment will be unpinned." - operationId: "deletePinUsingDELETE" + - "v-2-canary-controller" + summary: "Retrieve a list of an application's canary results" + operationId: "getCanaryResultsByApplicationUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "reference" - in: "query" - description: "reference" - required: false - type: "string" - x-exportParamName: "Reference" - x-optionalDataType: "String" - - name: "targetEnvironment" - in: "path" - description: "targetEnvironment" - required: true - type: "string" - x-exportParamName: "TargetEnvironment" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "limit" + in: "query" + description: "limit" + required: true + type: "integer" + format: "int32" + x-exportParamName: "Limit" + - name: "page" + in: "query" + description: "page" + required: false + type: "integer" + default: 1 + format: "int32" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "statuses" + in: "query" + description: "Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED,\ + \ TERMINAL" + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "Statuses" + x-optionalDataType: "String" + - name: "storageAccountName" + in: "query" + description: "storageAccountName" + required: false + type: "string" + x-exportParamName: "StorageAccountName" + x-optionalDataType: "String" responses: "200": description: "OK" - "204": - description: "No Content" + schema: + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /managed/application/{application}/veto: - post: + /applications/{application}/clusters/{account}/{clusterName}/{cloudProvider}/{scope}/serverGroups/target/{target}: + get: tags: - - "managed-controller" - summary: "Veto an artifact version in an environment" - operationId: "vetoUsingPOST" - consumes: - - "application/json" + - "cluster-controller" + summary: "Retrieve a server group that matches a target coordinate (e.g., newest,\ + \ ancestor) relative to a cluster" + description: "`scope` is either a zone or a region" + operationId: "getTargetServerGroupUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - in: "body" - name: "veto" - description: "veto" - required: true - schema: - $ref: "#/definitions/EnvironmentArtifactVeto" - x-exportParamName: "Veto" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "cloudProvider" + in: "path" + description: "cloudProvider" + required: true + type: "string" + x-exportParamName: "CloudProvider" + - name: "clusterName" + in: "path" + description: "clusterName" + required: true + type: "string" + x-exportParamName: "ClusterName" + - name: "onlyEnabled" + in: "query" + description: "onlyEnabled" + required: false + type: "boolean" + x-exportParamName: "OnlyEnabled" + x-optionalDataType: "Bool" + - name: "scope" + in: "path" + description: "scope" + required: true + type: "string" + x-exportParamName: "Scope" + - name: "target" + in: "path" + description: "target" + required: true + type: "string" + x-exportParamName: "Target" + - name: "validateOldest" + in: "query" + description: "validateOldest" + required: false + type: "boolean" + x-exportParamName: "ValidateOldest" + x-optionalDataType: "Bool" responses: "200": description: "OK" - "201": - description: "Created" + schema: + type: "object" + additionalProperties: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -3555,75 +3285,75 @@ paths: "404": description: "Not Found" deprecated: false - /managed/application/{application}/veto/{targetEnvironment}/{reference}/{version}: - delete: + /projects/{id}/clusters: + get: tags: - - "managed-controller" - summary: "Veto an artifact version in an environment" - operationId: "deleteVetoUsingDELETE" + - "project-controller" + summary: "Get a project's clusters" + operationId: "getClustersUsingGET_3" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "reference" - in: "path" - description: "reference" - required: true - type: "string" - x-exportParamName: "Reference" - - name: "targetEnvironment" - in: "path" - description: "targetEnvironment" - required: true - type: "string" - x-exportParamName: "TargetEnvironment" - - name: "version" - in: "path" - description: "version" - required: true - type: "string" - x-exportParamName: "Version" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" - "204": - description: "No Content" + schema: + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /managed/delivery-configs: - post: + /pipelineConfigs/{pipelineConfigId}/history: + get: tags: - - "managed-controller" - summary: "Create or update a delivery config manifest" - operationId: "upsertManifestUsingPOST" - consumes: - - "application/json" - - "application/x-yaml" + - "pipeline-config-controller" + summary: "Get pipeline config history." + operationId: "getPipelineConfigHistoryUsingGET" produces: - - "application/json" + - "*/*" parameters: - - in: "body" - name: "manifest" - description: "manifest" - required: true - schema: - $ref: "#/definitions/DeliveryConfig" - x-exportParamName: "Manifest" + - name: "limit" + in: "query" + description: "limit" + required: false + type: "integer" + default: 20 + format: "int32" + x-exportParamName: "Limit" + x-optionalDataType: "Int32" + - name: "pipelineConfigId" + in: "path" + description: "pipelineConfigId" + required: true + type: "string" + x-exportParamName: "PipelineConfigId" responses: "200": description: "OK" schema: - $ref: "#/definitions/DeliveryConfig" - "201": - description: "Created" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -3631,32 +3361,27 @@ paths: "404": description: "Not Found" deprecated: false - /managed/delivery-configs/diff: - post: + /bakery/options/{cloudProvider}: + get: tags: - - "managed-controller" - summary: "Ad-hoc validate and diff a config manifest" - operationId: "diffManifestUsingPOST" - consumes: - - "application/json" - - "application/x-yaml" + - "bake-controller" + summary: "Retrieve a list of available bakery base images for a given cloud\ + \ provider" + operationId: "bakeOptionsUsingGET" produces: - - "application/json" + - "*/*" parameters: - - in: "body" - name: "manifest" - description: "manifest" - required: true - schema: - $ref: "#/definitions/DeliveryConfig" - x-exportParamName: "Manifest" + - name: "cloudProvider" + in: "path" + description: "cloudProvider" + required: true + type: "string" + x-exportParamName: "CloudProvider" responses: "200": description: "OK" schema: type: "object" - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -3664,33 +3389,45 @@ paths: "404": description: "Not Found" deprecated: false - /managed/delivery-configs/validate: - post: + /projects/{id}/pipelines: + get: tags: - - "managed-controller" - summary: "Validate a delivery config manifest" - operationId: "validateManifestUsingPOST" - consumes: - - "application/json" - - "application/x-yaml" + - "project-controller" + summary: "Get all pipelines for project" + operationId: "allPipelinesForProjectUsingGET" produces: - - "application/json" - - "application/x-yaml" + - "*/*" parameters: - - in: "body" - name: "manifest" - description: "manifest" - required: true - schema: - $ref: "#/definitions/DeliveryConfig" - x-exportParamName: "Manifest" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "limit" + in: "query" + description: "limit" + required: false + type: "integer" + default: 5 + format: "int32" + x-exportParamName: "Limit" + x-optionalDataType: "Int32" + - name: "statuses" + in: "query" + description: "statuses" + required: false + type: "string" + x-exportParamName: "Statuses" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" - "201": - description: "Created" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -3698,26 +3435,21 @@ paths: "404": description: "Not Found" deprecated: false - /managed/delivery-configs/{name}: + /managed/delivery-configs/schema: get: tags: - - "managed-controller" - summary: "Get a delivery config manifest" - operationId: "getManifestUsingGET" + - "managed-controller" + summary: "Ad-hoc validate and diff a config manifest" + operationId: "schemaUsingGET" produces: - - "*/*" - parameters: - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" + - "application/json" + - "application/x-yaml" + parameters: [] responses: "200": description: "OK" schema: - $ref: "#/definitions/DeliveryConfig" + type: "object" "401": description: "Unauthorized" "403": @@ -3725,47 +3457,74 @@ paths: "404": description: "Not Found" deprecated: false - delete: + /managed/resources/export/{cloudProvider}/{account}/{type}/{name}: + get: tags: - - "managed-controller" - summary: "Delete a delivery config manifest" - operationId: "deleteManifestUsingDELETE" + - "managed-controller" + summary: "Generate a keel resource definition for a deployed cloud resource" + operationId: "exportResourceUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "cloudProvider" + in: "path" + description: "cloudProvider" + required: true + type: "string" + x-exportParamName: "CloudProvider" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" + - name: "serviceAccount" + in: "query" + description: "serviceAccount" + required: true + type: "string" + x-exportParamName: "ServiceAccount" + - name: "type" + in: "path" + description: "type" + required: true + type: "string" + x-exportParamName: "Type_" responses: "200": description: "OK" schema: - $ref: "#/definitions/DeliveryConfig" - "204": - description: "No Content" + $ref: "#/definitions/Resource" "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /managed/delivery-configs/{name}/artifacts: + /v2/builds: get: tags: - - "managed-controller" - summary: "Get the status of each version of each artifact in each environment" - operationId: "getManifestArtifactsUsingGET" + - "build-controller" + summary: "Get build masters" + description: "Deprecated, use the v3 endpoint instead" + operationId: "getBuildMastersUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" + - name: "type" + in: "query" + description: "type" + required: false + type: "string" + x-exportParamName: "Type_" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -3781,72 +3540,53 @@ paths: "404": description: "Not Found" deprecated: false - /managed/resources/diff: - post: + /vpcs: + get: tags: - - "managed-controller" - summary: "Ad-hoc validate and diff a resource" - operationId: "diffResourceUsingPOST" - consumes: - - "application/json" - - "application/x-yaml" + - "amazon-infrastructure-controller" + summary: "Get VPCs" + operationId: "vpcsUsingGET" produces: - - "application/json" - parameters: - - in: "body" - name: "resource" - description: "resource" - required: true - schema: - $ref: "#/definitions/Resource" - x-exportParamName: "Resource" + - "*/*" + parameters: [] responses: "200": description: "OK" schema: - type: "object" - "201": - description: "Created" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: false - /managed/resources/export/artifact/{cloudProvider}/{account}/{clusterName}: + deprecated: true + /v2/pipelineTemplates/{id}/dependents: get: tags: - - "managed-controller" - summary: "Generates an artifact definition based on the artifact used in a running\ - \ cluster" - operationId: "exportResourceUsingGET" + - "v-2-pipeline-templates-controller" + summary: "(ALPHA) List all pipelines that implement a pipeline template" + operationId: "listPipelineTemplateDependentsUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "cloudProvider" - in: "path" - description: "cloudProvider" - required: true - type: "string" - x-exportParamName: "CloudProvider" - - name: "clusterName" - in: "path" - description: "clusterName" - required: true - type: "string" - x-exportParamName: "ClusterName" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: - type: "object" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -3854,50 +3594,29 @@ paths: "404": description: "Not Found" deprecated: false - /managed/resources/export/{cloudProvider}/{account}/{type}/{name}: + /v2/pipelineTemplates/versions: get: tags: - - "managed-controller" - summary: "Generate a keel resource definition for a deployed cloud resource" - operationId: "exportResourceUsingGET_1" + - "v-2-pipeline-templates-controller" + summary: "List pipeline templates with versions" + operationId: "listVersionsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "cloudProvider" - in: "path" - description: "cloudProvider" - required: true - type: "string" - x-exportParamName: "CloudProvider" - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" - - name: "serviceAccount" - in: "query" - description: "serviceAccount" - required: true - type: "string" - x-exportParamName: "ServiceAccount" - - name: "type" - in: "path" - description: "type" - required: true + - name: "scopes" + in: "query" + description: "scopes" + required: false + type: "array" + items: type: "string" - x-exportParamName: "Type_" + collectionFormat: "multi" + x-exportParamName: "Scopes" responses: "200": description: "OK" schema: - $ref: "#/definitions/Resource" + type: "object" "401": description: "Unauthorized" "403": @@ -3905,26 +3624,35 @@ paths: "404": description: "Not Found" deprecated: false - /managed/resources/{resourceId}: + /securityGroups: get: tags: - - "managed-controller" - summary: "Get a resource" - operationId: "getResourceUsingGET" + - "security-group-controller" + summary: "Retrieve a list of security groups, grouped by account, cloud provider,\ + \ and region" + operationId: "allUsingGET_5" produces: - - "*/*" + - "*/*" parameters: - - name: "resourceId" - in: "path" - description: "resourceId" - required: true - type: "string" - x-exportParamName: "ResourceId" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "id" + in: "query" + description: "id" + required: false + type: "string" + x-exportParamName: "Id" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - $ref: "#/definitions/Resource" + type: "object" "401": description: "Unauthorized" "403": @@ -3932,28 +3660,31 @@ paths: "404": description: "Not Found" deprecated: false - /managed/resources/{resourceId}/pause: - post: + /plugins/installed: + get: tags: - - "managed-controller" - summary: "Pause management of a resource" - operationId: "pauseResourceUsingPOST" - consumes: - - "application/json" + - "plugins-installed-controller" + summary: "Get all installed Spinnaker plugins" + operationId: "getInstalledPluginsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "resourceId" - in: "path" - description: "resourceId" - required: true - type: "string" - x-exportParamName: "ResourceId" + - name: "service" + in: "query" + description: "service" + required: false + type: "string" + x-exportParamName: "Service" + x-optionalDataType: "String" responses: "200": description: "OK" - "201": - description: "Created" + schema: + type: "object" + additionalProperties: + type: "array" + items: + $ref: "#/definitions/SpinnakerPluginDescriptor" "401": description: "Unauthorized" "403": @@ -3961,50 +3692,53 @@ paths: "404": description: "Not Found" deprecated: false - delete: + /version: + get: tags: - - "managed-controller" - summary: "Resume management of a resource" - operationId: "resumeResourceUsingDELETE" + - "version-controller" + summary: "Fetch Gate's current version" + operationId: "getVersionUsingGET" produces: - - "*/*" - parameters: - - name: "resourceId" - in: "path" - description: "resourceId" - required: true - type: "string" - x-exportParamName: "ResourceId" + - "*/*" + parameters: [] responses: "200": description: "OK" - "204": - description: "No Content" + schema: + $ref: "#/definitions/Version" "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /managed/resources/{resourceId}/status: - get: + /managed/resources/diff: + post: tags: - - "managed-controller" - summary: "Get status of a resource" - operationId: "getResourceStatusUsingGET" + - "managed-controller" + summary: "Ad-hoc validate and diff a resource" + operationId: "diffResourceUsingPOST" + consumes: + - "application/json" + - "application/x-yaml" produces: - - "*/*" + - "application/json" parameters: - - name: "resourceId" - in: "path" - description: "resourceId" - required: true - type: "string" - x-exportParamName: "ResourceId" + - in: "body" + name: "resource" + description: "resource" + required: true + schema: + $ref: "#/definitions/Resource" + x-exportParamName: "Resource" responses: "200": description: "OK" schema: type: "object" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -4012,22 +3746,34 @@ paths: "404": description: "Not Found" deprecated: false - /networks: + /applications/{application}/tasks/{id}/details/{taskDetailsId}: get: tags: - - "network-controller" - summary: "Retrieve a list of networks, grouped by cloud provider" - operationId: "allUsingGET_2" + - "application-controller" + summary: "Get task details" + operationId: "getTaskDetailsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "taskDetailsId" + in: "path" + description: "taskDetailsId" + required: true + type: "string" + x-exportParamName: "TaskDetailsId" responses: "200": description: "OK" @@ -4042,35 +3788,34 @@ paths: description: "Forbidden" "404": description: "Not Found" - deprecated: false - /networks/{cloudProvider}: + deprecated: true + /applications/{application}/strategyConfigs/{strategyName}: get: tags: - - "network-controller" - summary: "Retrieve a list of networks for a given cloud provider" - operationId: "allByCloudProviderUsingGET" + - "application-controller" + summary: "Retrieve a pipeline strategy configuration" + operationId: "getStrategyConfigUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "cloudProvider" - in: "path" - description: "cloudProvider" - required: true - type: "string" - x-exportParamName: "CloudProvider" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "strategyName" + in: "path" + description: "strategyName" + required: true + type: "string" + x-exportParamName: "StrategyName" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -4080,15 +3825,68 @@ paths: "404": description: "Not Found" deprecated: false - /pipelineConfigs: + /search: get: tags: - - "pipeline-config-controller" - summary: "Get all pipeline configs." - operationId: "getAllPipelineConfigsUsingGET" + - "search-controller" + summary: "Search infrastructure" + operationId: "searchUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "allowShortQuery" + in: "query" + description: "allowShortQuery" + required: false + type: "boolean" + default: false + x-exportParamName: "AllowShortQuery" + x-optionalDataType: "Bool" + - name: "page" + in: "query" + description: "page" + required: false + type: "integer" + default: 1 + format: "int32" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "pageSize" + in: "query" + description: "pageSize" + required: false + type: "integer" + default: 10000 + format: "int32" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "platform" + in: "query" + description: "platform" + required: false + type: "string" + x-exportParamName: "Platform" + x-optionalDataType: "String" + - name: "q" + in: "query" + description: "q" + required: false + type: "string" + x-exportParamName: "Q" + x-optionalDataType: "String" + - name: "type" + in: "query" + description: "type" + required: true + type: "string" + x-exportParamName: "Type_" responses: "200": description: "OK" @@ -4104,26 +3902,109 @@ paths: "404": description: "Not Found" deprecated: false - /pipelineConfigs/{pipelineConfigId}/convertToTemplate: + /credentials/{account}: get: tags: - - "pipeline-config-controller" - summary: "Convert a pipeline config to a pipeline template." - operationId: "convertPipelineConfigToPipelineTemplateUsingGET" + - "credentials-controller" + summary: "Retrieve an account's details" + operationId: "getAccountUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "pipelineConfigId" - in: "path" - description: "pipelineConfigId" - required: true + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "accountNonExpired" + in: "query" + required: false + type: "boolean" + x-exportParamName: "AccountNonExpired" + x-optionalDataType: "Bool" + - name: "accountNonLocked" + in: "query" + required: false + type: "boolean" + x-exportParamName: "AccountNonLocked" + x-optionalDataType: "Bool" + - name: "allowedAccounts" + in: "query" + required: false + type: "array" + items: + type: "string" + collectionFormat: "multi" + x-exportParamName: "AllowedAccounts" + - name: "authorities[0].authority" + in: "query" + required: false + type: "string" + x-exportParamName: "Authorities0Authority" + x-optionalDataType: "String" + - name: "credentialsNonExpired" + in: "query" + required: false + type: "boolean" + x-exportParamName: "CredentialsNonExpired" + x-optionalDataType: "Bool" + - name: "email" + in: "query" + required: false + type: "string" + x-exportParamName: "Email" + x-optionalDataType: "String" + - name: "enabled" + in: "query" + required: false + type: "boolean" + x-exportParamName: "Enabled" + x-optionalDataType: "Bool" + - name: "firstName" + in: "query" + required: false + type: "string" + x-exportParamName: "FirstName" + x-optionalDataType: "String" + - name: "lastName" + in: "query" + required: false + type: "string" + x-exportParamName: "LastName" + x-optionalDataType: "String" + - name: "password" + in: "query" + required: false + type: "string" + x-exportParamName: "Password" + x-optionalDataType: "String" + - name: "roles" + in: "query" + required: false + type: "array" + items: type: "string" - x-exportParamName: "PipelineConfigId" + collectionFormat: "multi" + x-exportParamName: "Roles" + - name: "username" + in: "query" + required: false + type: "string" + x-exportParamName: "Username" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "string" + $ref: "#/definitions/AccountDetails" "401": description: "Unauthorized" "403": @@ -4131,38 +4012,60 @@ paths: "404": description: "Not Found" deprecated: false - /pipelineConfigs/{pipelineConfigId}/history: + /securityGroups/{account}/{region}/{name}: get: tags: - - "pipeline-config-controller" - summary: "Get pipeline config history." - operationId: "getPipelineConfigHistoryUsingGET" + - "security-group-controller" + summary: "Retrieve a security group's details" + operationId: "getSecurityGroupUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "limit" - in: "query" - description: "limit" - required: false - type: "integer" - default: 20 - format: "int32" - x-exportParamName: "Limit" - x-optionalDataType: "Int32" - - name: "pipelineConfigId" - in: "path" - description: "pipelineConfigId" - required: true - type: "string" - x-exportParamName: "PipelineConfigId" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" + - name: "vpcId" + in: "query" + description: "vpcId" + required: false + type: "string" + x-exportParamName: "VpcId" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" "401": description: "Unauthorized" "403": @@ -4170,66 +4073,33 @@ paths: "404": description: "Not Found" deprecated: false - /pipelineTemplates: - get: + /managed/delivery-configs/validate: + post: tags: - - "pipeline-templates-controller" - summary: "List pipeline templates." - operationId: "listUsingGET" - produces: - - "*/*" + - "managed-controller" + summary: "Validate a delivery config manifest" + operationId: "validateManifestUsingPOST" + consumes: + - "application/json" + - "application/x-yaml" + produces: + - "application/json" + - "application/x-yaml" parameters: - - name: "scopes" - in: "query" - description: "scopes" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "Scopes" + - in: "body" + name: "manifest" + description: "manifest" + required: true + schema: + $ref: "#/definitions/DeliveryConfig" + x-exportParamName: "Manifest" responses: "200": description: "OK" - schema: - type: "array" - items: - type: "object" - properties: {} - "401": - description: "Unauthorized" - "403": - description: "Forbidden" - "404": - description: "Not Found" - deprecated: false - post: - tags: - - "pipeline-templates-controller" - summary: "Create a pipeline template." - operationId: "createUsingPOST" - consumes: - - "application/json" - produces: - - "*/*" - parameters: - - in: "body" - name: "pipelineTemplate" - description: "pipelineTemplate" - required: true schema: type: "object" - x-exportParamName: "PipelineTemplate" - responses: "201": description: "Created" - "202": - description: "Accepted" - schema: - type: "object" - additionalProperties: - type: "object" - properties: {} "401": description: "Unauthorized" "403": @@ -4237,41 +4107,36 @@ paths: "404": description: "Not Found" deprecated: false - /pipelineTemplates/resolve: + /applications/{application}/history: get: tags: - - "pipeline-templates-controller" - summary: "Resolve a pipeline template." - operationId: "resolveTemplatesUsingGET" + - "application-controller" + summary: "Retrieve a list of an application's configuration revision history" + operationId: "getApplicationHistoryUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "executionId" - in: "query" - description: "executionId" - required: false - type: "string" - x-exportParamName: "ExecutionId" - x-optionalDataType: "String" - - name: "pipelineConfigId" - in: "query" - description: "pipelineConfigId" - required: false - type: "string" - x-exportParamName: "PipelineConfigId" - x-optionalDataType: "String" - - name: "source" - in: "query" - description: "source" - required: true - type: "string" - x-exportParamName: "Source" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "limit" + in: "query" + description: "limit" + required: false + type: "integer" + default: 20 + format: "int32" + x-exportParamName: "Limit" + x-optionalDataType: "Int32" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -4281,27 +4146,27 @@ paths: "404": description: "Not Found" deprecated: false - /pipelineTemplates/{id}: + /applications/{application}/functions: get: tags: - - "pipeline-templates-controller" - summary: "Get a pipeline template." - operationId: "getUsingGET" + - "amazon-infrastructure-controller" + summary: "Get application functions" + operationId: "applicationFunctionsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -4311,47 +4176,26 @@ paths: "404": description: "Not Found" deprecated: false - post: + /managed/resources/{resourceId}.yml: + get: tags: - - "pipeline-templates-controller" - summary: "Update a pipeline template." - operationId: "updateUsingPOST" - consumes: - - "application/json" + - "managed-controller" + summary: "Get a resource" + operationId: "getResourceYamlUsingGET" produces: - - "*/*" + - "application/x-yaml" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - in: "body" - name: "pipelineTemplate" - description: "pipelineTemplate" - required: true - schema: - type: "object" - x-exportParamName: "PipelineTemplate" - - name: "skipPlanDependents" - in: "query" - description: "skipPlanDependents" - required: false - type: "boolean" - default: false - x-exportParamName: "SkipPlanDependents" - x-optionalDataType: "Bool" + - name: "resourceId" + in: "path" + description: "resourceId" + required: true + type: "string" + x-exportParamName: "ResourceId" responses: - "201": - description: "Created" - "202": - description: "Accepted" + "200": + description: "OK" schema: - type: "object" - additionalProperties: - type: "object" - properties: {} + $ref: "#/definitions/Resource" "401": description: "Unauthorized" "403": @@ -4359,72 +4203,100 @@ paths: "404": description: "Not Found" deprecated: false - delete: + /v2/canaries/canary/{canaryConfigId}/{canaryExecutionId}: + get: tags: - - "pipeline-templates-controller" - summary: "Delete a pipeline template." - operationId: "deleteUsingDELETE" + - "v-2-canary-controller" + summary: "(DEPRECATED) Retrieve a canary result" + operationId: "getCanaryResultUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "query" - description: "application" - required: false - type: "string" - x-exportParamName: "Application" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "canaryConfigId" + in: "path" + description: "canaryConfigId" + required: true + type: "string" + x-exportParamName: "CanaryConfigId" + - name: "canaryExecutionId" + in: "path" + description: "canaryExecutionId" + required: true + type: "string" + x-exportParamName: "CanaryExecutionId" + - name: "storageAccountName" + in: "query" + description: "storageAccountName" + required: false + type: "string" + x-exportParamName: "StorageAccountName" + x-optionalDataType: "String" responses: - "202": - description: "Accepted" + "200": + description: "OK" schema: type: "object" - additionalProperties: - type: "object" - properties: {} - "204": - description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - deprecated: false - /pipelineTemplates/{id}/dependents: + "404": + description: "Not Found" + deprecated: true + /firewalls/{account}/{region}/{name}: get: tags: - - "pipeline-templates-controller" - summary: "List all pipelines that implement a pipeline template" - operationId: "listPipelineTemplateDependentsUsingGET" + - "firewall-controller" + summary: "Retrieve a firewall's details" + operationId: "getSecurityGroupUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "recursive" - in: "query" - description: "recursive" - required: false - type: "boolean" - x-exportParamName: "Recursive" - x-optionalDataType: "Bool" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" + - name: "vpcId" + in: "query" + description: "vpcId" + required: false + type: "string" + x-exportParamName: "VpcId" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" "401": description: "Unauthorized" "403": @@ -4432,24 +4304,23 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines: + /managed/application/{application}/pause: post: tags: - - "pipeline-controller" - summary: "Save a pipeline definition" - operationId: "savePipelineUsingPOST" + - "managed-controller" + summary: "Pause management of an entire application" + operationId: "pauseApplicationUsingPOST" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "pipeline" - description: "pipeline" - required: true - schema: - type: "object" - x-exportParamName: "Pipeline" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" @@ -4462,61 +4333,75 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/move: - post: + delete: tags: - - "pipeline-controller" - summary: "Rename a pipeline definition" - operationId: "renamePipelineUsingPOST" - consumes: - - "application/json" + - "managed-controller" + summary: "Resume management of an entire application" + operationId: "resumeApplicationUsingDELETE" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "renameCommand" - description: "renameCommand" - required: true - schema: - type: "object" - x-exportParamName: "RenameCommand" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" - "201": - description: "Created" + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - /pipelines/start: - post: + /applications/{application}/pipelines: + get: tags: - - "pipeline-controller" - summary: "Initiate a pipeline execution" - operationId: "startUsingPOST" - consumes: - - "application/json" + - "application-controller" + summary: "Retrieve a list of an application's pipeline executions" + operationId: "getPipelinesUsingGET" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "map" - description: "map" - required: true - schema: - type: "object" - x-exportParamName: "Map_" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "expand" + in: "query" + description: "expand" + required: false + type: "boolean" + x-exportParamName: "Expand" + x-optionalDataType: "Bool" + - name: "limit" + in: "query" + description: "limit" + required: false + type: "integer" + format: "int32" + x-exportParamName: "Limit" + x-optionalDataType: "Int32" + - name: "statuses" + in: "query" + description: "statuses" + required: false + type: "string" + x-exportParamName: "Statuses" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - $ref: "#/definitions/ResponseEntity" - "201": - description: "Created" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -4524,43 +4409,48 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/v2/{application}/{pipelineNameOrId}: - post: + /applications/{application}/clusters/{account}/{clusterName}/serverGroups: + get: tags: - - "pipeline-controller" - summary: "Trigger a pipeline execution" - operationId: "invokePipelineConfigViaEchoUsingPOST" - consumes: - - "application/json" + - "cluster-controller" + summary: "Retrieve a list of server groups for a cluster" + operationId: "getServerGroupsUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "pipelineNameOrId" - in: "path" - description: "pipelineNameOrId" - required: true - type: "string" - x-exportParamName: "PipelineNameOrId" - - in: "body" - name: "trigger" - description: "trigger" - required: false - schema: - type: "object" - x-exportParamName: "Trigger" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "clusterName" + in: "path" + description: "clusterName" + required: true + type: "string" + x-exportParamName: "ClusterName" responses: "200": description: "OK" schema: - type: "object" - "201": - description: "Created" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -4568,96 +4458,99 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/{application}/{pipelineNameOrId}: - post: + /applications/{application}/pipelines/{id}/cancel: + put: tags: - - "pipeline-controller" - summary: "Trigger a pipeline execution" - operationId: "invokePipelineConfigUsingPOST_1" + - "application-controller" + summary: "Cancel pipeline" + operationId: "cancelPipelineUsingPUT" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "pipelineNameOrId" - in: "path" - description: "pipelineNameOrId" - required: true - type: "string" - x-exportParamName: "PipelineNameOrId" - - in: "body" - name: "trigger" - description: "trigger" - required: false + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "reason" + in: "query" + description: "reason" + required: false + type: "string" + x-exportParamName: "Reason" + x-optionalDataType: "String" + responses: + "200": + description: "OK" schema: type: "object" - x-exportParamName: "Trigger" - responses: + additionalProperties: + type: "object" + properties: {} "201": description: "Created" - "202": - description: "Accepted" - schema: - type: "object" "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: false - /pipelines/{application}/{pipelineName}: - delete: + deprecated: true + /webhooks/preconfigured: + get: tags: - - "pipeline-controller" - summary: "Delete a pipeline definition" - operationId: "deletePipelineUsingDELETE" + - "webhook-controller" + summary: "Retrieve a list of preconfigured webhooks in Orca" + operationId: "preconfiguredWebhooksUsingGET" produces: - - "*/*" - parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "pipelineName" - in: "path" - description: "pipelineName" - required: true - type: "string" - x-exportParamName: "PipelineName" + - "*/*" + parameters: [] responses: "200": description: "OK" - "204": - description: "No Content" + schema: + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /pipelines/{id}: + /artifacts/{provider}/{packageName}/{version}: get: tags: - - "pipeline-controller" - summary: "Retrieve a pipeline execution" - operationId: "getPipelineUsingGET" + - "artifact-controller" + summary: "Retrieve the specified artifact version for an artifact provider and\ + \ package name" + operationId: "getArtifactUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "packageName" + in: "path" + description: "packageName" + required: true + type: "string" + x-exportParamName: "PackageName" + - name: "provider" + in: "path" + description: "provider" + required: true + type: "string" + x-exportParamName: "Provider" + - name: "version" + in: "path" + description: "version" + required: true + type: "string" + x-exportParamName: "Version" responses: "200": description: "OK" @@ -4670,37 +4563,39 @@ paths: "404": description: "Not Found" deprecated: false - put: + /managed/application/{application}/environment/{environment}/constraint: + post: tags: - - "pipeline-controller" - summary: "Update a pipeline definition" - operationId: "updatePipelineUsingPUT" + - "managed-controller" + summary: "Update the status of an environment constraint" + operationId: "updateConstraintStatusUsingPOST" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - in: "body" - name: "pipeline" - description: "pipeline" - required: true - schema: - type: "object" - x-exportParamName: "Pipeline" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "environment" + in: "path" + description: "environment" + required: true + type: "string" + x-exportParamName: "Environment" + - in: "body" + name: "status" + description: "status" + required: true + schema: + $ref: "#/definitions/ConstraintStatus" + x-exportParamName: "Status" responses: "200": description: "OK" - schema: - type: "object" - additionalProperties: - type: "object" - properties: {} "201": description: "Created" "401": @@ -4710,72 +4605,30 @@ paths: "404": description: "Not Found" deprecated: false - delete: + /v3/builds: + get: tags: - - "pipeline-controller" - summary: "Delete a pipeline execution" - operationId: "deletePipelineUsingDELETE_1" + - "build-controller" + summary: "Get build masters" + operationId: "v3GetBuildMastersUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "type" + in: "query" + description: "type" + required: false + type: "string" + x-exportParamName: "Type_" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} - "204": - description: "No Content" - "401": - description: "Unauthorized" - "403": - description: "Forbidden" - deprecated: false - /pipelines/{id}/cancel: - put: - tags: - - "pipeline-controller" - summary: "Cancel a pipeline execution" - operationId: "cancelPipelineUsingPUT_1" - consumes: - - "application/json" - produces: - - "*/*" - parameters: - - name: "force" - in: "query" - description: "force" - required: false - type: "boolean" - default: false - x-exportParamName: "Force" - x-optionalDataType: "Bool" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "reason" - in: "query" - description: "reason" - required: false - type: "string" - x-exportParamName: "Reason" - x-optionalDataType: "String" - responses: - "200": - description: "OK" - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -4783,27 +4636,21 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/{id}/evaluateExpression: + /tasks/{id}: get: tags: - - "pipeline-controller" - summary: "Evaluate a pipeline expression using the provided execution as context" - operationId: "evaluateExpressionForExecutionUsingGET" + - "task-controller" + summary: "Get task" + operationId: "getTaskUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "expression" - in: "query" - description: "expression" - required: true - type: "string" - x-exportParamName: "Expression" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" @@ -4819,29 +4666,20 @@ paths: "404": description: "Not Found" deprecated: false - post: + delete: tags: - - "pipeline-controller" - summary: "Evaluate a pipeline expression using the provided execution as context" - operationId: "evaluateExpressionForExecutionViaPOSTUsingPOST" - consumes: - - "application/json" + - "task-controller" + summary: "Delete task" + operationId: "deleteTaskUsingDELETE" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - in: "body" - name: "pipelineExpression" - description: "pipelineExpression" - required: true - schema: - type: "object" - x-exportParamName: "PipelineExpression" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" @@ -4850,63 +4688,34 @@ paths: additionalProperties: type: "object" properties: {} - "201": - description: "Created" + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - /pipelines/{id}/evaluateVariables: - post: + /v3/builds/{buildMaster}/job: + get: tags: - - "pipeline-controller" - summary: "Evaluate variables same as Evaluate Variables stage using the provided\ - \ execution as context" - operationId: "evaluateVariablesUsingPOST" - consumes: - - "application/json" + - "build-controller" + summary: "Get job config" + operationId: "v3GetJobConfigUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "executionId" - in: "query" - description: "Execution id to run against" - required: true - type: "string" - allowEmptyValue: false - x-exportParamName: "ExecutionId" - - in: "body" - name: "expressions" - description: "List of variables/expressions to evaluate" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/Map«string,string»" - x-examples: - application/json: "[{\"key\":\"a\",\"value\":\"1\"},{\"key\":\"b\",\"value\"\ - :\"2\"},{\"key\":\"sum\",\"value\":\"${a+b}\"}]" - x-exportParamName: "Expressions" - - name: "requisiteStageRefIds" - in: "query" - description: "Comma separated list of requisite stage IDs for the evaluation\ - \ stage" - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "RequisiteStageRefIds" - x-optionalDataType: "String" - - name: "spelVersion" - in: "query" - description: "Version of SpEL evaluation logic to use (v3 or v4)" - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "SpelVersion" - x-optionalDataType: "String" + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" + - name: "job" + in: "query" + description: "job" + required: true + type: "string" + x-exportParamName: "Job" responses: "200": description: "OK" @@ -4915,8 +4724,6 @@ paths: additionalProperties: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -4924,28 +4731,30 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/{id}/pause: - put: + /auth/user/serviceAccounts: + get: tags: - - "pipeline-controller" - summary: "Pause a pipeline execution" - operationId: "pausePipelineUsingPUT" - consumes: - - "application/json" + - "auth-controller" + summary: "Get service accounts" + operationId: "getServiceAccountsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "application" + in: "query" + description: "application" + required: false + type: "string" + x-exportParamName: "Application" + x-optionalDataType: "String" responses: "200": description: "OK" - "201": - description: "Created" + schema: + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -4953,33 +4762,29 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/{id}/resume: - put: + /applications/{application}/strategyConfigs: + get: tags: - - "pipeline-controller" - summary: "Resume a pipeline execution" - operationId: "resumePipelineUsingPUT" - consumes: - - "application/json" + - "application-controller" + summary: "Retrieve a list of an application's pipeline strategy configurations" + operationId: "getStrategyConfigsForApplicationUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -4987,91 +4792,63 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/{id}/stages/{stageId}: - patch: + /managed/delivery-configs/{name}.yml: + get: tags: - - "pipeline-controller" - summary: "Update a stage execution" - operationId: "updateStageUsingPATCH" - consumes: - - "application/json" + - "managed-controller" + summary: "Get a delivery config manifest" + operationId: "getManifestYamlUsingGET" produces: - - "*/*" + - "application/x-yaml" parameters: - - in: "body" - name: "context" - description: "context" - required: true - schema: - type: "object" - x-exportParamName: "Context" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "stageId" - in: "path" - description: "stageId" - required: true - type: "string" - x-exportParamName: "StageId" + - name: "name" + in: "path" + description: "name" + required: true + type: "string" + x-exportParamName: "Name" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: - type: "object" - properties: {} - "204": - description: "No Content" + $ref: "#/definitions/DeliveryConfig" "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /pipelines/{id}/stages/{stageId}/restart: - put: + /networks/{cloudProvider}: + get: tags: - - "pipeline-controller" - summary: "Restart a stage execution" - operationId: "restartStageUsingPUT" - consumes: - - "application/json" + - "network-controller" + summary: "Retrieve a list of networks for a given cloud provider" + operationId: "allByCloudProviderUsingGET" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "context" - description: "context" - required: true - schema: - type: "object" - x-exportParamName: "Context" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "stageId" - in: "path" - description: "stageId" - required: true - type: "string" - x-exportParamName: "StageId" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "cloudProvider" + in: "path" + description: "cloudProvider" + required: true + type: "string" + x-exportParamName: "CloudProvider" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -5079,42 +4856,45 @@ paths: "404": description: "Not Found" deprecated: false - /pipelines/{id}/{stageId}/evaluateExpression: + /instances/{account}/{region}/{instanceId}: get: tags: - - "pipeline-controller" - summary: "Evaluate a pipeline expression at a specific stage using the provided\ - \ execution as context" - operationId: "evaluateExpressionForExecutionAtStageUsingGET" + - "instance-controller" + summary: "Retrieve an instance's details" + operationId: "getInstanceDetailsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "expression" - in: "query" - description: "expression" - required: true - type: "string" - x-exportParamName: "Expression" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "stageId" - in: "path" - description: "stageId" - required: true - type: "string" - x-exportParamName: "StageId" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "instanceId" + in: "path" + description: "instanceId" + required: true + type: "string" + x-exportParamName: "InstanceId" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" responses: "200": description: "OK" schema: type: "object" - additionalProperties: - type: "object" - properties: {} "401": description: "Unauthorized" "403": @@ -5122,22 +4902,32 @@ paths: "404": description: "Not Found" deprecated: false - /plugins/deck/plugin-manifest.json: + /bakery/logs/{region}/{statusId}: get: tags: - - "deck-plugins-controller" - summary: "Retrieve a plugin manifest" - operationId: "getPluginManifestUsingGET" + - "bake-controller" + summary: "Retrieve the logs for a given bake" + operationId: "lookupLogsUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" + - name: "statusId" + in: "path" + description: "statusId" + required: true + type: "string" + x-exportParamName: "StatusId" responses: "200": description: "OK" schema: - type: "array" - items: - $ref: "#/definitions/DeckPluginVersion" + type: "object" "401": description: "Unauthorized" "403": @@ -5145,38 +4935,34 @@ paths: "404": description: "Not Found" deprecated: false - /plugins/deck/{pluginId}/{pluginVersion}/{asset}: - get: + /tasks: + post: tags: - - "deck-plugins-controller" - summary: "Retrieve a single plugin asset by version" - operationId: "getPluginAssetUsingGET" + - "task-controller" + summary: "Create task" + operationId: "taskUsingPOST_1" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "asset" - in: "path" - description: "asset" - required: true - type: "string" - x-exportParamName: "Asset" - - name: "pluginId" - in: "path" - description: "pluginId" - required: true - type: "string" - x-exportParamName: "PluginId" - - name: "pluginVersion" - in: "path" - description: "pluginVersion" - required: true - type: "string" - x-exportParamName: "PluginVersion" + - in: "body" + name: "map" + description: "map" + required: true + schema: + type: "object" + x-exportParamName: "Map_" responses: "200": description: "OK" schema: - type: "string" + type: "object" + additionalProperties: + type: "object" + properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -5184,29 +4970,35 @@ paths: "404": description: "Not Found" deprecated: false - /plugins/info: + /v3/builds/{buildMaster}/builds: get: tags: - - "plugin-info-controller" - summary: "Get all plugin info objects" - operationId: "getAllPluginInfoUsingGET" + - "build-controller" + summary: "Get builds for build master" + operationId: "v3GetBuildsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "service" - in: "query" - description: "service" - required: false - type: "string" - x-exportParamName: "Service" - x-optionalDataType: "String" + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" + - name: "job" + in: "query" + description: "job" + required: true + type: "string" + x-exportParamName: "Job" responses: "200": description: "OK" schema: type: "array" items: - $ref: "#/definitions/Map«object,object»" + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -5214,30 +5006,31 @@ paths: "404": description: "Not Found" deprecated: false + /actions/pipelines/reorder: post: tags: - - "plugin-info-controller" - summary: "Persist plugin metadata information" - operationId: "persistPluginInfoUsingPOST" + - "reorder-pipelines-controller" + summary: "Re-order pipelines" + operationId: "reorderPipelinesUsingPOST" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "pluginInfo" - description: "pluginInfo" - required: true - schema: - $ref: "#/definitions/SpinnakerPluginInfo" - x-exportParamName: "PluginInfo" + - in: "body" + name: "reorderPipelinesCommand" + description: "reorderPipelinesCommand" + required: true + schema: + $ref: "#/definitions/ReorderPipelinesCommand" + x-exportParamName: "ReorderPipelinesCommand" responses: - "201": - description: "Created" - "202": - description: "Accepted" + "200": + description: "OK" schema: type: "object" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -5245,28 +5038,24 @@ paths: "404": description: "Not Found" deprecated: false - put: + /managed/resources/{resourceId}/status: + get: tags: - - "plugin-info-controller" - summary: "Persist plugin metadata information" - operationId: "persistPluginInfoUsingPUT" - consumes: - - "application/json" + - "managed-controller" + summary: "Get status of a resource" + operationId: "getResourceStatusUsingGET" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "pluginInfo" - description: "pluginInfo" - required: true - schema: - $ref: "#/definitions/SpinnakerPluginInfo" - x-exportParamName: "PluginInfo" + - name: "resourceId" + in: "path" + description: "resourceId" + required: true + type: "string" + x-exportParamName: "ResourceId" responses: - "201": - description: "Created" - "202": - description: "Accepted" + "200": + description: "OK" schema: type: "object" "401": @@ -5276,104 +5065,53 @@ paths: "404": description: "Not Found" deprecated: false - /plugins/info/{id}: - delete: - tags: - - "plugin-info-controller" - summary: "Delete plugin info with the provided Id" - operationId: "deletePluginInfoUsingDELETE" - produces: - - "*/*" - parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - responses: - "202": - description: "Accepted" - schema: - type: "object" - "204": - description: "No Content" - "401": - description: "Unauthorized" - "403": - description: "Forbidden" - deprecated: false - /plugins/installed: + /instances/{account}/{region}/{instanceId}/console: get: tags: - - "plugins-installed-controller" - summary: "Get all installed Spinnaker plugins" - operationId: "getInstalledPluginsUsingGET" + - "instance-controller" + summary: "Retrieve an instance's console output" + operationId: "getConsoleOutputUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "service" - in: "query" - description: "service" - required: false - type: "string" - x-exportParamName: "Service" - x-optionalDataType: "String" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "instanceId" + in: "path" + description: "instanceId" + required: true + type: "string" + x-exportParamName: "InstanceId" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" + - name: "region" + in: "path" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" responses: "200": description: "OK" schema: type: "object" - additionalProperties: - type: "array" - items: - $ref: "#/definitions/SpinnakerPluginDescriptor" - "401": - description: "Unauthorized" - "403": - description: "Forbidden" - "404": - description: "Not Found" - deprecated: false - /plugins/publish/{pluginId}/{pluginVersion}: - post: - tags: - - "plugin-publish-controller" - summary: "Publish a plugin binary and the plugin info metadata." - operationId: "publishPluginUsingPOST" - consumes: - - "multipart/form-data" - produces: - - "*/*" - parameters: - - name: "plugin" - in: "formData" - description: "plugin" - required: true - type: "file" - x-exportParamName: "Plugin" - - name: "pluginId" - in: "path" - description: "pluginId" - required: true - type: "string" - x-exportParamName: "PluginId" - - name: "pluginInfo" - in: "formData" - description: "pluginInfo" - required: true - x-exportParamName: "PluginInfo" - - name: "pluginVersion" - in: "path" - description: "pluginVersion" - required: true - type: "string" - x-exportParamName: "PluginVersion" - responses: - "200": - description: "OK" - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -5381,15 +5119,21 @@ paths: "404": description: "Not Found" deprecated: false - /projects: + /v3/builds/{buildMaster}/jobs: get: tags: - - "project-controller" - summary: "Get all projects" - operationId: "allUsingGET_3" + - "build-controller" + summary: "Get jobs for build master" + operationId: "v3GetJobsForBuildMasterUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" responses: "200": description: "OK" @@ -5405,29 +5149,28 @@ paths: "404": description: "Not Found" deprecated: false - /projects/{id}: - get: + /pipelines/{id}/pause: + put: tags: - - "project-controller" - summary: "Get a project" - operationId: "getUsingGET_1" + - "pipeline-controller" + summary: "Pause a pipeline execution" + operationId: "pausePipelineUsingPUT" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" - schema: - type: "object" - additionalProperties: - type: "object" - properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -5435,28 +5178,50 @@ paths: "404": description: "Not Found" deprecated: false - /projects/{id}/clusters: + /applications/{applicationName}/serverGroups: get: tags: - - "project-controller" - summary: "Get a project's clusters" - operationId: "getClustersUsingGET_3" + - "server-group-controller" + summary: "Retrieve a list of server groups for a given application" + operationId: "getServerGroupsForApplicationUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "applicationName" + in: "path" + description: "applicationName" + required: true + type: "string" + x-exportParamName: "ApplicationName" + - name: "cloudProvider" + in: "query" + description: "cloudProvider" + required: false + type: "string" + x-exportParamName: "CloudProvider" + x-optionalDataType: "String" + - name: "clusters" + in: "query" + description: "clusters" + required: false + type: "string" + x-exportParamName: "Clusters" + x-optionalDataType: "String" + - name: "expand" + in: "query" + description: "expand" + required: false + type: "string" + default: "false" + x-exportParamName: "Expand" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -5472,37 +5237,15 @@ paths: "404": description: "Not Found" deprecated: false - /projects/{id}/pipelines: + /v2/canaries/judges: get: tags: - - "project-controller" - summary: "Get all pipelines for project" - operationId: "allPipelinesForProjectUsingGET" + - "v-2-canary-controller" + summary: "Retrieve a list of all configured canary judges" + operationId: "listJudgesUsingGET" produces: - - "*/*" - parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "limit" - in: "query" - description: "limit" - required: false - type: "integer" - default: 5 - format: "int32" - x-exportParamName: "Limit" - x-optionalDataType: "Int32" - - name: "statuses" - in: "query" - description: "statuses" - required: false - type: "string" - x-exportParamName: "Statuses" - x-optionalDataType: "String" + - "*/*" + parameters: [] responses: "200": description: "OK" @@ -5518,14 +5261,14 @@ paths: "404": description: "Not Found" deprecated: false - /pubsub/subscriptions: + /plugins/deck/plugin-manifest.json: get: tags: - - "pubsub-subscription-controller" - summary: "Retrieve the list of pub/sub subscriptions configured in Echo." - operationId: "allUsingGET_4" + - "deck-plugins-controller" + summary: "Retrieve a plugin manifest" + operationId: "getPluginManifestUsingGET" produces: - - "*/*" + - "*/*" parameters: [] responses: "200": @@ -5533,7 +5276,7 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Map«string,string»" + $ref: "#/definitions/DeckPluginVersion" "401": description: "Unauthorized" "403": @@ -5541,74 +5284,40 @@ paths: "404": description: "Not Found" deprecated: false - /search: + /tasks/{id}/details/{taskDetailsId}: get: tags: - - "search-controller" - summary: "Search infrastructure" - operationId: "searchUsingGET" + - "task-controller" + summary: "Get task details" + operationId: "getTaskDetailsUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "allowShortQuery" - in: "query" - description: "allowShortQuery" - required: false - type: "boolean" - default: false - x-exportParamName: "AllowShortQuery" - x-optionalDataType: "Bool" - - name: "page" - in: "query" - description: "page" - required: false - type: "integer" - default: 1 - format: "int32" - x-exportParamName: "Page" - x-optionalDataType: "Int32" - - name: "pageSize" - in: "query" - description: "pageSize" - required: false - type: "integer" - default: 10000 - format: "int32" - x-exportParamName: "PageSize" - x-optionalDataType: "Int32" - - name: "platform" - in: "query" - description: "platform" - required: false - type: "string" - x-exportParamName: "Platform" - x-optionalDataType: "String" - - name: "q" - in: "query" - description: "q" - required: false - type: "string" - x-exportParamName: "Q" - x-optionalDataType: "String" - - name: "type" - in: "query" - description: "type" - required: true - type: "string" - x-exportParamName: "Type_" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "taskDetailsId" + in: "path" + description: "taskDetailsId" + required: true + type: "string" + x-exportParamName: "TaskDetailsId" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -5618,30 +5327,28 @@ paths: "404": description: "Not Found" deprecated: false - /securityGroups: + /v2/canaries/canary/{canaryExecutionId}: get: tags: - - "security-group-controller" - summary: "Retrieve a list of security groups, grouped by account, cloud provider,\ - \ and region" - operationId: "allUsingGET_5" + - "v-2-canary-controller" + summary: "Retrieve a canary result" + operationId: "getCanaryResultUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "id" - in: "query" - description: "id" - required: false - type: "string" - x-exportParamName: "Id" - x-optionalDataType: "String" + - name: "canaryExecutionId" + in: "path" + description: "canaryExecutionId" + required: true + type: "string" + x-exportParamName: "CanaryExecutionId" + - name: "storageAccountName" + in: "query" + description: "storageAccountName" + required: false + type: "string" + x-exportParamName: "StorageAccountName" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -5654,37 +5361,16 @@ paths: "404": description: "Not Found" deprecated: false - /securityGroups/{account}: + /bakery/options: get: tags: - - "security-group-controller" - summary: "Retrieve a list of security groups for a given account, grouped by\ - \ region" - operationId: "allByAccountUsingGET_1" + - "bake-controller" + summary: "Retrieve a list of available bakery base images, grouped by cloud\ + \ provider" + operationId: "bakeOptionsUsingGET_1" produces: - - "*/*" - parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" + - "*/*" + parameters: [] responses: "200": description: "OK" @@ -5697,76 +5383,30 @@ paths: "404": description: "Not Found" deprecated: false - /securityGroups/{account}/{region}/{name}: + /loadBalancers: get: tags: - - "security-group-controller" - summary: "Retrieve a security group's details" - operationId: "getSecurityGroupUsingGET_1" + - "load-balancer-controller" + summary: "Retrieve a list of load balancers for a given cloud provider" + operationId: "getAllUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "account" - in: "path" - description: "account" - required: true - type: "string" - x-exportParamName: "Account" - - name: "name" - in: "path" - description: "name" - required: true - type: "string" - x-exportParamName: "Name" - - name: "provider" - in: "query" - description: "provider" - required: false - type: "string" - default: "aws" - x-exportParamName: "Provider" - x-optionalDataType: "String" - - name: "region" - in: "path" - description: "region" - required: true - type: "string" - x-exportParamName: "Region" - - name: "vpcId" - in: "query" - description: "vpcId" - required: false - type: "string" - x-exportParamName: "VpcId" - x-optionalDataType: "String" - responses: - "200": - description: "OK" - schema: - type: "object" - "401": - description: "Unauthorized" - "403": - description: "Forbidden" - "404": - description: "Not Found" - deprecated: false - /subnets: - get: - tags: - - "amazon-infrastructure-controller" - summary: "Get subnets" - operationId: "subnetsUsingGET" - produces: - - "*/*" - parameters: [] + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -5782,29 +5422,32 @@ paths: "404": description: "Not Found" deprecated: false - /subnets/{cloudProvider}: - get: + /managed/delivery-configs/diff: + post: tags: - - "subnet-controller" - summary: "Retrieve a list of subnets for a given cloud provider" - operationId: "allByCloudProviderUsingGET_1" + - "managed-controller" + summary: "Ad-hoc validate and diff a config manifest" + operationId: "diffManifestUsingPOST" + consumes: + - "application/json" + - "application/x-yaml" produces: - - "*/*" + - "application/json" parameters: - - name: "cloudProvider" - in: "path" - description: "cloudProvider" - required: true - type: "string" - x-exportParamName: "CloudProvider" + - in: "body" + name: "manifest" + description: "manifest" + required: true + schema: + $ref: "#/definitions/DeliveryConfig" + x-exportParamName: "Manifest" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -5812,24 +5455,40 @@ paths: "404": description: "Not Found" deprecated: false - /tasks: - post: + /applications/{application}/clusters/{account}/{clusterName}: + get: tags: - - "task-controller" - summary: "Create task" - operationId: "taskUsingPOST_1" - consumes: - - "application/json" + - "cluster-controller" + summary: "Retrieve a cluster's details" + operationId: "getClustersUsingGET" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "map" - description: "map" - required: true - schema: - type: "object" - x-exportParamName: "Map_" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "clusterName" + in: "path" + description: "clusterName" + required: true + type: "string" + x-exportParamName: "ClusterName" responses: "200": description: "OK" @@ -5838,8 +5497,6 @@ paths: additionalProperties: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -5847,26 +5504,54 @@ paths: "404": description: "Not Found" deprecated: false - /tasks/cancel: - put: + /pipelines/{id}/evaluateVariables: + post: tags: - - "task-controller" - summary: "Cancel tasks" - operationId: "cancelTasksUsingPUT" + - "pipeline-controller" + summary: "Evaluate variables same as Evaluate Variables stage using the provided\ + \ execution as context" + operationId: "evaluateVariablesUsingPOST" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "ids" - in: "query" - description: "ids" - required: true + - name: "executionId" + in: "query" + description: "Execution id to run against" + required: true + type: "string" + allowEmptyValue: false + x-exportParamName: "ExecutionId" + - in: "body" + name: "expressions" + description: "List of variables/expressions to evaluate" + required: true + schema: type: "array" items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "Ids" + $ref: "#/definitions/Map«string,string»" + x-examples: + application/json: "[{\"key\":\"a\",\"value\":\"1\"},{\"key\":\"b\",\"value\"\ + :\"2\"},{\"key\":\"sum\",\"value\":\"${a+b}\"}]" + x-exportParamName: "Expressions" + - name: "requisiteStageRefIds" + in: "query" + description: "Comma separated list of requisite stage IDs for the evaluation\ + \ stage" + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "RequisiteStageRefIds" + x-optionalDataType: "String" + - name: "spelVersion" + in: "query" + description: "Version of SpEL evaluation logic to use (v3 or v4)" + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "SpelVersion" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -5884,27 +5569,51 @@ paths: "404": description: "Not Found" deprecated: false - /tasks/{id}: + /applications/{application}/serverGroups/{account}/{serverGroupName}/events: get: tags: - - "task-controller" - summary: "Get task" - operationId: "getTaskUsingGET_1" + - "ecs-server-group-events-controller" + summary: "Retrieves a list of events for a server group" + operationId: "getEventsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "provider" + in: "query" + description: "provider" + required: true + type: "string" + x-exportParamName: "Provider" + - name: "region" + in: "query" + description: "region" + required: true + type: "string" + x-exportParamName: "Region" + - name: "serverGroupName" + in: "path" + description: "serverGroupName" + required: true + type: "string" + x-exportParamName: "ServerGroupName" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -5914,62 +5623,88 @@ paths: "404": description: "Not Found" deprecated: false - delete: + /pipelines/{application}/{pipelineNameOrId}: + post: tags: - - "task-controller" - summary: "Delete task" - operationId: "deleteTaskUsingDELETE" + - "pipeline-controller" + summary: "Trigger a pipeline execution" + operationId: "invokePipelineConfigUsingPOST_1" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "pipelineNameOrId" + in: "path" + description: "pipelineNameOrId" + required: true + type: "string" + x-exportParamName: "PipelineNameOrId" + - in: "body" + name: "trigger" + description: "trigger" + required: false + schema: + type: "object" + x-exportParamName: "Trigger" responses: - "200": - description: "OK" + "201": + description: "Created" + "202": + description: "Accepted" schema: type: "object" - additionalProperties: - type: "object" - properties: {} - "204": - description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" + "404": + description: "Not Found" deprecated: false - /tasks/{id}/cancel: - put: + /applications/{application}/snapshots/{account}/history: + get: tags: - - "task-controller" - summary: "Cancel task" - operationId: "cancelTaskUsingPUT_1" - consumes: - - "application/json" + - "snapshot-controller" + summary: "Get snapshot history" + operationId: "getSnapshotHistoryUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "limit" + in: "query" + description: "limit" + required: false + type: "integer" + default: 20 + format: "int32" + x-exportParamName: "Limit" + x-optionalDataType: "Int32" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -5977,34 +5712,29 @@ paths: "404": description: "Not Found" deprecated: false - /tasks/{id}/details/{taskDetailsId}: + /applications/{application}: get: tags: - - "task-controller" - summary: "Get task details" - operationId: "getTaskDetailsUsingGET_1" + - "application-controller" + summary: "Retrieve an application's details" + operationId: "getApplicationUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "X-RateLimit-App" - in: "header" - description: "X-RateLimit-App" - required: false - type: "string" - x-exportParamName: "XRateLimitApp" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "taskDetailsId" - in: "path" - description: "taskDetailsId" - required: true - type: "string" - x-exportParamName: "TaskDetailsId" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "expand" + in: "query" + description: "expand" + required: false + type: "boolean" + default: true + x-exportParamName: "Expand" + x-optionalDataType: "Bool" responses: "200": description: "OK" @@ -6020,31 +5750,41 @@ paths: "404": description: "Not Found" deprecated: false - /v2/builds: + /firewalls/{account}: get: tags: - - "build-controller" - summary: "Get build masters" - description: "Deprecated, use the v3 endpoint instead" - operationId: "getBuildMastersUsingGET" + - "firewall-controller" + summary: "Retrieve a list of firewalls for a given account, grouped by region" + operationId: "allByAccountUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "type" - in: "query" - description: "type" - required: false - type: "string" - x-exportParamName: "Type_" - x-optionalDataType: "String" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "provider" + in: "query" + description: "provider" + required: false + type: "string" + default: "aws" + x-exportParamName: "Provider" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" "401": description: "Unauthorized" "403": @@ -6052,28 +5792,23 @@ paths: "404": description: "Not Found" deprecated: false - /v2/builds/{buildMaster}/build/{number}/**: - get: + /pipelines/{id}/resume: + put: tags: - - "build-controller" - summary: "Get build for build master" - description: "Deprecated, use the v3 endpoint instead" - operationId: "getBuildUsingGET" + - "pipeline-controller" + summary: "Resume a pipeline execution" + operationId: "resumePipelineUsingPUT" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" - - name: "number" - in: "path" - description: "number" - required: true - type: "string" - x-exportParamName: "Number" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" @@ -6082,6 +5817,8 @@ paths: additionalProperties: type: "object" properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -6089,22 +5826,34 @@ paths: "404": description: "Not Found" deprecated: false - /v2/builds/{buildMaster}/builds/**: + /concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/resources: get: tags: - - "build-controller" - summary: "Get builds for build master" - description: "Deprecated, use the v3 endpoint instead" - operationId: "getBuildsUsingGET" + - "concourse-controller" + summary: "Retrieve the list of resource names for a given pipeline available\ + \ to the Concourse stage" + operationId: "resourcesUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" + - name: "pipeline" + in: "path" + description: "pipeline" + required: true + type: "string" + x-exportParamName: "Pipeline" + - name: "team" + in: "path" + description: "team" + required: true + type: "string" + x-exportParamName: "Team" responses: "200": description: "OK" @@ -6120,22 +5869,68 @@ paths: "404": description: "Not Found" deprecated: false - /v2/builds/{buildMaster}/jobs: + /executions: get: tags: - - "build-controller" - summary: "Get jobs for build master" - description: "Deprecated, use the v3 endpoint instead" - operationId: "getJobsForBuildMasterUsingGET" + - "executions-controller" + summary: "Retrieves an ad-hoc collection of executions based on a number of\ + \ user-supplied parameters. Either executionIds or pipelineConfigIds must\ + \ be supplied in order to return any results. If both are supplied, an exception\ + \ will be thrown." + operationId: "getLatestExecutionsByConfigIdsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" + - name: "executionIds" + in: "query" + description: "A comma-separated list of executions to retrieve. Either this\ + \ OR pipelineConfigIds must be supplied, but not both." + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "ExecutionIds" + x-optionalDataType: "String" + - name: "expand" + in: "query" + description: "Expands each execution object in the resulting list. If this\ + \ value is missing, it is defaulted to true." + required: false + type: "boolean" + default: true + allowEmptyValue: false + x-exportParamName: "Expand" + x-optionalDataType: "Bool" + - name: "limit" + in: "query" + description: "The number of executions to return per pipeline configuration.\ + \ Ignored if executionIds parameter is supplied. If this value is missing,\ + \ it is defaulted to 1." + required: false + type: "integer" + format: "int32" + allowEmptyValue: false + x-exportParamName: "Limit" + x-optionalDataType: "Int32" + - name: "pipelineConfigIds" + in: "query" + description: "A comma-separated list of pipeline configuration IDs to retrieve\ + \ recent executions for. Either this OR pipelineConfigIds must be supplied,\ + \ but not both." + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "PipelineConfigIds" + x-optionalDataType: "String" + - name: "statuses" + in: "query" + description: "A comma-separated list of execution statuses to filter by. Ignored\ + \ if executionIds parameter is supplied. If this value is missing, it is\ + \ defaulted to all statuses." + required: false + type: "string" + allowEmptyValue: false + x-exportParamName: "Statuses" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -6151,28 +5946,50 @@ paths: "404": description: "Not Found" deprecated: false - /v2/builds/{buildMaster}/jobs/**: + /applications/{application}/tasks: get: tags: - - "build-controller" - summary: "Get job config" - description: "Deprecated, use the v3 endpoint instead" - operationId: "getJobConfigUsingGET" + - "application-controller" + summary: "Retrieve a list of an application's tasks" + operationId: "getTasksUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "limit" + in: "query" + description: "limit" + required: false + type: "integer" + format: "int32" + x-exportParamName: "Limit" + x-optionalDataType: "Int32" + - name: "page" + in: "query" + description: "page" + required: false + type: "integer" + format: "int32" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "statuses" + in: "query" + description: "statuses" + required: false + type: "string" + x-exportParamName: "Statuses" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -6182,57 +5999,37 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaries/canary: post: tags: - - "v-2-canary-controller" - summary: "Start a canary execution with the supplied canary config" - operationId: "initiateCanaryWithConfigUsingPOST" + - "application-controller" + summary: "Create task" + operationId: "taskUsingPOST" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "adhocExecutionRequest" - description: "adhocExecutionRequest" - required: true - schema: - type: "object" - x-exportParamName: "AdhocExecutionRequest" - - name: "application" - in: "query" - description: "application" - required: false - type: "string" - x-exportParamName: "Application" - x-optionalDataType: "String" - - name: "metricsAccountName" - in: "query" - description: "metricsAccountName" - required: false - type: "string" - x-exportParamName: "MetricsAccountName" - x-optionalDataType: "String" - - name: "parentPipelineExecutionId" - in: "query" - description: "parentPipelineExecutionId" - required: false - type: "string" - x-exportParamName: "ParentPipelineExecutionId" - x-optionalDataType: "String" - - name: "storageAccountName" - in: "query" - description: "storageAccountName" - required: false - type: "string" - x-exportParamName: "StorageAccountName" - x-optionalDataType: "String" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - in: "body" + name: "map" + description: "map" + required: true + schema: + type: "object" + x-exportParamName: "Map_" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} "201": description: "Created" "401": @@ -6241,73 +6038,31 @@ paths: description: "Forbidden" "404": description: "Not Found" - deprecated: false - /v2/canaries/canary/{canaryConfigId}: - post: + deprecated: true + /plugins/info: + get: tags: - - "v-2-canary-controller" - summary: "Start a canary execution" - operationId: "initiateCanaryUsingPOST" - consumes: - - "application/json" + - "plugin-info-controller" + summary: "Get all plugin info objects" + operationId: "getAllPluginInfoUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "query" - description: "application" - required: false - type: "string" - x-exportParamName: "Application" - x-optionalDataType: "String" - - name: "canaryConfigId" - in: "path" - description: "canaryConfigId" - required: true - type: "string" - x-exportParamName: "CanaryConfigId" - - name: "configurationAccountName" - in: "query" - description: "configurationAccountName" - required: false - type: "string" - x-exportParamName: "ConfigurationAccountName" - x-optionalDataType: "String" - - in: "body" - name: "executionRequest" - description: "executionRequest" - required: true - schema: - type: "object" - x-exportParamName: "ExecutionRequest" - - name: "metricsAccountName" - in: "query" - description: "metricsAccountName" - required: false - type: "string" - x-exportParamName: "MetricsAccountName" - x-optionalDataType: "String" - - name: "parentPipelineExecutionId" - in: "query" - description: "parentPipelineExecutionId" - required: false - type: "string" - x-exportParamName: "ParentPipelineExecutionId" - x-optionalDataType: "String" - - name: "storageAccountName" - in: "query" - description: "storageAccountName" - required: false - type: "string" - x-exportParamName: "StorageAccountName" - x-optionalDataType: "String" + - name: "service" + in: "query" + description: "service" + required: false + type: "string" + x-exportParamName: "Service" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" - "201": - description: "Created" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -6315,37 +6070,28 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaries/canary/{canaryConfigId}/{canaryExecutionId}: - get: + post: tags: - - "v-2-canary-controller" - summary: "(DEPRECATED) Retrieve a canary result" - operationId: "getCanaryResultUsingGET" + - "plugin-info-controller" + summary: "Persist plugin metadata information" + operationId: "persistPluginInfoUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "canaryConfigId" - in: "path" - description: "canaryConfigId" - required: true - type: "string" - x-exportParamName: "CanaryConfigId" - - name: "canaryExecutionId" - in: "path" - description: "canaryExecutionId" - required: true - type: "string" - x-exportParamName: "CanaryExecutionId" - - name: "storageAccountName" - in: "query" - description: "storageAccountName" - required: false - type: "string" - x-exportParamName: "StorageAccountName" - x-optionalDataType: "String" + - in: "body" + name: "pluginInfo" + description: "pluginInfo" + required: true + schema: + $ref: "#/definitions/SpinnakerPluginInfo" + x-exportParamName: "PluginInfo" responses: - "200": - description: "OK" + "201": + description: "Created" + "202": + description: "Accepted" schema: type: "object" "401": @@ -6354,32 +6100,29 @@ paths: description: "Forbidden" "404": description: "Not Found" - deprecated: true - /v2/canaries/canary/{canaryExecutionId}: - get: + deprecated: false + put: tags: - - "v-2-canary-controller" - summary: "Retrieve a canary result" - operationId: "getCanaryResultUsingGET_1" + - "plugin-info-controller" + summary: "Persist plugin metadata information" + operationId: "persistPluginInfoUsingPUT" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "canaryExecutionId" - in: "path" - description: "canaryExecutionId" - required: true - type: "string" - x-exportParamName: "CanaryExecutionId" - - name: "storageAccountName" - in: "query" - description: "storageAccountName" - required: false - type: "string" - x-exportParamName: "StorageAccountName" - x-optionalDataType: "String" + - in: "body" + name: "pluginInfo" + description: "pluginInfo" + required: true + schema: + $ref: "#/definitions/SpinnakerPluginInfo" + x-exportParamName: "PluginInfo" responses: - "200": - description: "OK" + "201": + description: "Created" + "202": + description: "Accepted" schema: type: "object" "401": @@ -6389,15 +6132,22 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaries/credentials: + /v2/builds/{buildMaster}/builds/**: get: tags: - - "v-2-canary-controller" - summary: "Retrieve a list of configured Kayenta accounts" - operationId: "listCredentialsUsingGET" + - "build-controller" + summary: "Get builds for build master" + description: "Deprecated, use the v3 endpoint instead" + operationId: "getBuildsUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "buildMaster" + in: "path" + description: "buildMaster" + required: true + type: "string" + x-exportParamName: "BuildMaster" responses: "200": description: "OK" @@ -6413,23 +6163,35 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaries/judges: - get: + /managed/application/{application}/veto: + post: tags: - - "v-2-canary-controller" - summary: "Retrieve a list of all configured canary judges" - operationId: "listJudgesUsingGET" + - "managed-controller" + summary: "Veto an artifact version in an environment" + operationId: "vetoUsingPOST" + consumes: + - "application/json" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - in: "body" + name: "veto" + description: "veto" + required: true + schema: + $ref: "#/definitions/EnvironmentArtifactVeto" + x-exportParamName: "Veto" responses: "200": description: "OK" - schema: - type: "array" - items: - type: "object" - properties: {} + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -6437,38 +6199,43 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaries/metadata/metricsService: - get: + /pipelines/v2/{application}/{pipelineNameOrId}: + post: tags: - - "v-2-canary-controller" - summary: "Retrieve a list of descriptors for use in populating the canary config\ - \ ui" - operationId: "listMetricsServiceMetadataUsingGET" + - "pipeline-controller" + summary: "Trigger a pipeline execution" + operationId: "invokePipelineConfigViaEchoUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "filter" - in: "query" - description: "filter" - required: false - type: "string" - x-exportParamName: "Filter" - x-optionalDataType: "String" - - name: "metricsAccountName" - in: "query" - description: "metricsAccountName" - required: false - type: "string" - x-exportParamName: "MetricsAccountName" - x-optionalDataType: "String" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "pipelineNameOrId" + in: "path" + description: "pipelineNameOrId" + required: true + type: "string" + x-exportParamName: "PipelineNameOrId" + - in: "body" + name: "trigger" + description: "trigger" + required: false + schema: + type: "object" + x-exportParamName: "Trigger" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -6476,28 +6243,24 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaries/metricSetPairList/{metricSetPairListId}: + /pipelineTemplates: get: tags: - - "v-2-canary-controller" - summary: "Retrieve a metric set pair list" - operationId: "getMetricSetPairListUsingGET" + - "pipeline-templates-controller" + summary: "List pipeline templates." + operationId: "listUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "metricSetPairListId" - in: "path" - description: "metricSetPairListId" - required: true - type: "string" - x-exportParamName: "MetricSetPairListId" - - name: "storageAccountName" - in: "query" - description: "storageAccountName" - required: false + - name: "scopes" + in: "query" + description: "scopes" + required: false + type: "array" + items: type: "string" - x-exportParamName: "StorageAccountName" - x-optionalDataType: "String" + collectionFormat: "multi" + x-exportParamName: "Scopes" responses: "200": description: "OK" @@ -6513,50 +6276,31 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaries/{application}/executions: - get: + post: tags: - - "v-2-canary-controller" - summary: "Retrieve a list of an application's canary results" - operationId: "getCanaryResultsByApplicationUsingGET" + - "pipeline-templates-controller" + summary: "Create a pipeline template." + operationId: "createUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "path" - description: "application" - required: true - type: "string" - x-exportParamName: "Application" - - name: "limit" - in: "query" - description: "limit" - required: true - type: "integer" - format: "int32" - x-exportParamName: "Limit" - - name: "statuses" - in: "query" - description: "Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED,\ - \ TERMINAL" - required: false - type: "string" - allowEmptyValue: false - x-exportParamName: "Statuses" - x-optionalDataType: "String" - - name: "storageAccountName" - in: "query" - description: "storageAccountName" - required: false - type: "string" - x-exportParamName: "StorageAccountName" - x-optionalDataType: "String" + - in: "body" + name: "pipelineTemplate" + description: "pipelineTemplate" + required: true + schema: + type: "object" + x-exportParamName: "PipelineTemplate" responses: - "200": - description: "OK" + "201": + description: "Created" + "202": + description: "Accepted" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} "401": @@ -6566,37 +6310,26 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaryConfig: + /managed/resources/{resourceId}: get: tags: - - "v-2-canary-config-controller" - summary: "Retrieve a list of canary configurations" - operationId: "getCanaryConfigsUsingGET" + - "managed-controller" + summary: "Get a resource" + operationId: "getResourceUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "query" - description: "application" - required: false - type: "string" - x-exportParamName: "Application" - x-optionalDataType: "String" - - name: "configurationAccountName" - in: "query" - description: "configurationAccountName" - required: false - type: "string" - x-exportParamName: "ConfigurationAccountName" - x-optionalDataType: "String" + - name: "resourceId" + in: "path" + description: "resourceId" + required: true + type: "string" + x-exportParamName: "ResourceId" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + $ref: "#/definitions/Resource" "401": description: "Unauthorized" "403": @@ -6604,35 +6337,31 @@ paths: "404": description: "Not Found" deprecated: false - post: + /tasks/{id}/cancel: + put: tags: - - "v-2-canary-config-controller" - summary: "Create a canary configuration" - operationId: "createCanaryConfigUsingPOST" + - "task-controller" + summary: "Cancel task" + operationId: "cancelTaskUsingPUT_1" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "config" - description: "config" - required: true - schema: - type: "object" - x-exportParamName: "Config" - - name: "configurationAccountName" - in: "query" - description: "configurationAccountName" - required: false - type: "string" - x-exportParamName: "ConfigurationAccountName" - x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} "201": description: "Created" "401": @@ -6642,33 +6371,44 @@ paths: "404": description: "Not Found" deprecated: false - /v2/canaryConfig/{id}: + /functions: get: tags: - - "v-2-canary-config-controller" - summary: "Retrieve a canary configuration by id" - operationId: "getCanaryConfigUsingGET" + - "amazon-infrastructure-controller" + summary: "Get functions" + operationId: "functionsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "configurationAccountName" - in: "query" - description: "configurationAccountName" - required: false - type: "string" - x-exportParamName: "ConfigurationAccountName" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "account" + in: "query" + description: "account" + required: false + type: "string" + x-exportParamName: "Account" + x-optionalDataType: "String" + - name: "functionName" + in: "query" + description: "functionName" + required: false + type: "string" + x-exportParamName: "FunctionName" + x-optionalDataType: "String" + - name: "region" + in: "query" + description: "region" + required: false + type: "string" + x-exportParamName: "Region" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -6676,43 +6416,38 @@ paths: "404": description: "Not Found" deprecated: false - put: + /plugins/deck/{pluginId}/{pluginVersion}/{asset}: + get: tags: - - "v-2-canary-config-controller" - summary: "Update a canary configuration" - operationId: "updateCanaryConfigUsingPUT" - consumes: - - "application/json" + - "deck-plugins-controller" + summary: "Retrieve a single plugin asset by version" + operationId: "getPluginAssetUsingGET" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "config" - description: "config" - required: true - schema: - type: "object" - x-exportParamName: "Config" - - name: "configurationAccountName" - in: "query" - description: "configurationAccountName" - required: false - type: "string" - x-exportParamName: "ConfigurationAccountName" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "asset" + in: "path" + description: "asset" + required: true + type: "string" + x-exportParamName: "Asset" + - name: "pluginId" + in: "path" + description: "pluginId" + required: true + type: "string" + x-exportParamName: "PluginId" + - name: "pluginVersion" + in: "path" + description: "pluginVersion" + required: true + type: "string" + x-exportParamName: "PluginVersion" responses: "200": description: "OK" schema: - type: "object" - "201": - description: "Created" + type: "string" "401": description: "Unauthorized" "403": @@ -6720,55 +6455,28 @@ paths: "404": description: "Not Found" deprecated: false - delete: - tags: - - "v-2-canary-config-controller" - summary: "Delete a canary configuration" - operationId: "deleteCanaryConfigUsingDELETE" - produces: - - "*/*" - parameters: - - name: "configurationAccountName" - in: "query" - description: "configurationAccountName" - required: false - type: "string" - x-exportParamName: "ConfigurationAccountName" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - responses: - "200": - description: "OK" - "204": - description: "No Content" - "401": - description: "Unauthorized" - "403": - description: "Forbidden" - deprecated: false - /v2/pipelineTemplates: + /v2/canaries/metricSetPairList/{metricSetPairListId}: get: tags: - - "v-2-pipeline-templates-controller" - summary: "(ALPHA) List pipeline templates." - operationId: "listUsingGET_1" + - "v-2-canary-controller" + summary: "Retrieve a metric set pair list" + operationId: "getMetricSetPairListUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "scopes" - in: "query" - description: "scopes" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "Scopes" + - name: "metricSetPairListId" + in: "path" + description: "metricSetPairListId" + required: true + type: "string" + x-exportParamName: "MetricSetPairListId" + - name: "storageAccountName" + in: "query" + description: "storageAccountName" + required: false + type: "string" + x-exportParamName: "StorageAccountName" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -6784,41 +6492,20 @@ paths: "404": description: "Not Found" deprecated: false - /v2/pipelineTemplates/create: - post: + /auth/user: + get: tags: - - "v-2-pipeline-templates-controller" - summary: "(ALPHA) Create a pipeline template." - operationId: "createUsingPOST_1" - consumes: - - "application/json" + - "auth-controller" + summary: "Get user" + operationId: "userUsingGET" produces: - - "*/*" - parameters: - - in: "body" - name: "pipelineTemplate" - description: "pipelineTemplate" - required: true - schema: - type: "object" - x-exportParamName: "PipelineTemplate" - - name: "tag" - in: "query" - description: "tag" - required: false - type: "string" - x-exportParamName: "Tag" - x-optionalDataType: "String" + - "*/*" + parameters: [] responses: - "201": - description: "Created" - "202": - description: "Accepted" + "200": + description: "OK" schema: - type: "object" - additionalProperties: - type: "object" - properties: {} + $ref: "#/definitions/User" "401": description: "Unauthorized" "403": @@ -6826,34 +6513,42 @@ paths: "404": description: "Not Found" deprecated: false - /v2/pipelineTemplates/plan: - post: + /ci/builds: + get: tags: - - "v-2-pipeline-templates-controller" - summary: "(ALPHA) Plan a pipeline template configuration." - operationId: "planUsingPOST" - consumes: - - "application/json" + - "ci-controller" + summary: "getBuilds" + operationId: "getBuildsUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - in: "body" - name: "pipeline" - description: "pipeline" - required: true - schema: - type: "object" - x-exportParamName: "Pipeline" + - name: "completionStatus" + in: "query" + description: "completionStatus" + required: false + type: "string" + x-exportParamName: "CompletionStatus" + x-optionalDataType: "String" + - name: "projectKey" + in: "query" + description: "projectKey" + required: true + type: "string" + x-exportParamName: "ProjectKey" + - name: "repoSlug" + in: "query" + description: "repoSlug" + required: true + type: "string" + x-exportParamName: "RepoSlug" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} - "201": - description: "Created" "401": description: "Unauthorized" "403": @@ -6861,85 +6556,77 @@ paths: "404": description: "Not Found" deprecated: false - /v2/pipelineTemplates/update/{id}: - post: + /pipelines/{id}/stages/{stageId}: + patch: tags: - - "v-2-pipeline-templates-controller" - summary: "(ALPHA) Update a pipeline template." - operationId: "updateUsingPOST_1" + - "pipeline-controller" + summary: "Update a stage execution" + operationId: "updateStageUsingPATCH" consumes: - - "application/json" - produces: - - "*/*" - parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - in: "body" - name: "pipelineTemplate" - description: "pipelineTemplate" - required: true - schema: - type: "object" - x-exportParamName: "PipelineTemplate" - - name: "skipPlanDependents" - in: "query" - description: "skipPlanDependents" - required: false - type: "boolean" - default: false - x-exportParamName: "SkipPlanDependents" - x-optionalDataType: "Bool" - - name: "tag" - in: "query" - description: "tag" - required: false - type: "string" - x-exportParamName: "Tag" - x-optionalDataType: "String" + - "application/json" + produces: + - "*/*" + parameters: + - in: "body" + name: "context" + description: "context" + required: true + schema: + type: "object" + x-exportParamName: "Context" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "stageId" + in: "path" + description: "stageId" + required: true + type: "string" + x-exportParamName: "StageId" responses: - "201": - description: "Created" - "202": - description: "Accepted" + "200": + description: "OK" schema: type: "object" additionalProperties: type: "object" properties: {} + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - /v2/pipelineTemplates/versions: + /v2/pipelineTemplates: get: tags: - - "v-2-pipeline-templates-controller" - summary: "List pipeline templates with versions" - operationId: "listVersionsUsingGET" + - "v-2-pipeline-templates-controller" + summary: "(ALPHA) List pipeline templates." + operationId: "listUsingGET_1" produces: - - "*/*" + - "*/*" parameters: - - name: "scopes" - in: "query" - description: "scopes" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - x-exportParamName: "Scopes" + - name: "scopes" + in: "query" + description: "scopes" + required: false + type: "array" + items: + type: "string" + collectionFormat: "multi" + x-exportParamName: "Scopes" responses: "200": description: "OK" schema: - type: "object" + type: "array" + items: + type: "object" + properties: {} "401": description: "Unauthorized" "403": @@ -6947,41 +6634,27 @@ paths: "404": description: "Not Found" deprecated: false - /v2/pipelineTemplates/{id}: + /applications/{application}/serverGroupManagers: get: tags: - - "v-2-pipeline-templates-controller" - summary: "(ALPHA) Get a pipeline template." - operationId: "getUsingGET_2" + - "server-group-manager-controller" + summary: "Retrieve a list of server group managers for an application" + operationId: "getServerGroupManagersForApplicationUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "digest" - in: "query" - description: "digest" - required: false - type: "string" - x-exportParamName: "Digest" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "tag" - in: "query" - description: "tag" - required: false - type: "string" - x-exportParamName: "Tag" - x-optionalDataType: "String" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -6991,49 +6664,52 @@ paths: "404": description: "Not Found" deprecated: false - delete: + /managed/resources/{resourceId}/pause: + post: tags: - - "v-2-pipeline-templates-controller" - summary: "Delete a pipeline template." - operationId: "deleteUsingDELETE_1" + - "managed-controller" + summary: "Pause management of a resource" + operationId: "pauseResourceUsingPOST" + consumes: + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "application" - in: "query" - description: "application" - required: false - type: "string" - x-exportParamName: "Application" - x-optionalDataType: "String" - - name: "digest" - in: "query" - description: "digest" - required: false - type: "string" - x-exportParamName: "Digest" - x-optionalDataType: "String" - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" - - name: "tag" - in: "query" - description: "tag" - required: false - type: "string" - x-exportParamName: "Tag" - x-optionalDataType: "String" + - name: "resourceId" + in: "path" + description: "resourceId" + required: true + type: "string" + x-exportParamName: "ResourceId" responses: - "202": - description: "Accepted" - schema: - type: "object" - additionalProperties: - type: "object" - properties: {} + "200": + description: "OK" + "201": + description: "Created" + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + "404": + description: "Not Found" + deprecated: false + delete: + tags: + - "managed-controller" + summary: "Resume management of a resource" + operationId: "resumeResourceUsingDELETE" + produces: + - "*/*" + parameters: + - name: "resourceId" + in: "path" + description: "resourceId" + required: true + type: "string" + x-exportParamName: "ResourceId" + responses: + "200": + description: "OK" "204": description: "No Content" "401": @@ -7041,21 +6717,21 @@ paths: "403": description: "Forbidden" deprecated: false - /v2/pipelineTemplates/{id}/dependents: + /applications/{application}/pipelineConfigs: get: tags: - - "v-2-pipeline-templates-controller" - summary: "(ALPHA) List all pipelines that implement a pipeline template" - operationId: "listPipelineTemplateDependentsUsingGET_1" + - "application-controller" + summary: "Retrieve a list of an application's pipeline configurations" + operationId: "getPipelineConfigsForApplicationUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "id" - in: "path" - description: "id" - required: true - type: "string" - x-exportParamName: "Id" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" responses: "200": description: "OK" @@ -7071,30 +6747,39 @@ paths: "404": description: "Not Found" deprecated: false - /v3/builds: + /managed/resources/export/artifact/{cloudProvider}/{account}/{clusterName}: get: tags: - - "build-controller" - summary: "Get build masters" - operationId: "v3GetBuildMastersUsingGET" + - "managed-controller" + summary: "Generates an artifact definition based on the artifact used in a running\ + \ cluster" + operationId: "exportResourceUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "type" - in: "query" - description: "type" - required: false - type: "string" - x-exportParamName: "Type_" - x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "cloudProvider" + in: "path" + description: "cloudProvider" + required: true + type: "string" + x-exportParamName: "CloudProvider" + - name: "clusterName" + in: "path" + description: "clusterName" + required: true + type: "string" + x-exportParamName: "ClusterName" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" "401": description: "Unauthorized" "403": @@ -7102,33 +6787,35 @@ paths: "404": description: "Not Found" deprecated: false - /v3/builds/{buildMaster}/build/{number}: + /v2/pipelineTemplates/{id}: get: tags: - - "build-controller" - summary: "Get build for build master" - operationId: "v3GetBuildUsingGET" + - "v-2-pipeline-templates-controller" + summary: "(ALPHA) Get a pipeline template." + operationId: "getUsingGET_2" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" - - name: "job" - in: "query" - description: "job" - required: true - type: "string" - x-exportParamName: "Job" - - name: "number" - in: "path" - description: "number" - required: true - type: "string" - x-exportParamName: "Number" + - name: "digest" + in: "query" + description: "digest" + required: false + type: "string" + x-exportParamName: "Digest" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "tag" + in: "query" + description: "tag" + required: false + type: "string" + x-exportParamName: "Tag" + x-optionalDataType: "String" responses: "200": description: "OK" @@ -7144,69 +6831,78 @@ paths: "404": description: "Not Found" deprecated: false - /v3/builds/{buildMaster}/builds: - get: + delete: tags: - - "build-controller" - summary: "Get builds for build master" - operationId: "v3GetBuildsUsingGET" + - "v-2-pipeline-templates-controller" + summary: "Delete a pipeline template." + operationId: "deleteUsingDELETE_1" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" - - name: "job" - in: "query" - description: "job" - required: true - type: "string" - x-exportParamName: "Job" + - name: "application" + in: "query" + description: "application" + required: false + type: "string" + x-exportParamName: "Application" + x-optionalDataType: "String" + - name: "digest" + in: "query" + description: "digest" + required: false + type: "string" + x-exportParamName: "Digest" + x-optionalDataType: "String" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - name: "tag" + in: "query" + description: "tag" + required: false + type: "string" + x-exportParamName: "Tag" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "array" - items: + type: "object" + additionalProperties: type: "object" properties: {} + "204": + description: "No Content" "401": description: "Unauthorized" "403": description: "Forbidden" - "404": - description: "Not Found" deprecated: false - /v3/builds/{buildMaster}/job: + /artifacts/credentials: get: tags: - - "build-controller" - summary: "Get job config" - operationId: "v3GetJobConfigUsingGET" + - "artifact-controller" + summary: "Retrieve the list of artifact accounts configured in Clouddriver." + operationId: "allUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true - type: "string" - x-exportParamName: "BuildMaster" - - name: "job" - in: "query" - description: "job" - required: true - type: "string" - x-exportParamName: "Job" + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" responses: "200": description: "OK" schema: - type: "object" - additionalProperties: + type: "array" + items: type: "object" properties: {} "401": @@ -7216,29 +6912,105 @@ paths: "404": description: "Not Found" deprecated: false - /v3/builds/{buildMaster}/jobs: + /credentials: get: tags: - - "build-controller" - summary: "Get jobs for build master" - operationId: "v3GetJobsForBuildMasterUsingGET" + - "credentials-controller" + summary: "Retrieve a list of accounts" + operationId: "getAccountsUsingGET" produces: - - "*/*" + - "*/*" parameters: - - name: "buildMaster" - in: "path" - description: "buildMaster" - required: true + - name: "accountNonExpired" + in: "query" + required: false + type: "boolean" + x-exportParamName: "AccountNonExpired" + x-optionalDataType: "Bool" + - name: "accountNonLocked" + in: "query" + required: false + type: "boolean" + x-exportParamName: "AccountNonLocked" + x-optionalDataType: "Bool" + - name: "allowedAccounts" + in: "query" + required: false + type: "array" + items: + type: "string" + collectionFormat: "multi" + x-exportParamName: "AllowedAccounts" + - name: "authorities[0].authority" + in: "query" + required: false + type: "string" + x-exportParamName: "Authorities0Authority" + x-optionalDataType: "String" + - name: "credentialsNonExpired" + in: "query" + required: false + type: "boolean" + x-exportParamName: "CredentialsNonExpired" + x-optionalDataType: "Bool" + - name: "email" + in: "query" + required: false + type: "string" + x-exportParamName: "Email" + x-optionalDataType: "String" + - name: "enabled" + in: "query" + required: false + type: "boolean" + x-exportParamName: "Enabled" + x-optionalDataType: "Bool" + - name: "expand" + in: "query" + description: "expand" + required: false + type: "boolean" + x-exportParamName: "Expand" + x-optionalDataType: "Bool" + - name: "firstName" + in: "query" + required: false + type: "string" + x-exportParamName: "FirstName" + x-optionalDataType: "String" + - name: "lastName" + in: "query" + required: false + type: "string" + x-exportParamName: "LastName" + x-optionalDataType: "String" + - name: "password" + in: "query" + required: false + type: "string" + x-exportParamName: "Password" + x-optionalDataType: "String" + - name: "roles" + in: "query" + required: false + type: "array" + items: type: "string" - x-exportParamName: "BuildMaster" + collectionFormat: "multi" + x-exportParamName: "Roles" + - name: "username" + in: "query" + required: false + type: "string" + x-exportParamName: "Username" + x-optionalDataType: "String" responses: "200": description: "OK" schema: type: "array" items: - type: "object" - properties: {} + $ref: "#/definitions/Account" "401": description: "Unauthorized" "403": @@ -7246,20 +7018,57 @@ paths: "404": description: "Not Found" deprecated: false - /version: - get: + /webhooks/{type}/{source}: + post: tags: - - "version-controller" - summary: "Fetch Gate's current version" - operationId: "getVersionUsingGET" + - "webhook-controller" + summary: "Endpoint for posting webhooks to Spinnaker's webhook service" + operationId: "webhooksUsingPOST" + consumes: + - "application/json" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "X-Event-Key" + in: "header" + description: "X-Event-Key" + required: false + type: "string" + x-exportParamName: "XEventKey" + x-optionalDataType: "String" + - name: "X-Hub-Signature" + in: "header" + description: "X-Hub-Signature" + required: false + type: "string" + x-exportParamName: "XHubSignature" + x-optionalDataType: "String" + - in: "body" + name: "event" + description: "event" + required: false + schema: + type: "object" + x-exportParamName: "Event" + - name: "source" + in: "path" + description: "source" + required: true + type: "string" + x-exportParamName: "Source" + - name: "type" + in: "path" + description: "type" + required: true + type: "string" + x-exportParamName: "Type_" responses: "200": description: "OK" schema: - $ref: "#/definitions/Version" + type: "object" + "201": + description: "Created" "401": description: "Unauthorized" "403": @@ -7267,47 +7076,58 @@ paths: "404": description: "Not Found" deprecated: false - /vpcs: - get: + /pipelines/start: + post: tags: - - "amazon-infrastructure-controller" - summary: "Get VPCs" - operationId: "vpcsUsingGET" + - "pipeline-controller" + summary: "Initiate a pipeline execution" + operationId: "startUsingPOST" + consumes: + - "application/json" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - in: "body" + name: "map" + description: "map" + required: true + schema: + type: "object" + x-exportParamName: "Map_" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + $ref: "#/definitions/ResponseEntity" + "201": + description: "Created" "401": description: "Unauthorized" "403": description: "Forbidden" "404": description: "Not Found" - deprecated: true - /webhooks/preconfigured: + deprecated: false + /pipelines/{id}: get: tags: - - "webhook-controller" - summary: "Retrieve a list of preconfigured webhooks in Orca" - operationId: "preconfiguredWebhooksUsingGET" + - "pipeline-controller" + summary: "Retrieve a pipeline execution" + operationId: "getPipelineUsingGET" produces: - - "*/*" - parameters: [] + - "*/*" + parameters: + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" responses: "200": description: "OK" schema: - type: "array" - items: - type: "object" - properties: {} + type: "object" "401": description: "Unauthorized" "403": @@ -7315,55 +7135,37 @@ paths: "404": description: "Not Found" deprecated: false - /webhooks/{type}/{source}: - post: + put: tags: - - "webhook-controller" - summary: "Endpoint for posting webhooks to Spinnaker's webhook service" - operationId: "webhooksUsingPOST" + - "pipeline-controller" + summary: "Update a pipeline definition" + operationId: "updatePipelineUsingPUT" consumes: - - "application/json" + - "application/json" produces: - - "*/*" + - "*/*" parameters: - - name: "X-Event-Key" - in: "header" - description: "X-Event-Key" - required: false - type: "string" - x-exportParamName: "XEventKey" - x-optionalDataType: "String" - - name: "X-Hub-Signature" - in: "header" - description: "X-Hub-Signature" - required: false - type: "string" - x-exportParamName: "XHubSignature" - x-optionalDataType: "String" - - in: "body" - name: "event" - description: "event" - required: false - schema: - type: "object" - x-exportParamName: "Event" - - name: "source" - in: "path" - description: "source" - required: true - type: "string" - x-exportParamName: "Source" - - name: "type" - in: "path" - description: "type" - required: true - type: "string" - x-exportParamName: "Type_" + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + - in: "body" + name: "pipeline" + description: "pipeline" + required: true + schema: + type: "object" + x-exportParamName: "Pipeline" responses: "200": description: "OK" schema: type: "object" + additionalProperties: + type: "object" + properties: {} "201": description: "Created" "401": @@ -7373,411 +7175,774 @@ paths: "404": description: "Not Found" deprecated: false -definitions: - Account: - type: "object" - properties: - accountId: + delete: + tags: + - "pipeline-controller" + summary: "Delete a pipeline execution" + operationId: "deletePipelineUsingDELETE_1" + produces: + - "*/*" + parameters: + - name: "id" + in: "path" + description: "id" + required: true type: "string" - name: + x-exportParamName: "Id" + responses: + "200": + description: "OK" + schema: + type: "object" + additionalProperties: + type: "object" + properties: {} + "204": + description: "No Content" + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + deprecated: false + /managed/application/{application}: + get: + tags: + - "managed-controller" + summary: "Get managed details about an application" + operationId: "getApplicationDetailsUsingGET" + produces: + - "*/*" + parameters: + - name: "application" + in: "path" + description: "application" + required: true type: "string" - permissions: - type: "object" - additionalProperties: - type: "array" - items: - type: "string" - requiredGroupMembership: + x-exportParamName: "Application" + - name: "entities" + in: "query" + description: "entities" + required: false type: "array" items: type: "string" - type: - type: "string" - title: "Account" - AccountDetails: - type: "object" - properties: - accountId: - type: "string" - accountType: - type: "string" - challengeDestructiveActions: + collectionFormat: "multi" + x-exportParamName: "Entities" + - name: "includeDetails" + in: "query" + description: "includeDetails" + required: false type: "boolean" - cloudProvider: - type: "string" - environment: + default: false + x-exportParamName: "IncludeDetails" + x-optionalDataType: "Bool" + - name: "maxArtifactVersions" + in: "query" + description: "maxArtifactVersions" + required: false + type: "integer" + format: "int32" + x-exportParamName: "MaxArtifactVersions" + x-optionalDataType: "Int32" + responses: + "200": + description: "OK" + schema: + type: "object" + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + "404": + description: "Not Found" + deprecated: false + /managed/application/{application}/pin/{targetEnvironment}: + delete: + tags: + - "managed-controller" + summary: "Unpin one or more artifact(s) in an environment. If the `reference`\ + \ parameter is specified, only the corresponding artifact will be unpinned.\ + \ If it's omitted, all pinned artifacts in the environment will be unpinned." + operationId: "deletePinUsingDELETE" + produces: + - "*/*" + parameters: + - name: "application" + in: "path" + description: "application" + required: true type: "string" - name: + x-exportParamName: "Application" + - name: "reference" + in: "query" + description: "reference" + required: false type: "string" - permissions: - type: "object" - additionalProperties: - type: "array" - items: - type: "string" - primaryAccount: + x-exportParamName: "Reference" + x-optionalDataType: "String" + - name: "targetEnvironment" + in: "path" + description: "targetEnvironment" + required: true + type: "string" + x-exportParamName: "TargetEnvironment" + responses: + "200": + description: "OK" + "204": + description: "No Content" + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + deprecated: false + /applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}: + get: + tags: + - "cluster-controller" + summary: "Retrieve a server group's details" + operationId: "getServerGroupsUsingGET" + produces: + - "*/*" + parameters: + - name: "X-RateLimit-App" + in: "header" + description: "X-RateLimit-App" + required: false + type: "string" + x-exportParamName: "XRateLimitApp" + x-optionalDataType: "String" + - name: "account" + in: "path" + description: "account" + required: true + type: "string" + x-exportParamName: "Account" + - name: "application" + in: "path" + description: "application" + required: true + type: "string" + x-exportParamName: "Application" + - name: "clusterName" + in: "path" + description: "clusterName" + required: true + type: "string" + x-exportParamName: "ClusterName" + - name: "serverGroupName" + in: "path" + description: "serverGroupName" + required: true + type: "string" + x-exportParamName: "ServerGroupName" + responses: + "200": + description: "OK" + schema: + type: "array" + items: + type: "object" + properties: {} + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + "404": + description: "Not Found" + deprecated: false + /v2/canaryConfig: + get: + tags: + - "v-2-canary-config-controller" + summary: "Retrieve a list of canary configurations" + operationId: "getCanaryConfigsUsingGET" + produces: + - "*/*" + parameters: + - name: "application" + in: "query" + description: "application" + required: false + type: "string" + x-exportParamName: "Application" + x-optionalDataType: "String" + - name: "configurationAccountName" + in: "query" + description: "configurationAccountName" + required: false + type: "string" + x-exportParamName: "ConfigurationAccountName" + x-optionalDataType: "String" + responses: + "200": + description: "OK" + schema: + type: "array" + items: + type: "object" + properties: {} + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + "404": + description: "Not Found" + deprecated: false + post: + tags: + - "v-2-canary-config-controller" + summary: "Create a canary configuration" + operationId: "createCanaryConfigUsingPOST" + consumes: + - "application/json" + produces: + - "*/*" + parameters: + - in: "body" + name: "config" + description: "config" + required: true + schema: + type: "object" + x-exportParamName: "Config" + - name: "configurationAccountName" + in: "query" + description: "configurationAccountName" + required: false + type: "string" + x-exportParamName: "ConfigurationAccountName" + x-optionalDataType: "String" + responses: + "200": + description: "OK" + schema: + type: "object" + "201": + description: "Created" + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + "404": + description: "Not Found" + deprecated: false + /plugins/info/{id}: + delete: + tags: + - "plugin-info-controller" + summary: "Delete plugin info with the provided Id" + operationId: "deletePluginInfoUsingDELETE" + produces: + - "*/*" + parameters: + - name: "id" + in: "path" + description: "id" + required: true + type: "string" + x-exportParamName: "Id" + responses: + "202": + description: "Accepted" + schema: + type: "object" + "204": + description: "No Content" + "401": + description: "Unauthorized" + "403": + description: "Forbidden" + deprecated: false +definitions: + URI: + type: "object" + properties: + opaque: type: "boolean" - requiredGroupMembership: + absolute: + type: "boolean" + authority: + type: "string" + userInfo: + type: "string" + schemeSpecificPart: + type: "string" + port: + type: "integer" + format: "int32" + path: + type: "string" + rawQuery: + type: "string" + rawAuthority: + type: "string" + host: + type: "string" + rawSchemeSpecificPart: + type: "string" + fragment: + type: "string" + scheme: + type: "string" + rawPath: + type: "string" + query: + type: "string" + rawFragment: + type: "string" + rawUserInfo: + type: "string" + title: "URI" + example: + rawFragment: "rawFragment" + userInfo: "userInfo" + opaque: true + scheme: "scheme" + query: "query" + schemeSpecificPart: "schemeSpecificPart" + rawUserInfo: "rawUserInfo" + path: "path" + fragment: "fragment" + rawPath: "rawPath" + port: 0 + rawSchemeSpecificPart: "rawSchemeSpecificPart" + absolute: true + rawAuthority: "rawAuthority" + authority: "authority" + host: "host" + rawQuery: "rawQuery" + User: + type: "object" + properties: + authorities: + type: "array" + items: + $ref: "#/definitions/GrantedAuthority" + username: + type: "string" + credentialsNonExpired: + type: "boolean" + email: + type: "string" + roles: + type: "array" + items: + type: "string" + lastName: + type: "string" + enabled: + type: "boolean" + allowedAccounts: type: "array" items: type: "string" + firstName: + type: "string" + accountNonLocked: + type: "boolean" + accountNonExpired: + type: "boolean" + title: "User" + DeckPluginVersion: + type: "object" + required: + - "id" + - "version" + properties: + version: + type: "string" + id: + type: "string" + title: "DeckPluginVersion" + SpinnakerPluginInfo: + type: "object" + required: + - "releases" + properties: + description: + type: "string" + provider: + type: "string" + projectUrl: + type: "string" + name: + type: "string" + releases: + type: "array" + items: + $ref: "#/definitions/SpinnakerPluginRelease" + repositoryId: + type: "string" + id: + type: "string" + title: "SpinnakerPluginInfo" + example: + projectUrl: "projectUrl" + provider: "provider" + name: "name" + repositoryId: "repositoryId" + description: "description" + id: "id" + releases: + - date: "2000-01-23T04:56:07.000+00:00" + sha512sum: "sha512sum" + remoteExtensions: + - transport: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + id: "id" + type: "type" + config: "{}" + - transport: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + id: "id" + type: "type" + config: "{}" + version: "version" + preferred: true + url: "url" + requires: "requires" + - date: "2000-01-23T04:56:07.000+00:00" + sha512sum: "sha512sum" + remoteExtensions: + - transport: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + id: "id" + type: "type" + config: "{}" + - transport: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + id: "id" + type: "type" + config: "{}" + version: "version" + preferred: true + url: "url" + requires: "requires" + Notification: + type: "object" + properties: + address: + type: "string" type: type: "string" - title: "AccountDetails" - ConstraintState: + frequency: + type: "string" + title: "Notification" + example: + address: "address" + type: "type" + frequency: "frequency" + Version: type: "object" properties: - artifactVersion: + version: type: "string" - attributes: + title: "Version" + Map«string,string»: + type: "object" + title: "Map«string,string»" + additionalProperties: + type: "string" + Http: + type: "object" + properties: + config: type: "object" - properties: {} - comment: + additionalProperties: + type: "string" + url: type: "string" - createdAt: + queryParams: + type: "object" + additionalProperties: + type: "string" + headers: + $ref: "#/definitions/Headers" + title: "Http" + example: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + SpinnakerPluginRelease: + type: "object" + properties: + version: type: "string" - deliveryConfigName: + requires: type: "string" - environmentName: + preferred: + type: "boolean" + date: type: "string" - judgedAt: + format: "date-time" + url: type: "string" - judgedBy: + sha512sum: type: "string" - status: + remoteExtensions: + type: "array" + items: + $ref: "#/definitions/RemoteExtensionConfig" + title: "SpinnakerPluginRelease" + example: + date: "2000-01-23T04:56:07.000+00:00" + sha512sum: "sha512sum" + remoteExtensions: + - transport: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + id: "id" + type: "type" + config: "{}" + - transport: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + id: "id" + type: "type" + config: "{}" + version: "version" + preferred: true + url: "url" + requires: "requires" + SpinnakerPluginDescriptor: + type: "object" + required: + - "unsafe" + properties: + pluginDescription: type: "string" - type: + provider: type: "string" - title: "ConstraintState" - ConstraintStatus: + pluginClass: + type: "string" + unsafe: + type: "boolean" + license: + type: "string" + pluginId: + type: "string" + dependencies: + type: "array" + items: + $ref: "#/definitions/PluginDependency" + requires: + type: "string" + version: + type: "string" + title: "SpinnakerPluginDescriptor" + EnvironmentArtifactPin: type: "object" properties: - artifactVersion: + targetEnvironment: + type: "string" + pinnedBy: + type: "string" + reference: type: "string" comment: type: "string" + version: + type: "string" + title: "EnvironmentArtifactPin" + example: + reference: "reference" + targetEnvironment: "targetEnvironment" + comment: "comment" + pinnedBy: "pinnedBy" + version: "version" + ReorderPipelinesCommand: + type: "object" + properties: + application: + type: "string" + idsToIndices: + type: "object" + additionalProperties: + type: "integer" + format: "int32" + title: "ReorderPipelinesCommand" + example: + idsToIndices: + key: 0 + application: "application" + RemoteExtensionConfig: + type: "object" + properties: + type: + type: "string" + transport: + $ref: "#/definitions/RemoteExtensionTransportConfig" + config: + type: "object" + properties: {} + id: + type: "string" + title: "RemoteExtensionConfig" + example: + transport: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + id: "id" + type: "type" + config: "{}" + PipelineTemplateDependent: + type: "object" + properties: + pipelineConfigId: + type: "string" + application: + type: "string" + pipelineName: + type: "string" + title: "PipelineTemplateDependent" + ConstraintState: + type: "object" + properties: status: type: "string" - type: + type: + type: "string" + deliveryConfigName: + type: "string" + judgedBy: + type: "string" + attributes: + type: "object" + properties: {} + artifactVersion: + type: "string" + environmentName: + type: "string" + createdAt: type: "string" - title: "ConstraintStatus" - example: - artifactVersion: "artifactVersion" - comment: "comment" - type: "type" - status: "status" - DeckPluginVersion: - type: "object" - required: - - "id" - - "version" - properties: - id: + judgedAt: type: "string" - version: + comment: type: "string" - title: "DeckPluginVersion" + title: "ConstraintState" DeliveryConfig: type: "object" properties: - apiVersion: - type: "string" - application: - type: "string" - artifacts: - type: "array" - items: - $ref: "#/definitions/Map«string,object»" environments: type: "array" items: $ref: "#/definitions/Environment" + apiVersion: + type: "string" name: type: "string" + application: + type: "string" serviceAccount: type: "string" + artifacts: + type: "array" + items: + $ref: "#/definitions/Map«string,object»" title: "DeliveryConfig" example: apiVersion: "apiVersion" application: "application" environments: - - name: "name" - resources: - - readable: true - file: - readable: true - parent: "parent" - hidden: true - freeSpace: 0 - totalSpace: 1 - usableSpace: 5 - directory: true - executable: true - writable: true - path: "path" - file: true - absolute: true - canonicalPath: "canonicalPath" - name: "name" - absolutePath: "absolutePath" - lastModified: 6 - filename: "filename" - description: "description" - inputStream: {} - uri: - rawFragment: "rawFragment" - userInfo: "userInfo" - opaque: true - scheme: "scheme" - query: "query" - schemeSpecificPart: "schemeSpecificPart" - rawUserInfo: "rawUserInfo" - path: "path" - fragment: "fragment" - rawPath: "rawPath" - port: 5 - rawSchemeSpecificPart: "rawSchemeSpecificPart" - absolute: true - rawAuthority: "rawAuthority" - authority: "authority" - host: "host" - rawQuery: "rawQuery" - open: true - url: - userInfo: "userInfo" - query: "query" - content: "{}" - deserializedFields: {} - defaultPort: 2 - path: "path" - protocol: "protocol" - ref: "ref" - file: "file" - port: 7 - authority: "authority" - host: "host" - serializedHashCode: 9 - - readable: true - file: - readable: true - parent: "parent" - hidden: true - freeSpace: 0 - totalSpace: 1 - usableSpace: 5 - directory: true - executable: true - writable: true - path: "path" - file: true - absolute: true - canonicalPath: "canonicalPath" - name: "name" - absolutePath: "absolutePath" - lastModified: 6 - filename: "filename" - description: "description" - inputStream: {} - uri: - rawFragment: "rawFragment" - userInfo: "userInfo" - opaque: true - scheme: "scheme" - query: "query" - schemeSpecificPart: "schemeSpecificPart" - rawUserInfo: "rawUserInfo" - path: "path" - fragment: "fragment" - rawPath: "rawPath" - port: 5 - rawSchemeSpecificPart: "rawSchemeSpecificPart" - absolute: true - rawAuthority: "rawAuthority" - authority: "authority" - host: "host" - rawQuery: "rawQuery" - open: true - url: - userInfo: "userInfo" - query: "query" - content: "{}" - deserializedFields: {} - defaultPort: 2 - path: "path" - protocol: "protocol" - ref: "ref" - file: "file" - port: 7 - authority: "authority" - host: "host" - serializedHashCode: 9 - locations: "{}" - constraints: - - null - - null - notifications: - - address: "address" - type: "type" - frequency: "frequency" - - address: "address" - type: "type" - frequency: "frequency" - - name: "name" - resources: - - readable: true - file: - readable: true - parent: "parent" - hidden: true - freeSpace: 0 - totalSpace: 1 - usableSpace: 5 - directory: true - executable: true - writable: true - path: "path" - file: true - absolute: true - canonicalPath: "canonicalPath" - name: "name" - absolutePath: "absolutePath" - lastModified: 6 - filename: "filename" - description: "description" - inputStream: {} - uri: - rawFragment: "rawFragment" - userInfo: "userInfo" - opaque: true - scheme: "scheme" - query: "query" - schemeSpecificPart: "schemeSpecificPart" - rawUserInfo: "rawUserInfo" - path: "path" - fragment: "fragment" - rawPath: "rawPath" - port: 5 - rawSchemeSpecificPart: "rawSchemeSpecificPart" - absolute: true - rawAuthority: "rawAuthority" - authority: "authority" - host: "host" - rawQuery: "rawQuery" - open: true - url: - userInfo: "userInfo" - query: "query" - content: "{}" - deserializedFields: {} - defaultPort: 2 - path: "path" - protocol: "protocol" - ref: "ref" - file: "file" - port: 7 - authority: "authority" - host: "host" - serializedHashCode: 9 - - readable: true - file: - readable: true - parent: "parent" - hidden: true - freeSpace: 0 - totalSpace: 1 - usableSpace: 5 - directory: true - executable: true - writable: true - path: "path" - file: true - absolute: true - canonicalPath: "canonicalPath" - name: "name" - absolutePath: "absolutePath" - lastModified: 6 - filename: "filename" - description: "description" - inputStream: {} - uri: - rawFragment: "rawFragment" - userInfo: "userInfo" - opaque: true - scheme: "scheme" - query: "query" - schemeSpecificPart: "schemeSpecificPart" - rawUserInfo: "rawUserInfo" - path: "path" - fragment: "fragment" - rawPath: "rawPath" - port: 5 - rawSchemeSpecificPart: "rawSchemeSpecificPart" - absolute: true - rawAuthority: "rawAuthority" - authority: "authority" - host: "host" - rawQuery: "rawQuery" - open: true - url: - userInfo: "userInfo" - query: "query" - content: "{}" - deserializedFields: {} - defaultPort: 2 - path: "path" - protocol: "protocol" - ref: "ref" - file: "file" - port: 7 - authority: "authority" - host: "host" - serializedHashCode: 9 - locations: "{}" - constraints: - - null - - null - notifications: - - address: "address" - type: "type" - frequency: "frequency" - - address: "address" - type: "type" - frequency: "frequency" - name: "name" - serviceAccount: "serviceAccount" - artifacts: - - {} - - {} - Environment: - type: "object" - properties: - constraints: - type: "array" - items: - $ref: "#/definitions/Map«string,object»" - locations: - type: "object" - properties: {} - name: - type: "string" - notifications: - type: "array" - items: - $ref: "#/definitions/Notification" - resources: - type: "array" - items: - $ref: "#/definitions/Resource" - title: "Environment" - example: - name: "name" - resources: + - name: "name" + resources: - readable: true file: readable: true parent: "parent" hidden: true - freeSpace: 0 + freeSpace: 5 totalSpace: 1 usableSpace: 5 directory: true @@ -7786,8 +7951,8 @@ definitions: path: "path" file: true absolute: true - canonicalPath: "canonicalPath" name: "name" + canonicalPath: "canonicalPath" absolutePath: "absolutePath" lastModified: 6 filename: "filename" @@ -7804,7 +7969,7 @@ definitions: path: "path" fragment: "fragment" rawPath: "rawPath" - port: 5 + port: 0 rawSchemeSpecificPart: "rawSchemeSpecificPart" absolute: true rawAuthority: "rawAuthority" @@ -7817,21 +7982,21 @@ definitions: query: "query" content: "{}" deserializedFields: {} - defaultPort: 2 + defaultPort: 7 path: "path" - protocol: "protocol" ref: "ref" + protocol: "protocol" file: "file" - port: 7 + port: 2 authority: "authority" - host: "host" serializedHashCode: 9 + host: "host" - readable: true file: readable: true parent: "parent" hidden: true - freeSpace: 0 + freeSpace: 5 totalSpace: 1 usableSpace: 5 directory: true @@ -7840,8 +8005,8 @@ definitions: path: "path" file: true absolute: true - canonicalPath: "canonicalPath" name: "name" + canonicalPath: "canonicalPath" absolutePath: "absolutePath" lastModified: 6 filename: "filename" @@ -7858,7 +8023,7 @@ definitions: path: "path" fragment: "fragment" rawPath: "rawPath" - port: 5 + port: 0 rawSchemeSpecificPart: "rawSchemeSpecificPart" absolute: true rawAuthority: "rawAuthority" @@ -7871,138 +8036,152 @@ definitions: query: "query" content: "{}" deserializedFields: {} - defaultPort: 2 + defaultPort: 7 path: "path" - protocol: "protocol" ref: "ref" + protocol: "protocol" file: "file" - port: 7 + port: 2 authority: "authority" - host: "host" serializedHashCode: 9 - locations: "{}" - constraints: - - null - - null - notifications: + host: "host" + locations: "{}" + constraints: + - {} + - {} + notifications: + - address: "address" + type: "type" + frequency: "frequency" + - address: "address" + type: "type" + frequency: "frequency" + - name: "name" + resources: + - readable: true + file: + readable: true + parent: "parent" + hidden: true + freeSpace: 5 + totalSpace: 1 + usableSpace: 5 + directory: true + executable: true + writable: true + path: "path" + file: true + absolute: true + name: "name" + canonicalPath: "canonicalPath" + absolutePath: "absolutePath" + lastModified: 6 + filename: "filename" + description: "description" + inputStream: {} + uri: + rawFragment: "rawFragment" + userInfo: "userInfo" + opaque: true + scheme: "scheme" + query: "query" + schemeSpecificPart: "schemeSpecificPart" + rawUserInfo: "rawUserInfo" + path: "path" + fragment: "fragment" + rawPath: "rawPath" + port: 0 + rawSchemeSpecificPart: "rawSchemeSpecificPart" + absolute: true + rawAuthority: "rawAuthority" + authority: "authority" + host: "host" + rawQuery: "rawQuery" + open: true + url: + userInfo: "userInfo" + query: "query" + content: "{}" + deserializedFields: {} + defaultPort: 7 + path: "path" + ref: "ref" + protocol: "protocol" + file: "file" + port: 2 + authority: "authority" + serializedHashCode: 9 + host: "host" + - readable: true + file: + readable: true + parent: "parent" + hidden: true + freeSpace: 5 + totalSpace: 1 + usableSpace: 5 + directory: true + executable: true + writable: true + path: "path" + file: true + absolute: true + name: "name" + canonicalPath: "canonicalPath" + absolutePath: "absolutePath" + lastModified: 6 + filename: "filename" + description: "description" + inputStream: {} + uri: + rawFragment: "rawFragment" + userInfo: "userInfo" + opaque: true + scheme: "scheme" + query: "query" + schemeSpecificPart: "schemeSpecificPart" + rawUserInfo: "rawUserInfo" + path: "path" + fragment: "fragment" + rawPath: "rawPath" + port: 0 + rawSchemeSpecificPart: "rawSchemeSpecificPart" + absolute: true + rawAuthority: "rawAuthority" + authority: "authority" + host: "host" + rawQuery: "rawQuery" + open: true + url: + userInfo: "userInfo" + query: "query" + content: "{}" + deserializedFields: {} + defaultPort: 7 + path: "path" + ref: "ref" + protocol: "protocol" + file: "file" + port: 2 + authority: "authority" + serializedHashCode: 9 + host: "host" + locations: "{}" + constraints: + - {} + - {} + notifications: - address: "address" type: "type" frequency: "frequency" - address: "address" type: "type" frequency: "frequency" - EnvironmentArtifactPin: - type: "object" - properties: - comment: - type: "string" - pinnedBy: - type: "string" - reference: - type: "string" - targetEnvironment: - type: "string" - version: - type: "string" - title: "EnvironmentArtifactPin" - example: - reference: "reference" - targetEnvironment: "targetEnvironment" - comment: "comment" - pinnedBy: "pinnedBy" - version: "version" - EnvironmentArtifactVeto: - type: "object" - properties: - comment: - type: "string" - reference: - type: "string" - targetEnvironment: - type: "string" - version: - type: "string" - title: "EnvironmentArtifactVeto" - example: - reference: "reference" - targetEnvironment: "targetEnvironment" - comment: "comment" - version: "version" - File: - type: "object" - properties: - absolute: - type: "boolean" - absoluteFile: - $ref: "#/definitions/File" - absolutePath: - type: "string" - canonicalFile: - $ref: "#/definitions/File" - canonicalPath: - type: "string" - directory: - type: "boolean" - executable: - type: "boolean" - file: - type: "boolean" - freeSpace: - type: "integer" - format: "int64" - hidden: - type: "boolean" - lastModified: - type: "integer" - format: "int64" - name: - type: "string" - parent: - type: "string" - parentFile: - $ref: "#/definitions/File" - path: - type: "string" - readable: - type: "boolean" - totalSpace: - type: "integer" - format: "int64" - usableSpace: - type: "integer" - format: "int64" - writable: - type: "boolean" - title: "File" - example: - readable: true - parent: "parent" - hidden: true - freeSpace: 0 - totalSpace: 1 - usableSpace: 5 - directory: true - executable: true - writable: true - path: "path" - file: true - absolute: true - canonicalPath: "canonicalPath" name: "name" - absolutePath: "absolutePath" - lastModified: 6 - GrantedAuthority: - type: "object" - properties: - authority: - type: "string" - title: "GrantedAuthority" - HashMap«string,object»: - type: "object" - title: "HashMap«string,object»" - additionalProperties: - type: "object" - properties: {} + serviceAccount: "serviceAccount" + artifacts: + - null + - null HttpEntity: type: "object" properties: @@ -8010,86 +8189,202 @@ definitions: type: "object" properties: {} title: "HttpEntity" - InputStream: - type: "object" - title: "InputStream" - Map«string,object»: - type: "object" - title: "Map«string,object»" - additionalProperties: - type: "object" - properties: {} - Map«string,string»: - type: "object" - title: "Map«string,string»" - additionalProperties: - type: "string" - Notification: + Environment: type: "object" properties: - address: - type: "string" - frequency: - type: "string" - type: + locations: + type: "object" + properties: {} + constraints: + type: "array" + items: + $ref: "#/definitions/Map«string,object»" + resources: + type: "array" + items: + $ref: "#/definitions/Resource" + notifications: + type: "array" + items: + $ref: "#/definitions/Notification" + name: type: "string" - title: "Notification" + title: "Environment" example: - address: "address" - type: "type" - frequency: "frequency" - PipelineTemplateDependent: + name: "name" + resources: + - readable: true + file: + readable: true + parent: "parent" + hidden: true + freeSpace: 5 + totalSpace: 1 + usableSpace: 5 + directory: true + executable: true + writable: true + path: "path" + file: true + absolute: true + name: "name" + canonicalPath: "canonicalPath" + absolutePath: "absolutePath" + lastModified: 6 + filename: "filename" + description: "description" + inputStream: {} + uri: + rawFragment: "rawFragment" + userInfo: "userInfo" + opaque: true + scheme: "scheme" + query: "query" + schemeSpecificPart: "schemeSpecificPart" + rawUserInfo: "rawUserInfo" + path: "path" + fragment: "fragment" + rawPath: "rawPath" + port: 0 + rawSchemeSpecificPart: "rawSchemeSpecificPart" + absolute: true + rawAuthority: "rawAuthority" + authority: "authority" + host: "host" + rawQuery: "rawQuery" + open: true + url: + userInfo: "userInfo" + query: "query" + content: "{}" + deserializedFields: {} + defaultPort: 7 + path: "path" + ref: "ref" + protocol: "protocol" + file: "file" + port: 2 + authority: "authority" + serializedHashCode: 9 + host: "host" + - readable: true + file: + readable: true + parent: "parent" + hidden: true + freeSpace: 5 + totalSpace: 1 + usableSpace: 5 + directory: true + executable: true + writable: true + path: "path" + file: true + absolute: true + name: "name" + canonicalPath: "canonicalPath" + absolutePath: "absolutePath" + lastModified: 6 + filename: "filename" + description: "description" + inputStream: {} + uri: + rawFragment: "rawFragment" + userInfo: "userInfo" + opaque: true + scheme: "scheme" + query: "query" + schemeSpecificPart: "schemeSpecificPart" + rawUserInfo: "rawUserInfo" + path: "path" + fragment: "fragment" + rawPath: "rawPath" + port: 0 + rawSchemeSpecificPart: "rawSchemeSpecificPart" + absolute: true + rawAuthority: "rawAuthority" + authority: "authority" + host: "host" + rawQuery: "rawQuery" + open: true + url: + userInfo: "userInfo" + query: "query" + content: "{}" + deserializedFields: {} + defaultPort: 7 + path: "path" + ref: "ref" + protocol: "protocol" + file: "file" + port: 2 + authority: "authority" + serializedHashCode: 9 + host: "host" + locations: "{}" + constraints: + - {} + - {} + notifications: + - address: "address" + type: "type" + frequency: "frequency" + - address: "address" + type: "type" + frequency: "frequency" + GrantedAuthority: type: "object" properties: - application: - type: "string" - pipelineConfigId: - type: "string" - pipelineName: + authority: type: "string" - title: "PipelineTemplateDependent" - PluginDependency: + title: "GrantedAuthority" + AccountDetails: type: "object" properties: - optional: + accountType: + type: "string" + accountId: + type: "string" + primaryAccount: type: "boolean" - pluginId: + challengeDestructiveActions: + type: "boolean" + environment: type: "string" - pluginVersionSupport: + cloudProvider: type: "string" - title: "PluginDependency" - ReorderPipelinesCommand: - type: "object" - properties: - application: + name: type: "string" - idsToIndices: + permissions: type: "object" additionalProperties: - type: "integer" - format: "int32" - title: "ReorderPipelinesCommand" - example: - idsToIndices: - key: 0 - application: "application" + type: "array" + items: + type: "string" + type: + type: "string" + requiredGroupMembership: + type: "array" + items: + type: "string" + title: "AccountDetails" Resource: type: "object" properties: - description: - type: "string" + uri: + $ref: "#/definitions/URI" file: $ref: "#/definitions/File" + readable: + type: "boolean" + description: + type: "string" + open: + type: "boolean" filename: type: "string" inputStream: $ref: "#/definitions/InputStream" - open: - type: "boolean" - readable: - type: "boolean" - uri: - $ref: "#/definitions/URI" url: $ref: "#/definitions/URL" title: "Resource" @@ -8099,7 +8394,7 @@ definitions: readable: true parent: "parent" hidden: true - freeSpace: 0 + freeSpace: 5 totalSpace: 1 usableSpace: 5 directory: true @@ -8108,8 +8403,8 @@ definitions: path: "path" file: true absolute: true - canonicalPath: "canonicalPath" name: "name" + canonicalPath: "canonicalPath" absolutePath: "absolutePath" lastModified: 6 filename: "filename" @@ -8126,7 +8421,7 @@ definitions: path: "path" fragment: "fragment" rawPath: "rawPath" - port: 5 + port: 0 rawSchemeSpecificPart: "rawSchemeSpecificPart" absolute: true rawAuthority: "rawAuthority" @@ -8139,277 +8434,47 @@ definitions: query: "query" content: "{}" deserializedFields: {} - defaultPort: 2 + defaultPort: 7 path: "path" - protocol: "protocol" ref: "ref" + protocol: "protocol" file: "file" - port: 7 + port: 2 authority: "authority" - host: "host" serializedHashCode: 9 - ResponseEntity: - type: "object" - properties: - body: - type: "object" - properties: {} - statusCode: - type: "string" - enum: - - "100 CONTINUE" - - "101 SWITCHING_PROTOCOLS" - - "102 PROCESSING" - - "103 CHECKPOINT" - - "200 OK" - - "201 CREATED" - - "202 ACCEPTED" - - "203 NON_AUTHORITATIVE_INFORMATION" - - "204 NO_CONTENT" - - "205 RESET_CONTENT" - - "206 PARTIAL_CONTENT" - - "207 MULTI_STATUS" - - "208 ALREADY_REPORTED" - - "226 IM_USED" - - "300 MULTIPLE_CHOICES" - - "301 MOVED_PERMANENTLY" - - "302 FOUND" - - "302 MOVED_TEMPORARILY" - - "303 SEE_OTHER" - - "304 NOT_MODIFIED" - - "305 USE_PROXY" - - "307 TEMPORARY_REDIRECT" - - "308 PERMANENT_REDIRECT" - - "400 BAD_REQUEST" - - "401 UNAUTHORIZED" - - "402 PAYMENT_REQUIRED" - - "403 FORBIDDEN" - - "404 NOT_FOUND" - - "405 METHOD_NOT_ALLOWED" - - "406 NOT_ACCEPTABLE" - - "407 PROXY_AUTHENTICATION_REQUIRED" - - "408 REQUEST_TIMEOUT" - - "409 CONFLICT" - - "410 GONE" - - "411 LENGTH_REQUIRED" - - "412 PRECONDITION_FAILED" - - "413 PAYLOAD_TOO_LARGE" - - "413 REQUEST_ENTITY_TOO_LARGE" - - "414 URI_TOO_LONG" - - "414 REQUEST_URI_TOO_LONG" - - "415 UNSUPPORTED_MEDIA_TYPE" - - "416 REQUESTED_RANGE_NOT_SATISFIABLE" - - "417 EXPECTATION_FAILED" - - "418 I_AM_A_TEAPOT" - - "419 INSUFFICIENT_SPACE_ON_RESOURCE" - - "420 METHOD_FAILURE" - - "421 DESTINATION_LOCKED" - - "422 UNPROCESSABLE_ENTITY" - - "423 LOCKED" - - "424 FAILED_DEPENDENCY" - - "425 TOO_EARLY" - - "426 UPGRADE_REQUIRED" - - "428 PRECONDITION_REQUIRED" - - "429 TOO_MANY_REQUESTS" - - "431 REQUEST_HEADER_FIELDS_TOO_LARGE" - - "451 UNAVAILABLE_FOR_LEGAL_REASONS" - - "500 INTERNAL_SERVER_ERROR" - - "501 NOT_IMPLEMENTED" - - "502 BAD_GATEWAY" - - "503 SERVICE_UNAVAILABLE" - - "504 GATEWAY_TIMEOUT" - - "505 HTTP_VERSION_NOT_SUPPORTED" - - "506 VARIANT_ALSO_NEGOTIATES" - - "507 INSUFFICIENT_STORAGE" - - "508 LOOP_DETECTED" - - "509 BANDWIDTH_LIMIT_EXCEEDED" - - "510 NOT_EXTENDED" - - "511 NETWORK_AUTHENTICATION_REQUIRED" - statusCodeValue: - type: "integer" - format: "int32" - title: "ResponseEntity" - SpinnakerPluginDescriptor: - type: "object" - required: - - "unsafe" - properties: - dependencies: - type: "array" - items: - $ref: "#/definitions/PluginDependency" - license: - type: "string" - pluginClass: - type: "string" - pluginDescription: - type: "string" - pluginId: - type: "string" - provider: - type: "string" - requires: - type: "string" - unsafe: - type: "boolean" - version: - type: "string" - title: "SpinnakerPluginDescriptor" - SpinnakerPluginInfo: - type: "object" - required: - - "releases" - properties: - description: - type: "string" - id: - type: "string" - name: - type: "string" - projectUrl: - type: "string" - provider: - type: "string" - releases: - type: "array" - items: - $ref: "#/definitions/SpinnakerPluginRelease" - repositoryId: - type: "string" - title: "SpinnakerPluginInfo" - example: - projectUrl: "projectUrl" - provider: "provider" - name: "name" - repositoryId: "repositoryId" - description: "description" - id: "id" - releases: - - date: "2000-01-23T04:56:07.000+00:00" - sha512sum: "sha512sum" - version: "version" - preferred: true - url: "url" - requires: "requires" - - date: "2000-01-23T04:56:07.000+00:00" - sha512sum: "sha512sum" - version: "version" - preferred: true - url: "url" - requires: "requires" - SpinnakerPluginRelease: - type: "object" - properties: - date: - type: "string" - format: "date-time" - preferred: - type: "boolean" - requires: - type: "string" - sha512sum: - type: "string" - url: - type: "string" - version: - type: "string" - title: "SpinnakerPluginRelease" - example: - date: "2000-01-23T04:56:07.000+00:00" - sha512sum: "sha512sum" - version: "version" - preferred: true - url: "url" - requires: "requires" - URI: + host: "host" + URL: type: "object" properties: - absolute: - type: "boolean" - authority: - type: "string" - fragment: - type: "string" - host: + query: type: "string" - opaque: - type: "boolean" path: type: "string" + deserializedFields: + $ref: "#/definitions/URLStreamHandler" port: type: "integer" format: "int32" - query: - type: "string" - rawAuthority: - type: "string" - rawFragment: - type: "string" - rawPath: - type: "string" - rawQuery: - type: "string" - rawSchemeSpecificPart: - type: "string" - rawUserInfo: - type: "string" - scheme: - type: "string" - schemeSpecificPart: - type: "string" - userInfo: - type: "string" - title: "URI" - example: - rawFragment: "rawFragment" - userInfo: "userInfo" - opaque: true - scheme: "scheme" - query: "query" - schemeSpecificPart: "schemeSpecificPart" - rawUserInfo: "rawUserInfo" - path: "path" - fragment: "fragment" - rawPath: "rawPath" - port: 5 - rawSchemeSpecificPart: "rawSchemeSpecificPart" - absolute: true - rawAuthority: "rawAuthority" - authority: "authority" - host: "host" - rawQuery: "rawQuery" - URL: - type: "object" - properties: - authority: - type: "string" - content: - type: "object" - properties: {} defaultPort: type: "integer" format: "int32" - deserializedFields: - $ref: "#/definitions/URLStreamHandler" - file: - type: "string" - host: - type: "string" - path: + ref: type: "string" - port: - type: "integer" - format: "int32" - protocol: + content: + type: "object" + properties: {} + userInfo: type: "string" - query: + file: type: "string" - ref: + authority: type: "string" serializedHashCode: type: "integer" format: "int32" - userInfo: + host: + type: "string" + protocol: type: "string" title: "URL" example: @@ -8417,53 +8482,284 @@ definitions: query: "query" content: "{}" deserializedFields: {} - defaultPort: 2 + defaultPort: 7 path: "path" - protocol: "protocol" ref: "ref" + protocol: "protocol" file: "file" - port: 7 + port: 2 authority: "authority" - host: "host" serializedHashCode: 9 + host: "host" URLStreamHandler: type: "object" title: "URLStreamHandler" - User: + ConstraintStatus: type: "object" properties: - accountNonExpired: - type: "boolean" - accountNonLocked: - type: "boolean" - allowedAccounts: - type: "array" - items: - type: "string" - authorities: - type: "array" - items: - $ref: "#/definitions/GrantedAuthority" - credentialsNonExpired: - type: "boolean" - email: + artifactReference: type: "string" - enabled: + type: + type: "string" + status: + type: "string" + artifactVersion: + type: "string" + comment: + type: "string" + title: "ConstraintStatus" + example: + artifactVersion: "artifactVersion" + artifactReference: "artifactReference" + comment: "comment" + type: "type" + status: "status" + EnvironmentArtifactVeto: + type: "object" + properties: + comment: + type: "string" + version: + type: "string" + targetEnvironment: + type: "string" + reference: + type: "string" + title: "EnvironmentArtifactVeto" + example: + reference: "reference" + targetEnvironment: "targetEnvironment" + comment: "comment" + version: "version" + InputStream: + type: "object" + title: "InputStream" + ResponseEntity: + type: "object" + properties: + statusCodeValue: + type: "integer" + format: "int32" + body: + type: "object" + properties: {} + statusCode: + type: "string" + enum: + - "100 CONTINUE" + - "101 SWITCHING_PROTOCOLS" + - "102 PROCESSING" + - "103 CHECKPOINT" + - "200 OK" + - "201 CREATED" + - "202 ACCEPTED" + - "203 NON_AUTHORITATIVE_INFORMATION" + - "204 NO_CONTENT" + - "205 RESET_CONTENT" + - "206 PARTIAL_CONTENT" + - "207 MULTI_STATUS" + - "208 ALREADY_REPORTED" + - "226 IM_USED" + - "300 MULTIPLE_CHOICES" + - "301 MOVED_PERMANENTLY" + - "302 FOUND" + - "302 MOVED_TEMPORARILY" + - "303 SEE_OTHER" + - "304 NOT_MODIFIED" + - "305 USE_PROXY" + - "307 TEMPORARY_REDIRECT" + - "308 PERMANENT_REDIRECT" + - "400 BAD_REQUEST" + - "401 UNAUTHORIZED" + - "402 PAYMENT_REQUIRED" + - "403 FORBIDDEN" + - "404 NOT_FOUND" + - "405 METHOD_NOT_ALLOWED" + - "406 NOT_ACCEPTABLE" + - "407 PROXY_AUTHENTICATION_REQUIRED" + - "408 REQUEST_TIMEOUT" + - "409 CONFLICT" + - "410 GONE" + - "411 LENGTH_REQUIRED" + - "412 PRECONDITION_FAILED" + - "413 PAYLOAD_TOO_LARGE" + - "413 REQUEST_ENTITY_TOO_LARGE" + - "414 URI_TOO_LONG" + - "414 REQUEST_URI_TOO_LONG" + - "415 UNSUPPORTED_MEDIA_TYPE" + - "416 REQUESTED_RANGE_NOT_SATISFIABLE" + - "417 EXPECTATION_FAILED" + - "418 I_AM_A_TEAPOT" + - "419 INSUFFICIENT_SPACE_ON_RESOURCE" + - "420 METHOD_FAILURE" + - "421 DESTINATION_LOCKED" + - "422 UNPROCESSABLE_ENTITY" + - "423 LOCKED" + - "424 FAILED_DEPENDENCY" + - "425 TOO_EARLY" + - "426 UPGRADE_REQUIRED" + - "428 PRECONDITION_REQUIRED" + - "429 TOO_MANY_REQUESTS" + - "431 REQUEST_HEADER_FIELDS_TOO_LARGE" + - "451 UNAVAILABLE_FOR_LEGAL_REASONS" + - "500 INTERNAL_SERVER_ERROR" + - "501 NOT_IMPLEMENTED" + - "502 BAD_GATEWAY" + - "503 SERVICE_UNAVAILABLE" + - "504 GATEWAY_TIMEOUT" + - "505 HTTP_VERSION_NOT_SUPPORTED" + - "506 VARIANT_ALSO_NEGOTIATES" + - "507 INSUFFICIENT_STORAGE" + - "508 LOOP_DETECTED" + - "509 BANDWIDTH_LIMIT_EXCEEDED" + - "510 NOT_EXTENDED" + - "511 NETWORK_AUTHENTICATION_REQUIRED" + title: "ResponseEntity" + PluginDependency: + type: "object" + properties: + optional: type: "boolean" - firstName: + pluginVersionSupport: type: "string" - lastName: + pluginId: type: "string" - roles: + title: "PluginDependency" + Map«string,object»: + type: "object" + title: "Map«string,object»" + additionalProperties: + type: "object" + properties: {} + Account: + type: "object" + properties: + requiredGroupMembership: type: "array" items: type: "string" - username: + permissions: + type: "object" + additionalProperties: + type: "array" + items: + type: "string" + name: type: "string" - title: "User" - Version: + accountId: + type: "string" + type: + type: "string" + title: "Account" + RemoteExtensionTransportConfig: type: "object" properties: - version: + http: + $ref: "#/definitions/Http" + title: "RemoteExtensionTransportConfig" + example: + http: + headers: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + queryParams: + key: "queryParams" + config: + key: "config" + url: "url" + Headers: + type: "object" + properties: + invokeHeaders: + type: "object" + additionalProperties: + type: "string" + readHeaders: + type: "object" + additionalProperties: + type: "string" + writeHeaders: + type: "object" + additionalProperties: + type: "string" + title: "Headers" + example: + readHeaders: + key: "readHeaders" + writeHeaders: + key: "writeHeaders" + invokeHeaders: + key: "invokeHeaders" + File: + type: "object" + properties: + executable: + type: "boolean" + lastModified: + type: "integer" + format: "int64" + directory: + type: "boolean" + writable: + type: "boolean" + totalSpace: + type: "integer" + format: "int64" + readable: + type: "boolean" + canonicalFile: + $ref: "#/definitions/File" + freeSpace: + type: "integer" + format: "int64" + file: + type: "boolean" + path: type: "string" - title: "Version" + usableSpace: + type: "integer" + format: "int64" + absolutePath: + type: "string" + parent: + type: "string" + hidden: + type: "boolean" + parentFile: + $ref: "#/definitions/File" + absolute: + type: "boolean" + absoluteFile: + $ref: "#/definitions/File" + name: + type: "string" + canonicalPath: + type: "string" + title: "File" + example: + readable: true + parent: "parent" + hidden: true + freeSpace: 5 + totalSpace: 1 + usableSpace: 5 + directory: true + executable: true + writable: true + path: "path" + file: true + absolute: true + name: "name" + canonicalPath: "canonicalPath" + absolutePath: "absolutePath" + lastModified: 6 + HashMap«string,object»: + type: "object" + title: "HashMap«string,object»" + additionalProperties: + type: "object" + properties: {} diff --git a/gateapi/api_amazon_infrastructure_controller.go b/gateapi/api_amazon_infrastructure_controller.go index 1716abf..2e3fc75 100644 --- a/gateapi/api_amazon_infrastructure_controller.go +++ b/gateapi/api_amazon_infrastructure_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type AmazonInfrastructureControllerApiService service -/* +/* AmazonInfrastructureControllerApiService Get application functions * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -35,10 +35,10 @@ AmazonInfrastructureControllerApiService Get application functions */ func (a *AmazonInfrastructureControllerApiService) ApplicationFunctionsUsingGET(ctx context.Context, application string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -85,36 +85,36 @@ func (a *AmazonInfrastructureControllerApiService) ApplicationFunctionsUsingGET( if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* AmazonInfrastructureControllerApiService Get functions * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *FunctionsUsingGETOpts - Optional Parameters: @@ -125,18 +125,18 @@ AmazonInfrastructureControllerApiService Get functions @return []interface{} */ -type FunctionsUsingGETOpts struct { - Account optional.String +type FunctionsUsingGETOpts struct { + Account optional.String FunctionName optional.String - Region optional.String + Region optional.String } func (a *AmazonInfrastructureControllerApiService) FunctionsUsingGET(ctx context.Context, localVarOptionals *FunctionsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -191,36 +191,36 @@ func (a *AmazonInfrastructureControllerApiService) FunctionsUsingGET(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* AmazonInfrastructureControllerApiService Get instance types * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -228,10 +228,10 @@ AmazonInfrastructureControllerApiService Get instance types */ func (a *AmazonInfrastructureControllerApiService) InstanceTypesUsingGET(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -277,36 +277,36 @@ func (a *AmazonInfrastructureControllerApiService) InstanceTypesUsingGET(ctx con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* AmazonInfrastructureControllerApiService Get subnets * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -314,10 +314,10 @@ AmazonInfrastructureControllerApiService Get subnets */ func (a *AmazonInfrastructureControllerApiService) SubnetsUsingGET(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -363,36 +363,36 @@ func (a *AmazonInfrastructureControllerApiService) SubnetsUsingGET(ctx context.C if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* AmazonInfrastructureControllerApiService Get VPCs * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -400,10 +400,10 @@ AmazonInfrastructureControllerApiService Get VPCs */ func (a *AmazonInfrastructureControllerApiService) VpcsUsingGET(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -449,29 +449,29 @@ func (a *AmazonInfrastructureControllerApiService) VpcsUsingGET(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_application_controller.go b/gateapi/api_application_controller.go index 918e9eb..a19dd20 100644 --- a/gateapi/api_application_controller.go +++ b/gateapi/api_application_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ApplicationControllerApiService service -/* +/* ApplicationControllerApiService Cancel pipeline * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -36,16 +36,16 @@ ApplicationControllerApiService Cancel pipeline @return map[string]interface{} */ -type CancelPipelineUsingPUTOpts struct { +type CancelPipelineUsingPUTOpts struct { Reason optional.String } func (a *ApplicationControllerApiService) CancelPipelineUsingPUT(ctx context.Context, id string, localVarOptionals *CancelPipelineUsingPUTOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -95,36 +95,36 @@ func (a *ApplicationControllerApiService) CancelPipelineUsingPUT(ctx context.Con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Cancel task * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -133,10 +133,10 @@ ApplicationControllerApiService Cancel task */ func (a *ApplicationControllerApiService) CancelTaskUsingPUT(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -183,36 +183,36 @@ func (a *ApplicationControllerApiService) CancelTaskUsingPUT(ctx context.Context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a list of applications * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *GetAllApplicationsUsingGETOpts - Optional Parameters: @@ -222,17 +222,17 @@ ApplicationControllerApiService Retrieve a list of applications @return []interface{} */ -type GetAllApplicationsUsingGETOpts struct { +type GetAllApplicationsUsingGETOpts struct { Account optional.String - Owner optional.String + Owner optional.String } func (a *ApplicationControllerApiService) GetAllApplicationsUsingGET(ctx context.Context, localVarOptionals *GetAllApplicationsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -284,36 +284,36 @@ func (a *ApplicationControllerApiService) GetAllApplicationsUsingGET(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a list of an application's configuration revision history * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -323,16 +323,16 @@ ApplicationControllerApiService Retrieve a list of an application's configur @return []interface{} */ -type GetApplicationHistoryUsingGETOpts struct { +type GetApplicationHistoryUsingGETOpts struct { Limit optional.Int32 } func (a *ApplicationControllerApiService) GetApplicationHistoryUsingGET(ctx context.Context, application string, localVarOptionals *GetApplicationHistoryUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -382,36 +382,36 @@ func (a *ApplicationControllerApiService) GetApplicationHistoryUsingGET(ctx cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve an application's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -421,16 +421,16 @@ ApplicationControllerApiService Retrieve an application's details @return map[string]interface{} */ -type GetApplicationUsingGETOpts struct { +type GetApplicationUsingGETOpts struct { Expand optional.Bool } func (a *ApplicationControllerApiService) GetApplicationUsingGET(ctx context.Context, application string, localVarOptionals *GetApplicationUsingGETOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -480,36 +480,36 @@ func (a *ApplicationControllerApiService) GetApplicationUsingGET(ctx context.Con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a pipeline configuration * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -519,10 +519,10 @@ ApplicationControllerApiService Retrieve a pipeline configuration */ func (a *ApplicationControllerApiService) GetPipelineConfigUsingGET(ctx context.Context, application string, pipelineName string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -570,36 +570,36 @@ func (a *ApplicationControllerApiService) GetPipelineConfigUsingGET(ctx context. if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a list of an application's pipeline configurations * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -608,10 +608,10 @@ ApplicationControllerApiService Retrieve a list of an application's pipeline */ func (a *ApplicationControllerApiService) GetPipelineConfigsForApplicationUsingGET(ctx context.Context, application string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -658,36 +658,36 @@ func (a *ApplicationControllerApiService) GetPipelineConfigsForApplicationUsingG if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a list of an application's pipeline executions * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -699,18 +699,18 @@ ApplicationControllerApiService Retrieve a list of an application's pipeline @return []interface{} */ -type GetPipelinesUsingGETOpts struct { - Expand optional.Bool - Limit optional.Int32 +type GetPipelinesUsingGETOpts struct { + Expand optional.Bool + Limit optional.Int32 Statuses optional.String } func (a *ApplicationControllerApiService) GetPipelinesUsingGET(ctx context.Context, application string, localVarOptionals *GetPipelinesUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -766,36 +766,36 @@ func (a *ApplicationControllerApiService) GetPipelinesUsingGET(ctx context.Conte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a pipeline strategy configuration * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -805,10 +805,10 @@ ApplicationControllerApiService Retrieve a pipeline strategy configuration */ func (a *ApplicationControllerApiService) GetStrategyConfigUsingGET(ctx context.Context, application string, strategyName string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -856,36 +856,36 @@ func (a *ApplicationControllerApiService) GetStrategyConfigUsingGET(ctx context. if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a list of an application's pipeline strategy configurations * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -894,10 +894,10 @@ ApplicationControllerApiService Retrieve a list of an application's pipeline */ func (a *ApplicationControllerApiService) GetStrategyConfigsForApplicationUsingGET(ctx context.Context, application string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -944,36 +944,36 @@ func (a *ApplicationControllerApiService) GetStrategyConfigsForApplicationUsingG if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Get task details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -984,16 +984,16 @@ ApplicationControllerApiService Get task details @return map[string]interface{} */ -type GetTaskDetailsUsingGETOpts struct { +type GetTaskDetailsUsingGETOpts struct { XRateLimitApp optional.String } func (a *ApplicationControllerApiService) GetTaskDetailsUsingGET(ctx context.Context, id string, taskDetailsId string, localVarOptionals *GetTaskDetailsUsingGETOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -1044,36 +1044,36 @@ func (a *ApplicationControllerApiService) GetTaskDetailsUsingGET(ctx context.Con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Get task * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -1082,10 +1082,10 @@ ApplicationControllerApiService Get task */ func (a *ApplicationControllerApiService) GetTaskUsingGET(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -1132,36 +1132,36 @@ func (a *ApplicationControllerApiService) GetTaskUsingGET(ctx context.Context, i if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Retrieve a list of an application's tasks * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -1173,18 +1173,18 @@ ApplicationControllerApiService Retrieve a list of an application's tasks @return []interface{} */ -type GetTasksUsingGETOpts struct { - Limit optional.Int32 - Page optional.Int32 +type GetTasksUsingGETOpts struct { + Limit optional.Int32 + Page optional.Int32 Statuses optional.String } func (a *ApplicationControllerApiService) GetTasksUsingGET(ctx context.Context, application string, localVarOptionals *GetTasksUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -1240,36 +1240,36 @@ func (a *ApplicationControllerApiService) GetTasksUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Invoke pipeline config * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -1281,17 +1281,17 @@ ApplicationControllerApiService Invoke pipeline config @return HttpEntity */ -type InvokePipelineConfigUsingPOSTOpts struct { +type InvokePipelineConfigUsingPOSTOpts struct { Trigger optional.Interface - User optional.String + User optional.String } func (a *ApplicationControllerApiService) InvokePipelineConfigUsingPOST(ctx context.Context, application string, pipelineName string, localVarOptionals *InvokePipelineConfigUsingPOSTOpts) (HttpEntity, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue HttpEntity ) @@ -1326,10 +1326,10 @@ func (a *ApplicationControllerApiService) InvokePipelineConfigUsingPOST(ctx cont } // body params if localVarOptionals != nil && localVarOptionals.Trigger.IsSet() { - + localVarOptionalTrigger, localVarOptionalTriggerok := localVarOptionals.Trigger.Value().(interface{}) if !localVarOptionalTriggerok { - return localVarReturnValue, nil, reportError("trigger should be interface{}") + return localVarReturnValue, nil, reportError("trigger should be interface{}") } localVarPostBody = &localVarOptionalTrigger } @@ -1351,36 +1351,36 @@ func (a *ApplicationControllerApiService) InvokePipelineConfigUsingPOST(ctx cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v HttpEntity - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ApplicationControllerApiService Create task * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -1390,10 +1390,10 @@ ApplicationControllerApiService Create task */ func (a *ApplicationControllerApiService) TaskUsingPOST(ctx context.Context, application string, map_ interface{}) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -1442,29 +1442,29 @@ func (a *ApplicationControllerApiService) TaskUsingPOST(ctx context.Context, app if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_artifact_controller.go b/gateapi/api_artifact_controller.go index 06d836f..35f2d76 100644 --- a/gateapi/api_artifact_controller.go +++ b/gateapi/api_artifact_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ArtifactControllerApiService service -/* +/* ArtifactControllerApiService Retrieve the list of artifact accounts configured in Clouddriver. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *AllUsingGETOpts - Optional Parameters: @@ -35,16 +35,16 @@ ArtifactControllerApiService Retrieve the list of artifact accounts configured i @return []interface{} */ -type AllUsingGETOpts struct { +type AllUsingGETOpts struct { XRateLimitApp optional.String } func (a *ArtifactControllerApiService) AllUsingGET(ctx context.Context, localVarOptionals *AllUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -93,36 +93,36 @@ func (a *ArtifactControllerApiService) AllUsingGET(ctx context.Context, localVar if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ArtifactControllerApiService Retrieve the list of artifact versions by account and artifact names * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param accountName accountName @@ -134,16 +134,16 @@ ArtifactControllerApiService Retrieve the list of artifact versions by account a @return []string */ -type ArtifactVersionsUsingGETOpts struct { +type ArtifactVersionsUsingGETOpts struct { XRateLimitApp optional.String } func (a *ArtifactControllerApiService) ArtifactVersionsUsingGET(ctx context.Context, accountName string, artifactName string, type_ string, localVarOptionals *ArtifactVersionsUsingGETOpts) ([]string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []string ) @@ -195,36 +195,36 @@ func (a *ArtifactControllerApiService) ArtifactVersionsUsingGET(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []string - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ArtifactControllerApiService Retrieve the specified artifact version for an artifact provider and package name * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param packageName packageName @@ -235,10 +235,10 @@ ArtifactControllerApiService Retrieve the specified artifact version for an arti */ func (a *ArtifactControllerApiService) GetArtifactUsingGET(ctx context.Context, packageName string, provider string, version string) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -287,29 +287,29 @@ func (a *ArtifactControllerApiService) GetArtifactUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_auth_controller.go b/gateapi/api_auth_controller.go index 1bdab0a..a47ac32 100644 --- a/gateapi/api_auth_controller.go +++ b/gateapi/api_auth_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "github.com/antihax/optional" ) // Linger please @@ -25,7 +25,7 @@ var ( type AuthControllerApiService service -/* +/* AuthControllerApiService Get service accounts * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *GetServiceAccountsUsingGETOpts - Optional Parameters: @@ -34,16 +34,16 @@ AuthControllerApiService Get service accounts @return []interface{} */ -type GetServiceAccountsUsingGETOpts struct { +type GetServiceAccountsUsingGETOpts struct { Application optional.String } func (a *AuthControllerApiService) GetServiceAccountsUsingGET(ctx context.Context, localVarOptionals *GetServiceAccountsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -92,36 +92,36 @@ func (a *AuthControllerApiService) GetServiceAccountsUsingGET(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* AuthControllerApiService Get logged out message * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -129,10 +129,10 @@ AuthControllerApiService Get logged out message */ func (a *AuthControllerApiService) LoggedOutUsingGET(ctx context.Context) (string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue string ) @@ -178,36 +178,36 @@ func (a *AuthControllerApiService) LoggedOutUsingGET(ctx context.Context) (strin if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v string - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* AuthControllerApiService Redirect to Deck * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param to to @@ -220,6 +220,7 @@ func (a *AuthControllerApiService) RedirectUsingGET(ctx context.Context, to stri localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -263,19 +264,20 @@ func (a *AuthControllerApiService) RedirectUsingGET(ctx context.Context, to stri return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* AuthControllerApiService Sync user roles * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -287,6 +289,7 @@ func (a *AuthControllerApiService) SyncUsingPOST(ctx context.Context) (*http.Res localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -329,19 +332,20 @@ func (a *AuthControllerApiService) SyncUsingPOST(ctx context.Context) (*http.Res return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* AuthControllerApiService Get user * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -349,10 +353,10 @@ AuthControllerApiService Get user */ func (a *AuthControllerApiService) UserUsingGET(ctx context.Context) (User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue User ) @@ -398,29 +402,29 @@ func (a *AuthControllerApiService) UserUsingGET(ctx context.Context) (User, *htt if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v User - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_bake_controller.go b/gateapi/api_bake_controller.go index b349b54..6625cca 100644 --- a/gateapi/api_bake_controller.go +++ b/gateapi/api_bake_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "fmt" "io/ioutil" "net/http" "net/url" "strings" + "fmt" ) // Linger please @@ -25,7 +25,7 @@ var ( type BakeControllerApiService service -/* +/* BakeControllerApiService Retrieve a list of available bakery base images for a given cloud provider * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param cloudProvider cloudProvider @@ -34,10 +34,10 @@ BakeControllerApiService Retrieve a list of available bakery base images for a g */ func (a *BakeControllerApiService) BakeOptionsUsingGET(ctx context.Context, cloudProvider string) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -84,36 +84,36 @@ func (a *BakeControllerApiService) BakeOptionsUsingGET(ctx context.Context, clou if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BakeControllerApiService Retrieve a list of available bakery base images, grouped by cloud provider * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -121,10 +121,10 @@ BakeControllerApiService Retrieve a list of available bakery base images, groupe */ func (a *BakeControllerApiService) BakeOptionsUsingGET1(ctx context.Context) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -170,36 +170,36 @@ func (a *BakeControllerApiService) BakeOptionsUsingGET1(ctx context.Context) (in if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BakeControllerApiService Retrieve the logs for a given bake * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param region region @@ -209,10 +209,10 @@ BakeControllerApiService Retrieve the logs for a given bake */ func (a *BakeControllerApiService) LookupLogsUsingGET(ctx context.Context, region string, statusId string) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -260,29 +260,29 @@ func (a *BakeControllerApiService) LookupLogsUsingGET(ctx context.Context, regio if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_build_controller.go b/gateapi/api_build_controller.go index 89874f4..ac038d9 100644 --- a/gateapi/api_build_controller.go +++ b/gateapi/api_build_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type BuildControllerApiService service -/* +/* BuildControllerApiService Get build masters Deprecated, use the v3 endpoint instead * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -36,16 +36,16 @@ Deprecated, use the v3 endpoint instead @return []interface{} */ -type GetBuildMastersUsingGETOpts struct { +type GetBuildMastersUsingGETOpts struct { Type_ optional.String } func (a *BuildControllerApiService) GetBuildMastersUsingGET(ctx context.Context, localVarOptionals *GetBuildMastersUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -94,36 +94,36 @@ func (a *BuildControllerApiService) GetBuildMastersUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get build for build master Deprecated, use the v3 endpoint instead * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -134,10 +134,10 @@ Deprecated, use the v3 endpoint instead */ func (a *BuildControllerApiService) GetBuildUsingGET(ctx context.Context, buildMaster string, number string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -185,36 +185,36 @@ func (a *BuildControllerApiService) GetBuildUsingGET(ctx context.Context, buildM if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get builds for build master Deprecated, use the v3 endpoint instead * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -224,10 +224,10 @@ Deprecated, use the v3 endpoint instead */ func (a *BuildControllerApiService) GetBuildsUsingGET(ctx context.Context, buildMaster string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -274,36 +274,36 @@ func (a *BuildControllerApiService) GetBuildsUsingGET(ctx context.Context, build if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get job config Deprecated, use the v3 endpoint instead * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -313,10 +313,10 @@ Deprecated, use the v3 endpoint instead */ func (a *BuildControllerApiService) GetJobConfigUsingGET(ctx context.Context, buildMaster string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -363,36 +363,36 @@ func (a *BuildControllerApiService) GetJobConfigUsingGET(ctx context.Context, bu if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get jobs for build master Deprecated, use the v3 endpoint instead * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -402,10 +402,10 @@ Deprecated, use the v3 endpoint instead */ func (a *BuildControllerApiService) GetJobsForBuildMasterUsingGET(ctx context.Context, buildMaster string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -452,36 +452,36 @@ func (a *BuildControllerApiService) GetJobsForBuildMasterUsingGET(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get build masters * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *V3GetBuildMastersUsingGETOpts - Optional Parameters: @@ -490,16 +490,16 @@ BuildControllerApiService Get build masters @return []interface{} */ -type V3GetBuildMastersUsingGETOpts struct { +type V3GetBuildMastersUsingGETOpts struct { Type_ optional.String } func (a *BuildControllerApiService) V3GetBuildMastersUsingGET(ctx context.Context, localVarOptionals *V3GetBuildMastersUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -548,36 +548,36 @@ func (a *BuildControllerApiService) V3GetBuildMastersUsingGET(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get build for build master * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param buildMaster buildMaster @@ -588,10 +588,10 @@ BuildControllerApiService Get build for build master */ func (a *BuildControllerApiService) V3GetBuildUsingGET(ctx context.Context, buildMaster string, job string, number string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -640,36 +640,36 @@ func (a *BuildControllerApiService) V3GetBuildUsingGET(ctx context.Context, buil if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get builds for build master * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param buildMaster buildMaster @@ -679,10 +679,10 @@ BuildControllerApiService Get builds for build master */ func (a *BuildControllerApiService) V3GetBuildsUsingGET(ctx context.Context, buildMaster string, job string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -730,36 +730,36 @@ func (a *BuildControllerApiService) V3GetBuildsUsingGET(ctx context.Context, bui if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get job config * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param buildMaster buildMaster @@ -769,10 +769,10 @@ BuildControllerApiService Get job config */ func (a *BuildControllerApiService) V3GetJobConfigUsingGET(ctx context.Context, buildMaster string, job string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -820,36 +820,36 @@ func (a *BuildControllerApiService) V3GetJobConfigUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* BuildControllerApiService Get jobs for build master * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param buildMaster buildMaster @@ -858,10 +858,10 @@ BuildControllerApiService Get jobs for build master */ func (a *BuildControllerApiService) V3GetJobsForBuildMasterUsingGET(ctx context.Context, buildMaster string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -908,29 +908,29 @@ func (a *BuildControllerApiService) V3GetJobsForBuildMasterUsingGET(ctx context. if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_ci_controller.go b/gateapi/api_ci_controller.go index 942b7c5..5147338 100644 --- a/gateapi/api_ci_controller.go +++ b/gateapi/api_ci_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "github.com/antihax/optional" ) // Linger please @@ -25,7 +25,7 @@ var ( type CiControllerApiService service -/* +/* CiControllerApiService getBuilds * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param projectKey projectKey @@ -36,16 +36,16 @@ CiControllerApiService getBuilds @return []interface{} */ -type GetBuildsUsingGET1Opts struct { +type GetBuildsUsingGET1Opts struct { CompletionStatus optional.String } func (a *CiControllerApiService) GetBuildsUsingGET1(ctx context.Context, projectKey string, repoSlug string, localVarOptionals *GetBuildsUsingGET1Opts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -96,29 +96,29 @@ func (a *CiControllerApiService) GetBuildsUsingGET1(ctx context.Context, project if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_cluster_controller.go b/gateapi/api_cluster_controller.go index d51cf79..f8f8087 100644 --- a/gateapi/api_cluster_controller.go +++ b/gateapi/api_cluster_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ClusterControllerApiService service -/* +/* ClusterControllerApiService Retrieve a cluster's loadbalancers * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -39,16 +39,16 @@ ClusterControllerApiService Retrieve a cluster's loadbalancers @return []interface{} */ -type GetClusterLoadBalancersUsingGETOpts struct { +type GetClusterLoadBalancersUsingGETOpts struct { XRateLimitApp optional.String } func (a *ClusterControllerApiService) GetClusterLoadBalancersUsingGET(ctx context.Context, account string, applicationName string, clusterName string, type_ string, localVarOptionals *GetClusterLoadBalancersUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -101,36 +101,36 @@ func (a *ClusterControllerApiService) GetClusterLoadBalancersUsingGET(ctx contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ClusterControllerApiService Retrieve a cluster's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -142,16 +142,16 @@ ClusterControllerApiService Retrieve a cluster's details @return map[string]interface{} */ -type GetClustersUsingGETOpts struct { +type GetClustersUsingGETOpts struct { XRateLimitApp optional.String } func (a *ClusterControllerApiService) GetClustersUsingGET(ctx context.Context, account string, application string, clusterName string, localVarOptionals *GetClustersUsingGETOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -203,36 +203,36 @@ func (a *ClusterControllerApiService) GetClustersUsingGET(ctx context.Context, a if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ClusterControllerApiService Retrieve a list of clusters for an account * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -243,16 +243,16 @@ ClusterControllerApiService Retrieve a list of clusters for an account @return []interface{} */ -type GetClustersUsingGET1Opts struct { +type GetClustersUsingGET1Opts struct { XRateLimitApp optional.String } func (a *ClusterControllerApiService) GetClustersUsingGET1(ctx context.Context, account string, application string, localVarOptionals *GetClustersUsingGET1Opts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -303,36 +303,36 @@ func (a *ClusterControllerApiService) GetClustersUsingGET1(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ClusterControllerApiService Retrieve a list of cluster names for an application, grouped by account * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -342,16 +342,16 @@ ClusterControllerApiService Retrieve a list of cluster names for an application, @return map[string]interface{} */ -type GetClustersUsingGET2Opts struct { +type GetClustersUsingGET2Opts struct { XRateLimitApp optional.String } func (a *ClusterControllerApiService) GetClustersUsingGET2(ctx context.Context, application string, localVarOptionals *GetClustersUsingGET2Opts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -401,36 +401,36 @@ func (a *ClusterControllerApiService) GetClustersUsingGET2(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ClusterControllerApiService Retrieve a list of scaling activities for a server group * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -445,18 +445,18 @@ ClusterControllerApiService Retrieve a list of scaling activities for a server g @return []interface{} */ -type GetScalingActivitiesUsingGETOpts struct { +type GetScalingActivitiesUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String - Region optional.String + Provider optional.String + Region optional.String } func (a *ClusterControllerApiService) GetScalingActivitiesUsingGET(ctx context.Context, account string, application string, clusterName string, serverGroupName string, localVarOptionals *GetScalingActivitiesUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -515,36 +515,36 @@ func (a *ClusterControllerApiService) GetScalingActivitiesUsingGET(ctx context.C if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ClusterControllerApiService Retrieve a server group's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -557,16 +557,16 @@ ClusterControllerApiService Retrieve a server group's details @return []interface{} */ -type GetServerGroupsUsingGETOpts struct { +type GetServerGroupsUsingGETOpts struct { XRateLimitApp optional.String } func (a *ClusterControllerApiService) GetServerGroupsUsingGET(ctx context.Context, account string, application string, clusterName string, serverGroupName string, localVarOptionals *GetServerGroupsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -619,36 +619,36 @@ func (a *ClusterControllerApiService) GetServerGroupsUsingGET(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ClusterControllerApiService Retrieve a list of server groups for a cluster * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -660,16 +660,16 @@ ClusterControllerApiService Retrieve a list of server groups for a cluster @return []interface{} */ -type GetServerGroupsUsingGET1Opts struct { +type GetServerGroupsUsingGET1Opts struct { XRateLimitApp optional.String } func (a *ClusterControllerApiService) GetServerGroupsUsingGET1(ctx context.Context, account string, application string, clusterName string, localVarOptionals *GetServerGroupsUsingGET1Opts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -721,36 +721,36 @@ func (a *ClusterControllerApiService) GetServerGroupsUsingGET1(ctx context.Conte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ClusterControllerApiService Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster `scope` is either a zone or a region * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -768,18 +768,18 @@ ClusterControllerApiService Retrieve a server group that matches a target coordi @return map[string]interface{} */ -type GetTargetServerGroupUsingGETOpts struct { - XRateLimitApp optional.String - OnlyEnabled optional.Bool +type GetTargetServerGroupUsingGETOpts struct { + XRateLimitApp optional.String + OnlyEnabled optional.Bool ValidateOldest optional.Bool } func (a *ClusterControllerApiService) GetTargetServerGroupUsingGET(ctx context.Context, account string, application string, cloudProvider string, clusterName string, scope string, target string, localVarOptionals *GetTargetServerGroupUsingGETOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -840,29 +840,29 @@ func (a *ClusterControllerApiService) GetTargetServerGroupUsingGET(ctx context.C if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_concourse_controller.go b/gateapi/api_concourse_controller.go index f05ce48..eca4485 100644 --- a/gateapi/api_concourse_controller.go +++ b/gateapi/api_concourse_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "fmt" "io/ioutil" "net/http" "net/url" "strings" + "fmt" ) // Linger please @@ -25,7 +25,7 @@ var ( type ConcourseControllerApiService service -/* +/* ConcourseControllerApiService Retrieve the list of job names for a given pipeline available to triggers * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param buildMaster buildMaster @@ -36,10 +36,10 @@ ConcourseControllerApiService Retrieve the list of job names for a given pipelin */ func (a *ConcourseControllerApiService) JobsUsingGET(ctx context.Context, buildMaster string, pipeline string, team string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -88,36 +88,36 @@ func (a *ConcourseControllerApiService) JobsUsingGET(ctx context.Context, buildM if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ConcourseControllerApiService Retrieve the list of pipeline names for a given team available to triggers * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param buildMaster buildMaster @@ -127,10 +127,10 @@ ConcourseControllerApiService Retrieve the list of pipeline names for a given te */ func (a *ConcourseControllerApiService) PipelinesUsingGET(ctx context.Context, buildMaster string, team string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -178,36 +178,36 @@ func (a *ConcourseControllerApiService) PipelinesUsingGET(ctx context.Context, b if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ConcourseControllerApiService Retrieve the list of resource names for a given pipeline available to the Concourse stage * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param buildMaster buildMaster @@ -218,10 +218,10 @@ ConcourseControllerApiService Retrieve the list of resource names for a given pi */ func (a *ConcourseControllerApiService) ResourcesUsingGET(ctx context.Context, buildMaster string, pipeline string, team string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -270,29 +270,29 @@ func (a *ConcourseControllerApiService) ResourcesUsingGET(ctx context.Context, b if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_credentials_controller.go b/gateapi/api_credentials_controller.go index fa2daa0..3db9830 100644 --- a/gateapi/api_credentials_controller.go +++ b/gateapi/api_credentials_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,50 +26,50 @@ var ( type CredentialsControllerApiService service -/* +/* CredentialsControllerApiService Retrieve an account's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account * @param optional nil or *GetAccountUsingGETOpts - Optional Parameters: * @param "XRateLimitApp" (optional.String) - X-RateLimit-App - * @param "AccountNonExpired" (optional.Bool) - - * @param "AccountNonLocked" (optional.Bool) - - * @param "AllowedAccounts" (optional.Interface of []string) - - * @param "Authorities0Authority" (optional.String) - - * @param "CredentialsNonExpired" (optional.Bool) - - * @param "Email" (optional.String) - - * @param "Enabled" (optional.Bool) - - * @param "FirstName" (optional.String) - - * @param "LastName" (optional.String) - - * @param "Password" (optional.String) - - * @param "Roles" (optional.Interface of []string) - - * @param "Username" (optional.String) - + * @param "AccountNonExpired" (optional.Bool) - + * @param "AccountNonLocked" (optional.Bool) - + * @param "AllowedAccounts" (optional.Interface of []string) - + * @param "Authorities0Authority" (optional.String) - + * @param "CredentialsNonExpired" (optional.Bool) - + * @param "Email" (optional.String) - + * @param "Enabled" (optional.Bool) - + * @param "FirstName" (optional.String) - + * @param "LastName" (optional.String) - + * @param "Password" (optional.String) - + * @param "Roles" (optional.Interface of []string) - + * @param "Username" (optional.String) - @return AccountDetails */ -type GetAccountUsingGETOpts struct { - XRateLimitApp optional.String - AccountNonExpired optional.Bool - AccountNonLocked optional.Bool - AllowedAccounts optional.Interface +type GetAccountUsingGETOpts struct { + XRateLimitApp optional.String + AccountNonExpired optional.Bool + AccountNonLocked optional.Bool + AllowedAccounts optional.Interface Authorities0Authority optional.String CredentialsNonExpired optional.Bool - Email optional.String - Enabled optional.Bool - FirstName optional.String - LastName optional.String - Password optional.String - Roles optional.Interface - Username optional.String + Email optional.String + Enabled optional.Bool + FirstName optional.String + LastName optional.String + Password optional.String + Roles optional.Interface + Username optional.String } func (a *CredentialsControllerApiService) GetAccountUsingGET(ctx context.Context, account string, localVarOptionals *GetAccountUsingGETOpts) (AccountDetails, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue AccountDetails ) @@ -155,78 +155,78 @@ func (a *CredentialsControllerApiService) GetAccountUsingGET(ctx context.Context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v AccountDetails - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* CredentialsControllerApiService Retrieve a list of accounts * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *GetAccountsUsingGETOpts - Optional Parameters: - * @param "AccountNonExpired" (optional.Bool) - - * @param "AccountNonLocked" (optional.Bool) - - * @param "AllowedAccounts" (optional.Interface of []string) - - * @param "Authorities0Authority" (optional.String) - - * @param "CredentialsNonExpired" (optional.Bool) - - * @param "Email" (optional.String) - - * @param "Enabled" (optional.Bool) - + * @param "AccountNonExpired" (optional.Bool) - + * @param "AccountNonLocked" (optional.Bool) - + * @param "AllowedAccounts" (optional.Interface of []string) - + * @param "Authorities0Authority" (optional.String) - + * @param "CredentialsNonExpired" (optional.Bool) - + * @param "Email" (optional.String) - + * @param "Enabled" (optional.Bool) - * @param "Expand" (optional.Bool) - expand - * @param "FirstName" (optional.String) - - * @param "LastName" (optional.String) - - * @param "Password" (optional.String) - - * @param "Roles" (optional.Interface of []string) - - * @param "Username" (optional.String) - + * @param "FirstName" (optional.String) - + * @param "LastName" (optional.String) - + * @param "Password" (optional.String) - + * @param "Roles" (optional.Interface of []string) - + * @param "Username" (optional.String) - @return []Account */ -type GetAccountsUsingGETOpts struct { - AccountNonExpired optional.Bool - AccountNonLocked optional.Bool - AllowedAccounts optional.Interface +type GetAccountsUsingGETOpts struct { + AccountNonExpired optional.Bool + AccountNonLocked optional.Bool + AllowedAccounts optional.Interface Authorities0Authority optional.String CredentialsNonExpired optional.Bool - Email optional.String - Enabled optional.Bool - Expand optional.Bool - FirstName optional.String - LastName optional.String - Password optional.String - Roles optional.Interface - Username optional.String + Email optional.String + Enabled optional.Bool + Expand optional.Bool + FirstName optional.String + LastName optional.String + Password optional.String + Roles optional.Interface + Username optional.String } func (a *CredentialsControllerApiService) GetAccountsUsingGET(ctx context.Context, localVarOptionals *GetAccountsUsingGETOpts) ([]Account, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Account ) @@ -311,29 +311,29 @@ func (a *CredentialsControllerApiService) GetAccountsUsingGET(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []Account - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_deck_plugins_controller.go b/gateapi/api_deck_plugins_controller.go index 3d1f085..368d6a0 100644 --- a/gateapi/api_deck_plugins_controller.go +++ b/gateapi/api_deck_plugins_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "fmt" "io/ioutil" "net/http" "net/url" "strings" + "fmt" ) // Linger please @@ -25,7 +25,7 @@ var ( type DeckPluginsControllerApiService service -/* +/* DeckPluginsControllerApiService Retrieve a single plugin asset by version * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param asset asset @@ -36,10 +36,10 @@ DeckPluginsControllerApiService Retrieve a single plugin asset by version */ func (a *DeckPluginsControllerApiService) GetPluginAssetUsingGET(ctx context.Context, asset string, pluginId string, pluginVersion string) (string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue string ) @@ -88,36 +88,36 @@ func (a *DeckPluginsControllerApiService) GetPluginAssetUsingGET(ctx context.Con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v string - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* DeckPluginsControllerApiService Retrieve a plugin manifest * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -125,10 +125,10 @@ DeckPluginsControllerApiService Retrieve a plugin manifest */ func (a *DeckPluginsControllerApiService) GetPluginManifestUsingGET(ctx context.Context) ([]DeckPluginVersion, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []DeckPluginVersion ) @@ -174,29 +174,29 @@ func (a *DeckPluginsControllerApiService) GetPluginManifestUsingGET(ctx context. if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []DeckPluginVersion - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_ecs_server_group_events_controller.go b/gateapi/api_ecs_server_group_events_controller.go index 61813cd..37eaefb 100644 --- a/gateapi/api_ecs_server_group_events_controller.go +++ b/gateapi/api_ecs_server_group_events_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "fmt" "io/ioutil" "net/http" "net/url" "strings" + "fmt" ) // Linger please @@ -25,7 +25,7 @@ var ( type EcsServerGroupEventsControllerApiService service -/* +/* EcsServerGroupEventsControllerApiService Retrieves a list of events for a server group * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -38,10 +38,10 @@ EcsServerGroupEventsControllerApiService Retrieves a list of events for a server */ func (a *EcsServerGroupEventsControllerApiService) GetEventsUsingGET(ctx context.Context, account string, application string, provider string, region string, serverGroupName string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -92,29 +92,29 @@ func (a *EcsServerGroupEventsControllerApiService) GetEventsUsingGET(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_executions_controller.go b/gateapi/api_executions_controller.go index fb441fd..5a48006 100644 --- a/gateapi/api_executions_controller.go +++ b/gateapi/api_executions_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ExecutionsControllerApiService service -/* +/* ExecutionsControllerApiService Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *GetLatestExecutionsByConfigIdsUsingGETOpts - Optional Parameters: @@ -39,20 +39,20 @@ ExecutionsControllerApiService Retrieves an ad-hoc collection of executions base @return []interface{} */ -type GetLatestExecutionsByConfigIdsUsingGETOpts struct { - ExecutionIds optional.String - Expand optional.Bool - Limit optional.Int32 +type GetLatestExecutionsByConfigIdsUsingGETOpts struct { + ExecutionIds optional.String + Expand optional.Bool + Limit optional.Int32 PipelineConfigIds optional.String - Statuses optional.String + Statuses optional.String } func (a *ExecutionsControllerApiService) GetLatestExecutionsByConfigIdsUsingGET(ctx context.Context, localVarOptionals *GetLatestExecutionsByConfigIdsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -113,36 +113,36 @@ func (a *ExecutionsControllerApiService) GetLatestExecutionsByConfigIdsUsingGET( if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ExecutionsControllerApiService Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application Only includes executions that are part of this application. If this value is \"*\", results will include executions of all applications. @@ -162,26 +162,26 @@ ExecutionsControllerApiService Search for pipeline executions using a combinatio @return []interface{} */ -type SearchForPipelineExecutionsByTriggerUsingGETOpts struct { - EventId optional.String - Expand optional.Bool - PipelineName optional.String - Reverse optional.Bool - Size optional.Int32 - StartIndex optional.Int32 - Statuses optional.String - Trigger optional.String - TriggerTimeEndBoundary optional.Int64 +type SearchForPipelineExecutionsByTriggerUsingGETOpts struct { + EventId optional.String + Expand optional.Bool + PipelineName optional.String + Reverse optional.Bool + Size optional.Int32 + StartIndex optional.Int32 + Statuses optional.String + Trigger optional.String + TriggerTimeEndBoundary optional.Int64 TriggerTimeStartBoundary optional.Int64 - TriggerTypes optional.String + TriggerTypes optional.String } func (a *ExecutionsControllerApiService) SearchForPipelineExecutionsByTriggerUsingGET(ctx context.Context, application string, localVarOptionals *SearchForPipelineExecutionsByTriggerUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -261,29 +261,29 @@ func (a *ExecutionsControllerApiService) SearchForPipelineExecutionsByTriggerUsi if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_firewall_controller.go b/gateapi/api_firewall_controller.go index 8c821c2..f193bf2 100644 --- a/gateapi/api_firewall_controller.go +++ b/gateapi/api_firewall_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type FirewallControllerApiService service -/* +/* FirewallControllerApiService Retrieve a list of firewalls for a given account and region * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -38,17 +38,17 @@ FirewallControllerApiService Retrieve a list of firewalls for a given account an @return []interface{} */ -type AllByAccountAndRegionUsingGETOpts struct { +type AllByAccountAndRegionUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *FirewallControllerApiService) AllByAccountAndRegionUsingGET(ctx context.Context, account string, region string, localVarOptionals *AllByAccountAndRegionUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -102,36 +102,36 @@ func (a *FirewallControllerApiService) AllByAccountAndRegionUsingGET(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* FirewallControllerApiService Retrieve a list of firewalls for a given account, grouped by region * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -142,17 +142,17 @@ FirewallControllerApiService Retrieve a list of firewalls for a given account, g @return interface{} */ -type AllByAccountUsingGETOpts struct { +type AllByAccountUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *FirewallControllerApiService) AllByAccountUsingGET(ctx context.Context, account string, localVarOptionals *AllByAccountUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -205,36 +205,36 @@ func (a *FirewallControllerApiService) AllByAccountUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* FirewallControllerApiService Retrieve a list of firewalls, grouped by account, cloud provider, and region * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *AllUsingGET1Opts - Optional Parameters: @@ -244,17 +244,17 @@ FirewallControllerApiService Retrieve a list of firewalls, grouped by account, c @return interface{} */ -type AllUsingGET1Opts struct { +type AllUsingGET1Opts struct { XRateLimitApp optional.String - Id optional.String + Id optional.String } func (a *FirewallControllerApiService) AllUsingGET1(ctx context.Context, localVarOptionals *AllUsingGET1Opts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -306,36 +306,36 @@ func (a *FirewallControllerApiService) AllUsingGET1(ctx context.Context, localVa if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* FirewallControllerApiService Retrieve a firewall's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -349,18 +349,18 @@ FirewallControllerApiService Retrieve a firewall's details @return interface{} */ -type GetSecurityGroupUsingGETOpts struct { +type GetSecurityGroupUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String - VpcId optional.String + Provider optional.String + VpcId optional.String } func (a *FirewallControllerApiService) GetSecurityGroupUsingGET(ctx context.Context, account string, name string, region string, localVarOptionals *GetSecurityGroupUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -418,29 +418,29 @@ func (a *FirewallControllerApiService) GetSecurityGroupUsingGET(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_image_controller.go b/gateapi/api_image_controller.go index 4d23cb5..ca3a26a 100644 --- a/gateapi/api_image_controller.go +++ b/gateapi/api_image_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ImageControllerApiService service -/* +/* ImageControllerApiService Retrieve a list of images, filtered by cloud provider, region, and account The query parameter `q` filters the list of images by image name * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -40,20 +40,20 @@ The query parameter `q` filters the list of images by image name @return []interface{} */ -type FindImagesUsingGETOpts struct { - Account optional.String - Count optional.Int32 +type FindImagesUsingGETOpts struct { + Account optional.String + Count optional.Int32 Provider optional.String - Q optional.String - Region optional.String + Q optional.String + Region optional.String } func (a *ImageControllerApiService) FindImagesUsingGET(ctx context.Context, localVarOptionals *FindImagesUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -114,36 +114,36 @@ func (a *ImageControllerApiService) FindImagesUsingGET(ctx context.Context, loca if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ImageControllerApiService Find tags * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -155,17 +155,17 @@ ImageControllerApiService Find tags @return []interface{} */ -type FindTagsUsingGETOpts struct { +type FindTagsUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *ImageControllerApiService) FindTagsUsingGET(ctx context.Context, account string, repository string, localVarOptionals *FindTagsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -219,36 +219,36 @@ func (a *ImageControllerApiService) FindTagsUsingGET(ctx context.Context, accoun if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ImageControllerApiService Get image details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -261,17 +261,17 @@ ImageControllerApiService Get image details @return []interface{} */ -type GetImageDetailsUsingGETOpts struct { +type GetImageDetailsUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *ImageControllerApiService) GetImageDetailsUsingGET(ctx context.Context, account string, imageId string, region string, localVarOptionals *GetImageDetailsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -326,29 +326,29 @@ func (a *ImageControllerApiService) GetImageDetailsUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_instance_controller.go b/gateapi/api_instance_controller.go index 6d54659..8f04724 100644 --- a/gateapi/api_instance_controller.go +++ b/gateapi/api_instance_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type InstanceControllerApiService service -/* +/* InstanceControllerApiService Retrieve an instance's console output * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -39,17 +39,17 @@ InstanceControllerApiService Retrieve an instance's console output @return interface{} */ -type GetConsoleOutputUsingGETOpts struct { +type GetConsoleOutputUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *InstanceControllerApiService) GetConsoleOutputUsingGET(ctx context.Context, account string, instanceId string, region string, localVarOptionals *GetConsoleOutputUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -104,36 +104,36 @@ func (a *InstanceControllerApiService) GetConsoleOutputUsingGET(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* InstanceControllerApiService Retrieve an instance's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -145,16 +145,16 @@ InstanceControllerApiService Retrieve an instance's details @return interface{} */ -type GetInstanceDetailsUsingGETOpts struct { +type GetInstanceDetailsUsingGETOpts struct { XRateLimitApp optional.String } func (a *InstanceControllerApiService) GetInstanceDetailsUsingGET(ctx context.Context, account string, instanceId string, region string, localVarOptionals *GetInstanceDetailsUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -206,29 +206,29 @@ func (a *InstanceControllerApiService) GetInstanceDetailsUsingGET(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_job_controller.go b/gateapi/api_job_controller.go index f173887..619c0be 100644 --- a/gateapi/api_job_controller.go +++ b/gateapi/api_job_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type JobControllerApiService service -/* +/* JobControllerApiService Get job * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -40,17 +40,17 @@ JobControllerApiService Get job @return map[string]interface{} */ -type GetJobUsingGETOpts struct { +type GetJobUsingGETOpts struct { XRateLimitApp optional.String - Expand optional.String + Expand optional.String } func (a *JobControllerApiService) GetJobUsingGET(ctx context.Context, account string, applicationName string, name string, region string, localVarOptionals *GetJobUsingGETOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -106,29 +106,29 @@ func (a *JobControllerApiService) GetJobUsingGET(ctx context.Context, account st if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_load_balancer_controller.go b/gateapi/api_load_balancer_controller.go index 6928723..92934b0 100644 --- a/gateapi/api_load_balancer_controller.go +++ b/gateapi/api_load_balancer_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type LoadBalancerControllerApiService service -/* +/* LoadBalancerControllerApiService Retrieve a list of load balancers for a given cloud provider * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *GetAllUsingGETOpts - Optional Parameters: @@ -36,17 +36,17 @@ LoadBalancerControllerApiService Retrieve a list of load balancers for a given c @return []interface{} */ -type GetAllUsingGETOpts struct { +type GetAllUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *LoadBalancerControllerApiService) GetAllUsingGET(ctx context.Context, localVarOptionals *GetAllUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -98,36 +98,36 @@ func (a *LoadBalancerControllerApiService) GetAllUsingGET(ctx context.Context, l if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* LoadBalancerControllerApiService Retrieve a list of load balancers for a given application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -137,16 +137,16 @@ LoadBalancerControllerApiService Retrieve a list of load balancers for a given a @return []interface{} */ -type GetApplicationLoadBalancersUsingGETOpts struct { +type GetApplicationLoadBalancersUsingGETOpts struct { XRateLimitApp optional.String } func (a *LoadBalancerControllerApiService) GetApplicationLoadBalancersUsingGET(ctx context.Context, application string, localVarOptionals *GetApplicationLoadBalancersUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -196,36 +196,36 @@ func (a *LoadBalancerControllerApiService) GetApplicationLoadBalancersUsingGET(c if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* LoadBalancerControllerApiService Retrieve a load balancer's details as a single element list for a given account, region, cloud provider and load balancer name * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -238,17 +238,17 @@ LoadBalancerControllerApiService Retrieve a load balancer's details as a sin @return []interface{} */ -type GetLoadBalancerDetailsUsingGETOpts struct { +type GetLoadBalancerDetailsUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *LoadBalancerControllerApiService) GetLoadBalancerDetailsUsingGET(ctx context.Context, account string, name string, region string, localVarOptionals *GetLoadBalancerDetailsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -303,36 +303,36 @@ func (a *LoadBalancerControllerApiService) GetLoadBalancerDetailsUsingGET(ctx co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* LoadBalancerControllerApiService Retrieve a load balancer for a given cloud provider * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name name @@ -343,17 +343,17 @@ LoadBalancerControllerApiService Retrieve a load balancer for a given cloud prov @return map[string]interface{} */ -type GetLoadBalancerUsingGETOpts struct { +type GetLoadBalancerUsingGETOpts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *LoadBalancerControllerApiService) GetLoadBalancerUsingGET(ctx context.Context, name string, localVarOptionals *GetLoadBalancerUsingGETOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -406,29 +406,29 @@ func (a *LoadBalancerControllerApiService) GetLoadBalancerUsingGET(ctx context.C if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_managed_controller.go b/gateapi/api_managed_controller.go index c4f9f64..0098317 100644 --- a/gateapi/api_managed_controller.go +++ b/gateapi/api_managed_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ManagedControllerApiService service -/* +/* ManagedControllerApiService Create a pin for an artifact in an environment * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -40,6 +40,7 @@ func (a *ManagedControllerApiService) CreatePinUsingPOST(ctx context.Context, ap localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -85,19 +86,20 @@ func (a *ManagedControllerApiService) CreatePinUsingPOST(ctx context.Context, ap return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Delete a delivery config manifest for an application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -106,10 +108,10 @@ ManagedControllerApiService Delete a delivery config manifest for an application */ func (a *ManagedControllerApiService) DeleteManifestByAppUsingDELETE(ctx context.Context, application string) (DeliveryConfig, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue DeliveryConfig ) @@ -156,36 +158,36 @@ func (a *ManagedControllerApiService) DeleteManifestByAppUsingDELETE(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v DeliveryConfig - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Delete a delivery config manifest * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name name @@ -194,10 +196,10 @@ ManagedControllerApiService Delete a delivery config manifest */ func (a *ManagedControllerApiService) DeleteManifestUsingDELETE(ctx context.Context, name string) (DeliveryConfig, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue DeliveryConfig ) @@ -244,36 +246,36 @@ func (a *ManagedControllerApiService) DeleteManifestUsingDELETE(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v DeliveryConfig - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Unpin one or more artifact(s) in an environment. If the `reference` parameter is specified, only the corresponding artifact will be unpinned. If it's omitted, all pinned artifacts in the environment will be unpinned. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -284,7 +286,7 @@ ManagedControllerApiService Unpin one or more artifact(s) in an environment. If */ -type DeletePinUsingDELETEOpts struct { +type DeletePinUsingDELETEOpts struct { Reference optional.String } @@ -294,6 +296,7 @@ func (a *ManagedControllerApiService) DeletePinUsingDELETE(ctx context.Context, localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -341,20 +344,21 @@ func (a *ManagedControllerApiService) DeletePinUsingDELETE(ctx context.Context, return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* -ManagedControllerApiService Veto an artifact version in an environment +/* +ManagedControllerApiService Remove veto of an artifact version in an environment * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application * @param reference reference @@ -369,6 +373,7 @@ func (a *ManagedControllerApiService) DeleteVetoUsingDELETE(ctx context.Context, localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -415,19 +420,20 @@ func (a *ManagedControllerApiService) DeleteVetoUsingDELETE(ctx context.Context, return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Ad-hoc validate and diff a config manifest * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param manifest manifest @@ -436,10 +442,10 @@ ManagedControllerApiService Ad-hoc validate and diff a config manifest */ func (a *ManagedControllerApiService) DiffManifestUsingPOST(ctx context.Context, manifest DeliveryConfig) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -487,36 +493,36 @@ func (a *ManagedControllerApiService) DiffManifestUsingPOST(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Ad-hoc validate and diff a resource * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param resource resource @@ -525,10 +531,10 @@ ManagedControllerApiService Ad-hoc validate and diff a resource */ func (a *ManagedControllerApiService) DiffResourceUsingPOST(ctx context.Context, resource Resource) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -576,36 +582,36 @@ func (a *ManagedControllerApiService) DiffResourceUsingPOST(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Generates an artifact definition based on the artifact used in a running cluster * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -616,10 +622,10 @@ ManagedControllerApiService Generates an artifact definition based on the artifa */ func (a *ManagedControllerApiService) ExportResourceUsingGET(ctx context.Context, account string, cloudProvider string, clusterName string) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -668,36 +674,36 @@ func (a *ManagedControllerApiService) ExportResourceUsingGET(ctx context.Context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Generate a keel resource definition for a deployed cloud resource * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -710,10 +716,10 @@ ManagedControllerApiService Generate a keel resource definition for a deployed c */ func (a *ManagedControllerApiService) ExportResourceUsingGET1(ctx context.Context, account string, cloudProvider string, name string, serviceAccount string, type_ string) (Resource, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Resource ) @@ -764,57 +770,79 @@ func (a *ManagedControllerApiService) ExportResourceUsingGET1(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v Resource - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* -ManagedControllerApiService getApiDocs +/* +ManagedControllerApiService Get managed details about an application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param application application + * @param optional nil or *GetApplicationDetailsUsingGETOpts - Optional Parameters: + * @param "Entities" (optional.Interface of []string) - entities + * @param "IncludeDetails" (optional.Bool) - includeDetails + * @param "MaxArtifactVersions" (optional.Int32) - maxArtifactVersions @return interface{} */ -func (a *ManagedControllerApiService) GetApiDocsUsingGET(ctx context.Context) (interface{}, *http.Response, error) { + +type GetApplicationDetailsUsingGETOpts struct { + Entities optional.Interface + IncludeDetails optional.Bool + MaxArtifactVersions optional.Int32 +} + +func (a *ManagedControllerApiService) GetApplicationDetailsUsingGET(ctx context.Context, application string, localVarOptionals *GetApplicationDetailsUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/managed/api-docs" + localVarPath := a.client.cfg.BasePath + "/managed/application/{application}" + localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", fmt.Sprintf("%v", application), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if localVarOptionals != nil && localVarOptionals.Entities.IsSet() { + localVarQueryParams.Add("entities", parameterToString(localVarOptionals.Entities.Value(), "multi")) + } + if localVarOptionals != nil && localVarOptionals.IncludeDetails.IsSet() { + localVarQueryParams.Add("includeDetails", parameterToString(localVarOptionals.IncludeDetails.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.MaxArtifactVersions.IsSet() { + localVarQueryParams.Add("maxArtifactVersions", parameterToString(localVarOptionals.MaxArtifactVersions.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -850,74 +878,59 @@ func (a *ManagedControllerApiService) GetApiDocsUsingGET(ctx context.Context) (i if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* -ManagedControllerApiService Get managed details about an application +/* +ManagedControllerApiService Get the delivery config associated with an application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application - * @param optional nil or *GetApplicationDetailsUsingGETOpts - Optional Parameters: - * @param "Entities" (optional.Interface of []string) - entities - * @param "IncludeDetails" (optional.Bool) - includeDetails -@return interface{} +@return DeliveryConfig */ - -type GetApplicationDetailsUsingGETOpts struct { - Entities optional.Interface - IncludeDetails optional.Bool -} - -func (a *ManagedControllerApiService) GetApplicationDetailsUsingGET(ctx context.Context, application string, localVarOptionals *GetApplicationDetailsUsingGETOpts) (interface{}, *http.Response, error) { +func (a *ManagedControllerApiService) GetConfigByUsingGET(ctx context.Context, application string) (DeliveryConfig, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue interface{} + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue DeliveryConfig ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/managed/application/{application}" + localVarPath := a.client.cfg.BasePath + "/managed/application/{application}/config" localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", fmt.Sprintf("%v", application), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if localVarOptionals != nil && localVarOptionals.Entities.IsSet() { - localVarQueryParams.Add("entities", parameterToString(localVarOptionals.Entities.Value(), "multi")) - } - if localVarOptionals != nil && localVarOptionals.IncludeDetails.IsSet() { - localVarQueryParams.Add("includeDetails", parameterToString(localVarOptionals.IncludeDetails.Value(), "")) - } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -953,59 +966,71 @@ func (a *ManagedControllerApiService) GetApplicationDetailsUsingGET(ctx context. if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { - var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + var v DeliveryConfig + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* -ManagedControllerApiService Get the delivery config associated with an application +/* +ManagedControllerApiService List up-to {limit} current constraint states for an environment * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application + * @param environment environment + * @param optional nil or *GetConstraintStateUsingGETOpts - Optional Parameters: + * @param "Limit" (optional.String) - limit -@return DeliveryConfig +@return ConstraintState */ -func (a *ManagedControllerApiService) GetConfigByUsingGET(ctx context.Context, application string) (DeliveryConfig, *http.Response, error) { + +type GetConstraintStateUsingGETOpts struct { + Limit optional.String +} + +func (a *ManagedControllerApiService) GetConstraintStateUsingGET(ctx context.Context, application string, environment string, localVarOptionals *GetConstraintStateUsingGETOpts) (ConstraintState, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue DeliveryConfig + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConstraintState ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/managed/application/{application}/config" + localVarPath := a.client.cfg.BasePath + "/managed/application/{application}/environment/{environment}/constraints" localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", fmt.Sprintf("%v", application), -1) + localVarPath = strings.Replace(localVarPath, "{"+"environment"+"}", fmt.Sprintf("%v", environment), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1041,71 +1066,59 @@ func (a *ManagedControllerApiService) GetConfigByUsingGET(ctx context.Context, a if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { - var v DeliveryConfig - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + var v ConstraintState + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* -ManagedControllerApiService List up-to {limit} current constraint states for an environment +/* +ManagedControllerApiService Get the status of each version of each artifact in each environment * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param application application - * @param environment environment - * @param optional nil or *GetConstraintStateUsingGETOpts - Optional Parameters: - * @param "Limit" (optional.String) - limit + * @param name name -@return ConstraintState +@return []interface{} */ - -type GetConstraintStateUsingGETOpts struct { - Limit optional.String -} - -func (a *ManagedControllerApiService) GetConstraintStateUsingGET(ctx context.Context, application string, environment string, localVarOptionals *GetConstraintStateUsingGETOpts) (ConstraintState, *http.Response, error) { +func (a *ManagedControllerApiService) GetManifestArtifactsUsingGET(ctx context.Context, name string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue ConstraintState + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []interface{} ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/managed/application/{application}/environment/{environment}/constraints" - localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", fmt.Sprintf("%v", application), -1) - localVarPath = strings.Replace(localVarPath, "{"+"environment"+"}", fmt.Sprintf("%v", environment), -1) + localVarPath := a.client.cfg.BasePath + "/managed/delivery-configs/{name}/artifacts" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } // to determine the Content-Type header localVarHttpContentTypes := []string{} @@ -1141,53 +1154,53 @@ func (a *ManagedControllerApiService) GetConstraintStateUsingGET(ctx context.Con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { - var v ConstraintState - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + var v []interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* -ManagedControllerApiService Get the status of each version of each artifact in each environment +/* +ManagedControllerApiService Get a delivery config manifest * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name name -@return []interface{} +@return DeliveryConfig */ -func (a *ManagedControllerApiService) GetManifestArtifactsUsingGET(ctx context.Context, name string) ([]interface{}, *http.Response, error) { +func (a *ManagedControllerApiService) GetManifestUsingGET(ctx context.Context, name string) (DeliveryConfig, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue []interface{} + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue DeliveryConfig ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/managed/delivery-configs/{name}/artifacts" + localVarPath := a.client.cfg.BasePath + "/managed/delivery-configs/{name}" localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) localVarHeaderParams := make(map[string]string) @@ -1229,53 +1242,53 @@ func (a *ManagedControllerApiService) GetManifestArtifactsUsingGET(ctx context.C if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { - var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + var v DeliveryConfig + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Get a delivery config manifest * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param name name @return DeliveryConfig */ -func (a *ManagedControllerApiService) GetManifestUsingGET(ctx context.Context, name string) (DeliveryConfig, *http.Response, error) { +func (a *ManagedControllerApiService) GetManifestYamlUsingGET(ctx context.Context, name string) (DeliveryConfig, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue DeliveryConfig ) // create path and map variables - localVarPath := a.client.cfg.BasePath + "/managed/delivery-configs/{name}" + localVarPath := a.client.cfg.BasePath + "/managed/delivery-configs/{name}.yml" localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) localVarHeaderParams := make(map[string]string) @@ -1292,7 +1305,7 @@ func (a *ManagedControllerApiService) GetManifestUsingGET(ctx context.Context, n } // to determine the Accept header - localVarHttpHeaderAccepts := []string{"*/*"} + localVarHttpHeaderAccepts := []string{"application/x-yaml"} // set Accept header localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) @@ -1317,36 +1330,36 @@ func (a *ManagedControllerApiService) GetManifestUsingGET(ctx context.Context, n if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v DeliveryConfig - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Get status of a resource * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param resourceId resourceId @@ -1355,10 +1368,10 @@ ManagedControllerApiService Get status of a resource */ func (a *ManagedControllerApiService) GetResourceStatusUsingGET(ctx context.Context, resourceId string) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -1405,36 +1418,36 @@ func (a *ManagedControllerApiService) GetResourceStatusUsingGET(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Get a resource * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param resourceId resourceId @@ -1443,10 +1456,10 @@ ManagedControllerApiService Get a resource */ func (a *ManagedControllerApiService) GetResourceUsingGET(ctx context.Context, resourceId string) (Resource, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Resource ) @@ -1493,36 +1506,124 @@ func (a *ManagedControllerApiService) GetResourceUsingGET(ctx context.Context, r if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v Resource - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ManagedControllerApiService Get a resource + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param resourceId resourceId + +@return Resource +*/ +func (a *ManagedControllerApiService) GetResourceYamlUsingGET(ctx context.Context, resourceId string) (Resource, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Resource + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/managed/resources/{resourceId}.yml" + localVarPath = strings.Replace(localVarPath, "{"+"resourceId"+"}", fmt.Sprintf("%v", resourceId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/x-yaml"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Resource + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Pause management of an entire application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -1535,6 +1636,7 @@ func (a *ManagedControllerApiService) PauseApplicationUsingPOST(ctx context.Cont localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -1578,19 +1680,20 @@ func (a *ManagedControllerApiService) PauseApplicationUsingPOST(ctx context.Cont return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Pause management of a resource * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param resourceId resourceId @@ -1603,6 +1706,7 @@ func (a *ManagedControllerApiService) PauseResourceUsingPOST(ctx context.Context localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -1646,19 +1750,20 @@ func (a *ManagedControllerApiService) PauseResourceUsingPOST(ctx context.Context return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Resume management of an entire application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -1671,6 +1776,7 @@ func (a *ManagedControllerApiService) ResumeApplicationUsingDELETE(ctx context.C localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -1714,19 +1820,20 @@ func (a *ManagedControllerApiService) ResumeApplicationUsingDELETE(ctx context.C return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Resume management of a resource * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param resourceId resourceId @@ -1739,6 +1846,7 @@ func (a *ManagedControllerApiService) ResumeResourceUsingDELETE(ctx context.Cont localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -1782,19 +1890,106 @@ func (a *ManagedControllerApiService) ResumeResourceUsingDELETE(ctx context.Cont return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* +ManagedControllerApiService Ad-hoc validate and diff a config manifest + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return interface{} +*/ +func (a *ManagedControllerApiService) SchemaUsingGET(ctx context.Context) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/managed/delivery-configs/schema" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json", "application/x-yaml"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* ManagedControllerApiService Update the status of an environment constraint * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -1809,6 +2004,7 @@ func (a *ManagedControllerApiService) UpdateConstraintStatusUsingPOST(ctx contex localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -1855,19 +2051,20 @@ func (a *ManagedControllerApiService) UpdateConstraintStatusUsingPOST(ctx contex return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Create or update a delivery config manifest * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param manifest manifest @@ -1876,10 +2073,10 @@ ManagedControllerApiService Create or update a delivery config manifest */ func (a *ManagedControllerApiService) UpsertManifestUsingPOST(ctx context.Context, manifest DeliveryConfig) (DeliveryConfig, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue DeliveryConfig ) @@ -1927,36 +2124,36 @@ func (a *ManagedControllerApiService) UpsertManifestUsingPOST(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v DeliveryConfig - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Validate a delivery config manifest * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param manifest manifest @@ -1965,10 +2162,10 @@ ManagedControllerApiService Validate a delivery config manifest */ func (a *ManagedControllerApiService) ValidateManifestUsingPOST(ctx context.Context, manifest DeliveryConfig) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -2016,36 +2213,36 @@ func (a *ManagedControllerApiService) ValidateManifestUsingPOST(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ManagedControllerApiService Veto an artifact version in an environment * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -2059,6 +2256,7 @@ func (a *ManagedControllerApiService) VetoUsingPOST(ctx context.Context, applica localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -2104,12 +2302,13 @@ func (a *ManagedControllerApiService) VetoUsingPOST(ctx context.Context, applica return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } diff --git a/gateapi/api_network_controller.go b/gateapi/api_network_controller.go index 6e1dc47..1c4374e 100644 --- a/gateapi/api_network_controller.go +++ b/gateapi/api_network_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type NetworkControllerApiService service -/* +/* NetworkControllerApiService Retrieve a list of networks for a given cloud provider * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param cloudProvider cloudProvider @@ -36,16 +36,16 @@ NetworkControllerApiService Retrieve a list of networks for a given cloud provid @return []interface{} */ -type AllByCloudProviderUsingGETOpts struct { +type AllByCloudProviderUsingGETOpts struct { XRateLimitApp optional.String } func (a *NetworkControllerApiService) AllByCloudProviderUsingGET(ctx context.Context, cloudProvider string, localVarOptionals *AllByCloudProviderUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -95,36 +95,36 @@ func (a *NetworkControllerApiService) AllByCloudProviderUsingGET(ctx context.Con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* NetworkControllerApiService Retrieve a list of networks, grouped by cloud provider * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *AllUsingGET2Opts - Optional Parameters: @@ -133,16 +133,16 @@ NetworkControllerApiService Retrieve a list of networks, grouped by cloud provid @return map[string]interface{} */ -type AllUsingGET2Opts struct { +type AllUsingGET2Opts struct { XRateLimitApp optional.String } func (a *NetworkControllerApiService) AllUsingGET2(ctx context.Context, localVarOptionals *AllUsingGET2Opts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -191,29 +191,29 @@ func (a *NetworkControllerApiService) AllUsingGET2(ctx context.Context, localVar if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_pipeline_config_controller.go b/gateapi/api_pipeline_config_controller.go index 3b8a8de..e078050 100644 --- a/gateapi/api_pipeline_config_controller.go +++ b/gateapi/api_pipeline_config_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type PipelineConfigControllerApiService service -/* +/* PipelineConfigControllerApiService Convert a pipeline config to a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param pipelineConfigId pipelineConfigId @@ -35,10 +35,10 @@ PipelineConfigControllerApiService Convert a pipeline config to a pipeline templ */ func (a *PipelineConfigControllerApiService) ConvertPipelineConfigToPipelineTemplateUsingGET(ctx context.Context, pipelineConfigId string) (string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue string ) @@ -85,36 +85,36 @@ func (a *PipelineConfigControllerApiService) ConvertPipelineConfigToPipelineTemp if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v string - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineConfigControllerApiService Get all pipeline configs. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -122,10 +122,10 @@ PipelineConfigControllerApiService Get all pipeline configs. */ func (a *PipelineConfigControllerApiService) GetAllPipelineConfigsUsingGET(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -171,36 +171,36 @@ func (a *PipelineConfigControllerApiService) GetAllPipelineConfigsUsingGET(ctx c if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineConfigControllerApiService Get pipeline config history. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param pipelineConfigId pipelineConfigId @@ -210,16 +210,16 @@ PipelineConfigControllerApiService Get pipeline config history. @return []interface{} */ -type GetPipelineConfigHistoryUsingGETOpts struct { +type GetPipelineConfigHistoryUsingGETOpts struct { Limit optional.Int32 } func (a *PipelineConfigControllerApiService) GetPipelineConfigHistoryUsingGET(ctx context.Context, pipelineConfigId string, localVarOptionals *GetPipelineConfigHistoryUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -269,29 +269,29 @@ func (a *PipelineConfigControllerApiService) GetPipelineConfigHistoryUsingGET(ct if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_pipeline_controller.go b/gateapi/api_pipeline_controller.go index cb52555..c35691a 100644 --- a/gateapi/api_pipeline_controller.go +++ b/gateapi/api_pipeline_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type PipelineControllerApiService service -/* +/* PipelineControllerApiService Cancel a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -37,8 +37,8 @@ PipelineControllerApiService Cancel a pipeline execution */ -type CancelPipelineUsingPUT1Opts struct { - Force optional.Bool +type CancelPipelineUsingPUT1Opts struct { + Force optional.Bool Reason optional.String } @@ -48,6 +48,7 @@ func (a *PipelineControllerApiService) CancelPipelineUsingPUT1(ctx context.Conte localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -97,19 +98,20 @@ func (a *PipelineControllerApiService) CancelPipelineUsingPUT1(ctx context.Conte return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Delete a pipeline definition * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -123,6 +125,7 @@ func (a *PipelineControllerApiService) DeletePipelineUsingDELETE(ctx context.Con localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -167,19 +170,20 @@ func (a *PipelineControllerApiService) DeletePipelineUsingDELETE(ctx context.Con return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Delete a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -188,10 +192,10 @@ PipelineControllerApiService Delete a pipeline execution */ func (a *PipelineControllerApiService) DeletePipelineUsingDELETE1(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -238,36 +242,36 @@ func (a *PipelineControllerApiService) DeletePipelineUsingDELETE1(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Evaluate a pipeline expression at a specific stage using the provided execution as context * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param expression expression @@ -278,10 +282,10 @@ PipelineControllerApiService Evaluate a pipeline expression at a specific stage */ func (a *PipelineControllerApiService) EvaluateExpressionForExecutionAtStageUsingGET(ctx context.Context, expression string, id string, stageId string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -330,36 +334,36 @@ func (a *PipelineControllerApiService) EvaluateExpressionForExecutionAtStageUsin if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Evaluate a pipeline expression using the provided execution as context * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param expression expression @@ -369,10 +373,10 @@ PipelineControllerApiService Evaluate a pipeline expression using the provided e */ func (a *PipelineControllerApiService) EvaluateExpressionForExecutionUsingGET(ctx context.Context, expression string, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -420,36 +424,36 @@ func (a *PipelineControllerApiService) EvaluateExpressionForExecutionUsingGET(ct if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Evaluate a pipeline expression using the provided execution as context * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -459,10 +463,10 @@ PipelineControllerApiService Evaluate a pipeline expression using the provided e */ func (a *PipelineControllerApiService) EvaluateExpressionForExecutionViaPOSTUsingPOST(ctx context.Context, id string, pipelineExpression interface{}) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -511,36 +515,36 @@ func (a *PipelineControllerApiService) EvaluateExpressionForExecutionViaPOSTUsin if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Evaluate variables same as Evaluate Variables stage using the provided execution as context * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param executionId Execution id to run against @@ -552,17 +556,17 @@ PipelineControllerApiService Evaluate variables same as Evaluate Variables stage @return map[string]interface{} */ -type EvaluateVariablesUsingPOSTOpts struct { +type EvaluateVariablesUsingPOSTOpts struct { RequisiteStageRefIds optional.String - SpelVersion optional.String + SpelVersion optional.String } func (a *PipelineControllerApiService) EvaluateVariablesUsingPOST(ctx context.Context, executionId string, expressions []Mapstringstring, localVarOptionals *EvaluateVariablesUsingPOSTOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -617,36 +621,36 @@ func (a *PipelineControllerApiService) EvaluateVariablesUsingPOST(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Retrieve a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -655,10 +659,10 @@ PipelineControllerApiService Retrieve a pipeline execution */ func (a *PipelineControllerApiService) GetPipelineUsingGET(ctx context.Context, id string) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -705,36 +709,36 @@ func (a *PipelineControllerApiService) GetPipelineUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Trigger a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -745,7 +749,7 @@ PipelineControllerApiService Trigger a pipeline execution */ -type InvokePipelineConfigUsingPOST1Opts struct { +type InvokePipelineConfigUsingPOST1Opts struct { Trigger optional.Interface } @@ -755,6 +759,7 @@ func (a *PipelineControllerApiService) InvokePipelineConfigUsingPOST1(ctx contex localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -785,10 +790,10 @@ func (a *PipelineControllerApiService) InvokePipelineConfigUsingPOST1(ctx contex } // body params if localVarOptionals != nil && localVarOptionals.Trigger.IsSet() { - + localVarOptionalTrigger, localVarOptionalTriggerok := localVarOptionals.Trigger.Value().(interface{}) if !localVarOptionalTriggerok { - return nil, reportError("trigger should be interface{}") + return nil, reportError("trigger should be interface{}") } localVarPostBody = &localVarOptionalTrigger } @@ -808,30 +813,31 @@ func (a *PipelineControllerApiService) InvokePipelineConfigUsingPOST1(ctx contex return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 202 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v return localVarHttpResponse, newErr - } - newErr.model = v - return localVarHttpResponse, newErr } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Trigger a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -842,16 +848,16 @@ PipelineControllerApiService Trigger a pipeline execution @return interface{} */ -type InvokePipelineConfigViaEchoUsingPOSTOpts struct { +type InvokePipelineConfigViaEchoUsingPOSTOpts struct { Trigger optional.Interface } func (a *PipelineControllerApiService) InvokePipelineConfigViaEchoUsingPOST(ctx context.Context, application string, pipelineNameOrId string, localVarOptionals *InvokePipelineConfigViaEchoUsingPOSTOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -883,10 +889,10 @@ func (a *PipelineControllerApiService) InvokePipelineConfigViaEchoUsingPOST(ctx } // body params if localVarOptionals != nil && localVarOptionals.Trigger.IsSet() { - + localVarOptionalTrigger, localVarOptionalTriggerok := localVarOptionals.Trigger.Value().(interface{}) if !localVarOptionalTriggerok { - return localVarReturnValue, nil, reportError("trigger should be interface{}") + return localVarReturnValue, nil, reportError("trigger should be interface{}") } localVarPostBody = &localVarOptionalTrigger } @@ -908,36 +914,36 @@ func (a *PipelineControllerApiService) InvokePipelineConfigViaEchoUsingPOST(ctx if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Pause a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -950,6 +956,7 @@ func (a *PipelineControllerApiService) PausePipelineUsingPUT(ctx context.Context localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -993,19 +1000,20 @@ func (a *PipelineControllerApiService) PausePipelineUsingPUT(ctx context.Context return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Rename a pipeline definition * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param renameCommand renameCommand @@ -1018,6 +1026,7 @@ func (a *PipelineControllerApiService) RenamePipelineUsingPOST(ctx context.Conte localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -1062,19 +1071,20 @@ func (a *PipelineControllerApiService) RenamePipelineUsingPOST(ctx context.Conte return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Restart a stage execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param context context @@ -1085,10 +1095,10 @@ PipelineControllerApiService Restart a stage execution */ func (a *PipelineControllerApiService) RestartStageUsingPUT(ctx context.Context, context interface{}, id string, stageId string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -1138,36 +1148,36 @@ func (a *PipelineControllerApiService) RestartStageUsingPUT(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Resume a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -1176,10 +1186,10 @@ PipelineControllerApiService Resume a pipeline execution */ func (a *PipelineControllerApiService) ResumePipelineUsingPUT(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -1226,48 +1236,56 @@ func (a *PipelineControllerApiService) ResumePipelineUsingPUT(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Save a pipeline definition * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param pipeline pipeline + * @param optional nil or *SavePipelineUsingPOSTOpts - Optional Parameters: + * @param "StaleCheck" (optional.Bool) - staleCheck */ -func (a *PipelineControllerApiService) SavePipelineUsingPOST(ctx context.Context, pipeline interface{}) (*http.Response, error) { + +type SavePipelineUsingPOSTOpts struct { + StaleCheck optional.Bool +} + +func (a *PipelineControllerApiService) SavePipelineUsingPOST(ctx context.Context, pipeline interface{}, localVarOptionals *SavePipelineUsingPOSTOpts) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -1277,6 +1295,9 @@ func (a *PipelineControllerApiService) SavePipelineUsingPOST(ctx context.Context localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if localVarOptionals != nil && localVarOptionals.StaleCheck.IsSet() { + localVarQueryParams.Add("staleCheck", parameterToString(localVarOptionals.StaleCheck.Value(), "")) + } // to determine the Content-Type header localVarHttpContentTypes := []string{"application/json"} @@ -1312,19 +1333,20 @@ func (a *PipelineControllerApiService) SavePipelineUsingPOST(ctx context.Context return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Initiate a pipeline execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param map_ map @@ -1333,10 +1355,10 @@ PipelineControllerApiService Initiate a pipeline execution */ func (a *PipelineControllerApiService) StartUsingPOST(ctx context.Context, map_ interface{}) (ResponseEntity, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue ResponseEntity ) @@ -1384,36 +1406,36 @@ func (a *PipelineControllerApiService) StartUsingPOST(ctx context.Context, map_ if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v ResponseEntity - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Update a pipeline definition * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -1423,10 +1445,10 @@ PipelineControllerApiService Update a pipeline definition */ func (a *PipelineControllerApiService) UpdatePipelineUsingPUT(ctx context.Context, id string, pipeline interface{}) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -1475,36 +1497,36 @@ func (a *PipelineControllerApiService) UpdatePipelineUsingPUT(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineControllerApiService Update a stage execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param context context @@ -1515,10 +1537,10 @@ PipelineControllerApiService Update a stage execution */ func (a *PipelineControllerApiService) UpdateStageUsingPATCH(ctx context.Context, context interface{}, id string, stageId string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Patch") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Patch") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -1568,29 +1590,29 @@ func (a *PipelineControllerApiService) UpdateStageUsingPATCH(ctx context.Context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_pipeline_templates_controller.go b/gateapi/api_pipeline_templates_controller.go index 30d7dc1..d3a1730 100644 --- a/gateapi/api_pipeline_templates_controller.go +++ b/gateapi/api_pipeline_templates_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type PipelineTemplatesControllerApiService service -/* +/* PipelineTemplatesControllerApiService Create a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param pipelineTemplate pipelineTemplate @@ -39,6 +39,7 @@ func (a *PipelineTemplatesControllerApiService) CreateUsingPOST(ctx context.Cont localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -83,30 +84,31 @@ func (a *PipelineTemplatesControllerApiService) CreateUsingPOST(ctx context.Cont return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 202 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v return localVarHttpResponse, newErr - } - newErr.model = v - return localVarHttpResponse, newErr } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* PipelineTemplatesControllerApiService Delete a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -116,16 +118,16 @@ PipelineTemplatesControllerApiService Delete a pipeline template. @return map[string]interface{} */ -type DeleteUsingDELETEOpts struct { +type DeleteUsingDELETEOpts struct { Application optional.String } func (a *PipelineTemplatesControllerApiService) DeleteUsingDELETE(ctx context.Context, id string, localVarOptionals *DeleteUsingDELETEOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -175,36 +177,36 @@ func (a *PipelineTemplatesControllerApiService) DeleteUsingDELETE(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 202 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineTemplatesControllerApiService Get a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -213,10 +215,10 @@ PipelineTemplatesControllerApiService Get a pipeline template. */ func (a *PipelineTemplatesControllerApiService) GetUsingGET(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -263,36 +265,36 @@ func (a *PipelineTemplatesControllerApiService) GetUsingGET(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineTemplatesControllerApiService List all pipelines that implement a pipeline template * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -302,16 +304,16 @@ PipelineTemplatesControllerApiService List all pipelines that implement a pipeli @return []interface{} */ -type ListPipelineTemplateDependentsUsingGETOpts struct { +type ListPipelineTemplateDependentsUsingGETOpts struct { Recursive optional.Bool } func (a *PipelineTemplatesControllerApiService) ListPipelineTemplateDependentsUsingGET(ctx context.Context, id string, localVarOptionals *ListPipelineTemplateDependentsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -361,36 +363,36 @@ func (a *PipelineTemplatesControllerApiService) ListPipelineTemplateDependentsUs if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineTemplatesControllerApiService List pipeline templates. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *ListUsingGETOpts - Optional Parameters: @@ -399,16 +401,16 @@ PipelineTemplatesControllerApiService List pipeline templates. @return []interface{} */ -type ListUsingGETOpts struct { +type ListUsingGETOpts struct { Scopes optional.Interface } func (a *PipelineTemplatesControllerApiService) ListUsingGET(ctx context.Context, localVarOptionals *ListUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -457,36 +459,36 @@ func (a *PipelineTemplatesControllerApiService) ListUsingGET(ctx context.Context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineTemplatesControllerApiService Resolve a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param source source @@ -497,17 +499,17 @@ PipelineTemplatesControllerApiService Resolve a pipeline template. @return map[string]interface{} */ -type ResolveTemplatesUsingGETOpts struct { - ExecutionId optional.String +type ResolveTemplatesUsingGETOpts struct { + ExecutionId optional.String PipelineConfigId optional.String } func (a *PipelineTemplatesControllerApiService) ResolveTemplatesUsingGET(ctx context.Context, source string, localVarOptionals *ResolveTemplatesUsingGETOpts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -560,36 +562,36 @@ func (a *PipelineTemplatesControllerApiService) ResolveTemplatesUsingGET(ctx con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* PipelineTemplatesControllerApiService Update a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -600,7 +602,7 @@ PipelineTemplatesControllerApiService Update a pipeline template. */ -type UpdateUsingPOSTOpts struct { +type UpdateUsingPOSTOpts struct { SkipPlanDependents optional.Bool } @@ -610,6 +612,7 @@ func (a *PipelineTemplatesControllerApiService) UpdateUsingPOST(ctx context.Cont localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -658,23 +661,24 @@ func (a *PipelineTemplatesControllerApiService) UpdateUsingPOST(ctx context.Cont return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 202 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v return localVarHttpResponse, newErr - } - newErr.model = v - return localVarHttpResponse, newErr } - + return localVarHttpResponse, newErr } diff --git a/gateapi/api_plugin_info_controller.go b/gateapi/api_plugin_info_controller.go new file mode 100644 index 0000000..cae03bc --- /dev/null +++ b/gateapi/api_plugin_info_controller.go @@ -0,0 +1,375 @@ +/* + * Spinnaker API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type PluginInfoControllerApiService service + +/* +PluginInfoControllerApiService Delete plugin info with the provided Id + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id id + +@return interface{} +*/ +func (a *PluginInfoControllerApiService) DeletePluginInfoUsingDELETE(ctx context.Context, id string) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/plugins/info/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 202 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PluginInfoControllerApiService Get all plugin info objects + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *GetAllPluginInfoUsingGETOpts - Optional Parameters: + * @param "Service" (optional.String) - service + +@return []interface{} +*/ + +type GetAllPluginInfoUsingGETOpts struct { + Service optional.String +} + +func (a *PluginInfoControllerApiService) GetAllPluginInfoUsingGET(ctx context.Context, localVarOptionals *GetAllPluginInfoUsingGETOpts) ([]interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/plugins/info" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Service.IsSet() { + localVarQueryParams.Add("service", parameterToString(localVarOptionals.Service.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PluginInfoControllerApiService Persist plugin metadata information + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param pluginInfo pluginInfo + + +*/ +func (a *PluginInfoControllerApiService) PersistPluginInfoUsingPOST(ctx context.Context, pluginInfo SpinnakerPluginInfo) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/plugins/info" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &pluginInfo + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 202 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PluginInfoControllerApiService Persist plugin metadata information + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param pluginInfo pluginInfo + + +*/ +func (a *PluginInfoControllerApiService) PersistPluginInfoUsingPUT(ctx context.Context, pluginInfo SpinnakerPluginInfo) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/plugins/info" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &pluginInfo + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 202 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/gateapi/api_plugin_publish_controller.go b/gateapi/api_plugin_publish_controller.go new file mode 100644 index 0000000..04015ce --- /dev/null +++ b/gateapi/api_plugin_publish_controller.go @@ -0,0 +1,109 @@ +/* + * Spinnaker API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "os" +) + +// Linger please +var ( + _ context.Context +) + +type PluginPublishControllerApiService service + +/* +PluginPublishControllerApiService Publish a plugin binary and the plugin info metadata. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param plugin plugin + * @param pluginId pluginId + * @param pluginInfo pluginInfo + * @param pluginVersion pluginVersion + + +*/ +func (a *PluginPublishControllerApiService) PublishPluginUsingPOST(ctx context.Context, plugin *os.File, pluginId string, pluginInfo interface{}, pluginVersion string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/plugins/publish/{pluginId}/{pluginVersion}" + localVarPath = strings.Replace(localVarPath, "{"+"pluginId"+"}", fmt.Sprintf("%v", pluginId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"pluginVersion"+"}", fmt.Sprintf("%v", pluginVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + var localVarFile *os.File + if localVarFile != nil { + fbs, _ := ioutil.ReadAll(localVarFile) + localVarFileBytes = fbs + localVarFileName = localVarFile.Name() + localVarFile.Close() + } + localVarFormParams.Add("pluginInfo", parameterToString(pluginInfo, "")) + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/gateapi/api_plugins_installed_controller.go b/gateapi/api_plugins_installed_controller.go new file mode 100644 index 0000000..685cb79 --- /dev/null +++ b/gateapi/api_plugins_installed_controller.go @@ -0,0 +1,122 @@ +/* + * Spinnaker API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package swagger + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type PluginsInstalledControllerApiService service + +/* +PluginsInstalledControllerApiService Get all installed Spinnaker plugins + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *GetInstalledPluginsUsingGETOpts - Optional Parameters: + * @param "Service" (optional.String) - service + +@return map[string][]SpinnakerPluginDescriptor +*/ + +type GetInstalledPluginsUsingGETOpts struct { + Service optional.String +} + +func (a *PluginsInstalledControllerApiService) GetInstalledPluginsUsingGET(ctx context.Context, localVarOptionals *GetInstalledPluginsUsingGETOpts) (map[string][]SpinnakerPluginDescriptor, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue map[string][]SpinnakerPluginDescriptor + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/plugins/installed" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Service.IsSet() { + localVarQueryParams.Add("service", parameterToString(localVarOptionals.Service.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v map[string][]SpinnakerPluginDescriptor + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/gateapi/api_project_controller.go b/gateapi/api_project_controller.go index 526e8f1..df2d88c 100644 --- a/gateapi/api_project_controller.go +++ b/gateapi/api_project_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ProjectControllerApiService service -/* +/* ProjectControllerApiService Get all pipelines for project * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -37,17 +37,17 @@ ProjectControllerApiService Get all pipelines for project @return []interface{} */ -type AllPipelinesForProjectUsingGETOpts struct { - Limit optional.Int32 +type AllPipelinesForProjectUsingGETOpts struct { + Limit optional.Int32 Statuses optional.String } func (a *ProjectControllerApiService) AllPipelinesForProjectUsingGET(ctx context.Context, id string, localVarOptionals *AllPipelinesForProjectUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -100,36 +100,36 @@ func (a *ProjectControllerApiService) AllPipelinesForProjectUsingGET(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ProjectControllerApiService Get all projects * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -137,10 +137,10 @@ ProjectControllerApiService Get all projects */ func (a *ProjectControllerApiService) AllUsingGET3(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -186,36 +186,36 @@ func (a *ProjectControllerApiService) AllUsingGET3(ctx context.Context) ([]inter if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ProjectControllerApiService Get a project's clusters * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -225,16 +225,16 @@ ProjectControllerApiService Get a project's clusters @return []interface{} */ -type GetClustersUsingGET3Opts struct { +type GetClustersUsingGET3Opts struct { XRateLimitApp optional.String } func (a *ProjectControllerApiService) GetClustersUsingGET3(ctx context.Context, id string, localVarOptionals *GetClustersUsingGET3Opts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -284,36 +284,36 @@ func (a *ProjectControllerApiService) GetClustersUsingGET3(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ProjectControllerApiService Get a project * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -322,10 +322,10 @@ ProjectControllerApiService Get a project */ func (a *ProjectControllerApiService) GetUsingGET1(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -372,29 +372,29 @@ func (a *ProjectControllerApiService) GetUsingGET1(ctx context.Context, id strin if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_pubsub_subscription_controller.go b/gateapi/api_pubsub_subscription_controller.go index 25c7645..177e03b 100644 --- a/gateapi/api_pubsub_subscription_controller.go +++ b/gateapi/api_pubsub_subscription_controller.go @@ -24,7 +24,7 @@ var ( type PubsubSubscriptionControllerApiService service -/* +/* PubsubSubscriptionControllerApiService Retrieve the list of pub/sub subscriptions configured in Echo. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -32,10 +32,10 @@ PubsubSubscriptionControllerApiService Retrieve the list of pub/sub subscription */ func (a *PubsubSubscriptionControllerApiService) AllUsingGET4(ctx context.Context) ([]Mapstringstring, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Mapstringstring ) @@ -81,29 +81,29 @@ func (a *PubsubSubscriptionControllerApiService) AllUsingGET4(ctx context.Contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []Mapstringstring - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_reorder_pipelines_controller.go b/gateapi/api_reorder_pipelines_controller.go index 5e8060b..b932eac 100644 --- a/gateapi/api_reorder_pipelines_controller.go +++ b/gateapi/api_reorder_pipelines_controller.go @@ -24,7 +24,7 @@ var ( type ReorderPipelinesControllerApiService service -/* +/* ReorderPipelinesControllerApiService Re-order pipelines * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param reorderPipelinesCommand reorderPipelinesCommand @@ -33,10 +33,10 @@ ReorderPipelinesControllerApiService Re-order pipelines */ func (a *ReorderPipelinesControllerApiService) ReorderPipelinesUsingPOST(ctx context.Context, reorderPipelinesCommand ReorderPipelinesCommand) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -84,29 +84,29 @@ func (a *ReorderPipelinesControllerApiService) ReorderPipelinesUsingPOST(ctx con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_search_controller.go b/gateapi/api_search_controller.go index bdf51d1..16e9577 100644 --- a/gateapi/api_search_controller.go +++ b/gateapi/api_search_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "github.com/antihax/optional" ) // Linger please @@ -25,7 +25,7 @@ var ( type SearchControllerApiService service -/* +/* SearchControllerApiService Search infrastructure * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param type_ type @@ -40,21 +40,21 @@ SearchControllerApiService Search infrastructure @return []interface{} */ -type SearchUsingGETOpts struct { - XRateLimitApp optional.String +type SearchUsingGETOpts struct { + XRateLimitApp optional.String AllowShortQuery optional.Bool - Page optional.Int32 - PageSize optional.Int32 - Platform optional.String - Q optional.String + Page optional.Int32 + PageSize optional.Int32 + Platform optional.String + Q optional.String } func (a *SearchControllerApiService) SearchUsingGET(ctx context.Context, type_ string, localVarOptionals *SearchUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -119,29 +119,29 @@ func (a *SearchControllerApiService) SearchUsingGET(ctx context.Context, type_ s if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_security_group_controller.go b/gateapi/api_security_group_controller.go index d66cc96..d963b9d 100644 --- a/gateapi/api_security_group_controller.go +++ b/gateapi/api_security_group_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type SecurityGroupControllerApiService service -/* +/* SecurityGroupControllerApiService Retrieve a list of security groups for a given account, grouped by region * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -37,17 +37,17 @@ SecurityGroupControllerApiService Retrieve a list of security groups for a given @return interface{} */ -type AllByAccountUsingGET1Opts struct { +type AllByAccountUsingGET1Opts struct { XRateLimitApp optional.String - Provider optional.String + Provider optional.String } func (a *SecurityGroupControllerApiService) AllByAccountUsingGET1(ctx context.Context, account string, localVarOptionals *AllByAccountUsingGET1Opts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -100,36 +100,36 @@ func (a *SecurityGroupControllerApiService) AllByAccountUsingGET1(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* SecurityGroupControllerApiService Retrieve a list of security groups, grouped by account, cloud provider, and region * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *AllUsingGET5Opts - Optional Parameters: @@ -139,17 +139,17 @@ SecurityGroupControllerApiService Retrieve a list of security groups, grouped by @return interface{} */ -type AllUsingGET5Opts struct { +type AllUsingGET5Opts struct { XRateLimitApp optional.String - Id optional.String + Id optional.String } func (a *SecurityGroupControllerApiService) AllUsingGET5(ctx context.Context, localVarOptionals *AllUsingGET5Opts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -201,36 +201,36 @@ func (a *SecurityGroupControllerApiService) AllUsingGET5(ctx context.Context, lo if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* SecurityGroupControllerApiService Retrieve a security group's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -244,18 +244,18 @@ SecurityGroupControllerApiService Retrieve a security group's details @return interface{} */ -type GetSecurityGroupUsingGET1Opts struct { +type GetSecurityGroupUsingGET1Opts struct { XRateLimitApp optional.String - Provider optional.String - VpcId optional.String + Provider optional.String + VpcId optional.String } func (a *SecurityGroupControllerApiService) GetSecurityGroupUsingGET1(ctx context.Context, account string, name string, region string, localVarOptionals *GetSecurityGroupUsingGET1Opts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -313,29 +313,29 @@ func (a *SecurityGroupControllerApiService) GetSecurityGroupUsingGET1(ctx contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_server_group_controller.go b/gateapi/api_server_group_controller.go index 1f64878..429088a 100644 --- a/gateapi/api_server_group_controller.go +++ b/gateapi/api_server_group_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type ServerGroupControllerApiService service -/* +/* ServerGroupControllerApiService Retrieve a server group's details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -40,17 +40,17 @@ ServerGroupControllerApiService Retrieve a server group's details @return interface{} */ -type GetServerGroupDetailsUsingGETOpts struct { - XRateLimitApp optional.String +type GetServerGroupDetailsUsingGETOpts struct { + XRateLimitApp optional.String IncludeDetails optional.String } func (a *ServerGroupControllerApiService) GetServerGroupDetailsUsingGET(ctx context.Context, account string, applicationName string, region string, serverGroupName string, localVarOptionals *GetServerGroupDetailsUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -106,36 +106,36 @@ func (a *ServerGroupControllerApiService) GetServerGroupDetailsUsingGET(ctx cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* ServerGroupControllerApiService Retrieve a list of server groups for a given application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param applicationName applicationName @@ -148,19 +148,19 @@ ServerGroupControllerApiService Retrieve a list of server groups for a given app @return []interface{} */ -type GetServerGroupsForApplicationUsingGETOpts struct { +type GetServerGroupsForApplicationUsingGETOpts struct { XRateLimitApp optional.String CloudProvider optional.String - Clusters optional.String - Expand optional.String + Clusters optional.String + Expand optional.String } func (a *ServerGroupControllerApiService) GetServerGroupsForApplicationUsingGET(ctx context.Context, applicationName string, localVarOptionals *GetServerGroupsForApplicationUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -219,29 +219,29 @@ func (a *ServerGroupControllerApiService) GetServerGroupsForApplicationUsingGET( if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_server_group_manager_controller.go b/gateapi/api_server_group_manager_controller.go index d90e26b..5f9d387 100644 --- a/gateapi/api_server_group_manager_controller.go +++ b/gateapi/api_server_group_manager_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "fmt" "io/ioutil" "net/http" "net/url" "strings" + "fmt" ) // Linger please @@ -25,7 +25,7 @@ var ( type ServerGroupManagerControllerApiService service -/* +/* ServerGroupManagerControllerApiService Retrieve a list of server group managers for an application * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application @@ -34,10 +34,10 @@ ServerGroupManagerControllerApiService Retrieve a list of server group managers */ func (a *ServerGroupManagerControllerApiService) GetServerGroupManagersForApplicationUsingGET(ctx context.Context, application string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -84,29 +84,29 @@ func (a *ServerGroupManagerControllerApiService) GetServerGroupManagersForApplic if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_snapshot_controller.go b/gateapi/api_snapshot_controller.go index 5984ccd..358710d 100644 --- a/gateapi/api_snapshot_controller.go +++ b/gateapi/api_snapshot_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type SnapshotControllerApiService service -/* +/* SnapshotControllerApiService Get current snapshot * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -36,10 +36,10 @@ SnapshotControllerApiService Get current snapshot */ func (a *SnapshotControllerApiService) GetCurrentSnapshotUsingGET(ctx context.Context, account string, application string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -87,36 +87,36 @@ func (a *SnapshotControllerApiService) GetCurrentSnapshotUsingGET(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* SnapshotControllerApiService Get snapshot history * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param account account @@ -127,16 +127,16 @@ SnapshotControllerApiService Get snapshot history @return []interface{} */ -type GetSnapshotHistoryUsingGETOpts struct { +type GetSnapshotHistoryUsingGETOpts struct { Limit optional.Int32 } func (a *SnapshotControllerApiService) GetSnapshotHistoryUsingGET(ctx context.Context, account string, application string, localVarOptionals *GetSnapshotHistoryUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -187,29 +187,29 @@ func (a *SnapshotControllerApiService) GetSnapshotHistoryUsingGET(ctx context.Co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_subnet_controller.go b/gateapi/api_subnet_controller.go index 7d7df87..b200aca 100644 --- a/gateapi/api_subnet_controller.go +++ b/gateapi/api_subnet_controller.go @@ -11,11 +11,11 @@ package swagger import ( "context" - "fmt" "io/ioutil" "net/http" "net/url" "strings" + "fmt" ) // Linger please @@ -25,7 +25,7 @@ var ( type SubnetControllerApiService service -/* +/* SubnetControllerApiService Retrieve a list of subnets for a given cloud provider * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param cloudProvider cloudProvider @@ -34,10 +34,10 @@ SubnetControllerApiService Retrieve a list of subnets for a given cloud provider */ func (a *SubnetControllerApiService) AllByCloudProviderUsingGET1(ctx context.Context, cloudProvider string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -84,29 +84,29 @@ func (a *SubnetControllerApiService) AllByCloudProviderUsingGET1(ctx context.Con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_task_controller.go b/gateapi/api_task_controller.go index 5d2dc14..3925439 100644 --- a/gateapi/api_task_controller.go +++ b/gateapi/api_task_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type TaskControllerApiService service -/* +/* TaskControllerApiService Cancel task * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -35,10 +35,10 @@ TaskControllerApiService Cancel task */ func (a *TaskControllerApiService) CancelTaskUsingPUT1(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -85,36 +85,36 @@ func (a *TaskControllerApiService) CancelTaskUsingPUT1(ctx context.Context, id s if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* TaskControllerApiService Cancel tasks * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param ids ids @@ -123,10 +123,10 @@ TaskControllerApiService Cancel tasks */ func (a *TaskControllerApiService) CancelTasksUsingPUT(ctx context.Context, ids []string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -173,36 +173,36 @@ func (a *TaskControllerApiService) CancelTasksUsingPUT(ctx context.Context, ids if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* TaskControllerApiService Delete task * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -211,10 +211,10 @@ TaskControllerApiService Delete task */ func (a *TaskControllerApiService) DeleteTaskUsingDELETE(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -261,36 +261,36 @@ func (a *TaskControllerApiService) DeleteTaskUsingDELETE(ctx context.Context, id if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* TaskControllerApiService Get task details * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -301,16 +301,16 @@ TaskControllerApiService Get task details @return map[string]interface{} */ -type GetTaskDetailsUsingGET1Opts struct { +type GetTaskDetailsUsingGET1Opts struct { XRateLimitApp optional.String } func (a *TaskControllerApiService) GetTaskDetailsUsingGET1(ctx context.Context, id string, taskDetailsId string, localVarOptionals *GetTaskDetailsUsingGET1Opts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -361,36 +361,36 @@ func (a *TaskControllerApiService) GetTaskDetailsUsingGET1(ctx context.Context, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* TaskControllerApiService Get task * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -399,10 +399,10 @@ TaskControllerApiService Get task */ func (a *TaskControllerApiService) GetTaskUsingGET1(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -449,36 +449,36 @@ func (a *TaskControllerApiService) GetTaskUsingGET1(ctx context.Context, id stri if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* TaskControllerApiService Create task * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param map_ map @@ -487,10 +487,10 @@ TaskControllerApiService Create task */ func (a *TaskControllerApiService) TaskUsingPOST1(ctx context.Context, map_ interface{}) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -538,29 +538,29 @@ func (a *TaskControllerApiService) TaskUsingPOST1(ctx context.Context, map_ inte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_v2_canary_config_controller.go b/gateapi/api_v2_canary_config_controller.go index ebfc172..6bf782f 100644 --- a/gateapi/api_v2_canary_config_controller.go +++ b/gateapi/api_v2_canary_config_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type V2CanaryConfigControllerApiService service -/* +/* V2CanaryConfigControllerApiService Create a canary configuration * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param config config @@ -36,16 +36,16 @@ V2CanaryConfigControllerApiService Create a canary configuration @return interface{} */ -type CreateCanaryConfigUsingPOSTOpts struct { +type CreateCanaryConfigUsingPOSTOpts struct { ConfigurationAccountName optional.String } func (a *V2CanaryConfigControllerApiService) CreateCanaryConfigUsingPOST(ctx context.Context, config interface{}, localVarOptionals *CreateCanaryConfigUsingPOSTOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -96,36 +96,36 @@ func (a *V2CanaryConfigControllerApiService) CreateCanaryConfigUsingPOST(ctx con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryConfigControllerApiService Delete a canary configuration * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -135,7 +135,7 @@ V2CanaryConfigControllerApiService Delete a canary configuration */ -type DeleteCanaryConfigUsingDELETEOpts struct { +type DeleteCanaryConfigUsingDELETEOpts struct { ConfigurationAccountName optional.String } @@ -145,6 +145,7 @@ func (a *V2CanaryConfigControllerApiService) DeleteCanaryConfigUsingDELETE(ctx c localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + ) // create path and map variables @@ -191,19 +192,20 @@ func (a *V2CanaryConfigControllerApiService) DeleteCanaryConfigUsingDELETE(ctx c return localVarHttpResponse, err } + if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + return localVarHttpResponse, newErr } return localVarHttpResponse, nil } -/* +/* V2CanaryConfigControllerApiService Retrieve a canary configuration by id * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -213,16 +215,16 @@ V2CanaryConfigControllerApiService Retrieve a canary configuration by id @return interface{} */ -type GetCanaryConfigUsingGETOpts struct { +type GetCanaryConfigUsingGETOpts struct { ConfigurationAccountName optional.String } func (a *V2CanaryConfigControllerApiService) GetCanaryConfigUsingGET(ctx context.Context, id string, localVarOptionals *GetCanaryConfigUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -272,36 +274,36 @@ func (a *V2CanaryConfigControllerApiService) GetCanaryConfigUsingGET(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryConfigControllerApiService Retrieve a list of canary configurations * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *GetCanaryConfigsUsingGETOpts - Optional Parameters: @@ -311,17 +313,17 @@ V2CanaryConfigControllerApiService Retrieve a list of canary configurations @return []interface{} */ -type GetCanaryConfigsUsingGETOpts struct { - Application optional.String +type GetCanaryConfigsUsingGETOpts struct { + Application optional.String ConfigurationAccountName optional.String } func (a *V2CanaryConfigControllerApiService) GetCanaryConfigsUsingGET(ctx context.Context, localVarOptionals *GetCanaryConfigsUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -373,36 +375,36 @@ func (a *V2CanaryConfigControllerApiService) GetCanaryConfigsUsingGET(ctx contex if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryConfigControllerApiService Update a canary configuration * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param config config @@ -413,16 +415,16 @@ V2CanaryConfigControllerApiService Update a canary configuration @return interface{} */ -type UpdateCanaryConfigUsingPUTOpts struct { +type UpdateCanaryConfigUsingPUTOpts struct { ConfigurationAccountName optional.String } func (a *V2CanaryConfigControllerApiService) UpdateCanaryConfigUsingPUT(ctx context.Context, config interface{}, id string, localVarOptionals *UpdateCanaryConfigUsingPUTOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -474,29 +476,29 @@ func (a *V2CanaryConfigControllerApiService) UpdateCanaryConfigUsingPUT(ctx cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_v2_canary_controller.go b/gateapi/api_v2_canary_controller.go index d0b4c3d..e2aa5af 100644 --- a/gateapi/api_v2_canary_controller.go +++ b/gateapi/api_v2_canary_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type V2CanaryControllerApiService service -/* +/* V2CanaryControllerApiService (DEPRECATED) Retrieve a canary result * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param canaryConfigId canaryConfigId @@ -37,16 +37,16 @@ V2CanaryControllerApiService (DEPRECATED) Retrieve a canary result @return interface{} */ -type GetCanaryResultUsingGETOpts struct { +type GetCanaryResultUsingGETOpts struct { StorageAccountName optional.String } func (a *V2CanaryControllerApiService) GetCanaryResultUsingGET(ctx context.Context, canaryConfigId string, canaryExecutionId string, localVarOptionals *GetCanaryResultUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -97,36 +97,36 @@ func (a *V2CanaryControllerApiService) GetCanaryResultUsingGET(ctx context.Conte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Retrieve a canary result * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param canaryExecutionId canaryExecutionId @@ -136,16 +136,16 @@ V2CanaryControllerApiService Retrieve a canary result @return interface{} */ -type GetCanaryResultUsingGET1Opts struct { +type GetCanaryResultUsingGET1Opts struct { StorageAccountName optional.String } func (a *V2CanaryControllerApiService) GetCanaryResultUsingGET1(ctx context.Context, canaryExecutionId string, localVarOptionals *GetCanaryResultUsingGET1Opts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -195,58 +195,60 @@ func (a *V2CanaryControllerApiService) GetCanaryResultUsingGET1(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Retrieve a list of an application's canary results * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param application application * @param limit limit * @param optional nil or *GetCanaryResultsByApplicationUsingGETOpts - Optional Parameters: + * @param "Page" (optional.Int32) - page * @param "Statuses" (optional.String) - Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED, TERMINAL * @param "StorageAccountName" (optional.String) - storageAccountName @return []interface{} */ -type GetCanaryResultsByApplicationUsingGETOpts struct { - Statuses optional.String +type GetCanaryResultsByApplicationUsingGETOpts struct { + Page optional.Int32 + Statuses optional.String StorageAccountName optional.String } func (a *V2CanaryControllerApiService) GetCanaryResultsByApplicationUsingGET(ctx context.Context, application string, limit int32, localVarOptionals *GetCanaryResultsByApplicationUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -259,6 +261,9 @@ func (a *V2CanaryControllerApiService) GetCanaryResultsByApplicationUsingGET(ctx localVarFormParams := url.Values{} localVarQueryParams.Add("limit", parameterToString(limit, "")) + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } if localVarOptionals != nil && localVarOptionals.Statuses.IsSet() { localVarQueryParams.Add("statuses", parameterToString(localVarOptionals.Statuses.Value(), "")) } @@ -300,36 +305,36 @@ func (a *V2CanaryControllerApiService) GetCanaryResultsByApplicationUsingGET(ctx if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Retrieve a metric set pair list * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param metricSetPairListId metricSetPairListId @@ -339,16 +344,16 @@ V2CanaryControllerApiService Retrieve a metric set pair list @return []interface{} */ -type GetMetricSetPairListUsingGETOpts struct { +type GetMetricSetPairListUsingGETOpts struct { StorageAccountName optional.String } func (a *V2CanaryControllerApiService) GetMetricSetPairListUsingGET(ctx context.Context, metricSetPairListId string, localVarOptionals *GetMetricSetPairListUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -398,36 +403,36 @@ func (a *V2CanaryControllerApiService) GetMetricSetPairListUsingGET(ctx context. if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Start a canary execution * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param canaryConfigId canaryConfigId @@ -442,20 +447,20 @@ V2CanaryControllerApiService Start a canary execution @return interface{} */ -type InitiateCanaryUsingPOSTOpts struct { - Application optional.String - ConfigurationAccountName optional.String - MetricsAccountName optional.String +type InitiateCanaryUsingPOSTOpts struct { + Application optional.String + ConfigurationAccountName optional.String + MetricsAccountName optional.String ParentPipelineExecutionId optional.String - StorageAccountName optional.String + StorageAccountName optional.String } func (a *V2CanaryControllerApiService) InitiateCanaryUsingPOST(ctx context.Context, canaryConfigId string, executionRequest interface{}, localVarOptionals *InitiateCanaryUsingPOSTOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -519,36 +524,36 @@ func (a *V2CanaryControllerApiService) InitiateCanaryUsingPOST(ctx context.Conte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Start a canary execution with the supplied canary config * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param adhocExecutionRequest adhocExecutionRequest @@ -561,19 +566,19 @@ V2CanaryControllerApiService Start a canary execution with the supplied canary c @return interface{} */ -type InitiateCanaryWithConfigUsingPOSTOpts struct { - Application optional.String - MetricsAccountName optional.String +type InitiateCanaryWithConfigUsingPOSTOpts struct { + Application optional.String + MetricsAccountName optional.String ParentPipelineExecutionId optional.String - StorageAccountName optional.String + StorageAccountName optional.String } func (a *V2CanaryControllerApiService) InitiateCanaryWithConfigUsingPOST(ctx context.Context, adhocExecutionRequest interface{}, localVarOptionals *InitiateCanaryWithConfigUsingPOSTOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -633,36 +638,36 @@ func (a *V2CanaryControllerApiService) InitiateCanaryWithConfigUsingPOST(ctx con if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Retrieve a list of configured Kayenta accounts * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -670,10 +675,10 @@ V2CanaryControllerApiService Retrieve a list of configured Kayenta accounts */ func (a *V2CanaryControllerApiService) ListCredentialsUsingGET(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -719,36 +724,36 @@ func (a *V2CanaryControllerApiService) ListCredentialsUsingGET(ctx context.Conte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Retrieve a list of all configured canary judges * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -756,10 +761,10 @@ V2CanaryControllerApiService Retrieve a list of all configured canary judges */ func (a *V2CanaryControllerApiService) ListJudgesUsingGET(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -805,36 +810,36 @@ func (a *V2CanaryControllerApiService) ListJudgesUsingGET(ctx context.Context) ( if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2CanaryControllerApiService Retrieve a list of descriptors for use in populating the canary config ui * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *ListMetricsServiceMetadataUsingGETOpts - Optional Parameters: @@ -844,17 +849,17 @@ V2CanaryControllerApiService Retrieve a list of descriptors for use in populatin @return []interface{} */ -type ListMetricsServiceMetadataUsingGETOpts struct { - Filter optional.String +type ListMetricsServiceMetadataUsingGETOpts struct { + Filter optional.String MetricsAccountName optional.String } func (a *V2CanaryControllerApiService) ListMetricsServiceMetadataUsingGET(ctx context.Context, localVarOptionals *ListMetricsServiceMetadataUsingGETOpts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -906,29 +911,29 @@ func (a *V2CanaryControllerApiService) ListMetricsServiceMetadataUsingGET(ctx co if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_v2_pipeline_templates_controller.go b/gateapi/api_v2_pipeline_templates_controller.go index 48fd74c..618c3ac 100644 --- a/gateapi/api_v2_pipeline_templates_controller.go +++ b/gateapi/api_v2_pipeline_templates_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,26 +26,27 @@ var ( type V2PipelineTemplatesControllerApiService service -/* +/* V2PipelineTemplatesControllerApiService (ALPHA) Create a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param pipelineTemplate pipelineTemplate * @param optional nil or *CreateUsingPOST1Opts - Optional Parameters: * @param "Tag" (optional.String) - tag - +@return map[string]interface{} */ -type CreateUsingPOST1Opts struct { +type CreateUsingPOST1Opts struct { Tag optional.String } -func (a *V2PipelineTemplatesControllerApiService) CreateUsingPOST1(ctx context.Context, pipelineTemplate interface{}, localVarOptionals *CreateUsingPOST1Opts) (*http.Response, error) { +func (a *V2PipelineTemplatesControllerApiService) CreateUsingPOST1(ctx context.Context, pipelineTemplate interface{}, localVarOptionals *CreateUsingPOST1Opts) (map[string]interface{}, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + localVarReturnValue map[string]interface{} ) // create path and map variables @@ -79,44 +80,52 @@ func (a *V2PipelineTemplatesControllerApiService) CreateUsingPOST1(ctx context.C localVarPostBody = &pipelineTemplate r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHttpResponse, err := a.client.callAPI(r) if err != nil || localVarHttpResponse == nil { - return localVarHttpResponse, err + return localVarReturnValue, localVarHttpResponse, err } localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) localVarHttpResponse.Body.Close() if err != nil { - return localVarHttpResponse, err + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - - if localVarHttpResponse.StatusCode == 202 { + + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHttpResponse, newErr - } - newErr.model = v - return localVarHttpResponse, newErr + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } - - return localVarHttpResponse, newErr + + return localVarReturnValue, localVarHttpResponse, newErr } - return localVarHttpResponse, nil + return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2PipelineTemplatesControllerApiService Delete a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -128,18 +137,18 @@ V2PipelineTemplatesControllerApiService Delete a pipeline template. @return map[string]interface{} */ -type DeleteUsingDELETE1Opts struct { +type DeleteUsingDELETE1Opts struct { Application optional.String - Digest optional.String - Tag optional.String + Digest optional.String + Tag optional.String } func (a *V2PipelineTemplatesControllerApiService) DeleteUsingDELETE1(ctx context.Context, id string, localVarOptionals *DeleteUsingDELETE1Opts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -195,36 +204,36 @@ func (a *V2PipelineTemplatesControllerApiService) DeleteUsingDELETE1(ctx context if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - - if localVarHttpResponse.StatusCode == 202 { + + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2PipelineTemplatesControllerApiService (ALPHA) Get a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -235,17 +244,17 @@ V2PipelineTemplatesControllerApiService (ALPHA) Get a pipeline template. @return map[string]interface{} */ -type GetUsingGET2Opts struct { +type GetUsingGET2Opts struct { Digest optional.String - Tag optional.String + Tag optional.String } func (a *V2PipelineTemplatesControllerApiService) GetUsingGET2(ctx context.Context, id string, localVarOptionals *GetUsingGET2Opts) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -298,36 +307,36 @@ func (a *V2PipelineTemplatesControllerApiService) GetUsingGET2(ctx context.Conte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2PipelineTemplatesControllerApiService (ALPHA) List all pipelines that implement a pipeline template * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -336,10 +345,10 @@ V2PipelineTemplatesControllerApiService (ALPHA) List all pipelines that implemen */ func (a *V2PipelineTemplatesControllerApiService) ListPipelineTemplateDependentsUsingGET1(ctx context.Context, id string) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -386,36 +395,36 @@ func (a *V2PipelineTemplatesControllerApiService) ListPipelineTemplateDependents if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2PipelineTemplatesControllerApiService (ALPHA) List pipeline templates. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *ListUsingGET1Opts - Optional Parameters: @@ -424,16 +433,16 @@ V2PipelineTemplatesControllerApiService (ALPHA) List pipeline templates. @return []interface{} */ -type ListUsingGET1Opts struct { +type ListUsingGET1Opts struct { Scopes optional.Interface } func (a *V2PipelineTemplatesControllerApiService) ListUsingGET1(ctx context.Context, localVarOptionals *ListUsingGET1Opts) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -482,36 +491,36 @@ func (a *V2PipelineTemplatesControllerApiService) ListUsingGET1(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2PipelineTemplatesControllerApiService List pipeline templates with versions * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *ListVersionsUsingGETOpts - Optional Parameters: @@ -520,16 +529,16 @@ V2PipelineTemplatesControllerApiService List pipeline templates with versions @return interface{} */ -type ListVersionsUsingGETOpts struct { +type ListVersionsUsingGETOpts struct { Scopes optional.Interface } func (a *V2PipelineTemplatesControllerApiService) ListVersionsUsingGET(ctx context.Context, localVarOptionals *ListVersionsUsingGETOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -578,36 +587,36 @@ func (a *V2PipelineTemplatesControllerApiService) ListVersionsUsingGET(ctx conte if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2PipelineTemplatesControllerApiService (ALPHA) Plan a pipeline template configuration. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param pipeline pipeline @@ -616,10 +625,10 @@ V2PipelineTemplatesControllerApiService (ALPHA) Plan a pipeline template configu */ func (a *V2PipelineTemplatesControllerApiService) PlanUsingPOST(ctx context.Context, pipeline interface{}) (map[string]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue map[string]interface{} ) @@ -667,36 +676,36 @@ func (a *V2PipelineTemplatesControllerApiService) PlanUsingPOST(ctx context.Cont if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* V2PipelineTemplatesControllerApiService (ALPHA) Update a pipeline template. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id id @@ -705,20 +714,21 @@ V2PipelineTemplatesControllerApiService (ALPHA) Update a pipeline template. * @param "SkipPlanDependents" (optional.Bool) - skipPlanDependents * @param "Tag" (optional.String) - tag - +@return map[string]interface{} */ -type UpdateUsingPOST1Opts struct { +type UpdateUsingPOST1Opts struct { SkipPlanDependents optional.Bool - Tag optional.String + Tag optional.String } -func (a *V2PipelineTemplatesControllerApiService) UpdateUsingPOST1(ctx context.Context, id string, pipelineTemplate interface{}, localVarOptionals *UpdateUsingPOST1Opts) (*http.Response, error) { +func (a *V2PipelineTemplatesControllerApiService) UpdateUsingPOST1(ctx context.Context, id string, pipelineTemplate interface{}, localVarOptionals *UpdateUsingPOST1Opts) (map[string]interface{}, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} localVarFileName string localVarFileBytes []byte + localVarReturnValue map[string]interface{} ) // create path and map variables @@ -756,39 +766,47 @@ func (a *V2PipelineTemplatesControllerApiService) UpdateUsingPOST1(ctx context.C localVarPostBody = &pipelineTemplate r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHttpResponse, err := a.client.callAPI(r) if err != nil || localVarHttpResponse == nil { - return localVarHttpResponse, err + return localVarReturnValue, localVarHttpResponse, err } localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) localVarHttpResponse.Body.Close() if err != nil { - return localVarHttpResponse, err + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - - if localVarHttpResponse.StatusCode == 202 { + + if localVarHttpResponse.StatusCode == 200 { var v map[string]interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHttpResponse, newErr - } - newErr.model = v - return localVarHttpResponse, newErr + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } - - return localVarHttpResponse, newErr + + return localVarReturnValue, localVarHttpResponse, newErr } - return localVarHttpResponse, nil + return localVarReturnValue, localVarHttpResponse, nil } diff --git a/gateapi/api_version_controller.go b/gateapi/api_version_controller.go index ad8e175..689df17 100644 --- a/gateapi/api_version_controller.go +++ b/gateapi/api_version_controller.go @@ -24,7 +24,7 @@ var ( type VersionControllerApiService service -/* +/* VersionControllerApiService Fetch Gate's current version * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -32,10 +32,10 @@ VersionControllerApiService Fetch Gate's current version */ func (a *VersionControllerApiService) GetVersionUsingGET(ctx context.Context) (Version, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Version ) @@ -81,29 +81,29 @@ func (a *VersionControllerApiService) GetVersionUsingGET(ctx context.Context) (V if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v Version - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/api_webhook_controller.go b/gateapi/api_webhook_controller.go index 07f2a97..90864a0 100644 --- a/gateapi/api_webhook_controller.go +++ b/gateapi/api_webhook_controller.go @@ -11,12 +11,12 @@ package swagger import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" + "fmt" + "github.com/antihax/optional" ) // Linger please @@ -26,7 +26,7 @@ var ( type WebhookControllerApiService service -/* +/* WebhookControllerApiService Retrieve a list of preconfigured webhooks in Orca * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -34,10 +34,10 @@ WebhookControllerApiService Retrieve a list of preconfigured webhooks in Orca */ func (a *WebhookControllerApiService) PreconfiguredWebhooksUsingGET(ctx context.Context) ([]interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []interface{} ) @@ -83,36 +83,36 @@ func (a *WebhookControllerApiService) PreconfiguredWebhooksUsingGET(ctx context. if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v []interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } -/* +/* WebhookControllerApiService Endpoint for posting webhooks to Spinnaker's webhook service * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param source source @@ -125,18 +125,18 @@ WebhookControllerApiService Endpoint for posting webhooks to Spinnaker's web @return interface{} */ -type WebhooksUsingPOSTOpts struct { - XEventKey optional.String +type WebhooksUsingPOSTOpts struct { + XEventKey optional.String XHubSignature optional.String - Event optional.Interface + Event optional.Interface } func (a *WebhookControllerApiService) WebhooksUsingPOST(ctx context.Context, source string, type_ string, localVarOptionals *WebhooksUsingPOSTOpts) (interface{}, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue interface{} ) @@ -174,10 +174,10 @@ func (a *WebhookControllerApiService) WebhooksUsingPOST(ctx context.Context, sou } // body params if localVarOptionals != nil && localVarOptionals.Event.IsSet() { - + localVarOptionalEvent, localVarOptionalEventok := localVarOptionals.Event.Value().(interface{}) if !localVarOptionalEventok { - return localVarReturnValue, nil, reportError("event should be interface{}") + return localVarReturnValue, nil, reportError("event should be interface{}") } localVarPostBody = &localVarOptionalEvent } @@ -199,29 +199,29 @@ func (a *WebhookControllerApiService) WebhooksUsingPOST(ctx context.Context, sou if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } - + if localVarHttpResponse.StatusCode == 200 { var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr } - + return localVarReturnValue, localVarHttpResponse, newErr } diff --git a/gateapi/client.go b/gateapi/client.go index 1152118..eadec3a 100644 --- a/gateapi/client.go +++ b/gateapi/client.go @@ -91,6 +91,12 @@ type APIClient struct { PipelineTemplatesControllerApi *PipelineTemplatesControllerApiService + PluginInfoControllerApi *PluginInfoControllerApiService + + PluginPublishControllerApi *PluginPublishControllerApiService + + PluginsInstalledControllerApi *PluginsInstalledControllerApiService + ProjectControllerApi *ProjectControllerApiService PubsubSubscriptionControllerApi *PubsubSubscriptionControllerApiService @@ -161,6 +167,9 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PipelineConfigControllerApi = (*PipelineConfigControllerApiService)(&c.common) c.PipelineControllerApi = (*PipelineControllerApiService)(&c.common) c.PipelineTemplatesControllerApi = (*PipelineTemplatesControllerApiService)(&c.common) + c.PluginInfoControllerApi = (*PluginInfoControllerApiService)(&c.common) + c.PluginPublishControllerApi = (*PluginPublishControllerApiService)(&c.common) + c.PluginsInstalledControllerApi = (*PluginsInstalledControllerApiService)(&c.common) c.ProjectControllerApi = (*ProjectControllerApiService)(&c.common) c.PubsubSubscriptionControllerApi = (*PubsubSubscriptionControllerApiService)(&c.common) c.ReorderPipelinesControllerApi = (*ReorderPipelinesControllerApiService)(&c.common) @@ -411,17 +420,17 @@ func (c *APIClient) prepareRequest( } func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if strings.Contains(contentType, "application/xml") { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } else if strings.Contains(contentType, "application/json") { - if err = json.Unmarshal(b, v); err != nil { - return err + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil } - return nil - } return errors.New("undefined response type") } @@ -572,4 +581,4 @@ func (e GenericSwaggerError) Body() []byte { // Model returns the unpacked model of the error func (e GenericSwaggerError) Model() interface{} { return e.model -} +} \ No newline at end of file diff --git a/gateapi/docs/Account.md b/gateapi/docs/Account.md index cfd4827..71860f3 100644 --- a/gateapi/docs/Account.md +++ b/gateapi/docs/Account.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | | [optional] [default to null] -**Name** | **string** | | [optional] [default to null] -**Permissions** | [**map[string][]string**](array.md) | | [optional] [default to null] **RequiredGroupMembership** | **[]string** | | [optional] [default to null] +**Permissions** | [**map[string][]string**](array.md) | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**AccountId** | **string** | | [optional] [default to null] **Type_** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/AccountDetails.md b/gateapi/docs/AccountDetails.md index d7f5ad4..6399391 100644 --- a/gateapi/docs/AccountDetails.md +++ b/gateapi/docs/AccountDetails.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountId** | **string** | | [optional] [default to null] **AccountType** | **string** | | [optional] [default to null] +**AccountId** | **string** | | [optional] [default to null] +**PrimaryAccount** | **bool** | | [optional] [default to null] **ChallengeDestructiveActions** | **bool** | | [optional] [default to null] -**CloudProvider** | **string** | | [optional] [default to null] **Environment** | **string** | | [optional] [default to null] +**CloudProvider** | **string** | | [optional] [default to null] **Name** | **string** | | [optional] [default to null] **Permissions** | [**map[string][]string**](array.md) | | [optional] [default to null] -**PrimaryAccount** | **bool** | | [optional] [default to null] -**RequiredGroupMembership** | **[]string** | | [optional] [default to null] **Type_** | **string** | | [optional] [default to null] +**RequiredGroupMembership** | **[]string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/ConstraintState.md b/gateapi/docs/ConstraintState.md index e8424c1..c307c81 100644 --- a/gateapi/docs/ConstraintState.md +++ b/gateapi/docs/ConstraintState.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArtifactVersion** | **string** | | [optional] [default to null] -**Attributes** | [***interface{}**](interface{}.md) | | [optional] [default to null] -**Comment** | **string** | | [optional] [default to null] -**CreatedAt** | **string** | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] +**Type_** | **string** | | [optional] [default to null] **DeliveryConfigName** | **string** | | [optional] [default to null] +**JudgedBy** | **string** | | [optional] [default to null] +**Attributes** | [***interface{}**](interface{}.md) | | [optional] [default to null] +**ArtifactVersion** | **string** | | [optional] [default to null] **EnvironmentName** | **string** | | [optional] [default to null] +**CreatedAt** | **string** | | [optional] [default to null] **JudgedAt** | **string** | | [optional] [default to null] -**JudgedBy** | **string** | | [optional] [default to null] -**Status** | **string** | | [optional] [default to null] -**Type_** | **string** | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/ConstraintStatus.md b/gateapi/docs/ConstraintStatus.md index 3f76c33..0f9c7f7 100644 --- a/gateapi/docs/ConstraintStatus.md +++ b/gateapi/docs/ConstraintStatus.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ArtifactReference** | **string** | | [optional] [default to null] +**Type_** | **string** | | [optional] [default to null] +**Status** | **string** | | [optional] [default to null] **ArtifactVersion** | **string** | | [optional] [default to null] **Comment** | **string** | | [optional] [default to null] -**Status** | **string** | | [optional] [default to null] -**Type_** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/DeckPluginVersion.md b/gateapi/docs/DeckPluginVersion.md index 571fca8..8a52f47 100644 --- a/gateapi/docs/DeckPluginVersion.md +++ b/gateapi/docs/DeckPluginVersion.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [default to null] **Version** | **string** | | [default to null] +**Id** | **string** | | [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/DeliveryConfig.md b/gateapi/docs/DeliveryConfig.md index e940322..e79622b 100644 --- a/gateapi/docs/DeliveryConfig.md +++ b/gateapi/docs/DeliveryConfig.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ApiVersion** | **string** | | [optional] [default to null] -**Application** | **string** | | [optional] [default to null] -**Artifacts** | [**[]Mapstringobject**](Map«string,object».md) | | [optional] [default to null] **Environments** | [**[]Environment**](Environment.md) | | [optional] [default to null] +**ApiVersion** | **string** | | [optional] [default to null] **Name** | **string** | | [optional] [default to null] +**Application** | **string** | | [optional] [default to null] **ServiceAccount** | **string** | | [optional] [default to null] +**Artifacts** | [**[]Mapstringobject**](Map«string,object».md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/Environment.md b/gateapi/docs/Environment.md index 010ead9..662219f 100644 --- a/gateapi/docs/Environment.md +++ b/gateapi/docs/Environment.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Constraints** | [**[]Mapstringobject**](Map«string,object».md) | | [optional] [default to null] **Locations** | [***interface{}**](interface{}.md) | | [optional] [default to null] -**Name** | **string** | | [optional] [default to null] -**Notifications** | [**[]Notification**](Notification.md) | | [optional] [default to null] +**Constraints** | [**[]Mapstringobject**](Map«string,object».md) | | [optional] [default to null] **Resources** | [**[]Resource**](Resource.md) | | [optional] [default to null] +**Notifications** | [**[]Notification**](Notification.md) | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/EnvironmentArtifactPin.md b/gateapi/docs/EnvironmentArtifactPin.md index 2caed2b..4db7fc5 100644 --- a/gateapi/docs/EnvironmentArtifactPin.md +++ b/gateapi/docs/EnvironmentArtifactPin.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Comment** | **string** | | [optional] [default to null] +**TargetEnvironment** | **string** | | [optional] [default to null] **PinnedBy** | **string** | | [optional] [default to null] **Reference** | **string** | | [optional] [default to null] -**TargetEnvironment** | **string** | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] **Version** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/EnvironmentArtifactVeto.md b/gateapi/docs/EnvironmentArtifactVeto.md index c4d089c..a42ade2 100644 --- a/gateapi/docs/EnvironmentArtifactVeto.md +++ b/gateapi/docs/EnvironmentArtifactVeto.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Comment** | **string** | | [optional] [default to null] -**Reference** | **string** | | [optional] [default to null] -**TargetEnvironment** | **string** | | [optional] [default to null] **Version** | **string** | | [optional] [default to null] +**TargetEnvironment** | **string** | | [optional] [default to null] +**Reference** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/File.md b/gateapi/docs/File.md index 4be5157..801d6f8 100644 --- a/gateapi/docs/File.md +++ b/gateapi/docs/File.md @@ -3,25 +3,25 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Absolute** | **bool** | | [optional] [default to null] -**AbsoluteFile** | [****os.File**](*os.File.md) | | [optional] [default to null] -**AbsolutePath** | **string** | | [optional] [default to null] -**CanonicalFile** | [****os.File**](*os.File.md) | | [optional] [default to null] -**CanonicalPath** | **string** | | [optional] [default to null] -**Directory** | **bool** | | [optional] [default to null] **Executable** | **bool** | | [optional] [default to null] -**File** | **bool** | | [optional] [default to null] -**FreeSpace** | **int64** | | [optional] [default to null] -**Hidden** | **bool** | | [optional] [default to null] **LastModified** | **int64** | | [optional] [default to null] -**Name** | **string** | | [optional] [default to null] -**Parent** | **string** | | [optional] [default to null] -**ParentFile** | [****os.File**](*os.File.md) | | [optional] [default to null] -**Path** | **string** | | [optional] [default to null] -**Readable** | **bool** | | [optional] [default to null] +**Directory** | **bool** | | [optional] [default to null] +**Writable** | **bool** | | [optional] [default to null] **TotalSpace** | **int64** | | [optional] [default to null] +**Readable** | **bool** | | [optional] [default to null] +**CanonicalFile** | [****os.File**](*os.File.md) | | [optional] [default to null] +**FreeSpace** | **int64** | | [optional] [default to null] +**File** | **bool** | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] **UsableSpace** | **int64** | | [optional] [default to null] -**Writable** | **bool** | | [optional] [default to null] +**AbsolutePath** | **string** | | [optional] [default to null] +**Parent** | **string** | | [optional] [default to null] +**Hidden** | **bool** | | [optional] [default to null] +**ParentFile** | [****os.File**](*os.File.md) | | [optional] [default to null] +**Absolute** | **bool** | | [optional] [default to null] +**AbsoluteFile** | [****os.File**](*os.File.md) | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] +**CanonicalPath** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/Headers.md b/gateapi/docs/Headers.md new file mode 100644 index 0000000..d7c86d3 --- /dev/null +++ b/gateapi/docs/Headers.md @@ -0,0 +1,12 @@ +# Headers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InvokeHeaders** | **map[string]string** | | [optional] [default to null] +**ReadHeaders** | **map[string]string** | | [optional] [default to null] +**WriteHeaders** | **map[string]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gateapi/docs/Http.md b/gateapi/docs/Http.md new file mode 100644 index 0000000..878d39f --- /dev/null +++ b/gateapi/docs/Http.md @@ -0,0 +1,13 @@ +# Http + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]string** | | [optional] [default to null] +**Url** | **string** | | [optional] [default to null] +**QueryParams** | **map[string]string** | | [optional] [default to null] +**Headers** | [***Headers**](Headers.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gateapi/docs/ManagedControllerApi.md b/gateapi/docs/ManagedControllerApi.md index e86b142..5aa0fad 100644 --- a/gateapi/docs/ManagedControllerApi.md +++ b/gateapi/docs/ManagedControllerApi.md @@ -8,23 +8,25 @@ Method | HTTP request | Description [**DeleteManifestByAppUsingDELETE**](ManagedControllerApi.md#DeleteManifestByAppUsingDELETE) | **Delete** /managed/application/{application}/config | Delete a delivery config manifest for an application [**DeleteManifestUsingDELETE**](ManagedControllerApi.md#DeleteManifestUsingDELETE) | **Delete** /managed/delivery-configs/{name} | Delete a delivery config manifest [**DeletePinUsingDELETE**](ManagedControllerApi.md#DeletePinUsingDELETE) | **Delete** /managed/application/{application}/pin/{targetEnvironment} | Unpin one or more artifact(s) in an environment. If the `reference` parameter is specified, only the corresponding artifact will be unpinned. If it's omitted, all pinned artifacts in the environment will be unpinned. -[**DeleteVetoUsingDELETE**](ManagedControllerApi.md#DeleteVetoUsingDELETE) | **Delete** /managed/application/{application}/veto/{targetEnvironment}/{reference}/{version} | Veto an artifact version in an environment +[**DeleteVetoUsingDELETE**](ManagedControllerApi.md#DeleteVetoUsingDELETE) | **Delete** /managed/application/{application}/veto/{targetEnvironment}/{reference}/{version} | Remove veto of an artifact version in an environment [**DiffManifestUsingPOST**](ManagedControllerApi.md#DiffManifestUsingPOST) | **Post** /managed/delivery-configs/diff | Ad-hoc validate and diff a config manifest [**DiffResourceUsingPOST**](ManagedControllerApi.md#DiffResourceUsingPOST) | **Post** /managed/resources/diff | Ad-hoc validate and diff a resource [**ExportResourceUsingGET**](ManagedControllerApi.md#ExportResourceUsingGET) | **Get** /managed/resources/export/artifact/{cloudProvider}/{account}/{clusterName} | Generates an artifact definition based on the artifact used in a running cluster [**ExportResourceUsingGET1**](ManagedControllerApi.md#ExportResourceUsingGET1) | **Get** /managed/resources/export/{cloudProvider}/{account}/{type}/{name} | Generate a keel resource definition for a deployed cloud resource -[**GetApiDocsUsingGET**](ManagedControllerApi.md#GetApiDocsUsingGET) | **Get** /managed/api-docs | getApiDocs [**GetApplicationDetailsUsingGET**](ManagedControllerApi.md#GetApplicationDetailsUsingGET) | **Get** /managed/application/{application} | Get managed details about an application [**GetConfigByUsingGET**](ManagedControllerApi.md#GetConfigByUsingGET) | **Get** /managed/application/{application}/config | Get the delivery config associated with an application [**GetConstraintStateUsingGET**](ManagedControllerApi.md#GetConstraintStateUsingGET) | **Get** /managed/application/{application}/environment/{environment}/constraints | List up-to {limit} current constraint states for an environment [**GetManifestArtifactsUsingGET**](ManagedControllerApi.md#GetManifestArtifactsUsingGET) | **Get** /managed/delivery-configs/{name}/artifacts | Get the status of each version of each artifact in each environment [**GetManifestUsingGET**](ManagedControllerApi.md#GetManifestUsingGET) | **Get** /managed/delivery-configs/{name} | Get a delivery config manifest +[**GetManifestYamlUsingGET**](ManagedControllerApi.md#GetManifestYamlUsingGET) | **Get** /managed/delivery-configs/{name}.yml | Get a delivery config manifest [**GetResourceStatusUsingGET**](ManagedControllerApi.md#GetResourceStatusUsingGET) | **Get** /managed/resources/{resourceId}/status | Get status of a resource [**GetResourceUsingGET**](ManagedControllerApi.md#GetResourceUsingGET) | **Get** /managed/resources/{resourceId} | Get a resource +[**GetResourceYamlUsingGET**](ManagedControllerApi.md#GetResourceYamlUsingGET) | **Get** /managed/resources/{resourceId}.yml | Get a resource [**PauseApplicationUsingPOST**](ManagedControllerApi.md#PauseApplicationUsingPOST) | **Post** /managed/application/{application}/pause | Pause management of an entire application [**PauseResourceUsingPOST**](ManagedControllerApi.md#PauseResourceUsingPOST) | **Post** /managed/resources/{resourceId}/pause | Pause management of a resource [**ResumeApplicationUsingDELETE**](ManagedControllerApi.md#ResumeApplicationUsingDELETE) | **Delete** /managed/application/{application}/pause | Resume management of an entire application [**ResumeResourceUsingDELETE**](ManagedControllerApi.md#ResumeResourceUsingDELETE) | **Delete** /managed/resources/{resourceId}/pause | Resume management of a resource +[**SchemaUsingGET**](ManagedControllerApi.md#SchemaUsingGET) | **Get** /managed/delivery-configs/schema | Ad-hoc validate and diff a config manifest [**UpdateConstraintStatusUsingPOST**](ManagedControllerApi.md#UpdateConstraintStatusUsingPOST) | **Post** /managed/application/{application}/environment/{environment}/constraint | Update the status of an environment constraint [**UpsertManifestUsingPOST**](ManagedControllerApi.md#UpsertManifestUsingPOST) | **Post** /managed/delivery-configs | Create or update a delivery config manifest [**ValidateManifestUsingPOST**](ManagedControllerApi.md#ValidateManifestUsingPOST) | **Post** /managed/delivery-configs/validate | Validate a delivery config manifest @@ -149,7 +151,7 @@ No authorization required # **DeleteVetoUsingDELETE** > DeleteVetoUsingDELETE(ctx, application, reference, targetEnvironment, version) -Veto an artifact version in an environment +Remove veto of an artifact version in an environment ### Required Parameters @@ -286,28 +288,6 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **GetApiDocsUsingGET** -> interface{} GetApiDocsUsingGET(ctx, ) -getApiDocs - -### Required Parameters -This endpoint does not need any parameter. - -### Return type - -[**interface{}**](interface{}.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **GetApplicationDetailsUsingGET** > interface{} GetApplicationDetailsUsingGET(ctx, application, optional) Get managed details about an application @@ -328,6 +308,7 @@ Name | Type | Description | Notes **entities** | [**optional.Interface of []string**](string.md)| entities | **includeDetails** | **optional.Bool**| includeDetails | [default to false] + **maxArtifactVersions** | **optional.Int32**| maxArtifactVersions | ### Return type @@ -459,6 +440,32 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **GetManifestYamlUsingGET** +> DeliveryConfig GetManifestYamlUsingGET(ctx, name) +Get a delivery config manifest + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| name | + +### Return type + +[**DeliveryConfig**](DeliveryConfig.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/x-yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **GetResourceStatusUsingGET** > interface{} GetResourceStatusUsingGET(ctx, resourceId) Get status of a resource @@ -511,6 +518,32 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **GetResourceYamlUsingGET** +> Resource GetResourceYamlUsingGET(ctx, resourceId) +Get a resource + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **resourceId** | **string**| resourceId | + +### Return type + +[**Resource**](Resource.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/x-yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **PauseApplicationUsingPOST** > PauseApplicationUsingPOST(ctx, application) Pause management of an entire application @@ -615,6 +648,28 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **SchemaUsingGET** +> interface{} SchemaUsingGET(ctx, ) +Ad-hoc validate and diff a config manifest + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/x-yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **UpdateConstraintStatusUsingPOST** > UpdateConstraintStatusUsingPOST(ctx, application, environment, status) Update the status of an environment constraint diff --git a/gateapi/docs/Notification.md b/gateapi/docs/Notification.md index a9b1919..d4fa6f2 100644 --- a/gateapi/docs/Notification.md +++ b/gateapi/docs/Notification.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | [optional] [default to null] -**Frequency** | **string** | | [optional] [default to null] **Type_** | **string** | | [optional] [default to null] +**Frequency** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/PipelineControllerApi.md b/gateapi/docs/PipelineControllerApi.md index b1af233..b4d802b 100644 --- a/gateapi/docs/PipelineControllerApi.md +++ b/gateapi/docs/PipelineControllerApi.md @@ -205,7 +205,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **executionId** | **string**| Execution id to run against | - **expressions** | [**[]Mapstringstring**](Map«string,string».md)| List of variables/expressions to evaluate | + **expressions** | [**[]Mapstringstring**](Map«string,string».md)| List of variables/expressions to evaluate | **optional** | ***EvaluateVariablesUsingPOSTOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -440,7 +440,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **SavePipelineUsingPOST** -> SavePipelineUsingPOST(ctx, pipeline) +> SavePipelineUsingPOST(ctx, pipeline, optional) Save a pipeline definition ### Required Parameters @@ -449,6 +449,15 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **pipeline** | [**interface{}**](interface{}.md)| pipeline | + **optional** | ***SavePipelineUsingPOSTOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a SavePipelineUsingPOSTOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **staleCheck** | **optional.Bool**| staleCheck | [default to false] ### Return type diff --git a/gateapi/docs/PipelineTemplateDependent.md b/gateapi/docs/PipelineTemplateDependent.md index 238f430..9615874 100644 --- a/gateapi/docs/PipelineTemplateDependent.md +++ b/gateapi/docs/PipelineTemplateDependent.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Application** | **string** | | [optional] [default to null] **PipelineConfigId** | **string** | | [optional] [default to null] +**Application** | **string** | | [optional] [default to null] **PipelineName** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/PluginDependency.md b/gateapi/docs/PluginDependency.md index 24e6bdf..3dc0db5 100644 --- a/gateapi/docs/PluginDependency.md +++ b/gateapi/docs/PluginDependency.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Optional** | **bool** | | [optional] [default to null] -**PluginId** | **string** | | [optional] [default to null] **PluginVersionSupport** | **string** | | [optional] [default to null] +**PluginId** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/PluginInfoControllerApi.md b/gateapi/docs/PluginInfoControllerApi.md index 7bc0fe4..6977518 100644 --- a/gateapi/docs/PluginInfoControllerApi.md +++ b/gateapi/docs/PluginInfoControllerApi.md @@ -37,7 +37,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetAllPluginInfoUsingGET** -> []Mapobjectobject GetAllPluginInfoUsingGET(ctx, optional) +> []interface{} GetAllPluginInfoUsingGET(ctx, optional) Get all plugin info objects ### Required Parameters @@ -56,7 +56,7 @@ Name | Type | Description | Notes ### Return type -[**[]Mapobjectobject**](Map«object,object».md) +[**[]interface{}**](interface{}.md) ### Authorization diff --git a/gateapi/docs/PubsubSubscriptionControllerApi.md b/gateapi/docs/PubsubSubscriptionControllerApi.md index 9999f9c..150e0f0 100644 --- a/gateapi/docs/PubsubSubscriptionControllerApi.md +++ b/gateapi/docs/PubsubSubscriptionControllerApi.md @@ -16,7 +16,7 @@ This endpoint does not need any parameter. ### Return type -[**[]Mapstringstring**](Map«string,string».md) +[**[]Mapstringstring**](Map«string,string».md) ### Authorization diff --git a/gateapi/docs/RemoteExtensionConfig.md b/gateapi/docs/RemoteExtensionConfig.md new file mode 100644 index 0000000..35e8f82 --- /dev/null +++ b/gateapi/docs/RemoteExtensionConfig.md @@ -0,0 +1,13 @@ +# RemoteExtensionConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type_** | **string** | | [optional] [default to null] +**Transport** | [***RemoteExtensionTransportConfig**](RemoteExtensionTransportConfig.md) | | [optional] [default to null] +**Config** | [***interface{}**](interface{}.md) | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gateapi/docs/RemoteExtensionTransportConfig.md b/gateapi/docs/RemoteExtensionTransportConfig.md new file mode 100644 index 0000000..9391023 --- /dev/null +++ b/gateapi/docs/RemoteExtensionTransportConfig.md @@ -0,0 +1,10 @@ +# RemoteExtensionTransportConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Http** | [***Http**](Http.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gateapi/docs/Resource.md b/gateapi/docs/Resource.md index 6c55f9d..d9d6fc6 100644 --- a/gateapi/docs/Resource.md +++ b/gateapi/docs/Resource.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Description** | **string** | | [optional] [default to null] +**Uri** | [***Uri**](URI.md) | | [optional] [default to null] **File** | [****os.File**](*os.File.md) | | [optional] [default to null] +**Readable** | **bool** | | [optional] [default to null] +**Description** | **string** | | [optional] [default to null] +**Open** | **bool** | | [optional] [default to null] **Filename** | **string** | | [optional] [default to null] **InputStream** | [***InputStream**](InputStream.md) | | [optional] [default to null] -**Open** | **bool** | | [optional] [default to null] -**Readable** | **bool** | | [optional] [default to null] -**Uri** | [***Uri**](URI.md) | | [optional] [default to null] **Url** | [***Url**](URL.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/ResponseEntity.md b/gateapi/docs/ResponseEntity.md index e00882c..431dd4e 100644 --- a/gateapi/docs/ResponseEntity.md +++ b/gateapi/docs/ResponseEntity.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**StatusCodeValue** | **int32** | | [optional] [default to null] **Body** | [***interface{}**](interface{}.md) | | [optional] [default to null] **StatusCode** | **string** | | [optional] [default to null] -**StatusCodeValue** | **int32** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/SpinnakerPluginDescriptor.md b/gateapi/docs/SpinnakerPluginDescriptor.md index d3c5da7..a81a08a 100644 --- a/gateapi/docs/SpinnakerPluginDescriptor.md +++ b/gateapi/docs/SpinnakerPluginDescriptor.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Dependencies** | [**[]PluginDependency**](PluginDependency.md) | | [optional] [default to null] -**License** | **string** | | [optional] [default to null] -**PluginClass** | **string** | | [optional] [default to null] **PluginDescription** | **string** | | [optional] [default to null] -**PluginId** | **string** | | [optional] [default to null] **Provider** | **string** | | [optional] [default to null] -**Requires** | **string** | | [optional] [default to null] +**PluginClass** | **string** | | [optional] [default to null] **Unsafe** | **bool** | | [default to null] +**License** | **string** | | [optional] [default to null] +**PluginId** | **string** | | [optional] [default to null] +**Dependencies** | [**[]PluginDependency**](PluginDependency.md) | | [optional] [default to null] +**Requires** | **string** | | [optional] [default to null] **Version** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/SpinnakerPluginInfo.md b/gateapi/docs/SpinnakerPluginInfo.md index 515c19c..13c8fef 100644 --- a/gateapi/docs/SpinnakerPluginInfo.md +++ b/gateapi/docs/SpinnakerPluginInfo.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Description** | **string** | | [optional] [default to null] -**Id** | **string** | | [optional] [default to null] -**Name** | **string** | | [optional] [default to null] -**ProjectUrl** | **string** | | [optional] [default to null] **Provider** | **string** | | [optional] [default to null] +**ProjectUrl** | **string** | | [optional] [default to null] +**Name** | **string** | | [optional] [default to null] **Releases** | [**[]SpinnakerPluginRelease**](SpinnakerPluginRelease.md) | | [default to null] **RepositoryId** | **string** | | [optional] [default to null] +**Id** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/SpinnakerPluginRelease.md b/gateapi/docs/SpinnakerPluginRelease.md index 022b13d..8b53852 100644 --- a/gateapi/docs/SpinnakerPluginRelease.md +++ b/gateapi/docs/SpinnakerPluginRelease.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Date** | [**time.Time**](time.Time.md) | | [optional] [default to null] -**Preferred** | **bool** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] **Requires** | **string** | | [optional] [default to null] -**Sha512sum** | **string** | | [optional] [default to null] +**Preferred** | **bool** | | [optional] [default to null] +**Date** | [**time.Time**](time.Time.md) | | [optional] [default to null] **Url** | **string** | | [optional] [default to null] -**Version** | **string** | | [optional] [default to null] +**Sha512sum** | **string** | | [optional] [default to null] +**RemoteExtensions** | [**[]RemoteExtensionConfig**](RemoteExtensionConfig.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/Uri.md b/gateapi/docs/Uri.md index 65982ef..c34a07f 100644 --- a/gateapi/docs/Uri.md +++ b/gateapi/docs/Uri.md @@ -3,23 +3,23 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Opaque** | **bool** | | [optional] [default to null] **Absolute** | **bool** | | [optional] [default to null] **Authority** | **string** | | [optional] [default to null] -**Fragment** | **string** | | [optional] [default to null] -**Host** | **string** | | [optional] [default to null] -**Opaque** | **bool** | | [optional] [default to null] -**Path** | **string** | | [optional] [default to null] +**UserInfo** | **string** | | [optional] [default to null] +**SchemeSpecificPart** | **string** | | [optional] [default to null] **Port** | **int32** | | [optional] [default to null] -**Query** | **string** | | [optional] [default to null] -**RawAuthority** | **string** | | [optional] [default to null] -**RawFragment** | **string** | | [optional] [default to null] -**RawPath** | **string** | | [optional] [default to null] +**Path** | **string** | | [optional] [default to null] **RawQuery** | **string** | | [optional] [default to null] +**RawAuthority** | **string** | | [optional] [default to null] +**Host** | **string** | | [optional] [default to null] **RawSchemeSpecificPart** | **string** | | [optional] [default to null] -**RawUserInfo** | **string** | | [optional] [default to null] +**Fragment** | **string** | | [optional] [default to null] **Scheme** | **string** | | [optional] [default to null] -**SchemeSpecificPart** | **string** | | [optional] [default to null] -**UserInfo** | **string** | | [optional] [default to null] +**RawPath** | **string** | | [optional] [default to null] +**Query** | **string** | | [optional] [default to null] +**RawFragment** | **string** | | [optional] [default to null] +**RawUserInfo** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/Url.md b/gateapi/docs/Url.md index 15d91d3..5e78c90 100644 --- a/gateapi/docs/Url.md +++ b/gateapi/docs/Url.md @@ -3,19 +3,19 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Authority** | **string** | | [optional] [default to null] -**Content** | [***interface{}**](interface{}.md) | | [optional] [default to null] -**DefaultPort** | **int32** | | [optional] [default to null] -**DeserializedFields** | [***UrlStreamHandler**](URLStreamHandler.md) | | [optional] [default to null] -**File** | **string** | | [optional] [default to null] -**Host** | **string** | | [optional] [default to null] +**Query** | **string** | | [optional] [default to null] **Path** | **string** | | [optional] [default to null] +**DeserializedFields** | [***UrlStreamHandler**](URLStreamHandler.md) | | [optional] [default to null] **Port** | **int32** | | [optional] [default to null] -**Protocol** | **string** | | [optional] [default to null] -**Query** | **string** | | [optional] [default to null] +**DefaultPort** | **int32** | | [optional] [default to null] **Ref** | **string** | | [optional] [default to null] -**SerializedHashCode** | **int32** | | [optional] [default to null] +**Content** | [***interface{}**](interface{}.md) | | [optional] [default to null] **UserInfo** | **string** | | [optional] [default to null] +**File** | **string** | | [optional] [default to null] +**Authority** | **string** | | [optional] [default to null] +**SerializedHashCode** | **int32** | | [optional] [default to null] +**Host** | **string** | | [optional] [default to null] +**Protocol** | **string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/User.md b/gateapi/docs/User.md index 9eeb353..a03d27b 100644 --- a/gateapi/docs/User.md +++ b/gateapi/docs/User.md @@ -3,17 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccountNonExpired** | **bool** | | [optional] [default to null] -**AccountNonLocked** | **bool** | | [optional] [default to null] -**AllowedAccounts** | **[]string** | | [optional] [default to null] **Authorities** | [**[]GrantedAuthority**](GrantedAuthority.md) | | [optional] [default to null] +**Username** | **string** | | [optional] [default to null] **CredentialsNonExpired** | **bool** | | [optional] [default to null] **Email** | **string** | | [optional] [default to null] +**Roles** | **[]string** | | [optional] [default to null] +**LastName** | **string** | | [optional] [default to null] **Enabled** | **bool** | | [optional] [default to null] +**AllowedAccounts** | **[]string** | | [optional] [default to null] **FirstName** | **string** | | [optional] [default to null] -**LastName** | **string** | | [optional] [default to null] -**Roles** | **[]string** | | [optional] [default to null] -**Username** | **string** | | [optional] [default to null] +**AccountNonLocked** | **bool** | | [optional] [default to null] +**AccountNonExpired** | **bool** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gateapi/docs/V2CanaryControllerApi.md b/gateapi/docs/V2CanaryControllerApi.md index 32286f5..38a2525 100644 --- a/gateapi/docs/V2CanaryControllerApi.md +++ b/gateapi/docs/V2CanaryControllerApi.md @@ -107,6 +107,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **page** | **optional.Int32**| page | [default to 1] **statuses** | **optional.String**| Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED, TERMINAL | **storageAccountName** | **optional.String**| storageAccountName | diff --git a/gateapi/docs/V2PipelineTemplatesControllerApi.md b/gateapi/docs/V2PipelineTemplatesControllerApi.md index 29cef51..ca7493d 100644 --- a/gateapi/docs/V2PipelineTemplatesControllerApi.md +++ b/gateapi/docs/V2PipelineTemplatesControllerApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **CreateUsingPOST1** -> CreateUsingPOST1(ctx, pipelineTemplate, optional) +> map[string]interface{} CreateUsingPOST1(ctx, pipelineTemplate, optional) (ALPHA) Create a pipeline template. ### Required Parameters @@ -36,7 +36,7 @@ Name | Type | Description | Notes ### Return type - (empty response body) +[**map[string]interface{}**](interface{}.md) ### Authorization @@ -241,7 +241,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UpdateUsingPOST1** -> UpdateUsingPOST1(ctx, id, pipelineTemplate, optional) +> map[string]interface{} UpdateUsingPOST1(ctx, id, pipelineTemplate, optional) (ALPHA) Update a pipeline template. ### Required Parameters @@ -265,7 +265,7 @@ Name | Type | Description | Notes ### Return type - (empty response body) +[**map[string]interface{}**](interface{}.md) ### Authorization diff --git a/gateapi/model_account.go b/gateapi/model_account.go index cfb263d..2e65534 100644 --- a/gateapi/model_account.go +++ b/gateapi/model_account.go @@ -10,9 +10,9 @@ package swagger type Account struct { - AccountId string `json:"accountId,omitempty"` - Name string `json:"name,omitempty"` - Permissions map[string][]string `json:"permissions,omitempty"` - RequiredGroupMembership []string `json:"requiredGroupMembership,omitempty"` - Type_ string `json:"type,omitempty"` + RequiredGroupMembership []string `json:"requiredGroupMembership,omitempty"` + Permissions map[string][]string `json:"permissions,omitempty"` + Name string `json:"name,omitempty"` + AccountId string `json:"accountId,omitempty"` + Type_ string `json:"type,omitempty"` } diff --git a/gateapi/model_account_details.go b/gateapi/model_account_details.go index 3d7bd38..05baec2 100644 --- a/gateapi/model_account_details.go +++ b/gateapi/model_account_details.go @@ -10,14 +10,14 @@ package swagger type AccountDetails struct { - AccountId string `json:"accountId,omitempty"` - AccountType string `json:"accountType,omitempty"` - ChallengeDestructiveActions bool `json:"challengeDestructiveActions,omitempty"` - CloudProvider string `json:"cloudProvider,omitempty"` - Environment string `json:"environment,omitempty"` - Name string `json:"name,omitempty"` - Permissions map[string][]string `json:"permissions,omitempty"` - PrimaryAccount bool `json:"primaryAccount,omitempty"` - RequiredGroupMembership []string `json:"requiredGroupMembership,omitempty"` - Type_ string `json:"type,omitempty"` + AccountType string `json:"accountType,omitempty"` + AccountId string `json:"accountId,omitempty"` + PrimaryAccount bool `json:"primaryAccount,omitempty"` + ChallengeDestructiveActions bool `json:"challengeDestructiveActions,omitempty"` + Environment string `json:"environment,omitempty"` + CloudProvider string `json:"cloudProvider,omitempty"` + Name string `json:"name,omitempty"` + Permissions map[string][]string `json:"permissions,omitempty"` + Type_ string `json:"type,omitempty"` + RequiredGroupMembership []string `json:"requiredGroupMembership,omitempty"` } diff --git a/gateapi/model_constraint_state.go b/gateapi/model_constraint_state.go index 1341e5e..4ab7634 100644 --- a/gateapi/model_constraint_state.go +++ b/gateapi/model_constraint_state.go @@ -10,14 +10,14 @@ package swagger type ConstraintState struct { - ArtifactVersion string `json:"artifactVersion,omitempty"` - Attributes *interface{} `json:"attributes,omitempty"` - Comment string `json:"comment,omitempty"` - CreatedAt string `json:"createdAt,omitempty"` - DeliveryConfigName string `json:"deliveryConfigName,omitempty"` - EnvironmentName string `json:"environmentName,omitempty"` - JudgedAt string `json:"judgedAt,omitempty"` - JudgedBy string `json:"judgedBy,omitempty"` - Status string `json:"status,omitempty"` - Type_ string `json:"type,omitempty"` + Status string `json:"status,omitempty"` + Type_ string `json:"type,omitempty"` + DeliveryConfigName string `json:"deliveryConfigName,omitempty"` + JudgedBy string `json:"judgedBy,omitempty"` + Attributes *interface{} `json:"attributes,omitempty"` + ArtifactVersion string `json:"artifactVersion,omitempty"` + EnvironmentName string `json:"environmentName,omitempty"` + CreatedAt string `json:"createdAt,omitempty"` + JudgedAt string `json:"judgedAt,omitempty"` + Comment string `json:"comment,omitempty"` } diff --git a/gateapi/model_constraint_status.go b/gateapi/model_constraint_status.go index e1aa86a..11a88cd 100644 --- a/gateapi/model_constraint_status.go +++ b/gateapi/model_constraint_status.go @@ -10,8 +10,9 @@ package swagger type ConstraintStatus struct { + ArtifactReference string `json:"artifactReference,omitempty"` + Type_ string `json:"type,omitempty"` + Status string `json:"status,omitempty"` ArtifactVersion string `json:"artifactVersion,omitempty"` - Comment string `json:"comment,omitempty"` - Status string `json:"status,omitempty"` - Type_ string `json:"type,omitempty"` + Comment string `json:"comment,omitempty"` } diff --git a/gateapi/model_deck_plugin_version.go b/gateapi/model_deck_plugin_version.go index 7af649c..6716976 100644 --- a/gateapi/model_deck_plugin_version.go +++ b/gateapi/model_deck_plugin_version.go @@ -10,6 +10,6 @@ package swagger type DeckPluginVersion struct { - Id string `json:"id"` Version string `json:"version"` + Id string `json:"id"` } diff --git a/gateapi/model_delivery_config.go b/gateapi/model_delivery_config.go index e54a246..6d696a5 100644 --- a/gateapi/model_delivery_config.go +++ b/gateapi/model_delivery_config.go @@ -10,10 +10,10 @@ package swagger type DeliveryConfig struct { - ApiVersion string `json:"apiVersion,omitempty"` - Application string `json:"application,omitempty"` - Artifacts []Mapstringobject `json:"artifacts,omitempty"` - Environments []Environment `json:"environments,omitempty"` - Name string `json:"name,omitempty"` - ServiceAccount string `json:"serviceAccount,omitempty"` + Environments []Environment `json:"environments,omitempty"` + ApiVersion string `json:"apiVersion,omitempty"` + Name string `json:"name,omitempty"` + Application string `json:"application,omitempty"` + ServiceAccount string `json:"serviceAccount,omitempty"` + Artifacts []Mapstringobject `json:"artifacts,omitempty"` } diff --git a/gateapi/model_environment.go b/gateapi/model_environment.go index 1da0a3b..7e8bec2 100644 --- a/gateapi/model_environment.go +++ b/gateapi/model_environment.go @@ -10,9 +10,9 @@ package swagger type Environment struct { - Constraints []Mapstringobject `json:"constraints,omitempty"` - Locations *interface{} `json:"locations,omitempty"` - Name string `json:"name,omitempty"` - Notifications []Notification `json:"notifications,omitempty"` - Resources []Resource `json:"resources,omitempty"` + Locations *interface{} `json:"locations,omitempty"` + Constraints []Mapstringobject `json:"constraints,omitempty"` + Resources []Resource `json:"resources,omitempty"` + Notifications []Notification `json:"notifications,omitempty"` + Name string `json:"name,omitempty"` } diff --git a/gateapi/model_environment_artifact_pin.go b/gateapi/model_environment_artifact_pin.go index e2c44ef..c9595db 100644 --- a/gateapi/model_environment_artifact_pin.go +++ b/gateapi/model_environment_artifact_pin.go @@ -10,9 +10,9 @@ package swagger type EnvironmentArtifactPin struct { - Comment string `json:"comment,omitempty"` - PinnedBy string `json:"pinnedBy,omitempty"` - Reference string `json:"reference,omitempty"` TargetEnvironment string `json:"targetEnvironment,omitempty"` - Version string `json:"version,omitempty"` + PinnedBy string `json:"pinnedBy,omitempty"` + Reference string `json:"reference,omitempty"` + Comment string `json:"comment,omitempty"` + Version string `json:"version,omitempty"` } diff --git a/gateapi/model_environment_artifact_veto.go b/gateapi/model_environment_artifact_veto.go index 81103e2..b907549 100644 --- a/gateapi/model_environment_artifact_veto.go +++ b/gateapi/model_environment_artifact_veto.go @@ -10,8 +10,8 @@ package swagger type EnvironmentArtifactVeto struct { - Comment string `json:"comment,omitempty"` - Reference string `json:"reference,omitempty"` + Comment string `json:"comment,omitempty"` + Version string `json:"version,omitempty"` TargetEnvironment string `json:"targetEnvironment,omitempty"` - Version string `json:"version,omitempty"` + Reference string `json:"reference,omitempty"` } diff --git a/gateapi/model_file.go b/gateapi/model_file.go index 5977951..eee5f9a 100644 --- a/gateapi/model_file.go +++ b/gateapi/model_file.go @@ -14,23 +14,23 @@ import ( ) type File struct { - Absolute bool `json:"absolute,omitempty"` - AbsoluteFile **os.File `json:"absoluteFile,omitempty"` - AbsolutePath string `json:"absolutePath,omitempty"` + Executable bool `json:"executable,omitempty"` + LastModified int64 `json:"lastModified,omitempty"` + Directory bool `json:"directory,omitempty"` + Writable bool `json:"writable,omitempty"` + TotalSpace int64 `json:"totalSpace,omitempty"` + Readable bool `json:"readable,omitempty"` CanonicalFile **os.File `json:"canonicalFile,omitempty"` - CanonicalPath string `json:"canonicalPath,omitempty"` - Directory bool `json:"directory,omitempty"` - Executable bool `json:"executable,omitempty"` - File bool `json:"file,omitempty"` - FreeSpace int64 `json:"freeSpace,omitempty"` - Hidden bool `json:"hidden,omitempty"` - LastModified int64 `json:"lastModified,omitempty"` - Name string `json:"name,omitempty"` - Parent string `json:"parent,omitempty"` - ParentFile **os.File `json:"parentFile,omitempty"` - Path string `json:"path,omitempty"` - Readable bool `json:"readable,omitempty"` - TotalSpace int64 `json:"totalSpace,omitempty"` - UsableSpace int64 `json:"usableSpace,omitempty"` - Writable bool `json:"writable,omitempty"` + FreeSpace int64 `json:"freeSpace,omitempty"` + File bool `json:"file,omitempty"` + Path string `json:"path,omitempty"` + UsableSpace int64 `json:"usableSpace,omitempty"` + AbsolutePath string `json:"absolutePath,omitempty"` + Parent string `json:"parent,omitempty"` + Hidden bool `json:"hidden,omitempty"` + ParentFile **os.File `json:"parentFile,omitempty"` + Absolute bool `json:"absolute,omitempty"` + AbsoluteFile **os.File `json:"absoluteFile,omitempty"` + Name string `json:"name,omitempty"` + CanonicalPath string `json:"canonicalPath,omitempty"` } diff --git a/gateapi/model_headers.go b/gateapi/model_headers.go new file mode 100644 index 0000000..4852e4f --- /dev/null +++ b/gateapi/model_headers.go @@ -0,0 +1,16 @@ +/* + * Spinnaker API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package swagger + +type Headers struct { + InvokeHeaders map[string]string `json:"invokeHeaders,omitempty"` + ReadHeaders map[string]string `json:"readHeaders,omitempty"` + WriteHeaders map[string]string `json:"writeHeaders,omitempty"` +} diff --git a/gateapi/model_http.go b/gateapi/model_http.go new file mode 100644 index 0000000..3540daa --- /dev/null +++ b/gateapi/model_http.go @@ -0,0 +1,17 @@ +/* + * Spinnaker API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package swagger + +type Http struct { + Config map[string]string `json:"config,omitempty"` + Url string `json:"url,omitempty"` + QueryParams map[string]string `json:"queryParams,omitempty"` + Headers *Headers `json:"headers,omitempty"` +} diff --git a/gateapi/model_notification.go b/gateapi/model_notification.go index 46bba40..ae31b99 100644 --- a/gateapi/model_notification.go +++ b/gateapi/model_notification.go @@ -10,7 +10,7 @@ package swagger type Notification struct { - Address string `json:"address,omitempty"` + Address string `json:"address,omitempty"` + Type_ string `json:"type,omitempty"` Frequency string `json:"frequency,omitempty"` - Type_ string `json:"type,omitempty"` } diff --git a/gateapi/model_pipeline_template_dependent.go b/gateapi/model_pipeline_template_dependent.go index d4d343d..1fe2d67 100644 --- a/gateapi/model_pipeline_template_dependent.go +++ b/gateapi/model_pipeline_template_dependent.go @@ -10,7 +10,7 @@ package swagger type PipelineTemplateDependent struct { - Application string `json:"application,omitempty"` PipelineConfigId string `json:"pipelineConfigId,omitempty"` - PipelineName string `json:"pipelineName,omitempty"` + Application string `json:"application,omitempty"` + PipelineName string `json:"pipelineName,omitempty"` } diff --git a/gateapi/model_plugin_dependency.go b/gateapi/model_plugin_dependency.go index b5b0325..391a234 100644 --- a/gateapi/model_plugin_dependency.go +++ b/gateapi/model_plugin_dependency.go @@ -10,7 +10,7 @@ package swagger type PluginDependency struct { - Optional bool `json:"optional,omitempty"` - PluginId string `json:"pluginId,omitempty"` + Optional bool `json:"optional,omitempty"` PluginVersionSupport string `json:"pluginVersionSupport,omitempty"` + PluginId string `json:"pluginId,omitempty"` } diff --git a/gateapi/model_remote_extension_config.go b/gateapi/model_remote_extension_config.go new file mode 100644 index 0000000..9690387 --- /dev/null +++ b/gateapi/model_remote_extension_config.go @@ -0,0 +1,17 @@ +/* + * Spinnaker API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package swagger + +type RemoteExtensionConfig struct { + Type_ string `json:"type,omitempty"` + Transport *RemoteExtensionTransportConfig `json:"transport,omitempty"` + Config *interface{} `json:"config,omitempty"` + Id string `json:"id,omitempty"` +} diff --git a/gateapi/model_remote_extension_transport_config.go b/gateapi/model_remote_extension_transport_config.go new file mode 100644 index 0000000..3fea3f5 --- /dev/null +++ b/gateapi/model_remote_extension_transport_config.go @@ -0,0 +1,14 @@ +/* + * Spinnaker API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package swagger + +type RemoteExtensionTransportConfig struct { + Http *Http `json:"http,omitempty"` +} diff --git a/gateapi/model_reorder_pipelines_command.go b/gateapi/model_reorder_pipelines_command.go index dbd1286..4296ca6 100644 --- a/gateapi/model_reorder_pipelines_command.go +++ b/gateapi/model_reorder_pipelines_command.go @@ -10,6 +10,6 @@ package swagger type ReorderPipelinesCommand struct { - Application string `json:"application,omitempty"` + Application string `json:"application,omitempty"` IdsToIndices map[string]int32 `json:"idsToIndices,omitempty"` } diff --git a/gateapi/model_resource.go b/gateapi/model_resource.go index 9220477..da40b6a 100644 --- a/gateapi/model_resource.go +++ b/gateapi/model_resource.go @@ -14,12 +14,12 @@ import ( ) type Resource struct { - Description string `json:"description,omitempty"` - File **os.File `json:"file,omitempty"` - Filename string `json:"filename,omitempty"` + Uri *Uri `json:"uri,omitempty"` + File **os.File `json:"file,omitempty"` + Readable bool `json:"readable,omitempty"` + Description string `json:"description,omitempty"` + Open bool `json:"open,omitempty"` + Filename string `json:"filename,omitempty"` InputStream *InputStream `json:"inputStream,omitempty"` - Open bool `json:"open,omitempty"` - Readable bool `json:"readable,omitempty"` - Uri *Uri `json:"uri,omitempty"` - Url *Url `json:"url,omitempty"` + Url *Url `json:"url,omitempty"` } diff --git a/gateapi/model_response_entity.go b/gateapi/model_response_entity.go index b6f9eac..e1e55a1 100644 --- a/gateapi/model_response_entity.go +++ b/gateapi/model_response_entity.go @@ -10,7 +10,7 @@ package swagger type ResponseEntity struct { - Body *interface{} `json:"body,omitempty"` - StatusCode string `json:"statusCode,omitempty"` - StatusCodeValue int32 `json:"statusCodeValue,omitempty"` + StatusCodeValue int32 `json:"statusCodeValue,omitempty"` + Body *interface{} `json:"body,omitempty"` + StatusCode string `json:"statusCode,omitempty"` } diff --git a/gateapi/model_spinnaker_plugin_descriptor.go b/gateapi/model_spinnaker_plugin_descriptor.go index 1e381f4..05a082c 100644 --- a/gateapi/model_spinnaker_plugin_descriptor.go +++ b/gateapi/model_spinnaker_plugin_descriptor.go @@ -10,13 +10,13 @@ package swagger type SpinnakerPluginDescriptor struct { - Dependencies []PluginDependency `json:"dependencies,omitempty"` - License string `json:"license,omitempty"` - PluginClass string `json:"pluginClass,omitempty"` - PluginDescription string `json:"pluginDescription,omitempty"` - PluginId string `json:"pluginId,omitempty"` - Provider string `json:"provider,omitempty"` - Requires string `json:"requires,omitempty"` - Unsafe bool `json:"unsafe"` - Version string `json:"version,omitempty"` + PluginDescription string `json:"pluginDescription,omitempty"` + Provider string `json:"provider,omitempty"` + PluginClass string `json:"pluginClass,omitempty"` + Unsafe bool `json:"unsafe"` + License string `json:"license,omitempty"` + PluginId string `json:"pluginId,omitempty"` + Dependencies []PluginDependency `json:"dependencies,omitempty"` + Requires string `json:"requires,omitempty"` + Version string `json:"version,omitempty"` } diff --git a/gateapi/model_spinnaker_plugin_info.go b/gateapi/model_spinnaker_plugin_info.go index 067b30a..3eb1f70 100644 --- a/gateapi/model_spinnaker_plugin_info.go +++ b/gateapi/model_spinnaker_plugin_info.go @@ -10,11 +10,11 @@ package swagger type SpinnakerPluginInfo struct { - Description string `json:"description,omitempty"` - Id string `json:"id,omitempty"` - Name string `json:"name,omitempty"` - ProjectUrl string `json:"projectUrl,omitempty"` - Provider string `json:"provider,omitempty"` - Releases []SpinnakerPluginRelease `json:"releases"` - RepositoryId string `json:"repositoryId,omitempty"` + Description string `json:"description,omitempty"` + Provider string `json:"provider,omitempty"` + ProjectUrl string `json:"projectUrl,omitempty"` + Name string `json:"name,omitempty"` + Releases []SpinnakerPluginRelease `json:"releases"` + RepositoryId string `json:"repositoryId,omitempty"` + Id string `json:"id,omitempty"` } diff --git a/gateapi/model_spinnaker_plugin_release.go b/gateapi/model_spinnaker_plugin_release.go index 219e710..5dc527c 100644 --- a/gateapi/model_spinnaker_plugin_release.go +++ b/gateapi/model_spinnaker_plugin_release.go @@ -14,10 +14,11 @@ import ( ) type SpinnakerPluginRelease struct { - Date time.Time `json:"date,omitempty"` - Preferred bool `json:"preferred,omitempty"` - Requires string `json:"requires,omitempty"` - Sha512sum string `json:"sha512sum,omitempty"` - Url string `json:"url,omitempty"` - Version string `json:"version,omitempty"` + Version string `json:"version,omitempty"` + Requires string `json:"requires,omitempty"` + Preferred bool `json:"preferred,omitempty"` + Date time.Time `json:"date,omitempty"` + Url string `json:"url,omitempty"` + Sha512sum string `json:"sha512sum,omitempty"` + RemoteExtensions []RemoteExtensionConfig `json:"remoteExtensions,omitempty"` } diff --git a/gateapi/model_uri.go b/gateapi/model_uri.go index 302527f..a8b66e6 100644 --- a/gateapi/model_uri.go +++ b/gateapi/model_uri.go @@ -10,21 +10,21 @@ package swagger type Uri struct { - Absolute bool `json:"absolute,omitempty"` - Authority string `json:"authority,omitempty"` - Fragment string `json:"fragment,omitempty"` - Host string `json:"host,omitempty"` - Opaque bool `json:"opaque,omitempty"` - Path string `json:"path,omitempty"` - Port int32 `json:"port,omitempty"` - Query string `json:"query,omitempty"` - RawAuthority string `json:"rawAuthority,omitempty"` - RawFragment string `json:"rawFragment,omitempty"` - RawPath string `json:"rawPath,omitempty"` - RawQuery string `json:"rawQuery,omitempty"` + Opaque bool `json:"opaque,omitempty"` + Absolute bool `json:"absolute,omitempty"` + Authority string `json:"authority,omitempty"` + UserInfo string `json:"userInfo,omitempty"` + SchemeSpecificPart string `json:"schemeSpecificPart,omitempty"` + Port int32 `json:"port,omitempty"` + Path string `json:"path,omitempty"` + RawQuery string `json:"rawQuery,omitempty"` + RawAuthority string `json:"rawAuthority,omitempty"` + Host string `json:"host,omitempty"` RawSchemeSpecificPart string `json:"rawSchemeSpecificPart,omitempty"` - RawUserInfo string `json:"rawUserInfo,omitempty"` - Scheme string `json:"scheme,omitempty"` - SchemeSpecificPart string `json:"schemeSpecificPart,omitempty"` - UserInfo string `json:"userInfo,omitempty"` + Fragment string `json:"fragment,omitempty"` + Scheme string `json:"scheme,omitempty"` + RawPath string `json:"rawPath,omitempty"` + Query string `json:"query,omitempty"` + RawFragment string `json:"rawFragment,omitempty"` + RawUserInfo string `json:"rawUserInfo,omitempty"` } diff --git a/gateapi/model_url.go b/gateapi/model_url.go index f9123f2..6e7e5c9 100644 --- a/gateapi/model_url.go +++ b/gateapi/model_url.go @@ -10,17 +10,17 @@ package swagger type Url struct { - Authority string `json:"authority,omitempty"` - Content *interface{} `json:"content,omitempty"` - DefaultPort int32 `json:"defaultPort,omitempty"` + Query string `json:"query,omitempty"` + Path string `json:"path,omitempty"` DeserializedFields *UrlStreamHandler `json:"deserializedFields,omitempty"` - File string `json:"file,omitempty"` - Host string `json:"host,omitempty"` - Path string `json:"path,omitempty"` - Port int32 `json:"port,omitempty"` - Protocol string `json:"protocol,omitempty"` - Query string `json:"query,omitempty"` - Ref string `json:"ref,omitempty"` - SerializedHashCode int32 `json:"serializedHashCode,omitempty"` - UserInfo string `json:"userInfo,omitempty"` + Port int32 `json:"port,omitempty"` + DefaultPort int32 `json:"defaultPort,omitempty"` + Ref string `json:"ref,omitempty"` + Content *interface{} `json:"content,omitempty"` + UserInfo string `json:"userInfo,omitempty"` + File string `json:"file,omitempty"` + Authority string `json:"authority,omitempty"` + SerializedHashCode int32 `json:"serializedHashCode,omitempty"` + Host string `json:"host,omitempty"` + Protocol string `json:"protocol,omitempty"` } diff --git a/gateapi/model_user.go b/gateapi/model_user.go index ba63e55..f17bc83 100644 --- a/gateapi/model_user.go +++ b/gateapi/model_user.go @@ -10,15 +10,15 @@ package swagger type User struct { - AccountNonExpired bool `json:"accountNonExpired,omitempty"` - AccountNonLocked bool `json:"accountNonLocked,omitempty"` - AllowedAccounts []string `json:"allowedAccounts,omitempty"` - Authorities []GrantedAuthority `json:"authorities,omitempty"` - CredentialsNonExpired bool `json:"credentialsNonExpired,omitempty"` - Email string `json:"email,omitempty"` - Enabled bool `json:"enabled,omitempty"` - FirstName string `json:"firstName,omitempty"` - LastName string `json:"lastName,omitempty"` - Roles []string `json:"roles,omitempty"` - Username string `json:"username,omitempty"` + Authorities []GrantedAuthority `json:"authorities,omitempty"` + Username string `json:"username,omitempty"` + CredentialsNonExpired bool `json:"credentialsNonExpired,omitempty"` + Email string `json:"email,omitempty"` + Roles []string `json:"roles,omitempty"` + LastName string `json:"lastName,omitempty"` + Enabled bool `json:"enabled,omitempty"` + AllowedAccounts []string `json:"allowedAccounts,omitempty"` + FirstName string `json:"firstName,omitempty"` + AccountNonLocked bool `json:"accountNonLocked,omitempty"` + AccountNonExpired bool `json:"accountNonExpired,omitempty"` } diff --git a/spinnakerresource/pipeline.go b/spinnakerresource/pipeline.go index 6273f21..7814435 100644 --- a/spinnakerresource/pipeline.go +++ b/spinnakerresource/pipeline.go @@ -114,7 +114,7 @@ func (p Pipeline) SaveLocalState(spinnakerAPI *gc.GateapiClient) error { return err } - saveResp, err := spinnakerAPI.PipelineControllerApi.SavePipelineUsingPOST(spinnakerAPI.Context, jsonPayload) + saveResp, err := spinnakerAPI.PipelineControllerApi.SavePipelineUsingPOST(spinnakerAPI.Context, jsonPayload, nil) if err != nil { return err } diff --git a/spinnakerresource/pipelinetemplate.go b/spinnakerresource/pipelinetemplate.go index c09f666..241902e 100644 --- a/spinnakerresource/pipelinetemplate.go +++ b/spinnakerresource/pipelinetemplate.go @@ -82,9 +82,9 @@ func (pt PipelineTemplate) SaveLocalState(spinnakerAPI *gc.GateapiClient) error } var resp *http.Response if string(pt.remoteState) == "{}" { - resp, err = spinnakerAPI.V2PipelineTemplatesControllerApi.CreateUsingPOST1(spinnakerAPI.Context, localStateJSON, nil) + _, resp, err = spinnakerAPI.V2PipelineTemplatesControllerApi.CreateUsingPOST1(spinnakerAPI.Context, localStateJSON, nil) } else { - resp, err = spinnakerAPI.V2PipelineTemplatesControllerApi.UpdateUsingPOST1(spinnakerAPI.Context, pt.id, localStateJSON, nil) + _, resp, err = spinnakerAPI.V2PipelineTemplatesControllerApi.UpdateUsingPOST1(spinnakerAPI.Context, pt.id, localStateJSON, nil) } if resp != nil { if resp.StatusCode != http.StatusAccepted {