-
Notifications
You must be signed in to change notification settings - Fork 2
/
appresourcetypeservicegetresponse.go
63 lines (53 loc) · 2.01 KB
/
appresourcetypeservicegetresponse.go
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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/conductorone/conductorone-sdk-go/pkg/utils"
)
// AppResourceTypeServiceGetResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
type AppResourceTypeServiceGetResponseExpanded struct {
// The type of the serialized message.
AtType *string `json:"@type,omitempty"`
AdditionalProperties map[string]interface{} `additionalProperties:"true" json:"-"`
}
func (a AppResourceTypeServiceGetResponseExpanded) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(a, "", false)
}
func (a *AppResourceTypeServiceGetResponseExpanded) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil {
return err
}
return nil
}
func (o *AppResourceTypeServiceGetResponseExpanded) GetAtType() *string {
if o == nil {
return nil
}
return o.AtType
}
func (o *AppResourceTypeServiceGetResponseExpanded) GetAdditionalProperties() map[string]interface{} {
if o == nil {
return nil
}
return o.AdditionalProperties
}
// The AppResourceTypeServiceGetResponse contains an expanded array containing the expanded values indicated by the expand mask
//
// in the request and an app resource type view containing the resource type and JSONPATHs indicating which objects are where in the expand mask.
type AppResourceTypeServiceGetResponse struct {
// The AppResourceTypeView message.
AppResourceTypeView *AppResourceTypeView `json:"appResourceTypeView,omitempty"`
// List of serialized related objects.
Expanded []AppResourceTypeServiceGetResponseExpanded `json:"expanded,omitempty"`
}
func (o *AppResourceTypeServiceGetResponse) GetAppResourceTypeView() *AppResourceTypeView {
if o == nil {
return nil
}
return o.AppResourceTypeView
}
func (o *AppResourceTypeServiceGetResponse) GetExpanded() []AppResourceTypeServiceGetResponseExpanded {
if o == nil {
return nil
}
return o.Expanded
}