diff --git a/infra_mgmt/README.md b/infra_mgmt/README.md index 4d5b24e..7a82978 100644 --- a/infra_mgmt/README.md +++ b/infra_mgmt/README.md @@ -126,8 +126,8 @@ All URIs are relative to *http://csp.infoblox.com/api/infra/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DetailAPI* | [**DetailList**](docs/DetailAPI.md#detaillist) | **Get** /detail_hosts | List all the Hosts along with its associated Services (applications). -*DetailAPI* | [**DetailList_0**](docs/DetailAPI.md#detaillist_0) | **Get** /detail_services | List all the Services (applications) along with its associated Hosts. +*DetailAPI* | [**DetailHostsList**](docs/DetailAPI.md#detailhostslist) | **Get** /detail_hosts | List all the Hosts along with its associated Services (applications). +*DetailAPI* | [**DetailServicesList**](docs/DetailAPI.md#detailserviceslist) | **Get** /detail_services | List all the Services (applications) along with its associated Hosts. *HostsAPI* | [**HostsAssignTags**](docs/HostsAPI.md#hostsassigntags) | **Post** /hosts/assign_tags | Assign tags for list of hosts. *HostsAPI* | [**HostsCreate**](docs/HostsAPI.md#hostscreate) | **Post** /hosts | Create a Host resource. *HostsAPI* | [**HostsDelete**](docs/HostsAPI.md#hostsdelete) | **Delete** /hosts/{id} | Delete a Host resource. diff --git a/infra_mgmt/api_detail.go b/infra_mgmt/api_detail.go index 9d857b5..cb3d549 100644 --- a/infra_mgmt/api_detail.go +++ b/infra_mgmt/api_detail.go @@ -23,34 +23,34 @@ import ( type DetailAPI interface { /* - DetailList List all the Hosts along with its associated Services (applications). + DetailHostsList List all the Hosts along with its associated Services (applications). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailListRequest + @return ApiDetailHostsListRequest */ - DetailList(ctx context.Context) ApiDetailListRequest + DetailHostsList(ctx context.Context) ApiDetailHostsListRequest - // DetailListExecute executes the request + // DetailHostsListExecute executes the request // @return InfraListDetailHostsResponse - DetailListExecute(r ApiDetailListRequest) (*InfraListDetailHostsResponse, *http.Response, error) + DetailHostsListExecute(r ApiDetailHostsListRequest) (*InfraListDetailHostsResponse, *http.Response, error) /* - DetailList_0 List all the Services (applications) along with its associated Hosts. + DetailServicesList List all the Services (applications) along with its associated Hosts. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailList_0Request + @return ApiDetailServicesListRequest */ - DetailList_1(ctx context.Context) ApiDetailList_0Request + DetailServicesList(ctx context.Context) ApiDetailServicesListRequest - // DetailList_1Execute executes the request + // DetailServicesListExecute executes the request // @return InfraListDetailServicesResponse - DetailList_1Execute(r ApiDetailList_0Request) (*InfraListDetailServicesResponse, *http.Response, error) + DetailServicesListExecute(r ApiDetailServicesListRequest) (*InfraListDetailServicesResponse, *http.Response, error) } // DetailAPIService DetailAPI service type DetailAPIService internal.Service -type ApiDetailListRequest struct { +type ApiDetailHostsListRequest struct { ctx context.Context ApiService DetailAPI filter *string @@ -64,65 +64,65 @@ type ApiDetailListRequest struct { } // A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | -func (r ApiDetailListRequest) Filter(filter string) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) Filter(filter string) ApiDetailHostsListRequest { r.filter = &filter return r } // A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. -func (r ApiDetailListRequest) OrderBy(orderBy string) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) OrderBy(orderBy string) ApiDetailHostsListRequest { r.orderBy = &orderBy return r } // The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. -func (r ApiDetailListRequest) Offset(offset int32) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) Offset(offset int32) ApiDetailHostsListRequest { r.offset = &offset return r } // The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. -func (r ApiDetailListRequest) Limit(limit int32) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) Limit(limit int32) ApiDetailHostsListRequest { r.limit = &limit return r } // The service-defined string used to identify a page of resources. A null value indicates the first page. -func (r ApiDetailListRequest) PageToken(pageToken string) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) PageToken(pageToken string) ApiDetailHostsListRequest { r.pageToken = &pageToken return r } // A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. -func (r ApiDetailListRequest) Fields(fields string) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) Fields(fields string) ApiDetailHostsListRequest { r.fields = &fields return r } // This parameter is used for filtering by tags. -func (r ApiDetailListRequest) Tfilter(tfilter string) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) Tfilter(tfilter string) ApiDetailHostsListRequest { r.tfilter = &tfilter return r } // This parameter is used for sorting by tags. -func (r ApiDetailListRequest) TorderBy(torderBy string) ApiDetailListRequest { +func (r ApiDetailHostsListRequest) TorderBy(torderBy string) ApiDetailHostsListRequest { r.torderBy = &torderBy return r } -func (r ApiDetailListRequest) Execute() (*InfraListDetailHostsResponse, *http.Response, error) { - return r.ApiService.DetailListExecute(r) +func (r ApiDetailHostsListRequest) Execute() (*InfraListDetailHostsResponse, *http.Response, error) { + return r.ApiService.DetailHostsListExecute(r) } /* -DetailList List all the Hosts along with its associated Services (applications). +DetailHostsList List all the Hosts along with its associated Services (applications). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailListRequest + @return ApiDetailHostsListRequest */ -func (a *DetailAPIService) DetailList(ctx context.Context) ApiDetailListRequest { - return ApiDetailListRequest{ +func (a *DetailAPIService) DetailHostsList(ctx context.Context) ApiDetailHostsListRequest { + return ApiDetailHostsListRequest{ ApiService: a, ctx: ctx, } @@ -131,7 +131,7 @@ func (a *DetailAPIService) DetailList(ctx context.Context) ApiDetailListRequest // Execute executes the request // // @return InfraListDetailHostsResponse -func (a *DetailAPIService) DetailListExecute(r ApiDetailListRequest) (*InfraListDetailHostsResponse, *http.Response, error) { +func (a *DetailAPIService) DetailHostsListExecute(r ApiDetailHostsListRequest) (*InfraListDetailHostsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -139,7 +139,7 @@ func (a *DetailAPIService) DetailListExecute(r ApiDetailListRequest) (*InfraList localVarReturnValue *InfraListDetailHostsResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DetailAPIService.DetailList") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DetailAPIService.DetailHostsList") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } @@ -236,7 +236,7 @@ func (a *DetailAPIService) DetailListExecute(r ApiDetailListRequest) (*InfraList return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDetailList_0Request struct { +type ApiDetailServicesListRequest struct { ctx context.Context ApiService DetailAPI filter *string @@ -250,65 +250,65 @@ type ApiDetailList_0Request struct { } // A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | -func (r ApiDetailList_0Request) Filter(filter string) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) Filter(filter string) ApiDetailServicesListRequest { r.filter = &filter return r } // A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. -func (r ApiDetailList_0Request) OrderBy(orderBy string) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) OrderBy(orderBy string) ApiDetailServicesListRequest { r.orderBy = &orderBy return r } // The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. -func (r ApiDetailList_0Request) Offset(offset int32) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) Offset(offset int32) ApiDetailServicesListRequest { r.offset = &offset return r } // The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. -func (r ApiDetailList_0Request) Limit(limit int32) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) Limit(limit int32) ApiDetailServicesListRequest { r.limit = &limit return r } // The service-defined string used to identify a page of resources. A null value indicates the first page. -func (r ApiDetailList_0Request) PageToken(pageToken string) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) PageToken(pageToken string) ApiDetailServicesListRequest { r.pageToken = &pageToken return r } // A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. -func (r ApiDetailList_0Request) Fields(fields string) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) Fields(fields string) ApiDetailServicesListRequest { r.fields = &fields return r } // This parameter is used for filtering by tags. -func (r ApiDetailList_0Request) Tfilter(tfilter string) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) Tfilter(tfilter string) ApiDetailServicesListRequest { r.tfilter = &tfilter return r } // This parameter is used for sorting by tags. -func (r ApiDetailList_0Request) TorderBy(torderBy string) ApiDetailList_0Request { +func (r ApiDetailServicesListRequest) TorderBy(torderBy string) ApiDetailServicesListRequest { r.torderBy = &torderBy return r } -func (r ApiDetailList_0Request) Execute() (*InfraListDetailServicesResponse, *http.Response, error) { - return r.ApiService.DetailList_1Execute(r) +func (r ApiDetailServicesListRequest) Execute() (*InfraListDetailServicesResponse, *http.Response, error) { + return r.ApiService.DetailServicesListExecute(r) } /* -DetailList_0 List all the Services (applications) along with its associated Hosts. +DetailServicesList List all the Services (applications) along with its associated Hosts. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDetailList_0Request + @return ApiDetailServicesListRequest */ -func (a *DetailAPIService) DetailList_1(ctx context.Context) ApiDetailList_0Request { - return ApiDetailList_0Request{ +func (a *DetailAPIService) DetailServicesList(ctx context.Context) ApiDetailServicesListRequest { + return ApiDetailServicesListRequest{ ApiService: a, ctx: ctx, } @@ -317,7 +317,7 @@ func (a *DetailAPIService) DetailList_1(ctx context.Context) ApiDetailList_0Requ // Execute executes the request // // @return InfraListDetailServicesResponse -func (a *DetailAPIService) DetailList_1Execute(r ApiDetailList_0Request) (*InfraListDetailServicesResponse, *http.Response, error) { +func (a *DetailAPIService) DetailServicesListExecute(r ApiDetailServicesListRequest) (*InfraListDetailServicesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -325,7 +325,7 @@ func (a *DetailAPIService) DetailList_1Execute(r ApiDetailList_0Request) (*Infra localVarReturnValue *InfraListDetailServicesResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DetailAPIService.DetailList_1") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DetailAPIService.DetailServicesList") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } diff --git a/infra_mgmt/docs/DetailAPI.md b/infra_mgmt/docs/DetailAPI.md index 59298e4..a21feb9 100644 --- a/infra_mgmt/docs/DetailAPI.md +++ b/infra_mgmt/docs/DetailAPI.md @@ -4,14 +4,14 @@ All URIs are relative to *http://csp.infoblox.com/api/infra/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DetailList**](DetailAPI.md#DetailList) | **Get** /detail_hosts | List all the Hosts along with its associated Services (applications). -[**DetailList_0**](DetailAPI.md#DetailList_0) | **Get** /detail_services | List all the Services (applications) along with its associated Hosts. +[**DetailHostsList**](DetailAPI.md#DetailHostsList) | **Get** /detail_hosts | List all the Hosts along with its associated Services (applications). +[**DetailServicesList**](DetailAPI.md#DetailServicesList) | **Get** /detail_services | List all the Services (applications) along with its associated Hosts. -## DetailList +## DetailHostsList -> InfraListDetailHostsResponse DetailList(ctx).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() +> InfraListDetailHostsResponse DetailHostsList(ctx).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() List all the Hosts along with its associated Services (applications). @@ -39,13 +39,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DetailAPI.DetailList(context.Background()).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() + resp, r, err := apiClient.DetailAPI.DetailHostsList(context.Background()).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DetailAPI.DetailList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DetailAPI.DetailHostsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DetailList`: InfraListDetailHostsResponse - fmt.Fprintf(os.Stdout, "Response from `DetailAPI.DetailList`: %v\n", resp) + // response from `DetailHostsList`: InfraListDetailHostsResponse + fmt.Fprintf(os.Stdout, "Response from `DetailAPI.DetailHostsList`: %v\n", resp) } ``` @@ -55,7 +55,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDetailListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDetailHostsListRequest struct via the builder pattern Name | Type | Description | Notes @@ -87,9 +87,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DetailList_0 +## DetailServicesList -> InfraListDetailServicesResponse DetailList_0(ctx).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() +> InfraListDetailServicesResponse DetailServicesList(ctx).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() List all the Services (applications) along with its associated Hosts. @@ -117,13 +117,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DetailAPI.DetailList_0(context.Background()).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() + resp, r, err := apiClient.DetailAPI.DetailServicesList(context.Background()).Filter(filter).OrderBy(orderBy).Offset(offset).Limit(limit).PageToken(pageToken).Fields(fields).Tfilter(tfilter).TorderBy(torderBy).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DetailAPI.DetailList_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DetailAPI.DetailServicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DetailList_0`: InfraListDetailServicesResponse - fmt.Fprintf(os.Stdout, "Response from `DetailAPI.DetailList_0`: %v\n", resp) + // response from `DetailServicesList`: InfraListDetailServicesResponse + fmt.Fprintf(os.Stdout, "Response from `DetailAPI.DetailServicesList`: %v\n", resp) } ``` @@ -133,7 +133,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDetailList_1Request struct via the builder pattern +Other parameters are passed through a pointer to a apiDetailServicesListRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/infra_mgmt/docs/InfraDetailService.md b/infra_mgmt/docs/InfraDetailService.md index c7e1c05..3fe491f 100644 --- a/infra_mgmt/docs/InfraDetailService.md +++ b/infra_mgmt/docs/InfraDetailService.md @@ -11,7 +11,6 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | The description of the Service. | [optional] **DesiredState** | Pointer to **string** | The desired state of the Service (`\"start\"` or `\"stop\"`). | [optional] **DesiredVersion** | Pointer to **string** | The desired version of the Service. | [optional] -**Destinations** | Pointer to **map[string]interface{}** | Configuration for the interfaces through which this Service can send outgoing traffic. | [optional] **Hosts** | Pointer to [**[]InfraDetailServiceHost**](InfraDetailServiceHost.md) | List of Hosts on which this Service is deployed. | [optional] **Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] **InterfaceLabels** | Pointer to **[]string** | List of interfaces on which this Service can operate. | [optional] @@ -19,7 +18,6 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | The name of the Service. | [optional] **Pool** | Pointer to [**InfraPoolInfo**](InfraPoolInfo.md) | | [optional] **ServiceType** | Pointer to **string** | The type of the Service deployed on the Host (`dns`, `cdc`, etc.). | [optional] -**SourceInterfaces** | Pointer to **map[string]interface{}** | Configuration for the interfaces through which this Service can take incoming traffic. | [optional] **Tags** | Pointer to **map[string]interface{}** | Tags associated with this Service. | [optional] **UpdatedAt** | Pointer to **time.Time** | Timestamp of the latest update on Service. | [optional] @@ -217,31 +215,6 @@ SetDesiredVersion sets DesiredVersion field to given value. HasDesiredVersion returns a boolean if a field has been set. -### GetDestinations - -`func (o *InfraDetailService) GetDestinations() map[string]interface{}` - -GetDestinations returns the Destinations field if non-nil, zero value otherwise. - -### GetDestinationsOk - -`func (o *InfraDetailService) GetDestinationsOk() (*map[string]interface{}, bool)` - -GetDestinationsOk returns a tuple with the Destinations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDestinations - -`func (o *InfraDetailService) SetDestinations(v map[string]interface{})` - -SetDestinations sets Destinations field to given value. - -### HasDestinations - -`func (o *InfraDetailService) HasDestinations() bool` - -HasDestinations returns a boolean if a field has been set. - ### GetHosts `func (o *InfraDetailService) GetHosts() []InfraDetailServiceHost` @@ -417,31 +390,6 @@ SetServiceType sets ServiceType field to given value. HasServiceType returns a boolean if a field has been set. -### GetSourceInterfaces - -`func (o *InfraDetailService) GetSourceInterfaces() map[string]interface{}` - -GetSourceInterfaces returns the SourceInterfaces field if non-nil, zero value otherwise. - -### GetSourceInterfacesOk - -`func (o *InfraDetailService) GetSourceInterfacesOk() (*map[string]interface{}, bool)` - -GetSourceInterfacesOk returns a tuple with the SourceInterfaces field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSourceInterfaces - -`func (o *InfraDetailService) SetSourceInterfaces(v map[string]interface{})` - -SetSourceInterfaces sets SourceInterfaces field to given value. - -### HasSourceInterfaces - -`func (o *InfraDetailService) HasSourceInterfaces() bool` - -HasSourceInterfaces returns a boolean if a field has been set. - ### GetTags `func (o *InfraDetailService) GetTags() map[string]interface{}` diff --git a/infra_mgmt/docs/InfraHost.md b/infra_mgmt/docs/InfraHost.md index b293131..b12fb39 100644 --- a/infra_mgmt/docs/InfraHost.md +++ b/infra_mgmt/docs/InfraHost.md @@ -5,28 +5,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Configs** | Pointer to [**[]InfraServiceHostConfig**](InfraServiceHostConfig.md) | The list of Host-specific configurations for each Service deployed on this Host. | [optional] [readonly] -**ConnectivityMonitor** | Pointer to **map[string]interface{}** | Represents the connectivity monitor properties of a Host, to enable/disable connectivity monitoring for redundant network interfaces. The \"endpoint_type\" is: - `\"csp\"` for enabling monitoring - `\"\"` for disabling monitoring (default) Note: Currently, all fields except \"endpoint_type\" are read-only, and will be overridden to default values in case they are edited. Example: ``` { \"connectivity_monitor\": { \"cost\":1000000, \"endpoint_type\":\"csp\", \"endpoint\":\"http://csp.infoblox.com\", \"interval\":15, \"failure_threshold\":1, \"success_threshold\":2 } } ``` | [optional] +**ConnectivityMonitor** | Pointer to **map[string]interface{}** | Represents the connectivity monitor properties of a Host, to enable/disable connectivity monitoring for redundant network interfaces. The \"endpoint_type\" is: - `\"csp\"` for enabling monitoring - `\"\"` for disabling monitoring (default) Note: Currently, all fields except \"endpoint_type\" are read-only, and will be overridden to default values in case they are edited. Example: ``` { \"connectivity_monitor\": { \"cost\":1000000, \"endpoint_type\":\"csp\", \"endpoint\":\"http://csp.infoblox.com\", \"interval\":15, \"failure_threshold\":1, \"success_threshold\":2 } } ``` | [optional] [readonly] **CreatedAt** | Pointer to **time.Time** | The timestamp of creation of Host. | [optional] [readonly] **CreatedBy** | Pointer to **string** | The creator of the Host (internal use only). | [optional] [readonly] **Description** | Pointer to **string** | The description of the Host (optional). | [optional] **DisplayName** | **string** | The name of the Host (unique). | -**HostSubtype** | Pointer to **string** | The sub-type of a specific Host type. Example: For Host type BloxOne Appliance, sub-type could be \"B105\" or \"VEP1425\" | [optional] -**HostType** | Pointer to **string** | The type of Host. Should be one of: 1. NIOS , 2. NIOS HA, 3. BloxOne VM , 4. BloxOne Appliance, 5. BloxOne Container, 6. CNIOS | [optional] +**HostSubtype** | Pointer to **string** | The sub-type of a specific Host type. Example: For Host type BloxOne Appliance, sub-type could be \"B105\" or \"VEP1425\" | [optional] [readonly] +**HostType** | Pointer to **string** | The type of Host. Should be one of: 1. NIOS , 2. NIOS HA, 3. BloxOne VM , 4. BloxOne Appliance, 5. BloxOne Container, 6. CNIOS | [optional] [readonly] **HostVersion** | Pointer to **string** | The version of the Host platform services. | [optional] [readonly] **Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] -**IpAddress** | Pointer to **string** | The IP address of the Host. | [optional] +**IpAddress** | Pointer to **string** | The IP address of the Host. | [optional] [readonly] **IpSpace** | Pointer to **string** | The IP Space of the Host. | [optional] **LegacyId** | Pointer to **string** | The legacy Host object identifier. | [optional] [readonly] **LocationId** | Pointer to **string** | The resource identifier. | [optional] -**MacAddress** | Pointer to **string** | The MAC address of the Host. | [optional] +**MacAddress** | Pointer to **string** | The MAC address of the Host. | [optional] [readonly] **MaintenanceMode** | Pointer to **string** | | [optional] -**NatIp** | Pointer to **string** | The NAT IP address of the Host. | [optional] +**NatIp** | Pointer to **string** | The NAT IP address of the Host. | [optional] [readonly] **NoaCluster** | Pointer to **string** | The CSP cluster identifier (internal use only). | [optional] [readonly] **Ophid** | Pointer to **string** | The unique On-Prem Host ID generated by the On-Prem device and assigned to the Host once it is registered and logged into the Infoblox Cloud. | [optional] [readonly] **PoolId** | Pointer to **string** | The resource identifier. | [optional] **SerialNumber** | Pointer to **string** | The unique serial number of the Host. | [optional] **Tags** | Pointer to **map[string]interface{}** | Tags associated with this Host. | [optional] -**Timezone** | Pointer to **string** | The timezone of the Host. | [optional] +**Timezone** | Pointer to **string** | The timezone of the Host. | [optional] [readonly] **UpdatedAt** | Pointer to **time.Time** | The timestamp of the latest update on Host. | [optional] [readonly] ## Methods diff --git a/infra_mgmt/model_infra_detail_service.go b/infra_mgmt/model_infra_detail_service.go index a775faf..95bdf23 100644 --- a/infra_mgmt/model_infra_detail_service.go +++ b/infra_mgmt/model_infra_detail_service.go @@ -34,8 +34,6 @@ type InfraDetailService struct { DesiredState *string `json:"desired_state,omitempty"` // The desired version of the Service. DesiredVersion *string `json:"desired_version,omitempty"` - // Configuration for the interfaces through which this Service can send outgoing traffic. - Destinations map[string]interface{} `json:"destinations,omitempty"` // List of Hosts on which this Service is deployed. Hosts []InfraDetailServiceHost `json:"hosts,omitempty"` // The resource identifier. @@ -48,8 +46,6 @@ type InfraDetailService struct { Pool *InfraPoolInfo `json:"pool,omitempty"` // The type of the Service deployed on the Host (`dns`, `cdc`, etc.). ServiceType *string `json:"service_type,omitempty"` - // Configuration for the interfaces through which this Service can take incoming traffic. - SourceInterfaces map[string]interface{} `json:"source_interfaces,omitempty"` // Tags associated with this Service. Tags map[string]interface{} `json:"tags,omitempty"` // Timestamp of the latest update on Service. @@ -297,38 +293,6 @@ func (o *InfraDetailService) SetDesiredVersion(v string) { o.DesiredVersion = &v } -// GetDestinations returns the Destinations field value if set, zero value otherwise. -func (o *InfraDetailService) GetDestinations() map[string]interface{} { - if o == nil || IsNil(o.Destinations) { - var ret map[string]interface{} - return ret - } - return o.Destinations -} - -// GetDestinationsOk returns a tuple with the Destinations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InfraDetailService) GetDestinationsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Destinations) { - return map[string]interface{}{}, false - } - return o.Destinations, true -} - -// HasDestinations returns a boolean if a field has been set. -func (o *InfraDetailService) HasDestinations() bool { - if o != nil && !IsNil(o.Destinations) { - return true - } - - return false -} - -// SetDestinations gets a reference to the given map[string]interface{} and assigns it to the Destinations field. -func (o *InfraDetailService) SetDestinations(v map[string]interface{}) { - o.Destinations = v -} - // GetHosts returns the Hosts field value if set, zero value otherwise. func (o *InfraDetailService) GetHosts() []InfraDetailServiceHost { if o == nil || IsNil(o.Hosts) { @@ -553,38 +517,6 @@ func (o *InfraDetailService) SetServiceType(v string) { o.ServiceType = &v } -// GetSourceInterfaces returns the SourceInterfaces field value if set, zero value otherwise. -func (o *InfraDetailService) GetSourceInterfaces() map[string]interface{} { - if o == nil || IsNil(o.SourceInterfaces) { - var ret map[string]interface{} - return ret - } - return o.SourceInterfaces -} - -// GetSourceInterfacesOk returns a tuple with the SourceInterfaces field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InfraDetailService) GetSourceInterfacesOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.SourceInterfaces) { - return map[string]interface{}{}, false - } - return o.SourceInterfaces, true -} - -// HasSourceInterfaces returns a boolean if a field has been set. -func (o *InfraDetailService) HasSourceInterfaces() bool { - if o != nil && !IsNil(o.SourceInterfaces) { - return true - } - - return false -} - -// SetSourceInterfaces gets a reference to the given map[string]interface{} and assigns it to the SourceInterfaces field. -func (o *InfraDetailService) SetSourceInterfaces(v map[string]interface{}) { - o.SourceInterfaces = v -} - // GetTags returns the Tags field value if set, zero value otherwise. func (o *InfraDetailService) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { @@ -680,9 +612,6 @@ func (o InfraDetailService) ToMap() (map[string]interface{}, error) { if !IsNil(o.DesiredVersion) { toSerialize["desired_version"] = o.DesiredVersion } - if !IsNil(o.Destinations) { - toSerialize["destinations"] = o.Destinations - } if !IsNil(o.Hosts) { toSerialize["hosts"] = o.Hosts } @@ -704,9 +633,6 @@ func (o InfraDetailService) ToMap() (map[string]interface{}, error) { if !IsNil(o.ServiceType) { toSerialize["service_type"] = o.ServiceType } - if !IsNil(o.SourceInterfaces) { - toSerialize["source_interfaces"] = o.SourceInterfaces - } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } diff --git a/infra_mgmt/test/api_detail_test.go b/infra_mgmt/test/api_detail_test.go index dade78a..c78318d 100644 --- a/infra_mgmt/test/api_detail_test.go +++ b/infra_mgmt/test/api_detail_test.go @@ -25,11 +25,11 @@ func Test_infra_mgmt_DetailAPIService(t *testing.T) { configuration := internal.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test DetailAPIService DetailList", func(t *testing.T) { + t.Run("Test DetailAPIService DetailHostsList", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DetailAPI.DetailList(context.Background()).Execute() + resp, httpRes, err := apiClient.DetailAPI.DetailHostsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -37,11 +37,11 @@ func Test_infra_mgmt_DetailAPIService(t *testing.T) { }) - t.Run("Test DetailAPIService DetailList_1", func(t *testing.T) { + t.Run("Test DetailAPIService DetailServicesList", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DetailAPI.DetailList(context.Background()).Execute() + resp, httpRes, err := apiClient.DetailAPI.DetailServicesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp)