summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matterbridge/msgraph.go/beta/TrustFrameworkKeySetAction.go
blob: 7a46b522963884884f8f9717aae79fd6ad571d41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// Code generated by msgraph-generate.go DO NOT EDIT.

package msgraph

import "context"

// TrustFrameworkKeySetGenerateKeyRequestParameter undocumented
type TrustFrameworkKeySetGenerateKeyRequestParameter struct {
	// Use undocumented
	Use *string `json:"use,omitempty"`
	// Kty undocumented
	Kty *string `json:"kty,omitempty"`
	// Nbf undocumented
	Nbf *int `json:"nbf,omitempty"`
	// Exp undocumented
	Exp *int `json:"exp,omitempty"`
}

// TrustFrameworkKeySetUploadSecretRequestParameter undocumented
type TrustFrameworkKeySetUploadSecretRequestParameter struct {
	// Use undocumented
	Use *string `json:"use,omitempty"`
	// K undocumented
	K *string `json:"k,omitempty"`
	// Nbf undocumented
	Nbf *int `json:"nbf,omitempty"`
	// Exp undocumented
	Exp *int `json:"exp,omitempty"`
}

// TrustFrameworkKeySetUploadCertificateRequestParameter undocumented
type TrustFrameworkKeySetUploadCertificateRequestParameter struct {
	// Key undocumented
	Key *string `json:"key,omitempty"`
}

// TrustFrameworkKeySetUploadPkcs12RequestParameter undocumented
type TrustFrameworkKeySetUploadPkcs12RequestParameter struct {
	// Key undocumented
	Key *string `json:"key,omitempty"`
	// Password undocumented
	Password *string `json:"password,omitempty"`
}

//
type TrustFrameworkKeySetGenerateKeyRequestBuilder struct{ BaseRequestBuilder }

// GenerateKey action undocumented
func (b *TrustFrameworkKeySetRequestBuilder) GenerateKey(reqObj *TrustFrameworkKeySetGenerateKeyRequestParameter) *TrustFrameworkKeySetGenerateKeyRequestBuilder {
	bb := &TrustFrameworkKeySetGenerateKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
	bb.BaseRequestBuilder.baseURL += "/generateKey"
	bb.BaseRequestBuilder.requestObject = reqObj
	return bb
}

//
type TrustFrameworkKeySetGenerateKeyRequest struct{ BaseRequest }

//
func (b *TrustFrameworkKeySetGenerateKeyRequestBuilder) Request() *TrustFrameworkKeySetGenerateKeyRequest {
	return &TrustFrameworkKeySetGenerateKeyRequest{
		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
	}
}

//
func (r *TrustFrameworkKeySetGenerateKeyRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
	return
}

//
type TrustFrameworkKeySetUploadSecretRequestBuilder struct{ BaseRequestBuilder }

// UploadSecret action undocumented
func (b *TrustFrameworkKeySetRequestBuilder) UploadSecret(reqObj *TrustFrameworkKeySetUploadSecretRequestParameter) *TrustFrameworkKeySetUploadSecretRequestBuilder {
	bb := &TrustFrameworkKeySetUploadSecretRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
	bb.BaseRequestBuilder.baseURL += "/uploadSecret"
	bb.BaseRequestBuilder.requestObject = reqObj
	return bb
}

//
type TrustFrameworkKeySetUploadSecretRequest struct{ BaseRequest }

//
func (b *TrustFrameworkKeySetUploadSecretRequestBuilder) Request() *TrustFrameworkKeySetUploadSecretRequest {
	return &TrustFrameworkKeySetUploadSecretRequest{
		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
	}
}

//
func (r *TrustFrameworkKeySetUploadSecretRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
	return
}

//
type TrustFrameworkKeySetUploadCertificateRequestBuilder struct{ BaseRequestBuilder }

// UploadCertificate action undocumented
func (b *TrustFrameworkKeySetRequestBuilder) UploadCertificate(reqObj *TrustFrameworkKeySetUploadCertificateRequestParameter) *TrustFrameworkKeySetUploadCertificateRequestBuilder {
	bb := &TrustFrameworkKeySetUploadCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
	bb.BaseRequestBuilder.baseURL += "/uploadCertificate"
	bb.BaseRequestBuilder.requestObject = reqObj
	return bb
}

//
type TrustFrameworkKeySetUploadCertificateRequest struct{ BaseRequest }

//
func (b *TrustFrameworkKeySetUploadCertificateRequestBuilder) Request() *TrustFrameworkKeySetUploadCertificateRequest {
	return &TrustFrameworkKeySetUploadCertificateRequest{
		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
	}
}

//
func (r *TrustFrameworkKeySetUploadCertificateRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
	return
}

//
type TrustFrameworkKeySetUploadPkcs12RequestBuilder struct{ BaseRequestBuilder }

// UploadPkcs12 action undocumented
func (b *TrustFrameworkKeySetRequestBuilder) UploadPkcs12(reqObj *TrustFrameworkKeySetUploadPkcs12RequestParameter) *TrustFrameworkKeySetUploadPkcs12RequestBuilder {
	bb := &TrustFrameworkKeySetUploadPkcs12RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
	bb.BaseRequestBuilder.baseURL += "/uploadPkcs12"
	bb.BaseRequestBuilder.requestObject = reqObj
	return bb
}

//
type TrustFrameworkKeySetUploadPkcs12Request struct{ BaseRequest }

//
func (b *TrustFrameworkKeySetUploadPkcs12RequestBuilder) Request() *TrustFrameworkKeySetUploadPkcs12Request {
	return &TrustFrameworkKeySetUploadPkcs12Request{
		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
	}
}

//
func (r *TrustFrameworkKeySetUploadPkcs12Request) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
	return
}