refactor: bump codegen to pull in more /orgs APIs (#93)
This commit is contained in:
parent
99d573bdaa
commit
9fe4197625
@ -6,7 +6,7 @@ declare -r API_DIR="${ROOT_DIR}/internal/api"
|
||||
|
||||
declare -r GENERATED_PATTERN='^// Code generated .* DO NOT EDIT\.$'
|
||||
declare -r GENERATOR_DOCKER_IMG=openapitools/openapi-generator-cli:v5.1.0
|
||||
declare -r OPENAPI_COMMIT=a30052843e20aa24a0603bfcbd7972167bb20321
|
||||
declare -r OPENAPI_COMMIT=dd675843404dbb3881f4d245581b916df319091f
|
||||
|
||||
# Clean up all the generated files in the target directory.
|
||||
rm $(grep -Elr "${GENERATED_PATTERN}" "${API_DIR}")
|
||||
@ -14,17 +14,17 @@ rm $(grep -Elr "${GENERATED_PATTERN}" "${API_DIR}")
|
||||
# Download our target API spec.
|
||||
# NOTE: openapi-generator supports HTTP references to API docs, but using that feature
|
||||
# causes the host of the URL to be injected into the base paths of generated code.
|
||||
curl -o ${ROOT_DIR}/internal/api/cli.yml https://raw.githubusercontent.com/influxdata/openapi/${OPENAPI_COMMIT}/contracts/cli.yml
|
||||
curl -o "${API_DIR}/cli.yml" https://raw.githubusercontent.com/influxdata/openapi/${OPENAPI_COMMIT}/contracts/cli.yml
|
||||
|
||||
# Run the generator - This produces many more files than we want to track in git.
|
||||
docker run --rm -it -u "$(id -u):$(id -g)" \
|
||||
-v "${ROOT_DIR}":/influx \
|
||||
-v "${API_DIR}":/api \
|
||||
${GENERATOR_DOCKER_IMG} \
|
||||
generate \
|
||||
-g go \
|
||||
-i /influx/internal/api/cli.yml \
|
||||
-o /influx/internal/api \
|
||||
-t /influx/internal/api/templates \
|
||||
-i /api/cli.yml \
|
||||
-o /api \
|
||||
-t /api/templates \
|
||||
--additional-properties packageName=api,enumClassPrefix=true,generateInterfaces=true
|
||||
|
||||
# Edit the generated files.
|
||||
|
File diff suppressed because it is too large
Load Diff
142
internal/api/model_add_resource_member_request_body.gen.go
Normal file
142
internal/api/model_add_resource_member_request_body.gen.go
Normal file
@ -0,0 +1,142 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// AddResourceMemberRequestBody struct for AddResourceMemberRequestBody
|
||||
type AddResourceMemberRequestBody struct {
|
||||
Id string `json:"id"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
// NewAddResourceMemberRequestBody instantiates a new AddResourceMemberRequestBody object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewAddResourceMemberRequestBody(id string) *AddResourceMemberRequestBody {
|
||||
this := AddResourceMemberRequestBody{}
|
||||
this.Id = id
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewAddResourceMemberRequestBodyWithDefaults instantiates a new AddResourceMemberRequestBody object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewAddResourceMemberRequestBodyWithDefaults() *AddResourceMemberRequestBody {
|
||||
this := AddResourceMemberRequestBody{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *AddResourceMemberRequestBody) GetId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AddResourceMemberRequestBody) GetIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Id, true
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *AddResourceMemberRequestBody) SetId(v string) {
|
||||
o.Id = v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *AddResourceMemberRequestBody) GetName() string {
|
||||
if o == nil || o.Name == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AddResourceMemberRequestBody) GetNameOk() (*string, bool) {
|
||||
if o == nil || o.Name == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *AddResourceMemberRequestBody) HasName() bool {
|
||||
if o != nil && o.Name != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *AddResourceMemberRequestBody) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
func (o AddResourceMemberRequestBody) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if o.Name != nil {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableAddResourceMemberRequestBody struct {
|
||||
value *AddResourceMemberRequestBody
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableAddResourceMemberRequestBody) Get() *AddResourceMemberRequestBody {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableAddResourceMemberRequestBody) Set(val *AddResourceMemberRequestBody) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableAddResourceMemberRequestBody) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableAddResourceMemberRequestBody) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableAddResourceMemberRequestBody(val *AddResourceMemberRequestBody) *NullableAddResourceMemberRequestBody {
|
||||
return &NullableAddResourceMemberRequestBody{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableAddResourceMemberRequestBody) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableAddResourceMemberRequestBody) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
151
internal/api/model_patch_organization_request.gen.go
Normal file
151
internal/api/model_patch_organization_request.gen.go
Normal file
@ -0,0 +1,151 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// PatchOrganizationRequest struct for PatchOrganizationRequest
|
||||
type PatchOrganizationRequest struct {
|
||||
// New name to set on the organization
|
||||
Name *string `json:"name,omitempty"`
|
||||
// New description to set on the organization
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewPatchOrganizationRequest instantiates a new PatchOrganizationRequest object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewPatchOrganizationRequest() *PatchOrganizationRequest {
|
||||
this := PatchOrganizationRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewPatchOrganizationRequestWithDefaults instantiates a new PatchOrganizationRequest object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewPatchOrganizationRequestWithDefaults() *PatchOrganizationRequest {
|
||||
this := PatchOrganizationRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *PatchOrganizationRequest) GetName() string {
|
||||
if o == nil || o.Name == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PatchOrganizationRequest) GetNameOk() (*string, bool) {
|
||||
if o == nil || o.Name == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *PatchOrganizationRequest) HasName() bool {
|
||||
if o != nil && o.Name != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *PatchOrganizationRequest) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *PatchOrganizationRequest) GetDescription() string {
|
||||
if o == nil || o.Description == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PatchOrganizationRequest) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil || o.Description == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description, true
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *PatchOrganizationRequest) HasDescription() bool {
|
||||
if o != nil && o.Description != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *PatchOrganizationRequest) SetDescription(v string) {
|
||||
o.Description = &v
|
||||
}
|
||||
|
||||
func (o PatchOrganizationRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Name != nil {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if o.Description != nil {
|
||||
toSerialize["description"] = o.Description
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullablePatchOrganizationRequest struct {
|
||||
value *PatchOrganizationRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullablePatchOrganizationRequest) Get() *PatchOrganizationRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullablePatchOrganizationRequest) Set(val *PatchOrganizationRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullablePatchOrganizationRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullablePatchOrganizationRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullablePatchOrganizationRequest(val *PatchOrganizationRequest) *NullablePatchOrganizationRequest {
|
||||
return &NullablePatchOrganizationRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullablePatchOrganizationRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullablePatchOrganizationRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
142
internal/api/model_post_organization_request.gen.go
Normal file
142
internal/api/model_post_organization_request.gen.go
Normal file
@ -0,0 +1,142 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// PostOrganizationRequest struct for PostOrganizationRequest
|
||||
type PostOrganizationRequest struct {
|
||||
Name string `json:"name"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewPostOrganizationRequest instantiates a new PostOrganizationRequest object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewPostOrganizationRequest(name string) *PostOrganizationRequest {
|
||||
this := PostOrganizationRequest{}
|
||||
this.Name = name
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewPostOrganizationRequestWithDefaults instantiates a new PostOrganizationRequest object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewPostOrganizationRequestWithDefaults() *PostOrganizationRequest {
|
||||
this := PostOrganizationRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *PostOrganizationRequest) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PostOrganizationRequest) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *PostOrganizationRequest) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *PostOrganizationRequest) GetDescription() string {
|
||||
if o == nil || o.Description == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PostOrganizationRequest) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil || o.Description == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description, true
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *PostOrganizationRequest) HasDescription() bool {
|
||||
if o != nil && o.Description != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *PostOrganizationRequest) SetDescription(v string) {
|
||||
o.Description = &v
|
||||
}
|
||||
|
||||
func (o PostOrganizationRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if o.Description != nil {
|
||||
toSerialize["description"] = o.Description
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullablePostOrganizationRequest struct {
|
||||
value *PostOrganizationRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullablePostOrganizationRequest) Get() *PostOrganizationRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullablePostOrganizationRequest) Set(val *PostOrganizationRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullablePostOrganizationRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullablePostOrganizationRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullablePostOrganizationRequest(val *PostOrganizationRequest) *NullablePostOrganizationRequest {
|
||||
return &NullablePostOrganizationRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullablePostOrganizationRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullablePostOrganizationRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
295
internal/api/model_resource_member.gen.go
Normal file
295
internal/api/model_resource_member.gen.go
Normal file
@ -0,0 +1,295 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ResourceMember struct for ResourceMember
|
||||
type ResourceMember struct {
|
||||
Id *string `json:"id,omitempty"`
|
||||
OauthID *string `json:"oauthID,omitempty"`
|
||||
Name string `json:"name"`
|
||||
// If inactive the user is inactive.
|
||||
Status *string `json:"status,omitempty"`
|
||||
Links *UserResponseLinks `json:"links,omitempty"`
|
||||
Role *string `json:"role,omitempty"`
|
||||
}
|
||||
|
||||
// NewResourceMember instantiates a new ResourceMember object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewResourceMember(name string) *ResourceMember {
|
||||
this := ResourceMember{}
|
||||
this.Name = name
|
||||
var status string = "active"
|
||||
this.Status = &status
|
||||
var role string = "member"
|
||||
this.Role = &role
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewResourceMemberWithDefaults instantiates a new ResourceMember object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewResourceMemberWithDefaults() *ResourceMember {
|
||||
this := ResourceMember{}
|
||||
var status string = "active"
|
||||
this.Status = &status
|
||||
var role string = "member"
|
||||
this.Role = &role
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *ResourceMember) GetId() string {
|
||||
if o == nil || o.Id == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMember) GetIdOk() (*string, bool) {
|
||||
if o == nil || o.Id == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *ResourceMember) HasId() bool {
|
||||
if o != nil && o.Id != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *ResourceMember) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetOauthID returns the OauthID field value if set, zero value otherwise.
|
||||
func (o *ResourceMember) GetOauthID() string {
|
||||
if o == nil || o.OauthID == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OauthID
|
||||
}
|
||||
|
||||
// GetOauthIDOk returns a tuple with the OauthID field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMember) GetOauthIDOk() (*string, bool) {
|
||||
if o == nil || o.OauthID == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OauthID, true
|
||||
}
|
||||
|
||||
// HasOauthID returns a boolean if a field has been set.
|
||||
func (o *ResourceMember) HasOauthID() bool {
|
||||
if o != nil && o.OauthID != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOauthID gets a reference to the given string and assigns it to the OauthID field.
|
||||
func (o *ResourceMember) SetOauthID(v string) {
|
||||
o.OauthID = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *ResourceMember) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMember) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *ResourceMember) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *ResourceMember) GetStatus() string {
|
||||
if o == nil || o.Status == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMember) GetStatusOk() (*string, bool) {
|
||||
if o == nil || o.Status == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *ResourceMember) HasStatus() bool {
|
||||
if o != nil && o.Status != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
||||
func (o *ResourceMember) SetStatus(v string) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
// GetLinks returns the Links field value if set, zero value otherwise.
|
||||
func (o *ResourceMember) GetLinks() UserResponseLinks {
|
||||
if o == nil || o.Links == nil {
|
||||
var ret UserResponseLinks
|
||||
return ret
|
||||
}
|
||||
return *o.Links
|
||||
}
|
||||
|
||||
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMember) GetLinksOk() (*UserResponseLinks, bool) {
|
||||
if o == nil || o.Links == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Links, true
|
||||
}
|
||||
|
||||
// HasLinks returns a boolean if a field has been set.
|
||||
func (o *ResourceMember) HasLinks() bool {
|
||||
if o != nil && o.Links != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLinks gets a reference to the given UserResponseLinks and assigns it to the Links field.
|
||||
func (o *ResourceMember) SetLinks(v UserResponseLinks) {
|
||||
o.Links = &v
|
||||
}
|
||||
|
||||
// GetRole returns the Role field value if set, zero value otherwise.
|
||||
func (o *ResourceMember) GetRole() string {
|
||||
if o == nil || o.Role == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Role
|
||||
}
|
||||
|
||||
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMember) GetRoleOk() (*string, bool) {
|
||||
if o == nil || o.Role == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Role, true
|
||||
}
|
||||
|
||||
// HasRole returns a boolean if a field has been set.
|
||||
func (o *ResourceMember) HasRole() bool {
|
||||
if o != nil && o.Role != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRole gets a reference to the given string and assigns it to the Role field.
|
||||
func (o *ResourceMember) SetRole(v string) {
|
||||
o.Role = &v
|
||||
}
|
||||
|
||||
func (o ResourceMember) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Id != nil {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if o.OauthID != nil {
|
||||
toSerialize["oauthID"] = o.OauthID
|
||||
}
|
||||
if true {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if o.Status != nil {
|
||||
toSerialize["status"] = o.Status
|
||||
}
|
||||
if o.Links != nil {
|
||||
toSerialize["links"] = o.Links
|
||||
}
|
||||
if o.Role != nil {
|
||||
toSerialize["role"] = o.Role
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableResourceMember struct {
|
||||
value *ResourceMember
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableResourceMember) Get() *ResourceMember {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableResourceMember) Set(val *ResourceMember) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableResourceMember) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableResourceMember) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableResourceMember(val *ResourceMember) *NullableResourceMember {
|
||||
return &NullableResourceMember{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableResourceMember) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableResourceMember) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
117
internal/api/model_resource_member_all_of.gen.go
Normal file
117
internal/api/model_resource_member_all_of.gen.go
Normal file
@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ResourceMemberAllOf struct for ResourceMemberAllOf
|
||||
type ResourceMemberAllOf struct {
|
||||
Role *string `json:"role,omitempty"`
|
||||
}
|
||||
|
||||
// NewResourceMemberAllOf instantiates a new ResourceMemberAllOf object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewResourceMemberAllOf() *ResourceMemberAllOf {
|
||||
this := ResourceMemberAllOf{}
|
||||
var role string = "member"
|
||||
this.Role = &role
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewResourceMemberAllOfWithDefaults instantiates a new ResourceMemberAllOf object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewResourceMemberAllOfWithDefaults() *ResourceMemberAllOf {
|
||||
this := ResourceMemberAllOf{}
|
||||
var role string = "member"
|
||||
this.Role = &role
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetRole returns the Role field value if set, zero value otherwise.
|
||||
func (o *ResourceMemberAllOf) GetRole() string {
|
||||
if o == nil || o.Role == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Role
|
||||
}
|
||||
|
||||
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMemberAllOf) GetRoleOk() (*string, bool) {
|
||||
if o == nil || o.Role == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Role, true
|
||||
}
|
||||
|
||||
// HasRole returns a boolean if a field has been set.
|
||||
func (o *ResourceMemberAllOf) HasRole() bool {
|
||||
if o != nil && o.Role != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRole gets a reference to the given string and assigns it to the Role field.
|
||||
func (o *ResourceMemberAllOf) SetRole(v string) {
|
||||
o.Role = &v
|
||||
}
|
||||
|
||||
func (o ResourceMemberAllOf) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Role != nil {
|
||||
toSerialize["role"] = o.Role
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableResourceMemberAllOf struct {
|
||||
value *ResourceMemberAllOf
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableResourceMemberAllOf) Get() *ResourceMemberAllOf {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableResourceMemberAllOf) Set(val *ResourceMemberAllOf) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableResourceMemberAllOf) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableResourceMemberAllOf) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableResourceMemberAllOf(val *ResourceMemberAllOf) *NullableResourceMemberAllOf {
|
||||
return &NullableResourceMemberAllOf{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableResourceMemberAllOf) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableResourceMemberAllOf) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
149
internal/api/model_resource_members.gen.go
Normal file
149
internal/api/model_resource_members.gen.go
Normal file
@ -0,0 +1,149 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ResourceMembers struct for ResourceMembers
|
||||
type ResourceMembers struct {
|
||||
Links *ResourceMembersLinks `json:"links,omitempty"`
|
||||
Users *[]ResourceMember `json:"users,omitempty"`
|
||||
}
|
||||
|
||||
// NewResourceMembers instantiates a new ResourceMembers object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewResourceMembers() *ResourceMembers {
|
||||
this := ResourceMembers{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewResourceMembersWithDefaults instantiates a new ResourceMembers object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewResourceMembersWithDefaults() *ResourceMembers {
|
||||
this := ResourceMembers{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetLinks returns the Links field value if set, zero value otherwise.
|
||||
func (o *ResourceMembers) GetLinks() ResourceMembersLinks {
|
||||
if o == nil || o.Links == nil {
|
||||
var ret ResourceMembersLinks
|
||||
return ret
|
||||
}
|
||||
return *o.Links
|
||||
}
|
||||
|
||||
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMembers) GetLinksOk() (*ResourceMembersLinks, bool) {
|
||||
if o == nil || o.Links == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Links, true
|
||||
}
|
||||
|
||||
// HasLinks returns a boolean if a field has been set.
|
||||
func (o *ResourceMembers) HasLinks() bool {
|
||||
if o != nil && o.Links != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLinks gets a reference to the given ResourceMembersLinks and assigns it to the Links field.
|
||||
func (o *ResourceMembers) SetLinks(v ResourceMembersLinks) {
|
||||
o.Links = &v
|
||||
}
|
||||
|
||||
// GetUsers returns the Users field value if set, zero value otherwise.
|
||||
func (o *ResourceMembers) GetUsers() []ResourceMember {
|
||||
if o == nil || o.Users == nil {
|
||||
var ret []ResourceMember
|
||||
return ret
|
||||
}
|
||||
return *o.Users
|
||||
}
|
||||
|
||||
// GetUsersOk returns a tuple with the Users field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMembers) GetUsersOk() (*[]ResourceMember, bool) {
|
||||
if o == nil || o.Users == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Users, true
|
||||
}
|
||||
|
||||
// HasUsers returns a boolean if a field has been set.
|
||||
func (o *ResourceMembers) HasUsers() bool {
|
||||
if o != nil && o.Users != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUsers gets a reference to the given []ResourceMember and assigns it to the Users field.
|
||||
func (o *ResourceMembers) SetUsers(v []ResourceMember) {
|
||||
o.Users = &v
|
||||
}
|
||||
|
||||
func (o ResourceMembers) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Links != nil {
|
||||
toSerialize["links"] = o.Links
|
||||
}
|
||||
if o.Users != nil {
|
||||
toSerialize["users"] = o.Users
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableResourceMembers struct {
|
||||
value *ResourceMembers
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableResourceMembers) Get() *ResourceMembers {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableResourceMembers) Set(val *ResourceMembers) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableResourceMembers) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableResourceMembers) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableResourceMembers(val *ResourceMembers) *NullableResourceMembers {
|
||||
return &NullableResourceMembers{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableResourceMembers) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableResourceMembers) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
113
internal/api/model_resource_members_links.gen.go
Normal file
113
internal/api/model_resource_members_links.gen.go
Normal file
@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ResourceMembersLinks struct for ResourceMembersLinks
|
||||
type ResourceMembersLinks struct {
|
||||
Self *string `json:"self,omitempty"`
|
||||
}
|
||||
|
||||
// NewResourceMembersLinks instantiates a new ResourceMembersLinks object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewResourceMembersLinks() *ResourceMembersLinks {
|
||||
this := ResourceMembersLinks{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewResourceMembersLinksWithDefaults instantiates a new ResourceMembersLinks object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewResourceMembersLinksWithDefaults() *ResourceMembersLinks {
|
||||
this := ResourceMembersLinks{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetSelf returns the Self field value if set, zero value otherwise.
|
||||
func (o *ResourceMembersLinks) GetSelf() string {
|
||||
if o == nil || o.Self == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Self
|
||||
}
|
||||
|
||||
// GetSelfOk returns a tuple with the Self field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResourceMembersLinks) GetSelfOk() (*string, bool) {
|
||||
if o == nil || o.Self == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Self, true
|
||||
}
|
||||
|
||||
// HasSelf returns a boolean if a field has been set.
|
||||
func (o *ResourceMembersLinks) HasSelf() bool {
|
||||
if o != nil && o.Self != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSelf gets a reference to the given string and assigns it to the Self field.
|
||||
func (o *ResourceMembersLinks) SetSelf(v string) {
|
||||
o.Self = &v
|
||||
}
|
||||
|
||||
func (o ResourceMembersLinks) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Self != nil {
|
||||
toSerialize["self"] = o.Self
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableResourceMembersLinks struct {
|
||||
value *ResourceMembersLinks
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableResourceMembersLinks) Get() *ResourceMembersLinks {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableResourceMembersLinks) Set(val *ResourceMembersLinks) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableResourceMembersLinks) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableResourceMembersLinks) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableResourceMembersLinks(val *ResourceMembersLinks) *NullableResourceMembersLinks {
|
||||
return &NullableResourceMembersLinks{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableResourceMembersLinks) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableResourceMembersLinks) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
@ -35,6 +35,62 @@ func (m *MockOrganizationsApi) EXPECT() *MockOrganizationsApiMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// DeleteOrgsID mocks base method.
|
||||
func (m *MockOrganizationsApi) DeleteOrgsID(arg0 context.Context, arg1 string) api.ApiDeleteOrgsIDRequest {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DeleteOrgsID", arg0, arg1)
|
||||
ret0, _ := ret[0].(api.ApiDeleteOrgsIDRequest)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// DeleteOrgsID indicates an expected call of DeleteOrgsID.
|
||||
func (mr *MockOrganizationsApiMockRecorder) DeleteOrgsID(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrgsID", reflect.TypeOf((*MockOrganizationsApi)(nil).DeleteOrgsID), arg0, arg1)
|
||||
}
|
||||
|
||||
// DeleteOrgsIDExecute mocks base method.
|
||||
func (m *MockOrganizationsApi) DeleteOrgsIDExecute(arg0 api.ApiDeleteOrgsIDRequest) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DeleteOrgsIDExecute", arg0)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// DeleteOrgsIDExecute indicates an expected call of DeleteOrgsIDExecute.
|
||||
func (mr *MockOrganizationsApiMockRecorder) DeleteOrgsIDExecute(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrgsIDExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).DeleteOrgsIDExecute), arg0)
|
||||
}
|
||||
|
||||
// DeleteOrgsIDMembersID mocks base method.
|
||||
func (m *MockOrganizationsApi) DeleteOrgsIDMembersID(arg0 context.Context, arg1, arg2 string) api.ApiDeleteOrgsIDMembersIDRequest {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DeleteOrgsIDMembersID", arg0, arg1, arg2)
|
||||
ret0, _ := ret[0].(api.ApiDeleteOrgsIDMembersIDRequest)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// DeleteOrgsIDMembersID indicates an expected call of DeleteOrgsIDMembersID.
|
||||
func (mr *MockOrganizationsApiMockRecorder) DeleteOrgsIDMembersID(arg0, arg1, arg2 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrgsIDMembersID", reflect.TypeOf((*MockOrganizationsApi)(nil).DeleteOrgsIDMembersID), arg0, arg1, arg2)
|
||||
}
|
||||
|
||||
// DeleteOrgsIDMembersIDExecute mocks base method.
|
||||
func (m *MockOrganizationsApi) DeleteOrgsIDMembersIDExecute(arg0 api.ApiDeleteOrgsIDMembersIDRequest) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DeleteOrgsIDMembersIDExecute", arg0)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// DeleteOrgsIDMembersIDExecute indicates an expected call of DeleteOrgsIDMembersIDExecute.
|
||||
func (mr *MockOrganizationsApiMockRecorder) DeleteOrgsIDMembersIDExecute(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrgsIDMembersIDExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).DeleteOrgsIDMembersIDExecute), arg0)
|
||||
}
|
||||
|
||||
// GetOrgs mocks base method.
|
||||
func (m *MockOrganizationsApi) GetOrgs(arg0 context.Context) api.ApiGetOrgsRequest {
|
||||
m.ctrl.T.Helper()
|
||||
@ -64,6 +120,93 @@ func (mr *MockOrganizationsApiMockRecorder) GetOrgsExecute(arg0 interface{}) *go
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrgsExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).GetOrgsExecute), arg0)
|
||||
}
|
||||
|
||||
// GetOrgsID mocks base method.
|
||||
func (m *MockOrganizationsApi) GetOrgsID(arg0 context.Context, arg1 string) api.ApiGetOrgsIDRequest {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetOrgsID", arg0, arg1)
|
||||
ret0, _ := ret[0].(api.ApiGetOrgsIDRequest)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetOrgsID indicates an expected call of GetOrgsID.
|
||||
func (mr *MockOrganizationsApiMockRecorder) GetOrgsID(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrgsID", reflect.TypeOf((*MockOrganizationsApi)(nil).GetOrgsID), arg0, arg1)
|
||||
}
|
||||
|
||||
// GetOrgsIDExecute mocks base method.
|
||||
func (m *MockOrganizationsApi) GetOrgsIDExecute(arg0 api.ApiGetOrgsIDRequest) (api.Organization, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetOrgsIDExecute", arg0)
|
||||
ret0, _ := ret[0].(api.Organization)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetOrgsIDExecute indicates an expected call of GetOrgsIDExecute.
|
||||
func (mr *MockOrganizationsApiMockRecorder) GetOrgsIDExecute(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrgsIDExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).GetOrgsIDExecute), arg0)
|
||||
}
|
||||
|
||||
// GetOrgsIDMembers mocks base method.
|
||||
func (m *MockOrganizationsApi) GetOrgsIDMembers(arg0 context.Context, arg1 string) api.ApiGetOrgsIDMembersRequest {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetOrgsIDMembers", arg0, arg1)
|
||||
ret0, _ := ret[0].(api.ApiGetOrgsIDMembersRequest)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetOrgsIDMembers indicates an expected call of GetOrgsIDMembers.
|
||||
func (mr *MockOrganizationsApiMockRecorder) GetOrgsIDMembers(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrgsIDMembers", reflect.TypeOf((*MockOrganizationsApi)(nil).GetOrgsIDMembers), arg0, arg1)
|
||||
}
|
||||
|
||||
// GetOrgsIDMembersExecute mocks base method.
|
||||
func (m *MockOrganizationsApi) GetOrgsIDMembersExecute(arg0 api.ApiGetOrgsIDMembersRequest) (api.ResourceMembers, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetOrgsIDMembersExecute", arg0)
|
||||
ret0, _ := ret[0].(api.ResourceMembers)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetOrgsIDMembersExecute indicates an expected call of GetOrgsIDMembersExecute.
|
||||
func (mr *MockOrganizationsApiMockRecorder) GetOrgsIDMembersExecute(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrgsIDMembersExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).GetOrgsIDMembersExecute), arg0)
|
||||
}
|
||||
|
||||
// PatchOrgsID mocks base method.
|
||||
func (m *MockOrganizationsApi) PatchOrgsID(arg0 context.Context, arg1 string) api.ApiPatchOrgsIDRequest {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "PatchOrgsID", arg0, arg1)
|
||||
ret0, _ := ret[0].(api.ApiPatchOrgsIDRequest)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// PatchOrgsID indicates an expected call of PatchOrgsID.
|
||||
func (mr *MockOrganizationsApiMockRecorder) PatchOrgsID(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchOrgsID", reflect.TypeOf((*MockOrganizationsApi)(nil).PatchOrgsID), arg0, arg1)
|
||||
}
|
||||
|
||||
// PatchOrgsIDExecute mocks base method.
|
||||
func (m *MockOrganizationsApi) PatchOrgsIDExecute(arg0 api.ApiPatchOrgsIDRequest) (api.Organization, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "PatchOrgsIDExecute", arg0)
|
||||
ret0, _ := ret[0].(api.Organization)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// PatchOrgsIDExecute indicates an expected call of PatchOrgsIDExecute.
|
||||
func (mr *MockOrganizationsApiMockRecorder) PatchOrgsIDExecute(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchOrgsIDExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).PatchOrgsIDExecute), arg0)
|
||||
}
|
||||
|
||||
// PostOrgs mocks base method.
|
||||
func (m *MockOrganizationsApi) PostOrgs(arg0 context.Context) api.ApiPostOrgsRequest {
|
||||
m.ctrl.T.Helper()
|
||||
@ -92,3 +235,32 @@ func (mr *MockOrganizationsApiMockRecorder) PostOrgsExecute(arg0 interface{}) *g
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostOrgsExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).PostOrgsExecute), arg0)
|
||||
}
|
||||
|
||||
// PostOrgsIDMembers mocks base method.
|
||||
func (m *MockOrganizationsApi) PostOrgsIDMembers(arg0 context.Context, arg1 string) api.ApiPostOrgsIDMembersRequest {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "PostOrgsIDMembers", arg0, arg1)
|
||||
ret0, _ := ret[0].(api.ApiPostOrgsIDMembersRequest)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// PostOrgsIDMembers indicates an expected call of PostOrgsIDMembers.
|
||||
func (mr *MockOrganizationsApiMockRecorder) PostOrgsIDMembers(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostOrgsIDMembers", reflect.TypeOf((*MockOrganizationsApi)(nil).PostOrgsIDMembers), arg0, arg1)
|
||||
}
|
||||
|
||||
// PostOrgsIDMembersExecute mocks base method.
|
||||
func (m *MockOrganizationsApi) PostOrgsIDMembersExecute(arg0 api.ApiPostOrgsIDMembersRequest) (api.ResourceMember, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "PostOrgsIDMembersExecute", arg0)
|
||||
ret0, _ := ret[0].(api.ResourceMember)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// PostOrgsIDMembersExecute indicates an expected call of PostOrgsIDMembersExecute.
|
||||
func (mr *MockOrganizationsApiMockRecorder) PostOrgsIDMembersExecute(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostOrgsIDMembersExecute", reflect.TypeOf((*MockOrganizationsApi)(nil).PostOrgsIDMembersExecute), arg0)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user