Skip to content

Commit

Permalink
[chore] add some field into the api create endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Aug 24, 2024
1 parent 4522212 commit 24b87df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions vngcloud/services/network/v1/endpoint_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,21 @@ func (s *CreateEndpointRequest) WithDescription(pdesp string) ICreateEndpointReq
return s
}

func (s *CreateEndpointRequest) WithPoc(pyes bool) ICreateEndpointRequest {
s.ResourceInfo.IsPoc = pyes
return s
}

func (s *CreateEndpointRequest) WithBuyMorePoc(pyes bool) ICreateEndpointRequest {
s.ResourceInfo.IsBuyMorePoc = pyes
return s
}

func (s *CreateEndpointRequest) WithEnableAutoRenew(pyes bool) ICreateEndpointRequest {
s.ResourceInfo.IsEnableAutoRenew = pyes
return s
}

type DeleteEndpointByIdRequest struct {
EndpointServiceUuid string `json:"endpointServiceUuid"`
EndpointUuid string `json:"endpointUuid"`
Expand Down
3 changes: 3 additions & 0 deletions vngcloud/services/network/v1/irequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ type ICreateEndpointRequest interface {
WithServiceUuid(pserviceUuid string) ICreateEndpointRequest
WithCategoryUuid(pcategoryUuid string) ICreateEndpointRequest
WithEndpointName(pendpointName string) ICreateEndpointRequest
WithPoc(pyes bool) ICreateEndpointRequest
WithBuyMorePoc(pyes bool) ICreateEndpointRequest
WithEnableAutoRenew(pyes bool) ICreateEndpointRequest
AddUserAgent(pagent ...string) ICreateEndpointRequest
}

Expand Down

0 comments on commit 24b87df

Please sign in to comment.