Migrate credential-library nomenclature around targets to credential-source (#1413)

See the CHANGELOG entry for more information.

Co-authored-by: Jim <jlambert@hashicorp.com>

Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2021-07-27 12:48:36 -04:00
1 parent 528d54b4ad
commit ab6f3eaeb4
36 files changed
+3284 -673

No files matched your search

+237 -7
View File
@@ -2553,7 +2553,7 @@
},
"/v1/targets/{id}:add-credential-libraries": {
"post": {
"summary": "Adds existing Credential Libraries to a Target.",
"summary": "Deprecated: use AddTargetCredentialSources instead.",
"operationId": "TargetService_AddTargetCredentialLibraries",
"responses": {
"200": {
@@ -2584,6 +2584,39 @@
]
}
},
"/v1/targets/{id}:add-credential-sources": {
"post": {
"summary": "Adds existing Credential Sources to a Target.",
"operationId": "TargetService_AddTargetCredentialSources",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/controller.api.resources.targets.v1.Target"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/controller.api.services.v1.AddTargetCredentialSourcesRequest"
}
}
],
"tags": [
"controller.api.services.v1.TargetService"
]
}
},
"/v1/targets/{id}:add-host-sets": {
"post": {
"summary": "Adds existing Host Sets to a Target.",
@@ -2653,7 +2686,7 @@
},
"/v1/targets/{id}:remove-credential-libraries": {
"post": {
"summary": "Removes Credential Libraries from the Target.",
"summary": "Deprecated: use RemoveTargetCredentialSources instead.",
"operationId": "TargetService_RemoveTargetCredentialLibraries",
"responses": {
"200": {
@@ -2684,6 +2717,39 @@
]
}
},
"/v1/targets/{id}:remove-credential-sources": {
"post": {
"summary": "Removes Credential Sources from the Target.",
"operationId": "TargetService_RemoveTargetCredentialSources",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/controller.api.resources.targets.v1.Target"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/controller.api.services.v1.RemoveTargetCredentialSourcesRequest"
}
}
],
"tags": [
"controller.api.services.v1.TargetService"
]
}
},
"/v1/targets/{id}:remove-host-sets": {
"post": {
"summary": "Removes Host Sets from the Target.",
@@ -2719,7 +2785,7 @@
},
"/v1/targets/{id}:set-credential-libraries": {
"post": {
"summary": "Sets the Credential Libraries on the Target.",
"summary": "Deprecated: use SetTargetCredentialSources instead.",
"operationId": "TargetService_SetTargetCredentialLibraries",
"responses": {
"200": {
@@ -2750,6 +2816,39 @@
]
}
},
"/v1/targets/{id}:set-credential-sources": {
"post": {
"summary": "Sets the Credential Sources on the Target.",
"operationId": "TargetService_SetTargetCredentialSources",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/controller.api.resources.targets.v1.Target"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/controller.api.services.v1.SetTargetCredentialSourcesRequest"
}
}
],
"tags": [
"controller.api.services.v1.TargetService"
]
}
},
"/v1/targets/{id}:set-host-sets": {
"post": {
"summary": "Sets the Host Sets on the Target.",
@@ -4177,6 +4276,35 @@
}
}
},
"controller.api.resources.targets.v1.CredentialSource": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the Credential. May be empty if the credential is dynamically generated from a library."
},
"name": {
"type": "string",
"description": "Output only. The name of the Credential source.",
"readOnly": true
},
"description": {
"type": "string",
"description": "Output only. The description of the Credential source.",
"readOnly": true
},
"credential_store_id": {
"type": "string",
"description": "Output only. The Credential Store to which this Credential source belongs.",
"readOnly": true
},
"type": {
"type": "string",
"description": "Output only. The type of the credential source (e.g. \"vault\"; not the type of the credential itself).",
"readOnly": true
}
}
},
"controller.api.resources.targets.v1.HostSet": {
"type": "object",
"properties": {
@@ -4260,9 +4388,14 @@
"controller.api.resources.targets.v1.SessionCredential": {
"type": "object",
"properties": {
"credential_source": {
"$ref": "#/definitions/controller.api.resources.targets.v1.CredentialSource",
"description": "Output only. The credential source information.",
"readOnly": true
},
"credential_library": {
"$ref": "#/definitions/controller.api.resources.targets.v1.CredentialLibrary",
"description": "Output only. The library which generated this credential.",
"description": "Output only. The library which generated this credential. Deprecated: use credential_source instead.",
"readOnly": true
},
"secret": {
@@ -4271,7 +4404,7 @@
"readOnly": true
}
},
"description": "A credential for a session."
"description": "Credential information for a session."
},
"controller.api.resources.targets.v1.SessionSecret": {
"type": "object",
@@ -4369,14 +4502,29 @@
"items": {
"type": "string"
},
"description": "The IDs of the application credential library ids associated with this Target."
"description": "The IDs of the application credential library ids associated with this Target. Deprecated: use application_credential_source_ids instead."
},
"application_credential_libraries": {
"type": "array",
"items": {
"$ref": "#/definitions/controller.api.resources.targets.v1.CredentialLibrary"
},
"description": "Output only. The application credential libraries associated with this Target.",
"description": "Output only. The application credential libraries associated with this Target. Deprecated: use application_credential_sources instead.",
"readOnly": true
},
"application_credential_source_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The IDs of the application credential source ids associated with this Target."
},
"application_credential_sources": {
"type": "array",
"items": {
"$ref": "#/definitions/controller.api.resources.targets.v1.CredentialSource"
},
"description": "Output only. The application credential sources associated with this Target.",
"readOnly": true
},
"attributes": {
@@ -4634,6 +4782,33 @@
}
}
},
"controller.api.services.v1.AddTargetCredentialSourcesRequest": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int64",
"description": "Version is used to ensure this resource has not changed.\nThe mutation will fail if the version does not match the latest known good version."
},
"application_credential_source_ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"controller.api.services.v1.AddTargetCredentialSourcesResponse": {
"type": "object",
"properties": {
"item": {
"$ref": "#/definitions/controller.api.resources.targets.v1.Target"
}
}
},
"controller.api.services.v1.AddTargetHostSetsRequest": {
"type": "object",
"properties": {
@@ -5465,6 +5640,33 @@
}
}
},
"controller.api.services.v1.RemoveTargetCredentialSourcesRequest": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int64",
"description": "Version is used to ensure this resource has not changed.\nThe mutation will fail if the version does not match the latest known good version."
},
"application_credential_source_ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"controller.api.services.v1.RemoveTargetCredentialSourcesResponse": {
"type": "object",
"properties": {
"item": {
"$ref": "#/definitions/controller.api.resources.targets.v1.Target"
}
}
},
"controller.api.services.v1.RemoveTargetHostSetsRequest": {
"type": "object",
"properties": {
@@ -5680,6 +5882,34 @@
}
}
},
"controller.api.services.v1.SetTargetCredentialSourcesRequest": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int64",
"description": "Version is used to ensure this resource has not changed.\nThe mutation will fail if the version does not match the latest known good version."
},
"application_credential_source_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "Sets the values for application_credential_source_ids. If any\ncredential_source_id field that is not set in the request will result in\nthose fields being cleared."
},
"controller.api.services.v1.SetTargetCredentialSourcesResponse": {
"type": "object",
"properties": {
"item": {
"$ref": "#/definitions/controller.api.resources.targets.v1.Target"
}
}
},
"controller.api.services.v1.SetTargetHostSetsRequest": {
"type": "object",
"properties": {