chore(API): Update the API definitions for RDP (#6758)
This commit is contained in:
1 parent
b495fe653b
commit
6f03523372
30 files changed
+4189
-268
No files matched your search
@@ -107,6 +107,10 @@ type structInfo struct {
|
||||
// fields.
|
||||
versionEnabled bool
|
||||
|
||||
// mimeTypeEnabled indicates that we should build a WithMimeType API option
|
||||
// for this resource.
|
||||
mimeTypeEnabled bool
|
||||
|
||||
// This is used for building the api path.
|
||||
pluralResourceName string
|
||||
|
||||
@@ -1273,6 +1277,15 @@ var inputStructs = []*structInfo{
|
||||
mapstructureConversionTemplate,
|
||||
},
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.RdpTargetAttributes{},
|
||||
outFile: "sessionrecordings/rdp_target_attributes.gen.go",
|
||||
subtypeName: "Rdp",
|
||||
parentTypeName: "Target",
|
||||
templates: []*template.Template{
|
||||
mapstructureConversionTemplate,
|
||||
},
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.Host{},
|
||||
outFile: "sessionrecordings/host.gen.go",
|
||||
@@ -1312,6 +1325,15 @@ var inputStructs = []*structInfo{
|
||||
mapstructureConversionTemplate,
|
||||
},
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.UsernamePasswordDomainCredentialAttributes{},
|
||||
outFile: "sessionrecordings/username_password_domain_credential_attributes.gen.go",
|
||||
subtype: "username_password_domain",
|
||||
parentTypeName: "Credential",
|
||||
templates: []*template.Template{
|
||||
mapstructureConversionTemplate,
|
||||
},
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.JsonCredentialAttributes{},
|
||||
outFile: "sessionrecordings/json_credential_attributes.gen.go",
|
||||
@@ -1362,6 +1384,15 @@ var inputStructs = []*structInfo{
|
||||
mapstructureConversionTemplate,
|
||||
},
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.VaultLdapCredentialLibraryAttributes{},
|
||||
outFile: "sessionrecordings/vault_ldap_credential_library_attributes.gen.go",
|
||||
subtype: "vault-ldap",
|
||||
parentTypeName: "CredentialLibrary",
|
||||
templates: []*template.Template{
|
||||
mapstructureConversionTemplate,
|
||||
},
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.CredentialStore{},
|
||||
outFile: "sessionrecordings/credential_store.gen.go",
|
||||
@@ -1379,6 +1410,10 @@ var inputStructs = []*structInfo{
|
||||
inProto: &session_recordings.ValuesAtTime{},
|
||||
outFile: "sessionrecordings/values_at_time.gen.go",
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.RecordingState{},
|
||||
outFile: "sessionrecordings/recording_state.gen.go",
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.ConnectionRecording{},
|
||||
outFile: "sessionrecordings/connection_recording.gen.go",
|
||||
@@ -1401,6 +1436,23 @@ var inputStructs = []*structInfo{
|
||||
{Name: "BytesDown", JsonTags: []string{"string"}},
|
||||
},
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.Export{},
|
||||
outFile: "sessionrecordings/export.gen.go",
|
||||
pluralResourceName: "exports",
|
||||
createResponseTypes: []string{CreateResponseType, ReadResponseType, ListResponseType, DeleteResponseType}, // DeleteResponseType is used for cancel.
|
||||
},
|
||||
{
|
||||
inProto: &session_recordings.Video{},
|
||||
outFile: "sessionrecordings/video.gen.go",
|
||||
fieldOverrides: []fieldInfo{
|
||||
// int64 fields get marshalled by protobuf as strings, so we have
|
||||
// to tell the json parser that their json representation is a
|
||||
// string but they go into Go int64 types.
|
||||
{Name: "LengthSeconds", JsonTags: []string{"string"}},
|
||||
{Name: "SizeBytes", JsonTags: []string{"string"}},
|
||||
},
|
||||
},
|
||||
{
|
||||
// this must be the last block of session recording blocks, otherwise
|
||||
// the bits beyond inProto and outFile will get overwritten by
|
||||
@@ -1418,6 +1470,7 @@ var inputStructs = []*structInfo{
|
||||
recursiveListing: true,
|
||||
skipListFiltering: true,
|
||||
versionEnabled: false,
|
||||
mimeTypeEnabled: true,
|
||||
fieldOverrides: []fieldInfo{
|
||||
// int64 fields get marshalled by protobuf as strings, so we have
|
||||
// to tell the json parser that their json representation is a
|
||||
|
||||
Reference in new issue
Block a user