Skip to content

Commit

Permalink
fix(ATracker): remove endpoint field from CloudlogsEndpoint (#318)
Browse files Browse the repository at this point in the history
Signed-off-by: Veena Rao <veenar@us.ibm.com>
  • Loading branch information
veenanr committed Apr 10, 2024
1 parent cfdbb06 commit 51b4afc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 42 deletions.
17 changes: 1 addition & 16 deletions atrackerv2/atracker_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,6 @@ func (atracker *AtrackerV2) PutSettingsWithContext(ctx context.Context, putSetti
type CloudLogsEndpoint struct {
// The CRN of the IBM Cloud Logs instance.
TargetCRN *string `json:"target_crn" validate:"required"`

// The host name of the IBM Cloud Logs endpoint.
Endpoint *string `json:"endpoint" validate:"required"`
}

// UnmarshalCloudLogsEndpoint unmarshals an instance of CloudLogsEndpoint from the specified map of raw messages.
Expand All @@ -1044,10 +1041,6 @@ func UnmarshalCloudLogsEndpoint(m map[string]json.RawMessage, result interface{}
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "endpoint", &obj.Endpoint)
if err != nil {
return
}
reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj))
return
}
Expand All @@ -1056,16 +1049,12 @@ func UnmarshalCloudLogsEndpoint(m map[string]json.RawMessage, result interface{}
type CloudLogsEndpointPrototype struct {
// The CRN of the IBM Cloud Logs instance.
TargetCRN *string `json:"target_crn" validate:"required"`

// The host name of the IBM Cloud Logs endpoint.
Endpoint *string `json:"endpoint" validate:"required"`
}

// NewCloudLogsEndpointPrototype : Instantiate CloudLogsEndpointPrototype (Generic Model Constructor)
func (*AtrackerV2) NewCloudLogsEndpointPrototype(targetCRN string, endpoint string) (_model *CloudLogsEndpointPrototype, err error) {
func (*AtrackerV2) NewCloudLogsEndpointPrototype(targetCRN string) (_model *CloudLogsEndpointPrototype, err error) {
_model = &CloudLogsEndpointPrototype{
TargetCRN: core.StringPtr(targetCRN),
Endpoint: core.StringPtr(endpoint),
}
err = core.ValidateStruct(_model, "required parameters")
return
Expand All @@ -1078,10 +1067,6 @@ func UnmarshalCloudLogsEndpointPrototype(m map[string]json.RawMessage, result in
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "endpoint", &obj.Endpoint)
if err != nil {
return
}
reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj))
return
}
Expand Down

0 comments on commit 51b4afc

Please sign in to comment.