Migrate host resources to hosts package (#15)
Migrate host resources to hosts package and some other minor changes
This commit is contained in:
1 parent
c7126ae69b
commit
13056e1f51
30 files changed
+3262
-3803
No files matched your search
@@ -31,7 +31,7 @@ protobuild:
|
||||
# Move the generated files from the tmp file subdirectories into the current repo.
|
||||
cp -R ${TMP_DIR}/${REPO_PATH}/* .
|
||||
|
||||
@protoc --proto_path=internal/proto/local --proto_path=internal/proto/third_party --swagger_out=logtostderr=true,disable_default_errors=true,include_package_in_tags=true,fqn_for_swagger_name=true,allow_merge,merge_file_name=controller:internal/gen/. internal/proto/local/controller/api/v1/*.proto
|
||||
@protoc --proto_path=internal/proto/local --proto_path=internal/proto/third_party --swagger_out=logtostderr=true,disable_default_errors=true,include_package_in_tags=true,fqn_for_swagger_name=true,allow_merge,merge_file_name=controller:internal/gen/. internal/proto/local/controller/api/services/v1/*.proto
|
||||
@protoc-go-inject-tag -input=./internal/oplog/store/oplog.pb.go
|
||||
@protoc-go-inject-tag -input=./internal/oplog/oplog_test/oplog_test.pb.go
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.ListHostCatalogsResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.ListHostCatalogsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -45,16 +45,11 @@
|
||||
"name": "view",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"BASIC",
|
||||
"FULL"
|
||||
],
|
||||
"default": "BASIC"
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostCatalogService"
|
||||
"controller.api.services.v1.HostCatalogService"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
@@ -65,7 +60,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -87,12 +82,12 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostCatalogService"
|
||||
"controller.api.services.v1.HostCatalogService"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -104,7 +99,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.ListHostSetsResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.ListHostSetsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -131,16 +126,11 @@
|
||||
"name": "view",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"BASIC",
|
||||
"FULL"
|
||||
],
|
||||
"default": "BASIC"
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostSetService"
|
||||
"controller.api.services.v1.HostSetService"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
@@ -150,7 +140,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -178,12 +168,12 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostSetService"
|
||||
"controller.api.services.v1.HostSetService"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -195,7 +185,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -228,16 +218,11 @@
|
||||
"name": "view",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"BASIC",
|
||||
"FULL"
|
||||
],
|
||||
"default": "BASIC"
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostSetService"
|
||||
"controller.api.services.v1.HostSetService"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
@@ -247,7 +232,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.DeleteHostSetResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.DeleteHostSetResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -278,7 +263,7 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostSetService"
|
||||
"controller.api.services.v1.HostSetService"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
@@ -288,7 +273,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -322,12 +307,12 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostSetService"
|
||||
"controller.api.services.v1.HostSetService"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -340,7 +325,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.AddToHostSetResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.AddToHostSetResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -371,7 +356,7 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostSetService"
|
||||
"controller.api.services.v1.HostSetService"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -384,7 +369,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.RemoveFromHostSetResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.RemoveFromHostSetResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -416,7 +401,7 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostSetService"
|
||||
"controller.api.services.v1.HostSetService"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -428,7 +413,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.ListHostsResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.ListHostsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -455,16 +440,11 @@
|
||||
"name": "view",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"BASIC",
|
||||
"FULL"
|
||||
],
|
||||
"default": "BASIC"
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostService"
|
||||
"controller.api.services.v1.HostService"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
@@ -474,7 +454,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -502,12 +482,12 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostService"
|
||||
"controller.api.services.v1.HostService"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -519,7 +499,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -552,16 +532,11 @@
|
||||
"name": "view",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"BASIC",
|
||||
"FULL"
|
||||
],
|
||||
"default": "BASIC"
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostService"
|
||||
"controller.api.services.v1.HostService"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
@@ -571,7 +546,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.DeleteHostResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.DeleteHostResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -602,7 +577,7 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostService"
|
||||
"controller.api.services.v1.HostService"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
@@ -612,7 +587,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -646,12 +621,12 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostService"
|
||||
"controller.api.services.v1.HostService"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -664,7 +639,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -691,16 +666,11 @@
|
||||
"name": "view",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"BASIC",
|
||||
"FULL"
|
||||
],
|
||||
"default": "BASIC"
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostCatalogService"
|
||||
"controller.api.services.v1.HostCatalogService"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
@@ -710,7 +680,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.v1.DeleteHostCatalogResponse"
|
||||
"$ref": "#/definitions/controller.api.services.v1.DeleteHostCatalogResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -735,7 +705,7 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostCatalogService"
|
||||
"controller.api.services.v1.HostCatalogService"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
@@ -745,7 +715,7 @@
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -773,211 +743,183 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"controller.api.v1.HostCatalogService"
|
||||
"controller.api.services.v1.HostCatalogService"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"controller.api.resource.v1.Ec2CatalogDetails": {
|
||||
"controller.api.resources.hosts.v1.Host": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"regions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The AWS regions from which this catalog will retrieve the EC2 instances."
|
||||
},
|
||||
"access_key": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "The access key used for authenticating with AWS when retrieving EC2 instance details."
|
||||
},
|
||||
"secret_key": {
|
||||
"type": "string",
|
||||
"description": "Input only."
|
||||
},
|
||||
"rotate": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": "This value will never be returned in a response."
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.resource.v1.Host": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"description": "Output only.",
|
||||
"description": "Canonical path of the resource from the API's base URI\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "The type of the resource, to help differentiate schemas"
|
||||
},
|
||||
"friendly_name": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"title": "Friendly name, if set"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host was created.\nOutput only.",
|
||||
"readOnly": true
|
||||
"description": "The time this host was created\nOuput only."
|
||||
},
|
||||
"updated_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host was last updated.\nOutput only.",
|
||||
"description": "The time this host was last updated\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"disabled": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": "Marks the host as disabled. Default is false."
|
||||
"title": "Whether the host is disabled"
|
||||
},
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "This field is required."
|
||||
"title": "The address (DNS or IP name) used to reach the host"
|
||||
}
|
||||
},
|
||||
"description": "Host contains all fields related to a Host resource."
|
||||
"title": "Host contains all fields related to a Host resource"
|
||||
},
|
||||
"controller.api.resource.v1.HostCatalog": {
|
||||
"controller.api.resources.hosts.v1.HostCatalog": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Output only.",
|
||||
"description": "Canonical path of the resource from the API's base URI\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"friendly_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host_catalog was created.\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"updated_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host_catalog was last updated.\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"disabled": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": "Marks the host_catalog as disabled. Default is false."
|
||||
},
|
||||
"static_host_catalog_details": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.StaticCatalogDetails"
|
||||
},
|
||||
"ec2_host_catalog_details": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Ec2CatalogDetails"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalogType"
|
||||
}
|
||||
},
|
||||
"description": "HostCatalog organizes Hosts into HostSets."
|
||||
},
|
||||
"controller.api.resource.v1.HostCatalogType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"HOST_CATALOG_TYPE_UNSPECIFIED",
|
||||
"HOST_CATALOG_TYPE_EC2",
|
||||
"HOST_CATALOG_TYPE_STATIC"
|
||||
],
|
||||
"default": "HOST_CATALOG_TYPE_UNSPECIFIED"
|
||||
},
|
||||
"controller.api.resource.v1.HostSet": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"description": "Output only.",
|
||||
"readOnly": true
|
||||
"title": "The type of the resource, to help differentiate schemas"
|
||||
},
|
||||
"friendly_name": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"title": "Friendly name, if set"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host_set was created.\nOutput only.",
|
||||
"description": "The time this host was created\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"updated_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host_set was last updated.\nOutput only.",
|
||||
"description": "The time this host was last updated\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"disabled": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": "Marks the host_set as disabled. Default is false."
|
||||
"title": "Whether the catalog is disabled"
|
||||
},
|
||||
"attributes": {
|
||||
"type": "object",
|
||||
"title": "Attributes specific to the catalog type"
|
||||
}
|
||||
},
|
||||
"title": "HostCatalog manages Hosts and HostSets"
|
||||
},
|
||||
"controller.api.resources.hosts.v1.HostSet": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Canonical path of the resource from the API's base URI\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "The type of the resource, to help differentiate schemas"
|
||||
},
|
||||
"friendly_name": {
|
||||
"type": "string",
|
||||
"title": "Friendly name, if set"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host was created\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"updated_time": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "The time this host was last updated\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"disabled": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"title": "Whether the host set is disabled"
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "The total count of hosts in this host set\nOutput only.",
|
||||
"readOnly": true
|
||||
},
|
||||
"hosts": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
},
|
||||
"description": "A list of hosts in this host set.\nTODO: Figure out if this should be in the basic HostSet view and what view to use on the Hosts.\nOutput only.",
|
||||
"description": "A list of hosts in this host set\nTODO: Figure out if this should be in the basic HostSet view and what\nview to use on the Hosts.\nOutput only.",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"description": "HostSets are a collection of sets created and managed by a catalog."
|
||||
"title": "HostSet is a collection of Hosts created and managed by a HostCatalog"
|
||||
},
|
||||
"controller.api.resource.v1.StaticCatalogDetails": {
|
||||
"controller.api.services.v1.AddToHostSetResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"controller.api.v1.AddToHostSetResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"controller.api.v1.CreateHostCatalogResponse": {
|
||||
"controller.api.services.v1.CreateHostCatalogResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string"
|
||||
},
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.CreateHostResponse": {
|
||||
"controller.api.services.v1.CreateHostResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ref": {
|
||||
"type": "string"
|
||||
},
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.CreateHostSetResponse": {
|
||||
"controller.api.services.v1.CreateHostSetResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"type": "string"
|
||||
},
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.DeleteHostCatalogResponse": {
|
||||
"controller.api.services.v1.DeleteHostCatalogResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"existed": {
|
||||
@@ -986,7 +928,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.DeleteHostResponse": {
|
||||
"controller.api.services.v1.DeleteHostResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"existed": {
|
||||
@@ -995,7 +937,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.DeleteHostSetResponse": {
|
||||
"controller.api.services.v1.DeleteHostSetResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"existed": {
|
||||
@@ -1004,98 +946,90 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.GetHostCatalogResponse": {
|
||||
"controller.api.services.v1.GetHostCatalogResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.GetHostResponse": {
|
||||
"controller.api.services.v1.GetHostResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.GetHostSetResponse": {
|
||||
"controller.api.services.v1.GetHostSetResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.ListHostCatalogsResponse": {
|
||||
"controller.api.services.v1.ListHostCatalogsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.ListHostSetsResponse": {
|
||||
"controller.api.services.v1.ListHostSetsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.ListHostsResponse": {
|
||||
"controller.api.services.v1.ListHostsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.RemoveFromHostSetResponse": {
|
||||
"controller.api.services.v1.RemoveFromHostSetResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"controller.api.v1.UpdateHostCatalogResponse": {
|
||||
"controller.api.services.v1.UpdateHostCatalogResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostCatalog"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.UpdateHostResponse": {
|
||||
"controller.api.services.v1.UpdateHostResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.Host"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.v1.UpdateHostSetResponse": {
|
||||
"controller.api.services.v1.UpdateHostSetResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"item": {
|
||||
"$ref": "#/definitions/controller.api.resource.v1.HostSet"
|
||||
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
|
||||
}
|
||||
}
|
||||
},
|
||||
"controller.api.view.v1.View": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"BASIC",
|
||||
"FULL"
|
||||
],
|
||||
"default": "BASIC"
|
||||
},
|
||||
"google.protobuf.FieldMask": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1109,6 +1043,14 @@
|
||||
},
|
||||
"description": "paths: \"f.a\"\n paths: \"f.b.d\"\n\nHere `f` represents a field in some root message, `a` and `b`\nfields in the message found in `f`, and `d` a field found in the\nmessage in `f.b`.\n\nField masks are used to specify a subset of fields that should be\nreturned by a get operation or modified by an update operation.\nField masks also have a custom JSON encoding (see below).\n\n# Field Masks in Projections\n\nWhen used in the context of a projection, a response message or\nsub-message is filtered by the API to only contain those fields as\nspecified in the mask. For example, if the mask in the previous\nexample is applied to a response message as follows:\n\n f {\n a : 22\n b {\n d : 1\n x : 2\n }\n y : 13\n }\n z: 8\n\nThe result will not contain specific values for fields x,y and z\n(their value will be set to the default, and omitted in proto text\noutput):\n\n\n f {\n a : 22\n b {\n d : 1\n }\n }\n\nA repeated field is not allowed except at the last position of a\npaths string.\n\nIf a FieldMask object is not present in a get operation, the\noperation applies to all fields (as if a FieldMask of all fields\nhad been specified).\n\nNote that a field mask does not necessarily apply to the\ntop-level response message. In case of a REST get operation, the\nfield mask applies directly to the response, but in case of a REST\nlist operation, the mask instead applies to each individual message\nin the returned resource list. In case of a REST custom method,\nother definitions may be used. Where the mask applies will be\nclearly documented together with its declaration in the API. In\nany case, the effect on the returned resource/resources is required\nbehavior for APIs.\n\n# Field Masks in Update Operations\n\nA field mask in update operations specifies which fields of the\ntargeted resource are going to be updated. The API is required\nto only change the values of the fields as specified in the mask\nand leave the others untouched. If a resource is passed in to\ndescribe the updated values, the API ignores the values of all\nfields not covered by the mask.\n\nIf a repeated field is specified for an update operation, new values will\nbe appended to the existing repeated field in the target resource. Note that\na repeated field is only allowed in the last position of a `paths` string.\n\nIf a sub-message is specified in the last position of the field mask for an\nupdate operation, then new value will be merged into the existing sub-message\nin the target resource.\n\nFor example, given the target message:\n\n f {\n b {\n d: 1\n x: 2\n }\n c: [1]\n }\n\nAnd an update message:\n\n f {\n b {\n d: 10\n }\n c: [2]\n }\n\nthen if the field mask is:\n\n paths: [\"f.b\", \"f.c\"]\n\nthen the result will be:\n\n f {\n b {\n d: 10\n x: 2\n }\n c: [1, 2]\n }\n\nAn implementation may provide options to override this default behavior for\nrepeated and message fields.\n\nIn order to reset a field's value to the default, the field must\nbe in the mask and set to the default value in the provided resource.\nHence, in order to reset all fields of a resource, provide a default\ninstance of the resource and set all fields in the mask, or do\nnot provide a mask as described below.\n\nIf a field mask is not present on update, the operation applies to\nall fields (as if a field mask of all fields has been specified).\nNote that in the presence of schema evolution, this may mean that\nfields the client does not know and has therefore not filled into\nthe request will be reset to their default. If this is unwanted\nbehavior, a specific service may require a client to always specify\na field mask, producing an error if not.\n\nAs with get operations, the location of the resource which\ndescribes the updated values in the request message depends on the\noperation kind. In any case, the effect of the field mask is\nrequired to be honored by the API.\n\n## Considerations for HTTP REST\n\nThe HTTP kind of an update operation which uses a field mask must\nbe set to PATCH instead of PUT in order to satisfy HTTP semantics\n(PUT must only be used for full updates).\n\n# JSON Encoding of Field Masks\n\nIn JSON, a field mask is encoded as a single string where paths are\nseparated by a comma. Fields name in each path are converted\nto/from lower-camel naming conventions.\n\nAs an example, consider the following message declarations:\n\n message Profile {\n User user = 1;\n Photo photo = 2;\n }\n message User {\n string display_name = 1;\n string address = 2;\n }\n\nIn proto a field mask for `Profile` may look as such:\n\n mask {\n paths: \"user.display_name\"\n paths: \"photo\"\n }\n\nIn JSON, the same mask is represented as below:\n\n {\n mask: \"user.displayName,photo\"\n }\n\n# Field Masks and OLine truncated
|
||||
"title": "`FieldMask` represents a set of symbolic field paths, for example:"
|
||||
},
|
||||
"google.protobuf.NullValue": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"NULL_VALUE"
|
||||
],
|
||||
"default": "NULL_VALUE",
|
||||
"description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value."
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,125 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/v1/placeholder_service.proto
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
|
||||
_ "github.com/hashicorp/watchtower/internal/gen/controller/api/resource"
|
||||
grpc "google.golang.org/grpc"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
var File_controller_api_v1_placeholder_service_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_v1_placeholder_service_proto_rawDesc = []byte{
|
||||
0x0a, 0x2b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f,
|
||||
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x63,
|
||||
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,
|
||||
0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61,
|
||||
0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e,
|
||||
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c,
|
||||
0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72,
|
||||
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65,
|
||||
0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x14, 0x0a, 0x12,
|
||||
0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,
|
||||
0x63, 0x65, 0x42, 0x44, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68,
|
||||
0x74, 0x6f, 0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67,
|
||||
0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70,
|
||||
0x69, 0x3b, 0x61, 0x70, 0x69, 0x92, 0x41, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var file_controller_api_v1_placeholder_service_proto_goTypes = []interface{}{}
|
||||
var file_controller_api_v1_placeholder_service_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_v1_placeholder_service_proto_init() }
|
||||
func file_controller_api_v1_placeholder_service_proto_init() {
|
||||
if File_controller_api_v1_placeholder_service_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_v1_placeholder_service_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 0,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_controller_api_v1_placeholder_service_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_v1_placeholder_service_proto_depIdxs,
|
||||
}.Build()
|
||||
File_controller_api_v1_placeholder_service_proto = out.File
|
||||
file_controller_api_v1_placeholder_service_proto_rawDesc = nil
|
||||
file_controller_api_v1_placeholder_service_proto_goTypes = nil
|
||||
file_controller_api_v1_placeholder_service_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// PlaceholderServiceClient is the client API for PlaceholderService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type PlaceholderServiceClient interface {
|
||||
}
|
||||
|
||||
type placeholderServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewPlaceholderServiceClient(cc grpc.ClientConnInterface) PlaceholderServiceClient {
|
||||
return &placeholderServiceClient{cc}
|
||||
}
|
||||
|
||||
// PlaceholderServiceServer is the server API for PlaceholderService service.
|
||||
type PlaceholderServiceServer interface {
|
||||
}
|
||||
|
||||
// UnimplementedPlaceholderServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedPlaceholderServiceServer struct {
|
||||
}
|
||||
|
||||
func RegisterPlaceholderServiceServer(s *grpc.Server, srv PlaceholderServiceServer) {
|
||||
s.RegisterService(&_PlaceholderService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
var _PlaceholderService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "controller.api.v1.PlaceholderService",
|
||||
HandlerType: (*PlaceholderServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "controller/api/v1/placeholder_service.proto",
|
||||
}
|
||||
@@ -1,234 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/resource/v1/host.proto
|
||||
|
||||
package resource
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// Host contains all fields related to a Host resource.
|
||||
type Host struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Output only.
|
||||
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
|
||||
FriendlyName *wrappers.StringValue `protobuf:"bytes,2,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
|
||||
// The time this host was created.
|
||||
// Output only.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
|
||||
// The time this host was last updated.
|
||||
// Output only.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
|
||||
// Marks the host as disabled. Default is false.
|
||||
Disabled *wrappers.BoolValue `protobuf:"bytes,5,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
||||
// This field is required.
|
||||
Address *wrappers.StringValue `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Host) Reset() {
|
||||
*x = Host{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resource_v1_host_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Host) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Host) ProtoMessage() {}
|
||||
|
||||
func (x *Host) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resource_v1_host_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Host.ProtoReflect.Descriptor instead.
|
||||
func (*Host) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resource_v1_host_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Host) GetUri() string {
|
||||
if x != nil {
|
||||
return x.Uri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Host) GetFriendlyName() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.FriendlyName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetCreatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetUpdatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetDisabled() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Disabled
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetAddress() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_controller_api_resource_v1_host_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_resource_v1_host_proto_rawDesc = []byte{
|
||||
0x0a, 0x25, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73,
|
||||
0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
|
||||
0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x02, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x10, 0x0a,
|
||||
0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12,
|
||||
0x41, 0x0a, 0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x4e, 0x61,
|
||||
0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
|
||||
0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d,
|
||||
0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||
0x61, 0x6d, 0x70, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65,
|
||||
0x12, 0x36, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08,
|
||||
0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
|
||||
0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69,
|
||||
0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
|
||||
0x42, 0x4f, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68,
|
||||
0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f,
|
||||
0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e,
|
||||
0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f,
|
||||
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
||||
0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_resource_v1_host_proto_rawDescOnce sync.Once
|
||||
file_controller_api_resource_v1_host_proto_rawDescData = file_controller_api_resource_v1_host_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_resource_v1_host_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_resource_v1_host_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_resource_v1_host_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resource_v1_host_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_resource_v1_host_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_resource_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_controller_api_resource_v1_host_proto_goTypes = []interface{}{
|
||||
(*Host)(nil), // 0: controller.api.resource.v1.Host
|
||||
(*wrappers.StringValue)(nil), // 1: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
|
||||
(*wrappers.BoolValue)(nil), // 3: google.protobuf.BoolValue
|
||||
}
|
||||
var file_controller_api_resource_v1_host_proto_depIdxs = []int32{
|
||||
1, // 0: controller.api.resource.v1.Host.friendly_name:type_name -> google.protobuf.StringValue
|
||||
2, // 1: controller.api.resource.v1.Host.created_time:type_name -> google.protobuf.Timestamp
|
||||
2, // 2: controller.api.resource.v1.Host.updated_time:type_name -> google.protobuf.Timestamp
|
||||
3, // 3: controller.api.resource.v1.Host.disabled:type_name -> google.protobuf.BoolValue
|
||||
1, // 4: controller.api.resource.v1.Host.address:type_name -> google.protobuf.StringValue
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_resource_v1_host_proto_init() }
|
||||
func file_controller_api_resource_v1_host_proto_init() {
|
||||
if File_controller_api_resource_v1_host_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resource_v1_host_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Host); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_resource_v1_host_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_resource_v1_host_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_resource_v1_host_proto_depIdxs,
|
||||
MessageInfos: file_controller_api_resource_v1_host_proto_msgTypes,
|
||||
}.Build()
|
||||
File_controller_api_resource_v1_host_proto = out.File
|
||||
file_controller_api_resource_v1_host_proto_rawDesc = nil
|
||||
file_controller_api_resource_v1_host_proto_goTypes = nil
|
||||
file_controller_api_resource_v1_host_proto_depIdxs = nil
|
||||
}
|
||||
@@ -1,513 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/resource/v1/host_catalog.proto
|
||||
|
||||
package resource
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
type HostCatalogType int32
|
||||
|
||||
const (
|
||||
HostCatalogType_HOST_CATALOG_TYPE_UNSPECIFIED HostCatalogType = 0
|
||||
HostCatalogType_HOST_CATALOG_TYPE_EC2 HostCatalogType = 1
|
||||
HostCatalogType_HOST_CATALOG_TYPE_STATIC HostCatalogType = 2
|
||||
)
|
||||
|
||||
// Enum value maps for HostCatalogType.
|
||||
var (
|
||||
HostCatalogType_name = map[int32]string{
|
||||
0: "HOST_CATALOG_TYPE_UNSPECIFIED",
|
||||
1: "HOST_CATALOG_TYPE_EC2",
|
||||
2: "HOST_CATALOG_TYPE_STATIC",
|
||||
}
|
||||
HostCatalogType_value = map[string]int32{
|
||||
"HOST_CATALOG_TYPE_UNSPECIFIED": 0,
|
||||
"HOST_CATALOG_TYPE_EC2": 1,
|
||||
"HOST_CATALOG_TYPE_STATIC": 2,
|
||||
}
|
||||
)
|
||||
|
||||
func (x HostCatalogType) Enum() *HostCatalogType {
|
||||
p := new(HostCatalogType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x HostCatalogType) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (HostCatalogType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_controller_api_resource_v1_host_catalog_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (HostCatalogType) Type() protoreflect.EnumType {
|
||||
return &file_controller_api_resource_v1_host_catalog_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x HostCatalogType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use HostCatalogType.Descriptor instead.
|
||||
func (HostCatalogType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_controller_api_resource_v1_host_catalog_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
// HostCatalog organizes Hosts into HostSets.
|
||||
type HostCatalog struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Output only.
|
||||
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
|
||||
FriendlyName *wrappers.StringValue `protobuf:"bytes,2,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
|
||||
// The time this host_catalog was created.
|
||||
// Output only.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
|
||||
// The time this host_catalog was last updated.
|
||||
// Output only.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
|
||||
// Marks the host_catalog as disabled. Default is false.
|
||||
Disabled *wrappers.BoolValue `protobuf:"bytes,5,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
||||
// Types that are assignable to TypeDetails:
|
||||
// *HostCatalog_StaticHostCatalogDetails
|
||||
// *HostCatalog_Ec2HostCatalogDetails
|
||||
TypeDetails isHostCatalog_TypeDetails `protobuf_oneof:"type_details"`
|
||||
Type HostCatalogType `protobuf:"varint,8,opt,name=type,proto3,enum=controller.api.resource.v1.HostCatalogType" json:"type,omitempty"` // TODO: Figure out how to provide relevant information regarding Host and Set lists on a catalog.
|
||||
}
|
||||
|
||||
func (x *HostCatalog) Reset() {
|
||||
*x = HostCatalog{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resource_v1_host_catalog_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *HostCatalog) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*HostCatalog) ProtoMessage() {}
|
||||
|
||||
func (x *HostCatalog) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resource_v1_host_catalog_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use HostCatalog.ProtoReflect.Descriptor instead.
|
||||
func (*HostCatalog) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resource_v1_host_catalog_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetUri() string {
|
||||
if x != nil {
|
||||
return x.Uri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetFriendlyName() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.FriendlyName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetCreatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetUpdatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetDisabled() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Disabled
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *HostCatalog) GetTypeDetails() isHostCatalog_TypeDetails {
|
||||
if m != nil {
|
||||
return m.TypeDetails
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetStaticHostCatalogDetails() *StaticCatalogDetails {
|
||||
if x, ok := x.GetTypeDetails().(*HostCatalog_StaticHostCatalogDetails); ok {
|
||||
return x.StaticHostCatalogDetails
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetEc2HostCatalogDetails() *Ec2CatalogDetails {
|
||||
if x, ok := x.GetTypeDetails().(*HostCatalog_Ec2HostCatalogDetails); ok {
|
||||
return x.Ec2HostCatalogDetails
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetType() HostCatalogType {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return HostCatalogType_HOST_CATALOG_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
type isHostCatalog_TypeDetails interface {
|
||||
isHostCatalog_TypeDetails()
|
||||
}
|
||||
|
||||
type HostCatalog_StaticHostCatalogDetails struct {
|
||||
StaticHostCatalogDetails *StaticCatalogDetails `protobuf:"bytes,6,opt,name=static_host_catalog_details,json=staticHostCatalogDetails,proto3,oneof"`
|
||||
}
|
||||
|
||||
type HostCatalog_Ec2HostCatalogDetails struct {
|
||||
Ec2HostCatalogDetails *Ec2CatalogDetails `protobuf:"bytes,7,opt,name=ec2_host_catalog_details,json=ec2HostCatalogDetails,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*HostCatalog_StaticHostCatalogDetails) isHostCatalog_TypeDetails() {}
|
||||
|
||||
func (*HostCatalog_Ec2HostCatalogDetails) isHostCatalog_TypeDetails() {}
|
||||
|
||||
type StaticCatalogDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *StaticCatalogDetails) Reset() {
|
||||
*x = StaticCatalogDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resource_v1_host_catalog_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *StaticCatalogDetails) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StaticCatalogDetails) ProtoMessage() {}
|
||||
|
||||
func (x *StaticCatalogDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resource_v1_host_catalog_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StaticCatalogDetails.ProtoReflect.Descriptor instead.
|
||||
func (*StaticCatalogDetails) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resource_v1_host_catalog_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type Ec2CatalogDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// The AWS regions from which this catalog will retrieve the EC2 instances.
|
||||
Regions []string `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
|
||||
// The access key used for authenticating with AWS when retrieving EC2 instance details.
|
||||
AccessKey *wrappers.StringValue `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
|
||||
// Input only.
|
||||
SecretKey *wrappers.StringValue `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
|
||||
// This value will never be returned in a response.
|
||||
Rotate *wrappers.BoolValue `protobuf:"bytes,4,opt,name=rotate,proto3" json:"rotate,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Ec2CatalogDetails) Reset() {
|
||||
*x = Ec2CatalogDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resource_v1_host_catalog_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Ec2CatalogDetails) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Ec2CatalogDetails) ProtoMessage() {}
|
||||
|
||||
func (x *Ec2CatalogDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resource_v1_host_catalog_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Ec2CatalogDetails.ProtoReflect.Descriptor instead.
|
||||
func (*Ec2CatalogDetails) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resource_v1_host_catalog_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *Ec2CatalogDetails) GetRegions() []string {
|
||||
if x != nil {
|
||||
return x.Regions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Ec2CatalogDetails) GetAccessKey() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.AccessKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Ec2CatalogDetails) GetSecretKey() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.SecretKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Ec2CatalogDetails) GetRotate() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Rotate
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_controller_api_resource_v1_host_catalog_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_resource_v1_host_catalog_proto_rawDesc = []byte{
|
||||
0x0a, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73,
|
||||
0x74, 0x5f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||
0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
||||
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
|
||||
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72,
|
||||
0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x04, 0x0a,
|
||||
0x0b, 0x48, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x10, 0x0a, 0x03,
|
||||
0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x41,
|
||||
0x0a, 0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x52, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x4e, 0x61, 0x6d,
|
||||
0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||
0x61, 0x6d, 0x70, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65,
|
||||
0x12, 0x3d, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||
0x6d, 0x70, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12,
|
||||
0x36, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x64,
|
||||
0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x71, 0x0a, 0x1b, 0x73, 0x74, 0x61, 0x74, 0x69,
|
||||
0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x64,
|
||||
0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63,
|
||||
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65,
|
||||
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63,
|
||||
0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00,
|
||||
0x52, 0x18, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61,
|
||||
0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x68, 0x0a, 0x18, 0x65, 0x63,
|
||||
0x32, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x64,
|
||||
0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63,
|
||||
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65,
|
||||
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x63, 0x32, 0x43, 0x61, 0x74,
|
||||
0x61, 0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x15, 0x65,
|
||||
0x63, 0x32, 0x48, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74,
|
||||
0x61, 0x69, 0x6c, 0x73, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01,
|
||||
0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e,
|
||||
0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x48, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52,
|
||||
0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x64, 0x65,
|
||||
0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x43,
|
||||
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xdb, 0x01,
|
||||
0x0a, 0x11, 0x45, 0x63, 0x32, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61,
|
||||
0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a,
|
||||
0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
|
||||
0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x73, 0x65,
|
||||
0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,
|
||||
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
||||
0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x73, 0x65,
|
||||
0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x6f, 0x74, 0x61, 0x74,
|
||||
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x2a, 0x6d, 0x0a, 0x0f, 0x48,
|
||||
0x6f, 0x73, 0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21,
|
||||
0x0a, 0x1d, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x43, 0x41, 0x54, 0x41, 0x4c, 0x4f, 0x47, 0x5f, 0x54,
|
||||
0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
|
||||
0x00, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x43, 0x41, 0x54, 0x41, 0x4c, 0x4f,
|
||||
0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x43, 0x32, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18,
|
||||
0x48, 0x4f, 0x53, 0x54, 0x5f, 0x43, 0x41, 0x54, 0x41, 0x4c, 0x4f, 0x47, 0x5f, 0x54, 0x59, 0x50,
|
||||
0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x10, 0x02, 0x42, 0x4f, 0x5a, 0x4d, 0x67, 0x69,
|
||||
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f,
|
||||
0x72, 0x70, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72,
|
||||
0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
||||
0x63, 0x65, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_resource_v1_host_catalog_proto_rawDescOnce sync.Once
|
||||
file_controller_api_resource_v1_host_catalog_proto_rawDescData = file_controller_api_resource_v1_host_catalog_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_resource_v1_host_catalog_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_resource_v1_host_catalog_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_resource_v1_host_catalog_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resource_v1_host_catalog_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_resource_v1_host_catalog_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_resource_v1_host_catalog_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_controller_api_resource_v1_host_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_controller_api_resource_v1_host_catalog_proto_goTypes = []interface{}{
|
||||
(HostCatalogType)(0), // 0: controller.api.resource.v1.HostCatalogType
|
||||
(*HostCatalog)(nil), // 1: controller.api.resource.v1.HostCatalog
|
||||
(*StaticCatalogDetails)(nil), // 2: controller.api.resource.v1.StaticCatalogDetails
|
||||
(*Ec2CatalogDetails)(nil), // 3: controller.api.resource.v1.Ec2CatalogDetails
|
||||
(*wrappers.StringValue)(nil), // 4: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp
|
||||
(*wrappers.BoolValue)(nil), // 6: google.protobuf.BoolValue
|
||||
}
|
||||
var file_controller_api_resource_v1_host_catalog_proto_depIdxs = []int32{
|
||||
4, // 0: controller.api.resource.v1.HostCatalog.friendly_name:type_name -> google.protobuf.StringValue
|
||||
5, // 1: controller.api.resource.v1.HostCatalog.created_time:type_name -> google.protobuf.Timestamp
|
||||
5, // 2: controller.api.resource.v1.HostCatalog.updated_time:type_name -> google.protobuf.Timestamp
|
||||
6, // 3: controller.api.resource.v1.HostCatalog.disabled:type_name -> google.protobuf.BoolValue
|
||||
2, // 4: controller.api.resource.v1.HostCatalog.static_host_catalog_details:type_name -> controller.api.resource.v1.StaticCatalogDetails
|
||||
3, // 5: controller.api.resource.v1.HostCatalog.ec2_host_catalog_details:type_name -> controller.api.resource.v1.Ec2CatalogDetails
|
||||
0, // 6: controller.api.resource.v1.HostCatalog.type:type_name -> controller.api.resource.v1.HostCatalogType
|
||||
4, // 7: controller.api.resource.v1.Ec2CatalogDetails.access_key:type_name -> google.protobuf.StringValue
|
||||
4, // 8: controller.api.resource.v1.Ec2CatalogDetails.secret_key:type_name -> google.protobuf.StringValue
|
||||
6, // 9: controller.api.resource.v1.Ec2CatalogDetails.rotate:type_name -> google.protobuf.BoolValue
|
||||
10, // [10:10] is the sub-list for method output_type
|
||||
10, // [10:10] is the sub-list for method input_type
|
||||
10, // [10:10] is the sub-list for extension type_name
|
||||
10, // [10:10] is the sub-list for extension extendee
|
||||
0, // [0:10] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_resource_v1_host_catalog_proto_init() }
|
||||
func file_controller_api_resource_v1_host_catalog_proto_init() {
|
||||
if File_controller_api_resource_v1_host_catalog_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resource_v1_host_catalog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HostCatalog); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resource_v1_host_catalog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StaticCatalogDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resource_v1_host_catalog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Ec2CatalogDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
file_controller_api_resource_v1_host_catalog_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
(*HostCatalog_StaticHostCatalogDetails)(nil),
|
||||
(*HostCatalog_Ec2HostCatalogDetails)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_resource_v1_host_catalog_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 3,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_resource_v1_host_catalog_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_resource_v1_host_catalog_proto_depIdxs,
|
||||
EnumInfos: file_controller_api_resource_v1_host_catalog_proto_enumTypes,
|
||||
MessageInfos: file_controller_api_resource_v1_host_catalog_proto_msgTypes,
|
||||
}.Build()
|
||||
File_controller_api_resource_v1_host_catalog_proto = out.File
|
||||
file_controller_api_resource_v1_host_catalog_proto_rawDesc = nil
|
||||
file_controller_api_resource_v1_host_catalog_proto_goTypes = nil
|
||||
file_controller_api_resource_v1_host_catalog_proto_depIdxs = nil
|
||||
}
|
||||
@@ -1,256 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/resource/v1/host_set.proto
|
||||
|
||||
package resource
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// HostSets are a collection of sets created and managed by a catalog.
|
||||
type HostSet struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Output only.
|
||||
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
|
||||
FriendlyName *wrappers.StringValue `protobuf:"bytes,2,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
|
||||
// The time this host_set was created.
|
||||
// Output only.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
|
||||
// The time this host_set was last updated.
|
||||
// Output only.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
|
||||
// Marks the host_set as disabled. Default is false.
|
||||
Disabled *wrappers.BoolValue `protobuf:"bytes,5,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
||||
// The total count of hosts in this host set
|
||||
// Output only.
|
||||
Size *wrappers.Int32Value `protobuf:"bytes,6,opt,name=size,proto3" json:"size,omitempty"`
|
||||
// A list of hosts in this host set.
|
||||
// TODO: Figure out if this should be in the basic HostSet view and what view to use on the Hosts.
|
||||
// Output only.
|
||||
Hosts []*Host `protobuf:"bytes,7,rep,name=hosts,proto3" json:"hosts,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HostSet) Reset() {
|
||||
*x = HostSet{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resource_v1_host_set_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *HostSet) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*HostSet) ProtoMessage() {}
|
||||
|
||||
func (x *HostSet) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resource_v1_host_set_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use HostSet.ProtoReflect.Descriptor instead.
|
||||
func (*HostSet) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resource_v1_host_set_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *HostSet) GetUri() string {
|
||||
if x != nil {
|
||||
return x.Uri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *HostSet) GetFriendlyName() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.FriendlyName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetCreatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetUpdatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetDisabled() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Disabled
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetSize() *wrappers.Int32Value {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetHosts() []*Host {
|
||||
if x != nil {
|
||||
return x.Hosts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_controller_api_resource_v1_host_set_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_resource_v1_host_set_proto_rawDesc = []byte{
|
||||
0x0a, 0x29, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73,
|
||||
0x74, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x6f, 0x6e,
|
||||
0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f,
|
||||
0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||
0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65,
|
||||
0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
|
||||
0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
||||
0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
||||
0xfd, 0x02, 0x0a, 0x07, 0x48, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75,
|
||||
0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x41, 0x0a,
|
||||
0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c,
|
||||
0x75, 0x65, 0x52, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||
0x6d, 0x70, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12,
|
||||
0x3d, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||
0x70, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36,
|
||||
0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
||||
0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x64, 0x69,
|
||||
0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73,
|
||||
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
|
||||
0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x42,
|
||||
0x4f, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61,
|
||||
0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77,
|
||||
0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f,
|
||||
0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72,
|
||||
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_resource_v1_host_set_proto_rawDescOnce sync.Once
|
||||
file_controller_api_resource_v1_host_set_proto_rawDescData = file_controller_api_resource_v1_host_set_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_resource_v1_host_set_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_resource_v1_host_set_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_resource_v1_host_set_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resource_v1_host_set_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_resource_v1_host_set_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_resource_v1_host_set_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_controller_api_resource_v1_host_set_proto_goTypes = []interface{}{
|
||||
(*HostSet)(nil), // 0: controller.api.resource.v1.HostSet
|
||||
(*wrappers.StringValue)(nil), // 1: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
|
||||
(*wrappers.BoolValue)(nil), // 3: google.protobuf.BoolValue
|
||||
(*wrappers.Int32Value)(nil), // 4: google.protobuf.Int32Value
|
||||
(*Host)(nil), // 5: controller.api.resource.v1.Host
|
||||
}
|
||||
var file_controller_api_resource_v1_host_set_proto_depIdxs = []int32{
|
||||
1, // 0: controller.api.resource.v1.HostSet.friendly_name:type_name -> google.protobuf.StringValue
|
||||
2, // 1: controller.api.resource.v1.HostSet.created_time:type_name -> google.protobuf.Timestamp
|
||||
2, // 2: controller.api.resource.v1.HostSet.updated_time:type_name -> google.protobuf.Timestamp
|
||||
3, // 3: controller.api.resource.v1.HostSet.disabled:type_name -> google.protobuf.BoolValue
|
||||
4, // 4: controller.api.resource.v1.HostSet.size:type_name -> google.protobuf.Int32Value
|
||||
5, // 5: controller.api.resource.v1.HostSet.hosts:type_name -> controller.api.resource.v1.Host
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_resource_v1_host_set_proto_init() }
|
||||
func file_controller_api_resource_v1_host_set_proto_init() {
|
||||
if File_controller_api_resource_v1_host_set_proto != nil {
|
||||
return
|
||||
}
|
||||
file_controller_api_resource_v1_host_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resource_v1_host_set_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HostSet); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_resource_v1_host_set_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_resource_v1_host_set_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_resource_v1_host_set_proto_depIdxs,
|
||||
MessageInfos: file_controller_api_resource_v1_host_set_proto_msgTypes,
|
||||
}.Build()
|
||||
File_controller_api_resource_v1_host_set_proto = out.File
|
||||
file_controller_api_resource_v1_host_set_proto_rawDesc = nil
|
||||
file_controller_api_resource_v1_host_set_proto_goTypes = nil
|
||||
file_controller_api_resource_v1_host_set_proto_depIdxs = nil
|
||||
}
|
||||
@@ -1,151 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/resource/v1/placeholder.proto
|
||||
|
||||
package resource
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// A Placeholder does nothing but establishes directory organization.
|
||||
type Placeholder struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *Placeholder) Reset() {
|
||||
*x = Placeholder{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resource_v1_placeholder_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Placeholder) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Placeholder) ProtoMessage() {}
|
||||
|
||||
func (x *Placeholder) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resource_v1_placeholder_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Placeholder.ProtoReflect.Descriptor instead.
|
||||
func (*Placeholder) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resource_v1_placeholder_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
var File_controller_api_resource_v1_placeholder_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_resource_v1_placeholder_proto_rawDesc = []byte{
|
||||
0x0a, 0x2c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61,
|
||||
0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
|
||||
0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72,
|
||||
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61,
|
||||
0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0d, 0x0a, 0x0b, 0x50,
|
||||
0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x42, 0x4f, 0x5a, 0x4d, 0x67, 0x69,
|
||||
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f,
|
||||
0x72, 0x70, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72,
|
||||
0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
||||
0x63, 0x65, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_resource_v1_placeholder_proto_rawDescOnce sync.Once
|
||||
file_controller_api_resource_v1_placeholder_proto_rawDescData = file_controller_api_resource_v1_placeholder_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_resource_v1_placeholder_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_resource_v1_placeholder_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_resource_v1_placeholder_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resource_v1_placeholder_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_resource_v1_placeholder_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_resource_v1_placeholder_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_controller_api_resource_v1_placeholder_proto_goTypes = []interface{}{
|
||||
(*Placeholder)(nil), // 0: controller.api.resource.v1.Placeholder
|
||||
}
|
||||
var file_controller_api_resource_v1_placeholder_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_resource_v1_placeholder_proto_init() }
|
||||
func file_controller_api_resource_v1_placeholder_proto_init() {
|
||||
if File_controller_api_resource_v1_placeholder_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resource_v1_placeholder_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Placeholder); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_resource_v1_placeholder_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_resource_v1_placeholder_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_resource_v1_placeholder_proto_depIdxs,
|
||||
MessageInfos: file_controller_api_resource_v1_placeholder_proto_msgTypes,
|
||||
}.Build()
|
||||
File_controller_api_resource_v1_placeholder_proto = out.File
|
||||
file_controller_api_resource_v1_placeholder_proto_rawDesc = nil
|
||||
file_controller_api_resource_v1_placeholder_proto_goTypes = nil
|
||||
file_controller_api_resource_v1_placeholder_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/resources/hosts/v1/host.proto
|
||||
|
||||
package hosts
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// Host contains all fields related to a Host resource
|
||||
type Host struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Canonical path of the resource from the API's base URI
|
||||
// Output only.
|
||||
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||||
// The type of the resource, to help differentiate schemas
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Friendly name, if set
|
||||
FriendlyName *wrappers.StringValue `protobuf:"bytes,3,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
|
||||
// The time this host was created
|
||||
// Ouput only.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
|
||||
// The time this host was last updated
|
||||
// Output only.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
|
||||
// Whether the host is disabled
|
||||
Disabled *wrappers.BoolValue `protobuf:"bytes,6,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
||||
// The address (DNS or IP name) used to reach the host
|
||||
Address *wrappers.StringValue `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Host) Reset() {
|
||||
*x = Host{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Host) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Host) ProtoMessage() {}
|
||||
|
||||
func (x *Host) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Host.ProtoReflect.Descriptor instead.
|
||||
func (*Host) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resources_hosts_v1_host_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Host) GetPath() string {
|
||||
if x != nil {
|
||||
return x.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Host) GetType() string {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Host) GetFriendlyName() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.FriendlyName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetCreatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetUpdatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetDisabled() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Disabled
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Host) GetAddress() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_controller_api_resources_hosts_v1_host_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_resources_hosts_v1_host_proto_rawDesc = []byte{
|
||||
0x0a, 0x2c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x73,
|
||||
0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21,
|
||||
0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72,
|
||||
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x76,
|
||||
0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
||||
0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x22, 0xdf, 0x02, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70,
|
||||
0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x5f,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
|
||||
0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64,
|
||||
0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
|
||||
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
|
||||
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
|
||||
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
||||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c,
|
||||
0x75, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07,
|
||||
0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
|
||||
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
|
||||
0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x61, 0x64, 0x64,
|
||||
0x72, 0x65, 0x73, 0x73, 0x42, 0x53, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x77, 0x61, 0x74,
|
||||
0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
|
||||
0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f,
|
||||
0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x68, 0x6f,
|
||||
0x73, 0x74, 0x73, 0x3b, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_resources_hosts_v1_host_proto_rawDescOnce sync.Once
|
||||
file_controller_api_resources_hosts_v1_host_proto_rawDescData = file_controller_api_resources_hosts_v1_host_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_resources_hosts_v1_host_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_resources_hosts_v1_host_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_resources_hosts_v1_host_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resources_hosts_v1_host_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_resources_hosts_v1_host_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_resources_hosts_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_controller_api_resources_hosts_v1_host_proto_goTypes = []interface{}{
|
||||
(*Host)(nil), // 0: controller.api.resources.hosts.v1.Host
|
||||
(*wrappers.StringValue)(nil), // 1: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
|
||||
(*wrappers.BoolValue)(nil), // 3: google.protobuf.BoolValue
|
||||
}
|
||||
var file_controller_api_resources_hosts_v1_host_proto_depIdxs = []int32{
|
||||
1, // 0: controller.api.resources.hosts.v1.Host.friendly_name:type_name -> google.protobuf.StringValue
|
||||
2, // 1: controller.api.resources.hosts.v1.Host.created_time:type_name -> google.protobuf.Timestamp
|
||||
2, // 2: controller.api.resources.hosts.v1.Host.updated_time:type_name -> google.protobuf.Timestamp
|
||||
3, // 3: controller.api.resources.hosts.v1.Host.disabled:type_name -> google.protobuf.BoolValue
|
||||
1, // 4: controller.api.resources.hosts.v1.Host.address:type_name -> google.protobuf.StringValue
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_resources_hosts_v1_host_proto_init() }
|
||||
func file_controller_api_resources_hosts_v1_host_proto_init() {
|
||||
if File_controller_api_resources_hosts_v1_host_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resources_hosts_v1_host_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Host); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_resources_hosts_v1_host_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_resources_hosts_v1_host_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_resources_hosts_v1_host_proto_depIdxs,
|
||||
MessageInfos: file_controller_api_resources_hosts_v1_host_proto_msgTypes,
|
||||
}.Build()
|
||||
File_controller_api_resources_hosts_v1_host_proto = out.File
|
||||
file_controller_api_resources_hosts_v1_host_proto_rawDesc = nil
|
||||
file_controller_api_resources_hosts_v1_host_proto_goTypes = nil
|
||||
file_controller_api_resources_hosts_v1_host_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,410 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/resources/hosts/v1/host_catalog.proto
|
||||
|
||||
package hosts
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// HostCatalog manages Hosts and HostSets
|
||||
type HostCatalog struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Canonical path of the resource from the API's base URI
|
||||
// Output only.
|
||||
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||||
// The type of the resource, to help differentiate schemas
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Friendly name, if set
|
||||
FriendlyName *wrappers.StringValue `protobuf:"bytes,3,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
|
||||
// The time this host was created
|
||||
// Output only.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
|
||||
// The time this host was last updated
|
||||
// Output only.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
|
||||
// Whether the catalog is disabled
|
||||
Disabled *wrappers.BoolValue `protobuf:"bytes,6,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
||||
// Attributes specific to the catalog type
|
||||
Attributes *_struct.Struct `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HostCatalog) Reset() {
|
||||
*x = HostCatalog{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *HostCatalog) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*HostCatalog) ProtoMessage() {}
|
||||
|
||||
func (x *HostCatalog) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use HostCatalog.ProtoReflect.Descriptor instead.
|
||||
func (*HostCatalog) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetPath() string {
|
||||
if x != nil {
|
||||
return x.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetType() string {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetFriendlyName() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.FriendlyName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetCreatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetUpdatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetDisabled() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Disabled
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostCatalog) GetAttributes() *_struct.Struct {
|
||||
if x != nil {
|
||||
return x.Attributes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type StaticHostCatalogDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *StaticHostCatalogDetails) Reset() {
|
||||
*x = StaticHostCatalogDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *StaticHostCatalogDetails) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StaticHostCatalogDetails) ProtoMessage() {}
|
||||
|
||||
func (x *StaticHostCatalogDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StaticHostCatalogDetails.ProtoReflect.Descriptor instead.
|
||||
func (*StaticHostCatalogDetails) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type AwsEc2HostCatalogDetails struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// The AWS regions from which this catalog will retrieve the EC2 instances.
|
||||
Regions []string `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
|
||||
// The access key used for authenticating with AWS when retrieving EC2 instance details.
|
||||
AccessKey *wrappers.StringValue `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
|
||||
// Input only.
|
||||
SecretKey *wrappers.StringValue `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
|
||||
// This value will never be returned in a response.
|
||||
Rotate *wrappers.BoolValue `protobuf:"bytes,4,opt,name=rotate,proto3" json:"rotate,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AwsEc2HostCatalogDetails) Reset() {
|
||||
*x = AwsEc2HostCatalogDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *AwsEc2HostCatalogDetails) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AwsEc2HostCatalogDetails) ProtoMessage() {}
|
||||
|
||||
func (x *AwsEc2HostCatalogDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AwsEc2HostCatalogDetails.ProtoReflect.Descriptor instead.
|
||||
func (*AwsEc2HostCatalogDetails) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *AwsEc2HostCatalogDetails) GetRegions() []string {
|
||||
if x != nil {
|
||||
return x.Regions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AwsEc2HostCatalogDetails) GetAccessKey() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.AccessKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AwsEc2HostCatalogDetails) GetSecretKey() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.SecretKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AwsEc2HostCatalogDetails) GetRotate() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Rotate
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_controller_api_resources_hosts_v1_host_catalog_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_resources_hosts_v1_host_catalog_proto_rawDesc = []byte{
|
||||
0x0a, 0x34, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x73,
|
||||
0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
|
||||
0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
||||
0x2e, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
||||
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70,
|
||||
0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75,
|
||||
0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe7, 0x02, 0x0a, 0x0b, 0x48, 0x6f, 0x73,
|
||||
0x74, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
|
||||
0x12, 0x41, 0x0a, 0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
|
||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x4e,
|
||||
0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
|
||||
0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d,
|
||||
0x65, 0x12, 0x36, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
|
||||
0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x74, 0x74,
|
||||
0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
|
||||
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
|
||||
0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
|
||||
0x65, 0x73, 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74,
|
||||
0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xe2,
|
||||
0x01, 0x0a, 0x18, 0x41, 0x77, 0x73, 0x45, 0x63, 0x32, 0x48, 0x6f, 0x73, 0x74, 0x43, 0x61, 0x74,
|
||||
0x61, 0x6c, 0x6f, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
|
||||
0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69,
|
||||
0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b,
|
||||
0x65, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12,
|
||||
0x32, 0x0a, 0x06, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||
0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x74,
|
||||
0x61, 0x74, 0x65, 0x42, 0x53, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x77, 0x61, 0x74, 0x63,
|
||||
0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
|
||||
0x67, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61,
|
||||
0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x68, 0x6f, 0x73,
|
||||
0x74, 0x73, 0x3b, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescOnce sync.Once
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescData = file_controller_api_resources_hosts_v1_host_catalog_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_resources_hosts_v1_host_catalog_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_controller_api_resources_hosts_v1_host_catalog_proto_goTypes = []interface{}{
|
||||
(*HostCatalog)(nil), // 0: controller.api.resources.hosts.v1.HostCatalog
|
||||
(*StaticHostCatalogDetails)(nil), // 1: controller.api.resources.hosts.v1.StaticHostCatalogDetails
|
||||
(*AwsEc2HostCatalogDetails)(nil), // 2: controller.api.resources.hosts.v1.AwsEc2HostCatalogDetails
|
||||
(*wrappers.StringValue)(nil), // 3: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
||||
(*wrappers.BoolValue)(nil), // 5: google.protobuf.BoolValue
|
||||
(*_struct.Struct)(nil), // 6: google.protobuf.Struct
|
||||
}
|
||||
var file_controller_api_resources_hosts_v1_host_catalog_proto_depIdxs = []int32{
|
||||
3, // 0: controller.api.resources.hosts.v1.HostCatalog.friendly_name:type_name -> google.protobuf.StringValue
|
||||
4, // 1: controller.api.resources.hosts.v1.HostCatalog.created_time:type_name -> google.protobuf.Timestamp
|
||||
4, // 2: controller.api.resources.hosts.v1.HostCatalog.updated_time:type_name -> google.protobuf.Timestamp
|
||||
5, // 3: controller.api.resources.hosts.v1.HostCatalog.disabled:type_name -> google.protobuf.BoolValue
|
||||
6, // 4: controller.api.resources.hosts.v1.HostCatalog.attributes:type_name -> google.protobuf.Struct
|
||||
3, // 5: controller.api.resources.hosts.v1.AwsEc2HostCatalogDetails.access_key:type_name -> google.protobuf.StringValue
|
||||
3, // 6: controller.api.resources.hosts.v1.AwsEc2HostCatalogDetails.secret_key:type_name -> google.protobuf.StringValue
|
||||
5, // 7: controller.api.resources.hosts.v1.AwsEc2HostCatalogDetails.rotate:type_name -> google.protobuf.BoolValue
|
||||
8, // [8:8] is the sub-list for method output_type
|
||||
8, // [8:8] is the sub-list for method input_type
|
||||
8, // [8:8] is the sub-list for extension type_name
|
||||
8, // [8:8] is the sub-list for extension extendee
|
||||
0, // [0:8] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_resources_hosts_v1_host_catalog_proto_init() }
|
||||
func file_controller_api_resources_hosts_v1_host_catalog_proto_init() {
|
||||
if File_controller_api_resources_hosts_v1_host_catalog_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HostCatalog); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StaticHostCatalogDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AwsEc2HostCatalogDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_resources_hosts_v1_host_catalog_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 3,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_resources_hosts_v1_host_catalog_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_resources_hosts_v1_host_catalog_proto_depIdxs,
|
||||
MessageInfos: file_controller_api_resources_hosts_v1_host_catalog_proto_msgTypes,
|
||||
}.Build()
|
||||
File_controller_api_resources_hosts_v1_host_catalog_proto = out.File
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_rawDesc = nil
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_goTypes = nil
|
||||
file_controller_api_resources_hosts_v1_host_catalog_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,271 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/resources/hosts/v1/host_set.proto
|
||||
|
||||
package hosts
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// HostSet is a collection of Hosts created and managed by a HostCatalog
|
||||
type HostSet struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Canonical path of the resource from the API's base URI
|
||||
// Output only.
|
||||
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
||||
// The type of the resource, to help differentiate schemas
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Friendly name, if set
|
||||
FriendlyName *wrappers.StringValue `protobuf:"bytes,3,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
|
||||
// The time this host was created
|
||||
// Output only.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
|
||||
// The time this host was last updated
|
||||
// Output only.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"`
|
||||
// Whether the host set is disabled
|
||||
Disabled *wrappers.BoolValue `protobuf:"bytes,6,opt,name=disabled,proto3" json:"disabled,omitempty"`
|
||||
// The total count of hosts in this host set
|
||||
// Output only.
|
||||
Size *wrappers.Int64Value `protobuf:"bytes,7,opt,name=size,proto3" json:"size,omitempty"`
|
||||
// A list of hosts in this host set
|
||||
// TODO: Figure out if this should be in the basic HostSet view and what
|
||||
// view to use on the Hosts.
|
||||
// Output only.
|
||||
Hosts []*Host `protobuf:"bytes,8,rep,name=hosts,proto3" json:"hosts,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HostSet) Reset() {
|
||||
*x = HostSet{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_set_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *HostSet) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*HostSet) ProtoMessage() {}
|
||||
|
||||
func (x *HostSet) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_controller_api_resources_hosts_v1_host_set_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use HostSet.ProtoReflect.Descriptor instead.
|
||||
func (*HostSet) Descriptor() ([]byte, []int) {
|
||||
return file_controller_api_resources_hosts_v1_host_set_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *HostSet) GetPath() string {
|
||||
if x != nil {
|
||||
return x.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *HostSet) GetType() string {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *HostSet) GetFriendlyName() *wrappers.StringValue {
|
||||
if x != nil {
|
||||
return x.FriendlyName
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetCreatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetUpdatedTime() *timestamp.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetDisabled() *wrappers.BoolValue {
|
||||
if x != nil {
|
||||
return x.Disabled
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetSize() *wrappers.Int64Value {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HostSet) GetHosts() []*Host {
|
||||
if x != nil {
|
||||
return x.Hosts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_controller_api_resources_hosts_v1_host_set_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_resources_hosts_v1_host_set_proto_rawDesc = []byte{
|
||||
0x0a, 0x30, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x73,
|
||||
0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x12, 0x21, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61,
|
||||
0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x68, 0x6f, 0x73,
|
||||
0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
|
||||
0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
||||
0x2f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x03, 0x0a, 0x07, 0x48, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x74,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x72, 0x69, 0x65,
|
||||
0x6e, 0x64, 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||
0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x66,
|
||||
0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x63,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x63,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x75, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
||||
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x75, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x64, 0x69, 0x73,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
||||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f,
|
||||
0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||
0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x73, 0x69,
|
||||
0x7a, 0x65, 0x12, 0x3d, 0x0a, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61,
|
||||
0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x68, 0x6f, 0x73,
|
||||
0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74,
|
||||
0x73, 0x42, 0x53, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74,
|
||||
0x6f, 0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65,
|
||||
0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x73,
|
||||
0x3b, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_rawDescOnce sync.Once
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_rawDescData = file_controller_api_resources_hosts_v1_host_set_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_resources_hosts_v1_host_set_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resources_hosts_v1_host_set_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_resources_hosts_v1_host_set_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_resources_hosts_v1_host_set_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_controller_api_resources_hosts_v1_host_set_proto_goTypes = []interface{}{
|
||||
(*HostSet)(nil), // 0: controller.api.resources.hosts.v1.HostSet
|
||||
(*wrappers.StringValue)(nil), // 1: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp
|
||||
(*wrappers.BoolValue)(nil), // 3: google.protobuf.BoolValue
|
||||
(*wrappers.Int64Value)(nil), // 4: google.protobuf.Int64Value
|
||||
(*Host)(nil), // 5: controller.api.resources.hosts.v1.Host
|
||||
}
|
||||
var file_controller_api_resources_hosts_v1_host_set_proto_depIdxs = []int32{
|
||||
1, // 0: controller.api.resources.hosts.v1.HostSet.friendly_name:type_name -> google.protobuf.StringValue
|
||||
2, // 1: controller.api.resources.hosts.v1.HostSet.created_time:type_name -> google.protobuf.Timestamp
|
||||
2, // 2: controller.api.resources.hosts.v1.HostSet.updated_time:type_name -> google.protobuf.Timestamp
|
||||
3, // 3: controller.api.resources.hosts.v1.HostSet.disabled:type_name -> google.protobuf.BoolValue
|
||||
4, // 4: controller.api.resources.hosts.v1.HostSet.size:type_name -> google.protobuf.Int64Value
|
||||
5, // 5: controller.api.resources.hosts.v1.HostSet.hosts:type_name -> controller.api.resources.hosts.v1.Host
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_resources_hosts_v1_host_set_proto_init() }
|
||||
func file_controller_api_resources_hosts_v1_host_set_proto_init() {
|
||||
if File_controller_api_resources_hosts_v1_host_set_proto != nil {
|
||||
return
|
||||
}
|
||||
file_controller_api_resources_hosts_v1_host_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HostSet); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_resources_hosts_v1_host_set_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_resources_hosts_v1_host_set_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_resources_hosts_v1_host_set_proto_depIdxs,
|
||||
MessageInfos: file_controller_api_resources_hosts_v1_host_set_proto_msgTypes,
|
||||
}.Build()
|
||||
File_controller_api_resources_hosts_v1_host_set_proto = out.File
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_rawDesc = nil
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_goTypes = nil
|
||||
file_controller_api_resources_hosts_v1_host_set_proto_depIdxs = nil
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
+15
-6
@@ -1,12 +1,12 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: controller/api/v1/host_catalog_service.proto
|
||||
// source: controller/api/services/v1/host_catalog_service.proto
|
||||
|
||||
/*
|
||||
Package api is a reverse proxy.
|
||||
Package services is a reverse proxy.
|
||||
|
||||
It translates gRPC into RESTful JSON APIs.
|
||||
*/
|
||||
package api
|
||||
package services
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -135,7 +135,10 @@ func local_request_HostCatalogService_GetHostCatalog_0(ctx context.Context, mars
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostCatalogService_GetHostCatalog_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostCatalogService_GetHostCatalog_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -226,7 +229,10 @@ func local_request_HostCatalogService_ListHostCatalogs_0(ctx context.Context, ma
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostCatalogService_ListHostCatalogs_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostCatalogService_ListHostCatalogs_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -463,7 +469,10 @@ func local_request_HostCatalogService_UpdateHostCatalog_0(ctx context.Context, m
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostCatalogService_UpdateHostCatalog_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostCatalogService_UpdateHostCatalog_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
+299
-298
File diff suppressed because it is too large.
Load diff
+15
-6
@@ -1,12 +1,12 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: controller/api/v1/host_service.proto
|
||||
// source: controller/api/services/v1/host_service.proto
|
||||
|
||||
/*
|
||||
Package api is a reverse proxy.
|
||||
Package services is a reverse proxy.
|
||||
|
||||
It translates gRPC into RESTful JSON APIs.
|
||||
*/
|
||||
package api
|
||||
package services
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -157,7 +157,10 @@ func local_request_HostService_GetHost_0(ctx context.Context, marshaler runtime.
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostService_GetHost_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostService_GetHost_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -270,7 +273,10 @@ func local_request_HostService_ListHosts_0(ctx context.Context, marshaler runtim
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "host_catalog_id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostService_ListHosts_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostService_ListHosts_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -551,7 +557,10 @@ func local_request_HostService_UpdateHost_0(ctx context.Context, marshaler runti
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostService_UpdateHost_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostService_UpdateHost_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
+432
-429
File diff suppressed because it is too large.
Load diff
+23
-8
@@ -1,12 +1,12 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: controller/api/v1/host_set_service.proto
|
||||
// source: controller/api/services/v1/host_set_service.proto
|
||||
|
||||
/*
|
||||
Package api is a reverse proxy.
|
||||
Package services is a reverse proxy.
|
||||
|
||||
It translates gRPC into RESTful JSON APIs.
|
||||
*/
|
||||
package api
|
||||
package services
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -157,7 +157,10 @@ func local_request_HostSetService_GetHostSet_0(ctx context.Context, marshaler ru
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostSetService_GetHostSet_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostSetService_GetHostSet_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -270,7 +273,10 @@ func local_request_HostSetService_ListHostSets_0(ctx context.Context, marshaler
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "host_catalog_id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostSetService_ListHostSets_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostSetService_ListHostSets_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -551,7 +557,10 @@ func local_request_HostSetService_UpdateHostSet_0(ctx context.Context, marshaler
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostSetService_UpdateHostSet_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostSetService_UpdateHostSet_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -806,7 +815,10 @@ func local_request_HostSetService_AddToHostSet_0(ctx context.Context, marshaler
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostSetService_AddToHostSet_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostSetService_AddToHostSet_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -941,7 +953,10 @@ func local_request_HostSetService_RemoveFromHostSet_0(ctx context.Context, marsh
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
}
|
||||
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_HostSetService_RemoveFromHostSet_0); err != nil {
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_HostSetService_RemoveFromHostSet_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0
|
||||
// protoc v3.11.4
|
||||
// source: controller/api/view/v1/view.proto
|
||||
|
||||
package view
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
type View int32
|
||||
|
||||
const (
|
||||
View_BASIC View = 0
|
||||
View_FULL View = 1
|
||||
)
|
||||
|
||||
// Enum value maps for View.
|
||||
var (
|
||||
View_name = map[int32]string{
|
||||
0: "BASIC",
|
||||
1: "FULL",
|
||||
}
|
||||
View_value = map[string]int32{
|
||||
"BASIC": 0,
|
||||
"FULL": 1,
|
||||
}
|
||||
)
|
||||
|
||||
func (x View) Enum() *View {
|
||||
p := new(View)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x View) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (View) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_controller_api_view_v1_view_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (View) Type() protoreflect.EnumType {
|
||||
return &file_controller_api_view_v1_view_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x View) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use View.Descriptor instead.
|
||||
func (View) EnumDescriptor() ([]byte, []int) {
|
||||
return file_controller_api_view_v1_view_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
var File_controller_api_view_v1_view_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_controller_api_view_v1_view_proto_rawDesc = []byte{
|
||||
0x0a, 0x21, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
|
||||
0x2f, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e,
|
||||
0x61, 0x70, 0x69, 0x2e, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x76, 0x31, 0x2a, 0x1b, 0x0a, 0x04, 0x56,
|
||||
0x69, 0x65, 0x77, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x00, 0x12, 0x08,
|
||||
0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x01, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68,
|
||||
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70,
|
||||
0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x74, 0x6f, 0x77, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65,
|
||||
0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
|
||||
0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x3b, 0x76, 0x69, 0x65,
|
||||
0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_controller_api_view_v1_view_proto_rawDescOnce sync.Once
|
||||
file_controller_api_view_v1_view_proto_rawDescData = file_controller_api_view_v1_view_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_controller_api_view_v1_view_proto_rawDescGZIP() []byte {
|
||||
file_controller_api_view_v1_view_proto_rawDescOnce.Do(func() {
|
||||
file_controller_api_view_v1_view_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_view_v1_view_proto_rawDescData)
|
||||
})
|
||||
return file_controller_api_view_v1_view_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_controller_api_view_v1_view_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_controller_api_view_v1_view_proto_goTypes = []interface{}{
|
||||
(View)(0), // 0: controller.api.view.v1.View
|
||||
}
|
||||
var file_controller_api_view_v1_view_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_controller_api_view_v1_view_proto_init() }
|
||||
func file_controller_api_view_v1_view_proto_init() {
|
||||
if File_controller_api_view_v1_view_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_controller_api_view_v1_view_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 0,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_controller_api_view_v1_view_proto_goTypes,
|
||||
DependencyIndexes: file_controller_api_view_v1_view_proto_depIdxs,
|
||||
EnumInfos: file_controller_api_view_v1_view_proto_enumTypes,
|
||||
}.Build()
|
||||
File_controller_api_view_v1_view_proto = out.File
|
||||
file_controller_api_view_v1_view_proto_rawDesc = nil
|
||||
file_controller_api_view_v1_view_proto_goTypes = nil
|
||||
file_controller_api_view_v1_view_proto_depIdxs = nil
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resource.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resource;resource";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
// Host contains all fields related to a Host resource.
|
||||
message Host {
|
||||
// Output only.
|
||||
string uri = 1;
|
||||
google.protobuf.StringValue friendly_name = 2;
|
||||
|
||||
// The time this host was created.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp created_time = 3;
|
||||
// The time this host was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 4;
|
||||
|
||||
// Marks the host as disabled. Default is false.
|
||||
google.protobuf.BoolValue disabled = 5;
|
||||
|
||||
// This field is required.
|
||||
google.protobuf.StringValue address = 6;
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resource.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resource;resource";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
|
||||
enum HostCatalogType {
|
||||
HOST_CATALOG_TYPE_UNSPECIFIED = 0;
|
||||
HOST_CATALOG_TYPE_EC2 = 1;
|
||||
HOST_CATALOG_TYPE_STATIC = 2;
|
||||
}
|
||||
|
||||
// HostCatalog organizes Hosts into HostSets.
|
||||
message HostCatalog {
|
||||
// Output only.
|
||||
string uri = 1;
|
||||
google.protobuf.StringValue friendly_name = 2;
|
||||
|
||||
// The time this host_catalog was created.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp created_time = 3;
|
||||
// The time this host_catalog was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 4;
|
||||
|
||||
// Marks the host_catalog as disabled. Default is false.
|
||||
google.protobuf.BoolValue disabled = 5;
|
||||
|
||||
oneof type_details {
|
||||
StaticCatalogDetails static_host_catalog_details = 6;
|
||||
Ec2CatalogDetails ec2_host_catalog_details = 7;
|
||||
}
|
||||
|
||||
HostCatalogType type = 8;
|
||||
// TODO: Figure out how to provide relevant information regarding Host and Set lists on a catalog.
|
||||
}
|
||||
|
||||
message StaticCatalogDetails {
|
||||
// nothing here yet.
|
||||
}
|
||||
|
||||
message Ec2CatalogDetails {
|
||||
// The AWS regions from which this catalog will retrieve the EC2 instances.
|
||||
repeated string regions = 1;
|
||||
|
||||
// The access key used for authenticating with AWS when retrieving EC2 instance details.
|
||||
google.protobuf.StringValue access_key = 2;
|
||||
// Input only.
|
||||
google.protobuf.StringValue secret_key = 3;
|
||||
|
||||
// This value will never be returned in a response.
|
||||
google.protobuf.BoolValue rotate = 4;
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resource.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resource;resource";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "controller/api/resource/v1/host.proto";
|
||||
|
||||
// HostSets are a collection of sets created and managed by a catalog.
|
||||
message HostSet {
|
||||
// Output only.
|
||||
string uri = 1;
|
||||
google.protobuf.StringValue friendly_name = 2;
|
||||
|
||||
// The time this host_set was created.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp created_time = 3;
|
||||
// The time this host_set was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 4;
|
||||
|
||||
// Marks the host_set as disabled. Default is false.
|
||||
google.protobuf.BoolValue disabled = 5;
|
||||
|
||||
// The total count of hosts in this host set
|
||||
// Output only.
|
||||
google.protobuf.Int32Value size = 6;
|
||||
|
||||
// A list of hosts in this host set.
|
||||
// TODO: Figure out if this should be in the basic HostSet view and what view to use on the Hosts.
|
||||
// Output only.
|
||||
repeated Host hosts = 7;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resource.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resource;resource";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
// A Placeholder does nothing but establishes directory organization.
|
||||
message Placeholder {
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resources.hosts.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resources/hosts;hosts";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
// Host contains all fields related to a Host resource
|
||||
message Host {
|
||||
// Canonical path of the resource from the API's base URI
|
||||
// Output only.
|
||||
string path = 1;
|
||||
|
||||
// The type of the resource, to help differentiate schemas
|
||||
string type = 2;
|
||||
|
||||
// Friendly name, if set
|
||||
google.protobuf.StringValue friendly_name = 3;
|
||||
|
||||
// The time this host was created
|
||||
// Ouput only.
|
||||
google.protobuf.Timestamp created_time = 4;
|
||||
|
||||
// The time this host was last updated
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 5;
|
||||
|
||||
// Whether the host is disabled
|
||||
google.protobuf.BoolValue disabled = 6;
|
||||
|
||||
// The address (DNS or IP name) used to reach the host
|
||||
google.protobuf.StringValue address = 7;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resources.hosts.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resources/hosts;hosts";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
|
||||
// HostCatalog manages Hosts and HostSets
|
||||
message HostCatalog {
|
||||
// Canonical path of the resource from the API's base URI
|
||||
// Output only.
|
||||
string path = 1;
|
||||
|
||||
// The type of the resource, to help differentiate schemas
|
||||
string type = 2;
|
||||
|
||||
// Friendly name, if set
|
||||
google.protobuf.StringValue friendly_name = 3;
|
||||
|
||||
// The time this host was created
|
||||
// Output only.
|
||||
google.protobuf.Timestamp created_time = 4;
|
||||
|
||||
// The time this host was last updated
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 5;
|
||||
|
||||
// Whether the catalog is disabled
|
||||
google.protobuf.BoolValue disabled = 6;
|
||||
|
||||
// Attributes specific to the catalog type
|
||||
google.protobuf.Struct attributes = 7;
|
||||
}
|
||||
|
||||
message StaticHostCatalogDetails {
|
||||
// nothing here yet.
|
||||
}
|
||||
|
||||
message AwsEc2HostCatalogDetails {
|
||||
// The AWS regions from which this catalog will retrieve the EC2 instances.
|
||||
repeated string regions = 1;
|
||||
|
||||
// The access key used for authenticating with AWS when retrieving EC2 instance details.
|
||||
google.protobuf.StringValue access_key = 2;
|
||||
// Input only.
|
||||
google.protobuf.StringValue secret_key = 3;
|
||||
|
||||
// This value will never be returned in a response.
|
||||
google.protobuf.BoolValue rotate = 4;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resources.hosts.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resources/hosts;hosts";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "controller/api/resources/hosts/v1/host.proto";
|
||||
|
||||
// HostSet is a collection of Hosts created and managed by a HostCatalog
|
||||
message HostSet {
|
||||
// Canonical path of the resource from the API's base URI
|
||||
// Output only.
|
||||
string path = 1;
|
||||
|
||||
// The type of the resource, to help differentiate schemas
|
||||
string type = 2;
|
||||
|
||||
// Friendly name, if set
|
||||
google.protobuf.StringValue friendly_name = 3;
|
||||
|
||||
// The time this host was created
|
||||
// Output only.
|
||||
google.protobuf.Timestamp created_time = 4;
|
||||
|
||||
// The time this host was last updated
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 5;
|
||||
|
||||
// Whether the host set is disabled
|
||||
google.protobuf.BoolValue disabled = 6;
|
||||
|
||||
// The total count of hosts in this host set
|
||||
// Output only.
|
||||
google.protobuf.Int64Value size = 7;
|
||||
|
||||
// A list of hosts in this host set
|
||||
// TODO: Figure out if this should be in the basic HostSet view and what
|
||||
// view to use on the Hosts.
|
||||
// Output only.
|
||||
repeated Host hosts = 8;
|
||||
}
|
||||
+11
-13
@@ -1,14 +1,13 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.v1;
|
||||
package controller.api.services.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api;api";
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/services;services";
|
||||
|
||||
import "protoc-gen-swagger/options/annotations.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "controller/api/resource/v1/host_catalog.proto";
|
||||
import "controller/api/view/v1/view.proto";
|
||||
import "controller/api/resources/hosts/v1/host_catalog.proto";
|
||||
|
||||
service HostCatalogService {
|
||||
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_tag) = {
|
||||
@@ -71,45 +70,44 @@ message GetHostCatalogRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
string id = 3;
|
||||
api.view.v1.View view = 4;
|
||||
string view = 4;
|
||||
}
|
||||
|
||||
message GetHostCatalogResponse {
|
||||
api.resource.v1.HostCatalog item = 1;
|
||||
api.resources.hosts.v1.HostCatalog item = 1;
|
||||
}
|
||||
|
||||
message ListHostCatalogsRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
|
||||
api.view.v1.View view = 3;
|
||||
string view = 3;
|
||||
}
|
||||
|
||||
message ListHostCatalogsResponse {
|
||||
repeated api.resource.v1.HostCatalog items = 1;
|
||||
repeated api.resources.hosts.v1.HostCatalog items = 1;
|
||||
}
|
||||
|
||||
message CreateHostCatalogRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
api.resource.v1.HostCatalog item = 3;
|
||||
api.resources.hosts.v1.HostCatalog item = 3;
|
||||
}
|
||||
|
||||
message CreateHostCatalogResponse {
|
||||
string uri = 1;
|
||||
api.resource.v1.HostCatalog item = 2;
|
||||
api.resources.hosts.v1.HostCatalog item = 2;
|
||||
}
|
||||
|
||||
message UpdateHostCatalogRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
string id = 3;
|
||||
api.resource.v1.HostCatalog item = 4;
|
||||
api.resources.hosts.v1.HostCatalog item = 4;
|
||||
google.protobuf.FieldMask update_mask = 5;
|
||||
}
|
||||
|
||||
message UpdateHostCatalogResponse {
|
||||
api.resource.v1.HostCatalog item = 1;
|
||||
api.resources.hosts.v1.HostCatalog item = 1;
|
||||
}
|
||||
|
||||
message DeleteHostCatalogRequest {
|
||||
+11
-13
@@ -1,14 +1,13 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.v1;
|
||||
package controller.api.services.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api;api";
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/services;services";
|
||||
|
||||
import "protoc-gen-swagger/options/annotations.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "controller/api/resource/v1/host.proto";
|
||||
import "controller/api/view/v1/view.proto";
|
||||
import "controller/api/resources/hosts/v1/host.proto";
|
||||
|
||||
service HostService {
|
||||
// This retrieves the host specified in the request using the basic view.
|
||||
@@ -64,35 +63,34 @@ message GetHostRequest {
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
string id = 4;
|
||||
api.view.v1.View view = 5;
|
||||
string view = 5;
|
||||
}
|
||||
|
||||
message GetHostResponse {
|
||||
api.resource.v1.Host item = 1;
|
||||
api.resources.hosts.v1.Host item = 1;
|
||||
}
|
||||
|
||||
message ListHostsRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
|
||||
api.view.v1.View view = 4;
|
||||
string view = 4;
|
||||
}
|
||||
|
||||
message ListHostsResponse {
|
||||
repeated api.resource.v1.Host items = 1;
|
||||
repeated api.resources.hosts.v1.Host items = 1;
|
||||
}
|
||||
|
||||
message CreateHostRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
api.resource.v1.Host item = 4;
|
||||
api.resources.hosts.v1.Host item = 4;
|
||||
}
|
||||
|
||||
message CreateHostResponse {
|
||||
string ref = 1;
|
||||
api.resource.v1.Host item = 2;
|
||||
api.resources.hosts.v1.Host item = 2;
|
||||
}
|
||||
|
||||
message UpdateHostRequest {
|
||||
@@ -100,12 +98,12 @@ message UpdateHostRequest {
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
string id = 4;
|
||||
api.resource.v1.Host item = 5;
|
||||
api.resources.hosts.v1.Host item = 5;
|
||||
google.protobuf.FieldMask update_mask = 6;
|
||||
}
|
||||
|
||||
message UpdateHostResponse {
|
||||
api.resource.v1.Host item = 1;
|
||||
api.resources.hosts.v1.Host item = 1;
|
||||
}
|
||||
|
||||
message DeleteHostRequest {
|
||||
+16
-17
@@ -1,16 +1,15 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.v1;
|
||||
package controller.api.services.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api;api";
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/services;services";
|
||||
|
||||
import "protoc-gen-swagger/options/annotations.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "controller/api/resource/v1/host_set.proto";
|
||||
import "controller/api/resource/v1/host.proto";
|
||||
import "controller/api/view/v1/view.proto";
|
||||
import "controller/api/resources/hosts/v1/host.proto";
|
||||
import "controller/api/resources/hosts/v1/host_set.proto";
|
||||
|
||||
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
|
||||
info: {
|
||||
@@ -96,34 +95,34 @@ message GetHostSetRequest {
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
string id = 4;
|
||||
api.view.v1.View view = 5;
|
||||
string view = 5;
|
||||
}
|
||||
|
||||
message GetHostSetResponse {
|
||||
api.resource.v1.HostSet item = 1;
|
||||
api.resources.hosts.v1.HostSet item = 1;
|
||||
}
|
||||
|
||||
message ListHostSetsRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
api.view.v1.View view = 4;
|
||||
string view = 4;
|
||||
}
|
||||
|
||||
message ListHostSetsResponse {
|
||||
repeated api.resource.v1.HostSet items = 1;
|
||||
repeated api.resources.hosts.v1.HostSet items = 1;
|
||||
}
|
||||
|
||||
message CreateHostSetRequest {
|
||||
string org_id = 1;
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
api.resource.v1.HostSet item = 4;
|
||||
api.resources.hosts.v1.HostSet item = 4;
|
||||
}
|
||||
|
||||
message CreateHostSetResponse {
|
||||
string uri = 1;
|
||||
api.resource.v1.HostSet item = 2;
|
||||
api.resources.hosts.v1.HostSet item = 2;
|
||||
}
|
||||
|
||||
message UpdateHostSetRequest {
|
||||
@@ -131,12 +130,12 @@ message UpdateHostSetRequest {
|
||||
string project_id = 2;
|
||||
string host_catalog_id = 3;
|
||||
string id = 4;
|
||||
api.resource.v1.HostSet item = 5;
|
||||
api.resources.hosts.v1.HostSet item = 5;
|
||||
google.protobuf.FieldMask update_mask = 6;
|
||||
}
|
||||
|
||||
message UpdateHostSetResponse {
|
||||
api.resource.v1.HostSet item = 1;
|
||||
api.resources.hosts.v1.HostSet item = 1;
|
||||
}
|
||||
|
||||
message DeleteHostSetRequest {
|
||||
@@ -156,9 +155,9 @@ message AddToHostSetRequest {
|
||||
string host_catalog_id = 3;
|
||||
string id = 4;
|
||||
|
||||
// A list of host uris which will be added to this host set. Each host referenced here must be a child of the
|
||||
// A list of host IDs which will be added to this host set. Each host referenced here must be a child of the
|
||||
// same host catalog that this host set is a child of.
|
||||
repeated string host_uris = 5;
|
||||
repeated string host_ids = 5;
|
||||
}
|
||||
|
||||
message AddToHostSetResponse {
|
||||
@@ -171,8 +170,8 @@ message RemoveFromHostSetRequest {
|
||||
// This host set's id.
|
||||
string id = 4;
|
||||
|
||||
// A list of host uris which should not be in the host set when this request returns.
|
||||
repeated string host_uris = 5;
|
||||
// A list of host IDs which should not be in the host set when this request returns.
|
||||
repeated string host_ids = 5;
|
||||
}
|
||||
|
||||
message RemoveFromHostSetResponse {
|
||||
@@ -1,16 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api;api";
|
||||
|
||||
import "protoc-gen-swagger/options/annotations.proto";
|
||||
import "controller/api/resource/v1/placeholder.proto";
|
||||
|
||||
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
|
||||
|
||||
};
|
||||
|
||||
// Placeholder Service contains nothing but organization details.
|
||||
service PlaceholderService {
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.view.v1;
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/view;view";
|
||||
|
||||
// Note: This does not follow any of the good proto practices of using enums (allowing 0 represent unspecified, etc.)
|
||||
// This is designed this way in order to generate cleaner and easier to understand swagger.
|
||||
|
||||
enum View {
|
||||
BASIC = 0;
|
||||
FULL = 1;
|
||||
}
|
||||
Reference in new issue
Block a user