From d5a1966e296f60901823f0202f8674b1f3ed269b Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 27 Jan 2025 11:01:56 -0800 Subject: [PATCH] Auto generated changes for 4.19 API Spec --- services/fabricv4/README.md | 31 +- services/fabricv4/api_ports.go | 150 ++ services/fabricv4/api_statistics.go | 218 -- services/fabricv4/api_stream_subscriptions.go | 84 +- services/fabricv4/api_streams.go | 167 -- services/fabricv4/client.go | 2 +- services/fabricv4/docs/CheckCapacity.md | 238 +++ .../docs/CheckCapacityPortRedundancy.md | 56 + ...Statistics.md => CheckCapacityResponse.md} | 32 +- services/fabricv4/docs/Duration.md | 15 - .../docs/GetSubscriptionsInStreamResponse.md | 82 - services/fabricv4/docs/MetricInterval.md | 11 - .../fabricv4/docs/PortCapacityExpression.md | 160 ++ .../docs/PortCapacitySearchFieldName.md | 19 + .../docs/PortCapacitySearchRequest.md | 82 + services/fabricv4/docs/PortChangeOperation.md | 103 + services/fabricv4/docs/PortsApi.md | 73 + services/fabricv4/docs/QueryDirection.md | 13 - services/fabricv4/docs/RouteFilterRulesApi.md | 2 +- .../docs/RouteFilterRulesPatchRequestItem.md | 20 +- .../fabricv4/docs/ServiceTokenConnection.md | 9 +- .../docs/ServiceTokenConnectionType.md | 2 + services/fabricv4/docs/Sort.md | 11 - services/fabricv4/docs/StatisticsApi.md | 79 - services/fabricv4/docs/StreamFilter.md | 2 +- .../docs/StreamFilterSimpleExpression.md | 2 +- .../fabricv4/docs/StreamGetSubscriptions.md | 108 - .../docs/StreamGetSubscriptionsType.md | 11 - services/fabricv4/docs/StreamSubscription.md | 52 - .../docs/StreamSubscriptionPostRequest.md | 52 - .../docs/StreamSubscriptionPutRequest.md | 26 - .../fabricv4/docs/StreamSubscriptionSink.md | 26 + .../docs/StreamSubscriptionSinkCredential.md | 52 + .../StreamSubscriptionSinkCredentialType.md | 2 + .../docs/StreamSubscriptionSinkSetting.md | 78 + .../fabricv4/docs/StreamSubscriptionsApi.md | 63 +- services/fabricv4/docs/StreamTarget.md | 56 - services/fabricv4/docs/StreamsApi.md | 75 - services/fabricv4/model_check_capacity.go | 415 ++++ .../model_check_capacity_port_redundancy.go | 150 ++ ...cs.go => model_check_capacity_response.go} | 78 +- services/fabricv4/model_duration.go | 109 - ...el_get_subscriptions_in_stream_response.go | 188 -- services/fabricv4/model_metric_interval.go | 105 - .../model_port_capacity_expression.go | 298 +++ .../model_port_capacity_search_field_name.go | 113 ++ .../model_port_capacity_search_request.go | 187 ++ .../fabricv4/model_port_change_operation.go | 228 +++ services/fabricv4/model_query_direction.go | 107 - ...l_route_filter_rules_patch_request_item.go | 24 +- .../model_service_token_connection.go | 57 +- .../model_service_token_connection_type.go | 2 + services/fabricv4/model_sort.go | 105 - .../model_stream_filter_simple_expression.go | 3 +- .../model_stream_get_subscriptions.go | 226 --- .../model_stream_get_subscriptions_type.go | 105 - .../fabricv4/model_stream_subscription.go | 74 - .../model_stream_subscription_post_request.go | 76 +- .../model_stream_subscription_put_request.go | 39 +- .../model_stream_subscription_sink.go | 44 +- ...del_stream_subscription_sink_credential.go | 78 +- ...tream_subscription_sink_credential_type.go | 8 +- .../model_stream_subscription_sink_setting.go | 116 +- services/fabricv4/model_stream_target.go | 151 -- services/fabricv4/test/api_ports_test.go | 12 + services/fabricv4/test/api_statistics_test.go | 10 - .../test/api_stream_subscriptions_test.go | 23 +- services/fabricv4/test/api_streams_test.go | 12 - .../fabricv4/oas3.fetched/swagger.yaml | 1777 ++++++++++++----- .../fabricv4/oas3.patched/swagger.yaml | 1777 ++++++++++++----- 70 files changed, 5454 insertions(+), 3507 deletions(-) create mode 100644 services/fabricv4/docs/CheckCapacity.md create mode 100644 services/fabricv4/docs/CheckCapacityPortRedundancy.md rename services/fabricv4/docs/{TopUtilizedStatistics.md => CheckCapacityResponse.md} (61%) delete mode 100644 services/fabricv4/docs/Duration.md delete mode 100644 services/fabricv4/docs/GetSubscriptionsInStreamResponse.md delete mode 100644 services/fabricv4/docs/MetricInterval.md create mode 100644 services/fabricv4/docs/PortCapacityExpression.md create mode 100644 services/fabricv4/docs/PortCapacitySearchFieldName.md create mode 100644 services/fabricv4/docs/PortCapacitySearchRequest.md create mode 100644 services/fabricv4/docs/PortChangeOperation.md delete mode 100644 services/fabricv4/docs/QueryDirection.md delete mode 100644 services/fabricv4/docs/Sort.md delete mode 100644 services/fabricv4/docs/StreamGetSubscriptions.md delete mode 100644 services/fabricv4/docs/StreamGetSubscriptionsType.md delete mode 100644 services/fabricv4/docs/StreamTarget.md create mode 100644 services/fabricv4/model_check_capacity.go create mode 100644 services/fabricv4/model_check_capacity_port_redundancy.go rename services/fabricv4/{model_top_utilized_statistics.go => model_check_capacity_response.go} (53%) delete mode 100644 services/fabricv4/model_duration.go delete mode 100644 services/fabricv4/model_get_subscriptions_in_stream_response.go delete mode 100644 services/fabricv4/model_metric_interval.go create mode 100644 services/fabricv4/model_port_capacity_expression.go create mode 100644 services/fabricv4/model_port_capacity_search_field_name.go create mode 100644 services/fabricv4/model_port_capacity_search_request.go create mode 100644 services/fabricv4/model_port_change_operation.go delete mode 100644 services/fabricv4/model_query_direction.go delete mode 100644 services/fabricv4/model_sort.go delete mode 100644 services/fabricv4/model_stream_get_subscriptions.go delete mode 100644 services/fabricv4/model_stream_get_subscriptions_type.go delete mode 100644 services/fabricv4/model_stream_target.go diff --git a/services/fabricv4/README.md b/services/fabricv4/README.md index 6afa8cc7..e5b8a178 100644 --- a/services/fabricv4/README.md +++ b/services/fabricv4/README.md @@ -5,7 +5,7 @@ Equinix Fabric is an advanced software-defined interconnection solution that ena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 4.18 +- API version: 4.19 - Package version: 0.47.0 - Generator version: 7.4.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -120,6 +120,7 @@ Class | Method | HTTP request | Description *PortsApi* | [**GetPorts**](docs/PortsApi.md#getports) | **Get** /fabric/v4/ports | Get All Ports *PortsApi* | [**GetVlans**](docs/PortsApi.md#getvlans) | **Get** /fabric/v4/ports/{portUuid}/linkProtocols | Get Vlans *PortsApi* | [**SearchPorts**](docs/PortsApi.md#searchports) | **Post** /fabric/v4/ports/search | Search ports +*PortsApi* | [**UpdatePortByUuid**](docs/PortsApi.md#updateportbyuuid) | **Patch** /fabric/v4/ports/{portId} | Update by UUID *PrecisionTimeApi* | [**CreateTimeServices**](docs/PrecisionTimeApi.md#createtimeservices) | **Post** /fabric/v4/timeServices | Create Time Service *PrecisionTimeApi* | [**DeleteTimeServiceById**](docs/PrecisionTimeApi.md#deletetimeservicebyid) | **Delete** /fabric/v4/timeServices/{serviceId} | Delete by ID. *PrecisionTimeApi* | [**FulfillTimeServices**](docs/PrecisionTimeApi.md#fulfilltimeservices) | **Put** /fabric/v4/timeServices/{serviceId} | Configure Service. @@ -201,13 +202,12 @@ Class | Method | HTTP request | Description *ServiceTokensApi* | [**SearchServiceTokens**](docs/ServiceTokensApi.md#searchservicetokens) | **Post** /fabric/v4/serviceTokens/search | Search servicetokens *ServiceTokensApi* | [**UpdateServiceTokenByUuid**](docs/ServiceTokensApi.md#updateservicetokenbyuuid) | **Patch** /fabric/v4/serviceTokens/{serviceTokenId} | Update Token By ID *StatisticsApi* | [**GetConnectionStatsByPortUuid**](docs/StatisticsApi.md#getconnectionstatsbyportuuid) | **Get** /fabric/v4/connections/{connectionId}/stats | Get Stats by uuid -*StatisticsApi* | [**GetPortStats**](docs/StatisticsApi.md#getportstats) | **Get** /fabric/v4/ports/stats | Top Port Statistics *StatisticsApi* | [**GetPortStatsByPortUuid**](docs/StatisticsApi.md#getportstatsbyportuuid) | **Get** /fabric/v4/ports/{portId}/stats | Get Stats by uuid -*StreamSubscriptionsApi* | [**CreateStreamSubscriptions**](docs/StreamSubscriptionsApi.md#createstreamsubscriptions) | **Post** /fabric/v4/streamSubscriptions | Create Subscription -*StreamSubscriptionsApi* | [**DeleteStreamSubscriptionByUuid**](docs/StreamSubscriptionsApi.md#deletestreamsubscriptionbyuuid) | **Delete** /fabric/v4/streamSubscriptions/{streamSubscriptionId} | Delete Subscription -*StreamSubscriptionsApi* | [**GetStreamSubscriptionByUuid**](docs/StreamSubscriptionsApi.md#getstreamsubscriptionbyuuid) | **Get** /fabric/v4/streamSubscriptions/{streamSubscriptionId} | Get Subscription -*StreamSubscriptionsApi* | [**GetStreamSubscriptions**](docs/StreamSubscriptionsApi.md#getstreamsubscriptions) | **Get** /fabric/v4/streamSubscriptions | Get Subscriptions -*StreamSubscriptionsApi* | [**UpdateStreamSubscriptionByUuid**](docs/StreamSubscriptionsApi.md#updatestreamsubscriptionbyuuid) | **Put** /fabric/v4/streamSubscriptions/{streamSubscriptionId} | Update Subscription +*StreamSubscriptionsApi* | [**CreateStreamSubscriptions**](docs/StreamSubscriptionsApi.md#createstreamsubscriptions) | **Post** /fabric/v4/streams/{streamId}/subscriptions | Create Subscription +*StreamSubscriptionsApi* | [**DeleteStreamSubscriptionByUuid**](docs/StreamSubscriptionsApi.md#deletestreamsubscriptionbyuuid) | **Delete** /fabric/v4/streams/{streamId}/subscriptions/{subscriptionId} | Delete Subscription +*StreamSubscriptionsApi* | [**GetStreamSubscriptionByUuid**](docs/StreamSubscriptionsApi.md#getstreamsubscriptionbyuuid) | **Get** /fabric/v4/streams/{streamId}/subscriptions/{subscriptionId} | Get Subscription +*StreamSubscriptionsApi* | [**GetStreamSubscriptions**](docs/StreamSubscriptionsApi.md#getstreamsubscriptions) | **Get** /fabric/v4/streams/{streamId}/subscriptions | Get Subscriptions +*StreamSubscriptionsApi* | [**UpdateStreamSubscriptionByUuid**](docs/StreamSubscriptionsApi.md#updatestreamsubscriptionbyuuid) | **Put** /fabric/v4/streams/{streamId}/subscriptions/{subscriptionId} | Update Subscription *StreamsApi* | [**CreateStreams**](docs/StreamsApi.md#createstreams) | **Post** /fabric/v4/streams | Create Stream *StreamsApi* | [**DeleteStreamAssetByUuid**](docs/StreamsApi.md#deletestreamassetbyuuid) | **Delete** /fabric/v4/streams/{streamId}/{asset}/{assetId} | Detach Asset *StreamsApi* | [**DeleteStreamByUuid**](docs/StreamsApi.md#deletestreambyuuid) | **Delete** /fabric/v4/streams/{streamId} | Delete Stream @@ -215,7 +215,6 @@ Class | Method | HTTP request | Description *StreamsApi* | [**GetStreamByUuid**](docs/StreamsApi.md#getstreambyuuid) | **Get** /fabric/v4/streams/{streamId} | Get Stream *StreamsApi* | [**GetStreams**](docs/StreamsApi.md#getstreams) | **Get** /fabric/v4/streams | Get Streams *StreamsApi* | [**GetStreamsAssets**](docs/StreamsApi.md#getstreamsassets) | **Post** /fabric/v4/streamAssets/search | Get Assets -*StreamsApi* | [**GetSubscriptionsInStream**](docs/StreamsApi.md#getsubscriptionsinstream) | **Get** /fabric/v4/streams/{streamId}/streamSubscriptions | Get Stream's Subs *StreamsApi* | [**UpdateStreamAssetByUuid**](docs/StreamsApi.md#updatestreamassetbyuuid) | **Put** /fabric/v4/streams/{streamId}/{asset}/{assetId} | Attach Asset *StreamsApi* | [**UpdateStreamByUuid**](docs/StreamsApi.md#updatestreambyuuid) | **Put** /fabric/v4/streams/{streamId} | Update Stream @@ -252,6 +251,9 @@ Class | Method | HTTP request | Description - [ChangeStatus](docs/ChangeStatus.md) - [ChangeType](docs/ChangeType.md) - [Changelog](docs/Changelog.md) + - [CheckCapacity](docs/CheckCapacity.md) + - [CheckCapacityPortRedundancy](docs/CheckCapacityPortRedundancy.md) + - [CheckCapacityResponse](docs/CheckCapacityResponse.md) - [CloudRouter](docs/CloudRouter.md) - [CloudRouterAccessPointState](docs/CloudRouterAccessPointState.md) - [CloudRouterActionRequest](docs/CloudRouterActionRequest.md) @@ -337,7 +339,6 @@ Class | Method | HTTP request | Description - [DirectConnectionIpv4](docs/DirectConnectionIpv4.md) - [DirectConnectionIpv6](docs/DirectConnectionIpv6.md) - [Direction](docs/Direction.md) - - [Duration](docs/Duration.md) - [EndCustomer](docs/EndCustomer.md) - [EquinixStatus](docs/EquinixStatus.md) - [Error](docs/Error.md) @@ -360,7 +361,6 @@ Class | Method | HTTP request | Description - [GetRouteFilterGetConnectionsResponse](docs/GetRouteFilterGetConnectionsResponse.md) - [GetRouteFilterRulesResponse](docs/GetRouteFilterRulesResponse.md) - [GetServiceProfilesViewPointParameter](docs/GetServiceProfilesViewPointParameter.md) - - [GetSubscriptionsInStreamResponse](docs/GetSubscriptionsInStreamResponse.md) - [GetTimeServicesPackageByCodePackageCodeParameter](docs/GetTimeServicesPackageByCodePackageCodeParameter.md) - [HealthResponse](docs/HealthResponse.md) - [Interface](docs/Interface.md) @@ -385,7 +385,6 @@ Class | Method | HTTP request | Description - [Md5](docs/Md5.md) - [Md5Type](docs/Md5Type.md) - [MetalInterconnection](docs/MetalInterconnection.md) - - [MetricInterval](docs/MetricInterval.md) - [Metrics](docs/Metrics.md) - [Metro](docs/Metro.md) - [MetroError](docs/MetroError.md) @@ -433,6 +432,10 @@ Class | Method | HTTP request | Description - [Port](docs/Port.md) - [PortAdditionalInfo](docs/PortAdditionalInfo.md) - [PortBmmrType](docs/PortBmmrType.md) + - [PortCapacityExpression](docs/PortCapacityExpression.md) + - [PortCapacitySearchFieldName](docs/PortCapacitySearchFieldName.md) + - [PortCapacitySearchRequest](docs/PortCapacitySearchRequest.md) + - [PortChangeOperation](docs/PortChangeOperation.md) - [PortConnectivitySourceType](docs/PortConnectivitySourceType.md) - [PortDemarcationPoint](docs/PortDemarcationPoint.md) - [PortDevice](docs/PortDevice.md) @@ -510,7 +513,6 @@ Class | Method | HTTP request | Description - [PtpAdvanceConfigurationLogSyncInterval](docs/PtpAdvanceConfigurationLogSyncInterval.md) - [PtpAdvanceConfigurationTimeScale](docs/PtpAdvanceConfigurationTimeScale.md) - [PtpAdvanceConfigurationTransportMode](docs/PtpAdvanceConfigurationTransportMode.md) - - [QueryDirection](docs/QueryDirection.md) - [RemoveOperation](docs/RemoveOperation.md) - [ReplaceOperation](docs/ReplaceOperation.md) - [RouteAggregationChangeData](docs/RouteAggregationChangeData.md) @@ -666,7 +668,6 @@ Class | Method | HTTP request | Description - [SimplifiedTokenNetworkType](docs/SimplifiedTokenNetworkType.md) - [SimplifiedVirtualDevice](docs/SimplifiedVirtualDevice.md) - [SimplifiedVirtualDeviceType](docs/SimplifiedVirtualDeviceType.md) - - [Sort](docs/Sort.md) - [SortBy](docs/SortBy.md) - [SortCriteria](docs/SortCriteria.md) - [SortCriteriaResponse](docs/SortCriteriaResponse.md) @@ -692,8 +693,6 @@ Class | Method | HTTP request | Description - [StreamFilter](docs/StreamFilter.md) - [StreamFilterOrFilter](docs/StreamFilterOrFilter.md) - [StreamFilterSimpleExpression](docs/StreamFilterSimpleExpression.md) - - [StreamGetSubscriptions](docs/StreamGetSubscriptions.md) - - [StreamGetSubscriptionsType](docs/StreamGetSubscriptionsType.md) - [StreamPostRequest](docs/StreamPostRequest.md) - [StreamPostRequestType](docs/StreamPostRequestType.md) - [StreamPutRequest](docs/StreamPutRequest.md) @@ -710,7 +709,6 @@ Class | Method | HTTP request | Description - [StreamSubscriptionSinkType](docs/StreamSubscriptionSinkType.md) - [StreamSubscriptionState](docs/StreamSubscriptionState.md) - [StreamSubscriptionType](docs/StreamSubscriptionType.md) - - [StreamTarget](docs/StreamTarget.md) - [SubInterface](docs/SubInterface.md) - [SubscriptionAsset](docs/SubscriptionAsset.md) - [SubscriptionEntitlementResponse](docs/SubscriptionEntitlementResponse.md) @@ -733,7 +731,6 @@ Class | Method | HTTP request | Description - [TimeServiceSortCriteria](docs/TimeServiceSortCriteria.md) - [TimeServiceSortDirection](docs/TimeServiceSortDirection.md) - [TimeServicesSearchRequest](docs/TimeServicesSearchRequest.md) - - [TopUtilizedStatistics](docs/TopUtilizedStatistics.md) - [ValidateConnectionResponse](docs/ValidateConnectionResponse.md) - [ValidateRequest](docs/ValidateRequest.md) - [ValidateRequestFilter](docs/ValidateRequestFilter.md) diff --git a/services/fabricv4/api_ports.go b/services/fabricv4/api_ports.go index b1248dc8..1e865eb3 100644 --- a/services/fabricv4/api_ports.go +++ b/services/fabricv4/api_ports.go @@ -1068,3 +1068,153 @@ func (a *PortsApiService) SearchPortsExecute(r ApiSearchPortsRequest) (*AllPorts return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiUpdatePortByUuidRequest struct { + ctx context.Context + ApiService *PortsApiService + portId string + portChangeOperation *[]PortChangeOperation +} + +func (r ApiUpdatePortByUuidRequest) PortChangeOperation(portChangeOperation []PortChangeOperation) ApiUpdatePortByUuidRequest { + r.portChangeOperation = &portChangeOperation + return r +} + +func (r ApiUpdatePortByUuidRequest) Execute() (*AllPortsResponse, *http.Response, error) { + return r.ApiService.UpdatePortByUuidExecute(r) +} + +/* +UpdatePortByUuid Update by UUID + +Update Port by UUID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param portId Port UUID + @return ApiUpdatePortByUuidRequest +*/ +func (a *PortsApiService) UpdatePortByUuid(ctx context.Context, portId string) ApiUpdatePortByUuidRequest { + return ApiUpdatePortByUuidRequest{ + ApiService: a, + ctx: ctx, + portId: portId, + } +} + +// Execute executes the request +// +// @return AllPortsResponse +func (a *PortsApiService) UpdatePortByUuidExecute(r ApiUpdatePortByUuidRequest) (*AllPortsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AllPortsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PortsApiService.UpdatePortByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/ports/{portId}" + localVarPath = strings.Replace(localVarPath, "{"+"portId"+"}", url.PathEscape(parameterValueToString(r.portId, "portId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.portChangeOperation == nil { + return localVarReturnValue, nil, reportError("portChangeOperation is required and must be specified") + } + if len(*r.portChangeOperation) < 1 { + return localVarReturnValue, nil, reportError("portChangeOperation must have at least 1 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.portChangeOperation + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v []Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v []Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v []Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/fabricv4/api_statistics.go b/services/fabricv4/api_statistics.go index b0a3208a..536c8ea8 100644 --- a/services/fabricv4/api_statistics.go +++ b/services/fabricv4/api_statistics.go @@ -13,7 +13,6 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" "time" ) @@ -179,223 +178,6 @@ func (a *StatisticsApiService) GetConnectionStatsByPortUuidExecute(r ApiGetConne return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetPortStatsRequest struct { - ctx context.Context - ApiService *StatisticsApiService - metros *[]string - sort *Sort - top *int32 - duration *Duration - direction *QueryDirection - metricInterval *MetricInterval - projectId *string -} - -// Two-letter prefix indicating the metropolitan area in which a specified Equinix asset is located. -func (r ApiGetPortStatsRequest) Metros(metros []string) ApiGetPortStatsRequest { - r.metros = &metros - return r -} - -// Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The \"?\" prefix indicates descending (DESC) order. -func (r ApiGetPortStatsRequest) Sort(sort Sort) ApiGetPortStatsRequest { - r.sort = &sort - return r -} - -// Filter returning only the specified number of most heavily trafficked ports. The standard value is [1...10], and the default is 5. -func (r ApiGetPortStatsRequest) Top(top int32) ApiGetPortStatsRequest { - r.top = &top - return r -} - -// duration -func (r ApiGetPortStatsRequest) Duration(duration Duration) ApiGetPortStatsRequest { - r.duration = &duration - return r -} - -// Direction of traffic from the requester's viewpoint. The default is outbound. -func (r ApiGetPortStatsRequest) Direction(direction QueryDirection) ApiGetPortStatsRequest { - r.direction = &direction - return r -} - -// metricInterval -func (r ApiGetPortStatsRequest) MetricInterval(metricInterval MetricInterval) ApiGetPortStatsRequest { - r.metricInterval = &metricInterval - return r -} - -// projectId -func (r ApiGetPortStatsRequest) ProjectId(projectId string) ApiGetPortStatsRequest { - r.projectId = &projectId - return r -} - -func (r ApiGetPortStatsRequest) Execute() (*TopUtilizedStatistics, *http.Response, error) { - return r.ApiService.GetPortStatsExecute(r) -} - -/* -GetPortStats Top Port Statistics - -This API provides top utilized service-level traffic metrics so that you can view access and gather key information required to manage service subscription sizing and capacity. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetPortStatsRequest -*/ -func (a *StatisticsApiService) GetPortStats(ctx context.Context) ApiGetPortStatsRequest { - return ApiGetPortStatsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return TopUtilizedStatistics -func (a *StatisticsApiService) GetPortStatsExecute(r ApiGetPortStatsRequest) (*TopUtilizedStatistics, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TopUtilizedStatistics - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatisticsApiService.GetPortStats") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/fabric/v4/ports/stats" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.metros == nil { - return localVarReturnValue, nil, reportError("metros is required and must be specified") - } - - if r.sort != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") - } else { - var defaultValue Sort = "-bandwidthUtilization" - r.sort = &defaultValue - } - if r.top != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "top", r.top, "") - } else { - var defaultValue int32 = 5 - r.top = &defaultValue - } - if r.duration != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "duration", r.duration, "") - } else { - var defaultValue Duration = "P7D" - r.duration = &defaultValue - } - if r.direction != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "direction", r.direction, "") - } else { - var defaultValue QueryDirection = "outbound" - r.direction = &defaultValue - } - if r.metricInterval != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "metricInterval", r.metricInterval, "") - } else { - var defaultValue MetricInterval = "P7D" - r.metricInterval = &defaultValue - } - { - t := *r.metros - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "metros", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "metros", t, "multi") - } - } - if r.projectId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "projectId", r.projectId, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v []Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v []Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiGetPortStatsByPortUuidRequest struct { ctx context.Context ApiService *StatisticsApiService diff --git a/services/fabricv4/api_stream_subscriptions.go b/services/fabricv4/api_stream_subscriptions.go index b2a6b68a..a0434ea4 100644 --- a/services/fabricv4/api_stream_subscriptions.go +++ b/services/fabricv4/api_stream_subscriptions.go @@ -22,6 +22,7 @@ type StreamSubscriptionsApiService service type ApiCreateStreamSubscriptionsRequest struct { ctx context.Context ApiService *StreamSubscriptionsApiService + streamId string streamSubscriptionPostRequest *StreamSubscriptionPostRequest } @@ -40,12 +41,14 @@ CreateStreamSubscriptions Create Subscription This API provides capability to create user's Stream Subscriptions @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param streamId Stream UUID @return ApiCreateStreamSubscriptionsRequest */ -func (a *StreamSubscriptionsApiService) CreateStreamSubscriptions(ctx context.Context) ApiCreateStreamSubscriptionsRequest { +func (a *StreamSubscriptionsApiService) CreateStreamSubscriptions(ctx context.Context, streamId string) ApiCreateStreamSubscriptionsRequest { return ApiCreateStreamSubscriptionsRequest{ ApiService: a, ctx: ctx, + streamId: streamId, } } @@ -65,7 +68,8 @@ func (a *StreamSubscriptionsApiService) CreateStreamSubscriptionsExecute(r ApiCr return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fabric/v4/streamSubscriptions" + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -185,9 +189,10 @@ func (a *StreamSubscriptionsApiService) CreateStreamSubscriptionsExecute(r ApiCr } type ApiDeleteStreamSubscriptionByUuidRequest struct { - ctx context.Context - ApiService *StreamSubscriptionsApiService - streamSubscriptionId string + ctx context.Context + ApiService *StreamSubscriptionsApiService + streamId string + subscriptionId string } func (r ApiDeleteStreamSubscriptionByUuidRequest) Execute() (*StreamSubscription, *http.Response, error) { @@ -200,14 +205,16 @@ DeleteStreamSubscriptionByUuid Delete Subscription This API provides capability to delete user's Stream Subscriptions @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param streamSubscriptionId Stream Subscription UUID + @param streamId Stream UUID + @param subscriptionId Stream Subscription UUID @return ApiDeleteStreamSubscriptionByUuidRequest */ -func (a *StreamSubscriptionsApiService) DeleteStreamSubscriptionByUuid(ctx context.Context, streamSubscriptionId string) ApiDeleteStreamSubscriptionByUuidRequest { +func (a *StreamSubscriptionsApiService) DeleteStreamSubscriptionByUuid(ctx context.Context, streamId string, subscriptionId string) ApiDeleteStreamSubscriptionByUuidRequest { return ApiDeleteStreamSubscriptionByUuidRequest{ - ApiService: a, - ctx: ctx, - streamSubscriptionId: streamSubscriptionId, + ApiService: a, + ctx: ctx, + streamId: streamId, + subscriptionId: subscriptionId, } } @@ -227,8 +234,9 @@ func (a *StreamSubscriptionsApiService) DeleteStreamSubscriptionByUuidExecute(r return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fabric/v4/streamSubscriptions/{streamSubscriptionId}" - localVarPath = strings.Replace(localVarPath, "{"+"streamSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.streamSubscriptionId, "streamSubscriptionId")), -1) + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/subscriptions/{subscriptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -343,9 +351,10 @@ func (a *StreamSubscriptionsApiService) DeleteStreamSubscriptionByUuidExecute(r } type ApiGetStreamSubscriptionByUuidRequest struct { - ctx context.Context - ApiService *StreamSubscriptionsApiService - streamSubscriptionId string + ctx context.Context + ApiService *StreamSubscriptionsApiService + streamId string + subscriptionId string } func (r ApiGetStreamSubscriptionByUuidRequest) Execute() (*StreamSubscription, *http.Response, error) { @@ -358,14 +367,16 @@ GetStreamSubscriptionByUuid Get Subscription This API provides capability to delete user's get Stream Subscriptions @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param streamSubscriptionId Stream Subscription UUID + @param streamId Stream UUID + @param subscriptionId Stream Subscription UUID @return ApiGetStreamSubscriptionByUuidRequest */ -func (a *StreamSubscriptionsApiService) GetStreamSubscriptionByUuid(ctx context.Context, streamSubscriptionId string) ApiGetStreamSubscriptionByUuidRequest { +func (a *StreamSubscriptionsApiService) GetStreamSubscriptionByUuid(ctx context.Context, streamId string, subscriptionId string) ApiGetStreamSubscriptionByUuidRequest { return ApiGetStreamSubscriptionByUuidRequest{ - ApiService: a, - ctx: ctx, - streamSubscriptionId: streamSubscriptionId, + ApiService: a, + ctx: ctx, + streamId: streamId, + subscriptionId: subscriptionId, } } @@ -385,8 +396,9 @@ func (a *StreamSubscriptionsApiService) GetStreamSubscriptionByUuidExecute(r Api return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fabric/v4/streamSubscriptions/{streamSubscriptionId}" - localVarPath = strings.Replace(localVarPath, "{"+"streamSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.streamSubscriptionId, "streamSubscriptionId")), -1) + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/subscriptions/{subscriptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -503,6 +515,7 @@ func (a *StreamSubscriptionsApiService) GetStreamSubscriptionByUuidExecute(r Api type ApiGetStreamSubscriptionsRequest struct { ctx context.Context ApiService *StreamSubscriptionsApiService + streamId string offset *int32 limit *int32 } @@ -529,12 +542,14 @@ GetStreamSubscriptions Get Subscriptions This API provides capability to retrieve stream subscriptions @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param streamId Stream UUID @return ApiGetStreamSubscriptionsRequest */ -func (a *StreamSubscriptionsApiService) GetStreamSubscriptions(ctx context.Context) ApiGetStreamSubscriptionsRequest { +func (a *StreamSubscriptionsApiService) GetStreamSubscriptions(ctx context.Context, streamId string) ApiGetStreamSubscriptionsRequest { return ApiGetStreamSubscriptionsRequest{ ApiService: a, ctx: ctx, + streamId: streamId, } } @@ -554,7 +569,8 @@ func (a *StreamSubscriptionsApiService) GetStreamSubscriptionsExecute(r ApiGetSt return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fabric/v4/streamSubscriptions" + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -666,7 +682,8 @@ func (a *StreamSubscriptionsApiService) GetStreamSubscriptionsExecute(r ApiGetSt type ApiUpdateStreamSubscriptionByUuidRequest struct { ctx context.Context ApiService *StreamSubscriptionsApiService - streamSubscriptionId string + streamId string + subscriptionId string streamSubscriptionPutRequest *StreamSubscriptionPutRequest } @@ -685,14 +702,16 @@ UpdateStreamSubscriptionByUuid Update Subscription This API provides capability to update user's Stream Subscriptions @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param streamSubscriptionId Stream Subscription UUID + @param streamId Stream UUID + @param subscriptionId Stream Subscription UUID @return ApiUpdateStreamSubscriptionByUuidRequest */ -func (a *StreamSubscriptionsApiService) UpdateStreamSubscriptionByUuid(ctx context.Context, streamSubscriptionId string) ApiUpdateStreamSubscriptionByUuidRequest { +func (a *StreamSubscriptionsApiService) UpdateStreamSubscriptionByUuid(ctx context.Context, streamId string, subscriptionId string) ApiUpdateStreamSubscriptionByUuidRequest { return ApiUpdateStreamSubscriptionByUuidRequest{ - ApiService: a, - ctx: ctx, - streamSubscriptionId: streamSubscriptionId, + ApiService: a, + ctx: ctx, + streamId: streamId, + subscriptionId: subscriptionId, } } @@ -712,8 +731,9 @@ func (a *StreamSubscriptionsApiService) UpdateStreamSubscriptionByUuidExecute(r return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fabric/v4/streamSubscriptions/{streamSubscriptionId}" - localVarPath = strings.Replace(localVarPath, "{"+"streamSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.streamSubscriptionId, "streamSubscriptionId")), -1) + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/subscriptions/{subscriptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/services/fabricv4/api_streams.go b/services/fabricv4/api_streams.go index 28a7e258..103df93e 100644 --- a/services/fabricv4/api_streams.go +++ b/services/fabricv4/api_streams.go @@ -1169,173 +1169,6 @@ func (a *StreamsApiService) GetStreamsAssetsExecute(r ApiGetStreamsAssetsRequest return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetSubscriptionsInStreamRequest struct { - ctx context.Context - ApiService *StreamsApiService - streamId string - offset *int32 - limit *int32 -} - -// offset -func (r ApiGetSubscriptionsInStreamRequest) Offset(offset int32) ApiGetSubscriptionsInStreamRequest { - r.offset = &offset - return r -} - -// number of records to fetch -func (r ApiGetSubscriptionsInStreamRequest) Limit(limit int32) ApiGetSubscriptionsInStreamRequest { - r.limit = &limit - return r -} - -func (r ApiGetSubscriptionsInStreamRequest) Execute() (*GetSubscriptionsInStreamResponse, *http.Response, error) { - return r.ApiService.GetSubscriptionsInStreamExecute(r) -} - -/* -GetSubscriptionsInStream Get Stream's Subs - -This API provides capability to retrieve subscriptions in a stream - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param streamId Stream UUID - @return ApiGetSubscriptionsInStreamRequest -*/ -func (a *StreamsApiService) GetSubscriptionsInStream(ctx context.Context, streamId string) ApiGetSubscriptionsInStreamRequest { - return ApiGetSubscriptionsInStreamRequest{ - ApiService: a, - ctx: ctx, - streamId: streamId, - } -} - -// Execute executes the request -// -// @return GetSubscriptionsInStreamResponse -func (a *StreamsApiService) GetSubscriptionsInStreamExecute(r ApiGetSubscriptionsInStreamRequest) (*GetSubscriptionsInStreamResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetSubscriptionsInStreamResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.GetSubscriptionsInStream") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/streamSubscriptions" - localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v []Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v []Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v []Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v []Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiUpdateStreamAssetByUuidRequest struct { ctx context.Context ApiService *StreamsApiService diff --git a/services/fabricv4/client.go b/services/fabricv4/client.go index cf843263..43d195d8 100644 --- a/services/fabricv4/client.go +++ b/services/fabricv4/client.go @@ -37,7 +37,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Equinix Fabric API v4 API v4.18 +// APIClient manages communication with the Equinix Fabric API v4 API v4.19 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/services/fabricv4/docs/CheckCapacity.md b/services/fabricv4/docs/CheckCapacity.md new file mode 100644 index 00000000..eeb260f0 --- /dev/null +++ b/services/fabricv4/docs/CheckCapacity.md @@ -0,0 +1,238 @@ +# CheckCapacity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DemarcationPointIbx** | Pointer to **string** | demarcation point IBX | [optional] +**TetherIbx** | Pointer to **string** | cloud port ibx location | [optional] +**MetroConnectUsed** | Pointer to **bool** | metroConnect | [optional] +**CampusCrossConnectUsed** | Pointer to **bool** | campusCrossConnect | [optional] +**LagEnabled** | Pointer to **bool** | lag or non lag port | [optional] +**PhysicalPortsSpeed** | Pointer to **int32** | Physical Ports Speed in Mbps | [optional] +**Redundancy** | Pointer to [**CheckCapacityPortRedundancy**](CheckCapacityPortRedundancy.md) | | [optional] +**PhysicalPortsType** | Pointer to [**PortPhysicalPortsType**](PortPhysicalPortsType.md) | | [optional] + +## Methods + +### NewCheckCapacity + +`func NewCheckCapacity() *CheckCapacity` + +NewCheckCapacity instantiates a new CheckCapacity 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 + +### NewCheckCapacityWithDefaults + +`func NewCheckCapacityWithDefaults() *CheckCapacity` + +NewCheckCapacityWithDefaults instantiates a new CheckCapacity 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 + +### GetDemarcationPointIbx + +`func (o *CheckCapacity) GetDemarcationPointIbx() string` + +GetDemarcationPointIbx returns the DemarcationPointIbx field if non-nil, zero value otherwise. + +### GetDemarcationPointIbxOk + +`func (o *CheckCapacity) GetDemarcationPointIbxOk() (*string, bool)` + +GetDemarcationPointIbxOk returns a tuple with the DemarcationPointIbx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDemarcationPointIbx + +`func (o *CheckCapacity) SetDemarcationPointIbx(v string)` + +SetDemarcationPointIbx sets DemarcationPointIbx field to given value. + +### HasDemarcationPointIbx + +`func (o *CheckCapacity) HasDemarcationPointIbx() bool` + +HasDemarcationPointIbx returns a boolean if a field has been set. + +### GetTetherIbx + +`func (o *CheckCapacity) GetTetherIbx() string` + +GetTetherIbx returns the TetherIbx field if non-nil, zero value otherwise. + +### GetTetherIbxOk + +`func (o *CheckCapacity) GetTetherIbxOk() (*string, bool)` + +GetTetherIbxOk returns a tuple with the TetherIbx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTetherIbx + +`func (o *CheckCapacity) SetTetherIbx(v string)` + +SetTetherIbx sets TetherIbx field to given value. + +### HasTetherIbx + +`func (o *CheckCapacity) HasTetherIbx() bool` + +HasTetherIbx returns a boolean if a field has been set. + +### GetMetroConnectUsed + +`func (o *CheckCapacity) GetMetroConnectUsed() bool` + +GetMetroConnectUsed returns the MetroConnectUsed field if non-nil, zero value otherwise. + +### GetMetroConnectUsedOk + +`func (o *CheckCapacity) GetMetroConnectUsedOk() (*bool, bool)` + +GetMetroConnectUsedOk returns a tuple with the MetroConnectUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetroConnectUsed + +`func (o *CheckCapacity) SetMetroConnectUsed(v bool)` + +SetMetroConnectUsed sets MetroConnectUsed field to given value. + +### HasMetroConnectUsed + +`func (o *CheckCapacity) HasMetroConnectUsed() bool` + +HasMetroConnectUsed returns a boolean if a field has been set. + +### GetCampusCrossConnectUsed + +`func (o *CheckCapacity) GetCampusCrossConnectUsed() bool` + +GetCampusCrossConnectUsed returns the CampusCrossConnectUsed field if non-nil, zero value otherwise. + +### GetCampusCrossConnectUsedOk + +`func (o *CheckCapacity) GetCampusCrossConnectUsedOk() (*bool, bool)` + +GetCampusCrossConnectUsedOk returns a tuple with the CampusCrossConnectUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCampusCrossConnectUsed + +`func (o *CheckCapacity) SetCampusCrossConnectUsed(v bool)` + +SetCampusCrossConnectUsed sets CampusCrossConnectUsed field to given value. + +### HasCampusCrossConnectUsed + +`func (o *CheckCapacity) HasCampusCrossConnectUsed() bool` + +HasCampusCrossConnectUsed returns a boolean if a field has been set. + +### GetLagEnabled + +`func (o *CheckCapacity) GetLagEnabled() bool` + +GetLagEnabled returns the LagEnabled field if non-nil, zero value otherwise. + +### GetLagEnabledOk + +`func (o *CheckCapacity) GetLagEnabledOk() (*bool, bool)` + +GetLagEnabledOk returns a tuple with the LagEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLagEnabled + +`func (o *CheckCapacity) SetLagEnabled(v bool)` + +SetLagEnabled sets LagEnabled field to given value. + +### HasLagEnabled + +`func (o *CheckCapacity) HasLagEnabled() bool` + +HasLagEnabled returns a boolean if a field has been set. + +### GetPhysicalPortsSpeed + +`func (o *CheckCapacity) GetPhysicalPortsSpeed() int32` + +GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field if non-nil, zero value otherwise. + +### GetPhysicalPortsSpeedOk + +`func (o *CheckCapacity) GetPhysicalPortsSpeedOk() (*int32, bool)` + +GetPhysicalPortsSpeedOk returns a tuple with the PhysicalPortsSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalPortsSpeed + +`func (o *CheckCapacity) SetPhysicalPortsSpeed(v int32)` + +SetPhysicalPortsSpeed sets PhysicalPortsSpeed field to given value. + +### HasPhysicalPortsSpeed + +`func (o *CheckCapacity) HasPhysicalPortsSpeed() bool` + +HasPhysicalPortsSpeed returns a boolean if a field has been set. + +### GetRedundancy + +`func (o *CheckCapacity) GetRedundancy() CheckCapacityPortRedundancy` + +GetRedundancy returns the Redundancy field if non-nil, zero value otherwise. + +### GetRedundancyOk + +`func (o *CheckCapacity) GetRedundancyOk() (*CheckCapacityPortRedundancy, bool)` + +GetRedundancyOk returns a tuple with the Redundancy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundancy + +`func (o *CheckCapacity) SetRedundancy(v CheckCapacityPortRedundancy)` + +SetRedundancy sets Redundancy field to given value. + +### HasRedundancy + +`func (o *CheckCapacity) HasRedundancy() bool` + +HasRedundancy returns a boolean if a field has been set. + +### GetPhysicalPortsType + +`func (o *CheckCapacity) GetPhysicalPortsType() PortPhysicalPortsType` + +GetPhysicalPortsType returns the PhysicalPortsType field if non-nil, zero value otherwise. + +### GetPhysicalPortsTypeOk + +`func (o *CheckCapacity) GetPhysicalPortsTypeOk() (*PortPhysicalPortsType, bool)` + +GetPhysicalPortsTypeOk returns a tuple with the PhysicalPortsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalPortsType + +`func (o *CheckCapacity) SetPhysicalPortsType(v PortPhysicalPortsType)` + +SetPhysicalPortsType sets PhysicalPortsType field to given value. + +### HasPhysicalPortsType + +`func (o *CheckCapacity) HasPhysicalPortsType() bool` + +HasPhysicalPortsType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/fabricv4/docs/CheckCapacityPortRedundancy.md b/services/fabricv4/docs/CheckCapacityPortRedundancy.md new file mode 100644 index 00000000..7274f8be --- /dev/null +++ b/services/fabricv4/docs/CheckCapacityPortRedundancy.md @@ -0,0 +1,56 @@ +# CheckCapacityPortRedundancy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Priority** | Pointer to [**PortPriority**](PortPriority.md) | | [optional] + +## Methods + +### NewCheckCapacityPortRedundancy + +`func NewCheckCapacityPortRedundancy() *CheckCapacityPortRedundancy` + +NewCheckCapacityPortRedundancy instantiates a new CheckCapacityPortRedundancy 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 + +### NewCheckCapacityPortRedundancyWithDefaults + +`func NewCheckCapacityPortRedundancyWithDefaults() *CheckCapacityPortRedundancy` + +NewCheckCapacityPortRedundancyWithDefaults instantiates a new CheckCapacityPortRedundancy 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 + +### GetPriority + +`func (o *CheckCapacityPortRedundancy) GetPriority() PortPriority` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CheckCapacityPortRedundancy) GetPriorityOk() (*PortPriority, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CheckCapacityPortRedundancy) SetPriority(v PortPriority)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CheckCapacityPortRedundancy) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/fabricv4/docs/TopUtilizedStatistics.md b/services/fabricv4/docs/CheckCapacityResponse.md similarity index 61% rename from services/fabricv4/docs/TopUtilizedStatistics.md rename to services/fabricv4/docs/CheckCapacityResponse.md index 25bd739c..cc34f839 100644 --- a/services/fabricv4/docs/TopUtilizedStatistics.md +++ b/services/fabricv4/docs/CheckCapacityResponse.md @@ -1,78 +1,78 @@ -# TopUtilizedStatistics +# CheckCapacityResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] -**Data** | Pointer to [**[]Statistics**](Statistics.md) | Data returned from the API call. | [optional] +**Data** | Pointer to [**[]CheckCapacity**](CheckCapacity.md) | GET All available ports | [optional] ## Methods -### NewTopUtilizedStatistics +### NewCheckCapacityResponse -`func NewTopUtilizedStatistics() *TopUtilizedStatistics` +`func NewCheckCapacityResponse() *CheckCapacityResponse` -NewTopUtilizedStatistics instantiates a new TopUtilizedStatistics object +NewCheckCapacityResponse instantiates a new CheckCapacityResponse 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 -### NewTopUtilizedStatisticsWithDefaults +### NewCheckCapacityResponseWithDefaults -`func NewTopUtilizedStatisticsWithDefaults() *TopUtilizedStatistics` +`func NewCheckCapacityResponseWithDefaults() *CheckCapacityResponse` -NewTopUtilizedStatisticsWithDefaults instantiates a new TopUtilizedStatistics object +NewCheckCapacityResponseWithDefaults instantiates a new CheckCapacityResponse 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 ### GetPagination -`func (o *TopUtilizedStatistics) GetPagination() Pagination` +`func (o *CheckCapacityResponse) GetPagination() Pagination` GetPagination returns the Pagination field if non-nil, zero value otherwise. ### GetPaginationOk -`func (o *TopUtilizedStatistics) GetPaginationOk() (*Pagination, bool)` +`func (o *CheckCapacityResponse) GetPaginationOk() (*Pagination, bool)` GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPagination -`func (o *TopUtilizedStatistics) SetPagination(v Pagination)` +`func (o *CheckCapacityResponse) SetPagination(v Pagination)` SetPagination sets Pagination field to given value. ### HasPagination -`func (o *TopUtilizedStatistics) HasPagination() bool` +`func (o *CheckCapacityResponse) HasPagination() bool` HasPagination returns a boolean if a field has been set. ### GetData -`func (o *TopUtilizedStatistics) GetData() []Statistics` +`func (o *CheckCapacityResponse) GetData() []CheckCapacity` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *TopUtilizedStatistics) GetDataOk() (*[]Statistics, bool)` +`func (o *CheckCapacityResponse) GetDataOk() (*[]CheckCapacity, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *TopUtilizedStatistics) SetData(v []Statistics)` +`func (o *CheckCapacityResponse) SetData(v []CheckCapacity)` SetData sets Data field to given value. ### HasData -`func (o *TopUtilizedStatistics) HasData() bool` +`func (o *CheckCapacityResponse) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/services/fabricv4/docs/Duration.md b/services/fabricv4/docs/Duration.md deleted file mode 100644 index 337eb2c2..00000000 --- a/services/fabricv4/docs/Duration.md +++ /dev/null @@ -1,15 +0,0 @@ -# Duration - -## Enum - - -* `P7_D` (value: `"P7D"`) - -* `P1_M` (value: `"P1M"`) - -* `P3_M` (value: `"P3M"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/GetSubscriptionsInStreamResponse.md b/services/fabricv4/docs/GetSubscriptionsInStreamResponse.md deleted file mode 100644 index 5cfa6955..00000000 --- a/services/fabricv4/docs/GetSubscriptionsInStreamResponse.md +++ /dev/null @@ -1,82 +0,0 @@ -# GetSubscriptionsInStreamResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] -**Data** | Pointer to [**[]StreamGetSubscriptions**](StreamGetSubscriptions.md) | Data returned from the API call. | [optional] - -## Methods - -### NewGetSubscriptionsInStreamResponse - -`func NewGetSubscriptionsInStreamResponse() *GetSubscriptionsInStreamResponse` - -NewGetSubscriptionsInStreamResponse instantiates a new GetSubscriptionsInStreamResponse 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 - -### NewGetSubscriptionsInStreamResponseWithDefaults - -`func NewGetSubscriptionsInStreamResponseWithDefaults() *GetSubscriptionsInStreamResponse` - -NewGetSubscriptionsInStreamResponseWithDefaults instantiates a new GetSubscriptionsInStreamResponse 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 - -### GetPagination - -`func (o *GetSubscriptionsInStreamResponse) GetPagination() Pagination` - -GetPagination returns the Pagination field if non-nil, zero value otherwise. - -### GetPaginationOk - -`func (o *GetSubscriptionsInStreamResponse) GetPaginationOk() (*Pagination, bool)` - -GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPagination - -`func (o *GetSubscriptionsInStreamResponse) SetPagination(v Pagination)` - -SetPagination sets Pagination field to given value. - -### HasPagination - -`func (o *GetSubscriptionsInStreamResponse) HasPagination() bool` - -HasPagination returns a boolean if a field has been set. - -### GetData - -`func (o *GetSubscriptionsInStreamResponse) GetData() []StreamGetSubscriptions` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GetSubscriptionsInStreamResponse) GetDataOk() (*[]StreamGetSubscriptions, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GetSubscriptionsInStreamResponse) SetData(v []StreamGetSubscriptions)` - -SetData sets Data field to given value. - -### HasData - -`func (o *GetSubscriptionsInStreamResponse) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/MetricInterval.md b/services/fabricv4/docs/MetricInterval.md deleted file mode 100644 index eb08969a..00000000 --- a/services/fabricv4/docs/MetricInterval.md +++ /dev/null @@ -1,11 +0,0 @@ -# MetricInterval - -## Enum - - -* `P7_D` (value: `"P7D"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/PortCapacityExpression.md b/services/fabricv4/docs/PortCapacityExpression.md new file mode 100644 index 00000000..28fce956 --- /dev/null +++ b/services/fabricv4/docs/PortCapacityExpression.md @@ -0,0 +1,160 @@ +# PortCapacityExpression + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**And** | Pointer to [**PortCapacityExpression**](PortCapacityExpression.md) | | [optional] +**Or** | Pointer to [**PortCapacityExpression**](PortCapacityExpression.md) | | [optional] +**Property** | Pointer to [**PortCapacitySearchFieldName**](PortCapacitySearchFieldName.md) | | [optional] +**Operator** | Pointer to [**ServiceTokenSearchExpressionOperator**](ServiceTokenSearchExpressionOperator.md) | | [optional] +**Values** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPortCapacityExpression + +`func NewPortCapacityExpression() *PortCapacityExpression` + +NewPortCapacityExpression instantiates a new PortCapacityExpression 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 + +### NewPortCapacityExpressionWithDefaults + +`func NewPortCapacityExpressionWithDefaults() *PortCapacityExpression` + +NewPortCapacityExpressionWithDefaults instantiates a new PortCapacityExpression 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 + +### GetAnd + +`func (o *PortCapacityExpression) GetAnd() PortCapacityExpression` + +GetAnd returns the And field if non-nil, zero value otherwise. + +### GetAndOk + +`func (o *PortCapacityExpression) GetAndOk() (*PortCapacityExpression, bool)` + +GetAndOk returns a tuple with the And field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnd + +`func (o *PortCapacityExpression) SetAnd(v PortCapacityExpression)` + +SetAnd sets And field to given value. + +### HasAnd + +`func (o *PortCapacityExpression) HasAnd() bool` + +HasAnd returns a boolean if a field has been set. + +### GetOr + +`func (o *PortCapacityExpression) GetOr() PortCapacityExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *PortCapacityExpression) GetOrOk() (*PortCapacityExpression, bool)` + +GetOrOk returns a tuple with the Or field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOr + +`func (o *PortCapacityExpression) SetOr(v PortCapacityExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *PortCapacityExpression) HasOr() bool` + +HasOr returns a boolean if a field has been set. + +### GetProperty + +`func (o *PortCapacityExpression) GetProperty() PortCapacitySearchFieldName` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *PortCapacityExpression) GetPropertyOk() (*PortCapacitySearchFieldName, bool)` + +GetPropertyOk returns a tuple with the Property field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperty + +`func (o *PortCapacityExpression) SetProperty(v PortCapacitySearchFieldName)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *PortCapacityExpression) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *PortCapacityExpression) GetOperator() ServiceTokenSearchExpressionOperator` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *PortCapacityExpression) GetOperatorOk() (*ServiceTokenSearchExpressionOperator, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *PortCapacityExpression) SetOperator(v ServiceTokenSearchExpressionOperator)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *PortCapacityExpression) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *PortCapacityExpression) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *PortCapacityExpression) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *PortCapacityExpression) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *PortCapacityExpression) HasValues() bool` + +HasValues returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/fabricv4/docs/PortCapacitySearchFieldName.md b/services/fabricv4/docs/PortCapacitySearchFieldName.md new file mode 100644 index 00000000..8b099b59 --- /dev/null +++ b/services/fabricv4/docs/PortCapacitySearchFieldName.md @@ -0,0 +1,19 @@ +# PortCapacitySearchFieldName + +## Enum + + +* `DEMARCATION_POINT_IBX` (value: `"/demarcationPointIbx"`) + +* `TETHER_IBX` (value: `"/tetherIbx"`) + +* `PHYSICAL_PORTS_SPEED` (value: `"/physicalPortsSpeed"`) + +* `PHYSICAL_PORTS_TYPE` (value: `"/physicalPortsType"`) + +* `LAG_ENABLED` (value: `"/lagEnabled"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/fabricv4/docs/PortCapacitySearchRequest.md b/services/fabricv4/docs/PortCapacitySearchRequest.md new file mode 100644 index 00000000..ab211d71 --- /dev/null +++ b/services/fabricv4/docs/PortCapacitySearchRequest.md @@ -0,0 +1,82 @@ +# PortCapacitySearchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filter** | Pointer to [**PortCapacityExpression**](PortCapacityExpression.md) | | [optional] +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] + +## Methods + +### NewPortCapacitySearchRequest + +`func NewPortCapacitySearchRequest() *PortCapacitySearchRequest` + +NewPortCapacitySearchRequest instantiates a new PortCapacitySearchRequest 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 + +### NewPortCapacitySearchRequestWithDefaults + +`func NewPortCapacitySearchRequestWithDefaults() *PortCapacitySearchRequest` + +NewPortCapacitySearchRequestWithDefaults instantiates a new PortCapacitySearchRequest 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 + +### GetFilter + +`func (o *PortCapacitySearchRequest) GetFilter() PortCapacityExpression` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *PortCapacitySearchRequest) GetFilterOk() (*PortCapacityExpression, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *PortCapacitySearchRequest) SetFilter(v PortCapacityExpression)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *PortCapacitySearchRequest) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### GetPagination + +`func (o *PortCapacitySearchRequest) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *PortCapacitySearchRequest) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *PortCapacitySearchRequest) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *PortCapacitySearchRequest) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/fabricv4/docs/PortChangeOperation.md b/services/fabricv4/docs/PortChangeOperation.md new file mode 100644 index 00000000..8987378b --- /dev/null +++ b/services/fabricv4/docs/PortChangeOperation.md @@ -0,0 +1,103 @@ +# PortChangeOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Op** | **string** | Handy shortcut for operation name | +**Path** | **string** | path inside document leading to updated parameter | +**Value** | **interface{}** | new value for updated parameter | + +## Methods + +### NewPortChangeOperation + +`func NewPortChangeOperation(op string, path string, value interface{}, ) *PortChangeOperation` + +NewPortChangeOperation instantiates a new PortChangeOperation 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 + +### NewPortChangeOperationWithDefaults + +`func NewPortChangeOperationWithDefaults() *PortChangeOperation` + +NewPortChangeOperationWithDefaults instantiates a new PortChangeOperation 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 + +### GetOp + +`func (o *PortChangeOperation) GetOp() string` + +GetOp returns the Op field if non-nil, zero value otherwise. + +### GetOpOk + +`func (o *PortChangeOperation) GetOpOk() (*string, bool)` + +GetOpOk returns a tuple with the Op field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOp + +`func (o *PortChangeOperation) SetOp(v string)` + +SetOp sets Op field to given value. + + +### GetPath + +`func (o *PortChangeOperation) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *PortChangeOperation) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *PortChangeOperation) SetPath(v string)` + +SetPath sets Path field to given value. + + +### GetValue + +`func (o *PortChangeOperation) GetValue() interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PortChangeOperation) GetValueOk() (*interface{}, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PortChangeOperation) SetValue(v interface{})` + +SetValue sets Value field to given value. + + +### SetValueNil + +`func (o *PortChangeOperation) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *PortChangeOperation) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/fabricv4/docs/PortsApi.md b/services/fabricv4/docs/PortsApi.md index ed709e19..51f5e4df 100644 --- a/services/fabricv4/docs/PortsApi.md +++ b/services/fabricv4/docs/PortsApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description [**GetPorts**](PortsApi.md#GetPorts) | **Get** /fabric/v4/ports | Get All Ports [**GetVlans**](PortsApi.md#GetVlans) | **Get** /fabric/v4/ports/{portUuid}/linkProtocols | Get Vlans [**SearchPorts**](PortsApi.md#SearchPorts) | **Post** /fabric/v4/ports/search | Search ports +[**UpdatePortByUuid**](PortsApi.md#UpdatePortByUuid) | **Patch** /fabric/v4/ports/{portId} | Update by UUID @@ -560,3 +561,75 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## UpdatePortByUuid + +> AllPortsResponse UpdatePortByUuid(ctx, portId).PortChangeOperation(portChangeOperation).Execute() + +Update by UUID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + portId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Port UUID + portChangeOperation := []openapiclient.PortChangeOperation{*openapiclient.NewPortChangeOperation("replace", "/name", interface{}(123))} // []PortChangeOperation | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PortsApi.UpdatePortByUuid(context.Background(), portId).PortChangeOperation(portChangeOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PortsApi.UpdatePortByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePortByUuid`: AllPortsResponse + fmt.Fprintf(os.Stdout, "Response from `PortsApi.UpdatePortByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**portId** | **string** | Port UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdatePortByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **portChangeOperation** | [**[]PortChangeOperation**](PortChangeOperation.md) | | + +### Return type + +[**AllPortsResponse**](AllPortsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/fabricv4/docs/QueryDirection.md b/services/fabricv4/docs/QueryDirection.md deleted file mode 100644 index f9211b4f..00000000 --- a/services/fabricv4/docs/QueryDirection.md +++ /dev/null @@ -1,13 +0,0 @@ -# QueryDirection - -## Enum - - -* `INBOUND` (value: `"inbound"`) - -* `OUTBOUND` (value: `"outbound"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/RouteFilterRulesApi.md b/services/fabricv4/docs/RouteFilterRulesApi.md index 005dc8fe..53a383f7 100644 --- a/services/fabricv4/docs/RouteFilterRulesApi.md +++ b/services/fabricv4/docs/RouteFilterRulesApi.md @@ -556,7 +556,7 @@ import ( func main() { routeFilterId := "routeFilterId_example" // string | Route Filters Id routeFilterRuleId := "routeFilterRuleId_example" // string | Route Filter Rules Id - routeFilterRulesPatchRequestItem := []openapiclient.RouteFilterRulesPatchRequestItem{*openapiclient.NewRouteFilterRulesPatchRequestItem("replace", "/prefixMatch", interface{}(123))} // []RouteFilterRulesPatchRequestItem | + routeFilterRulesPatchRequestItem := []openapiclient.RouteFilterRulesPatchRequestItem{*openapiclient.NewRouteFilterRulesPatchRequestItem("replace", "/prefixMatch", map[string]interface{}(123))} // []RouteFilterRulesPatchRequestItem | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/services/fabricv4/docs/RouteFilterRulesPatchRequestItem.md b/services/fabricv4/docs/RouteFilterRulesPatchRequestItem.md index d28a7fed..52228f93 100644 --- a/services/fabricv4/docs/RouteFilterRulesPatchRequestItem.md +++ b/services/fabricv4/docs/RouteFilterRulesPatchRequestItem.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Op** | **string** | Handy shortcut for operation name | **Path** | **string** | path to change | -**Value** | **interface{}** | new value for updated parameter | +**Value** | **map[string]interface{}** | new value for updated parameter | ## Methods ### NewRouteFilterRulesPatchRequestItem -`func NewRouteFilterRulesPatchRequestItem(op string, path string, value interface{}, ) *RouteFilterRulesPatchRequestItem` +`func NewRouteFilterRulesPatchRequestItem(op string, path string, value map[string]interface{}, ) *RouteFilterRulesPatchRequestItem` NewRouteFilterRulesPatchRequestItem instantiates a new RouteFilterRulesPatchRequestItem object This constructor will assign default values to properties that have it defined, @@ -69,34 +69,24 @@ SetPath sets Path field to given value. ### GetValue -`func (o *RouteFilterRulesPatchRequestItem) GetValue() interface{}` +`func (o *RouteFilterRulesPatchRequestItem) GetValue() map[string]interface{}` GetValue returns the Value field if non-nil, zero value otherwise. ### GetValueOk -`func (o *RouteFilterRulesPatchRequestItem) GetValueOk() (*interface{}, bool)` +`func (o *RouteFilterRulesPatchRequestItem) GetValueOk() (*map[string]interface{}, bool)` GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetValue -`func (o *RouteFilterRulesPatchRequestItem) SetValue(v interface{})` +`func (o *RouteFilterRulesPatchRequestItem) SetValue(v map[string]interface{})` SetValue sets Value field to given value. -### SetValueNil - -`func (o *RouteFilterRulesPatchRequestItem) SetValueNil(b bool)` - - SetValueNil sets the value for Value to be an explicit nil - -### UnsetValue -`func (o *RouteFilterRulesPatchRequestItem) UnsetValue()` - -UnsetValue ensures that no value is present for Value, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/fabricv4/docs/ServiceTokenConnection.md b/services/fabricv4/docs/ServiceTokenConnection.md index 290cb7b6..93d73ba2 100644 --- a/services/fabricv4/docs/ServiceTokenConnection.md +++ b/services/fabricv4/docs/ServiceTokenConnection.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | [**ServiceTokenConnectionType**](ServiceTokenConnectionType.md) | | +**Type** | Pointer to [**ServiceTokenConnectionType**](ServiceTokenConnectionType.md) | | [optional] **Href** | Pointer to **string** | An absolute URL that is the subject of the link's context. | [optional] [readonly] **Uuid** | Pointer to **string** | Equinix-assigned connection identifier | [optional] **AllowRemoteConnection** | Pointer to **bool** | Authorization to connect remotely | [optional] [default to false] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewServiceTokenConnection -`func NewServiceTokenConnection(type_ ServiceTokenConnectionType, ) *ServiceTokenConnection` +`func NewServiceTokenConnection() *ServiceTokenConnection` NewServiceTokenConnection instantiates a new ServiceTokenConnection object This constructor will assign default values to properties that have it defined, @@ -52,6 +52,11 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. +### HasType + +`func (o *ServiceTokenConnection) HasType() bool` + +HasType returns a boolean if a field has been set. ### GetHref diff --git a/services/fabricv4/docs/ServiceTokenConnectionType.md b/services/fabricv4/docs/ServiceTokenConnectionType.md index 6c7848fa..5fbf4852 100644 --- a/services/fabricv4/docs/ServiceTokenConnectionType.md +++ b/services/fabricv4/docs/ServiceTokenConnectionType.md @@ -13,6 +13,8 @@ * `IPWAN_VC` (value: `"IPWAN_VC"`) +* `IP_VC` (value: `"IP_VC"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/fabricv4/docs/Sort.md b/services/fabricv4/docs/Sort.md deleted file mode 100644 index d71fe4ea..00000000 --- a/services/fabricv4/docs/Sort.md +++ /dev/null @@ -1,11 +0,0 @@ -# Sort - -## Enum - - -* `BANDWIDTH_UTILIZATION` (value: `"-bandwidthUtilization"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/StatisticsApi.md b/services/fabricv4/docs/StatisticsApi.md index 826739b2..d9926e8b 100644 --- a/services/fabricv4/docs/StatisticsApi.md +++ b/services/fabricv4/docs/StatisticsApi.md @@ -5,7 +5,6 @@ All URIs are relative to *https://api.equinix.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**GetConnectionStatsByPortUuid**](StatisticsApi.md#GetConnectionStatsByPortUuid) | **Get** /fabric/v4/connections/{connectionId}/stats | Get Stats by uuid -[**GetPortStats**](StatisticsApi.md#GetPortStats) | **Get** /fabric/v4/ports/stats | Top Port Statistics [**GetPortStatsByPortUuid**](StatisticsApi.md#GetPortStatsByPortUuid) | **Get** /fabric/v4/ports/{portId}/stats | Get Stats by uuid @@ -87,84 +86,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetPortStats - -> TopUtilizedStatistics GetPortStats(ctx).Metros(metros).Sort(sort).Top(top).Duration(duration).Direction(direction).MetricInterval(metricInterval).ProjectId(projectId).Execute() - -Top Port Statistics - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" -) - -func main() { - metros := []string{"Inner_example"} // []string | Two-letter prefix indicating the metropolitan area in which a specified Equinix asset is located. - sort := openapiclient.sort("-bandwidthUtilization") // Sort | Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The \"?\" prefix indicates descending (DESC) order. (optional) (default to "-bandwidthUtilization") - top := int32(56) // int32 | Filter returning only the specified number of most heavily trafficked ports. The standard value is [1...10], and the default is 5. (optional) (default to 5) - duration := openapiclient.duration("P7D") // Duration | duration (optional) (default to "P7D") - direction := openapiclient.query_direction("inbound") // QueryDirection | Direction of traffic from the requester's viewpoint. The default is outbound. (optional) (default to "outbound") - metricInterval := openapiclient.metricInterval("P7D") // MetricInterval | metricInterval (optional) (default to "P7D") - projectId := "projectId_example" // string | projectId (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StatisticsApi.GetPortStats(context.Background()).Metros(metros).Sort(sort).Top(top).Duration(duration).Direction(direction).MetricInterval(metricInterval).ProjectId(projectId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `StatisticsApi.GetPortStats``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPortStats`: TopUtilizedStatistics - fmt.Fprintf(os.Stdout, "Response from `StatisticsApi.GetPortStats`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetPortStatsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **metros** | **[]string** | Two-letter prefix indicating the metropolitan area in which a specified Equinix asset is located. | - **sort** | [**Sort**](Sort.md) | Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The \"?\" prefix indicates descending (DESC) order. | [default to "-bandwidthUtilization"] - **top** | **int32** | Filter returning only the specified number of most heavily trafficked ports. The standard value is [1...10], and the default is 5. | [default to 5] - **duration** | [**Duration**](Duration.md) | duration | [default to "P7D"] - **direction** | [**QueryDirection**](QueryDirection.md) | Direction of traffic from the requester's viewpoint. The default is outbound. | [default to "outbound"] - **metricInterval** | [**MetricInterval**](MetricInterval.md) | metricInterval | [default to "P7D"] - **projectId** | **string** | projectId | - -### Return type - -[**TopUtilizedStatistics**](TopUtilizedStatistics.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## GetPortStatsByPortUuid > Statistics GetPortStatsByPortUuid(ctx, portId).StartDateTime(startDateTime).EndDateTime(endDateTime).Execute() diff --git a/services/fabricv4/docs/StreamFilter.md b/services/fabricv4/docs/StreamFilter.md index 094eae98..e72fce08 100644 --- a/services/fabricv4/docs/StreamFilter.md +++ b/services/fabricv4/docs/StreamFilter.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Property** | Pointer to **string** | Possible field names to use on filters: * `/subject` - subject * `/type` - type | [optional] **Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `in` - in * `LIKE` - case-sensitive like * `ILIKE` - case-insensitive like | [optional] -**Values** | Pointer to **[]string** | | [optional] +**Values** | Pointer to **[]string** | ### Supported event or metric names to use on filters with property /type: * `*` - all events or metrics * `equinix.fabric.port.*` - port events or metrics * `equinix.fabric.connection.*` - connection events or metrics * `equinix.fabric.router.*` - cloud router events * `equinix.fabric.metro.*` - metro metrics * `equinix.fabric.network.*` - network events * `equinix.fabric.service_token.*` - service token events * `equinix.network_edge.*` - network edge events * `equinix.network_edge.acl.*` - network edge acl events * `equinix.network_edge.device.*` - network edge device events * `equinix.access_manager.*` - identity access manager events * `equinix.access_manager.user.role.*` - identity access manager user role events ### Supported event or metric names to use on filters with property /subject: * `*` - all events or metrics * `/fabric/v4/ports/<uuid>` - port events or metrics * `/fabric/v4/connections/<uuid>` - connection events or metrics * `/fabric/v4/routers/<uuid>` - cloud router events * `/fabric/v4/metros/<metroCode>` - metro metrics * `/fabric/v4/networks/<uuid>` - network events * `/fabric/v4/tokens/<uuid>` - service token events * `/ne/v1/acl/<uuid>` - network edge acl events * `/ne/v1/devices/<uuid>` - network edge device events * `/am/v2/users/<uuid>/roleAssignments/<uuid>` - identity access manager events | [optional] **Or** | Pointer to [**[]StreamFilterSimpleExpression**](StreamFilterSimpleExpression.md) | | [optional] ## Methods diff --git a/services/fabricv4/docs/StreamFilterSimpleExpression.md b/services/fabricv4/docs/StreamFilterSimpleExpression.md index e426a2be..cf6ca042 100644 --- a/services/fabricv4/docs/StreamFilterSimpleExpression.md +++ b/services/fabricv4/docs/StreamFilterSimpleExpression.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Property** | Pointer to **string** | Possible field names to use on filters: * `/subject` - subject * `/type` - type | [optional] **Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `in` - in * `LIKE` - case-sensitive like * `ILIKE` - case-insensitive like | [optional] -**Values** | Pointer to **[]string** | | [optional] +**Values** | Pointer to **[]string** | ### Supported event or metric names to use on filters with property /type: * `*` - all events or metrics * `equinix.fabric.port.*` - port events or metrics * `equinix.fabric.connection.*` - connection events or metrics * `equinix.fabric.router.*` - cloud router events * `equinix.fabric.metro.*` - metro metrics * `equinix.fabric.network.*` - network events * `equinix.fabric.service_token.*` - service token events * `equinix.network_edge.*` - network edge events * `equinix.network_edge.acl.*` - network edge acl events * `equinix.network_edge.device.*` - network edge device events * `equinix.access_manager.*` - identity access manager events * `equinix.access_manager.user.role.*` - identity access manager user role events ### Supported event or metric names to use on filters with property /subject: * `*` - all events or metrics * `/fabric/v4/ports/<uuid>` - port events or metrics * `/fabric/v4/connections/<uuid>` - connection events or metrics * `/fabric/v4/routers/<uuid>` - cloud router events * `/fabric/v4/metros/<metroCode>` - metro metrics * `/fabric/v4/networks/<uuid>` - network events * `/fabric/v4/tokens/<uuid>` - service token events * `/ne/v1/acl/<uuid>` - network edge acl events * `/ne/v1/devices/<uuid>` - network edge device events * `/am/v2/users/<uuid>/roleAssignments/<uuid>` - identity access manager events | [optional] ## Methods diff --git a/services/fabricv4/docs/StreamGetSubscriptions.md b/services/fabricv4/docs/StreamGetSubscriptions.md deleted file mode 100644 index ad10f210..00000000 --- a/services/fabricv4/docs/StreamGetSubscriptions.md +++ /dev/null @@ -1,108 +0,0 @@ -# StreamGetSubscriptions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Href** | Pointer to **string** | Stream Get Stream Subscriptions URI | [optional] [readonly] -**Uuid** | Pointer to **string** | Equinix-assigned access point identifier | [optional] -**Type** | Pointer to [**StreamGetSubscriptionsType**](StreamGetSubscriptionsType.md) | | [optional] - -## Methods - -### NewStreamGetSubscriptions - -`func NewStreamGetSubscriptions() *StreamGetSubscriptions` - -NewStreamGetSubscriptions instantiates a new StreamGetSubscriptions 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 - -### NewStreamGetSubscriptionsWithDefaults - -`func NewStreamGetSubscriptionsWithDefaults() *StreamGetSubscriptions` - -NewStreamGetSubscriptionsWithDefaults instantiates a new StreamGetSubscriptions 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 - -### GetHref - -`func (o *StreamGetSubscriptions) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *StreamGetSubscriptions) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *StreamGetSubscriptions) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *StreamGetSubscriptions) HasHref() bool` - -HasHref returns a boolean if a field has been set. - -### GetUuid - -`func (o *StreamGetSubscriptions) GetUuid() string` - -GetUuid returns the Uuid field if non-nil, zero value otherwise. - -### GetUuidOk - -`func (o *StreamGetSubscriptions) GetUuidOk() (*string, bool)` - -GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUuid - -`func (o *StreamGetSubscriptions) SetUuid(v string)` - -SetUuid sets Uuid field to given value. - -### HasUuid - -`func (o *StreamGetSubscriptions) HasUuid() bool` - -HasUuid returns a boolean if a field has been set. - -### GetType - -`func (o *StreamGetSubscriptions) GetType() StreamGetSubscriptionsType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *StreamGetSubscriptions) GetTypeOk() (*StreamGetSubscriptionsType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *StreamGetSubscriptions) SetType(v StreamGetSubscriptionsType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *StreamGetSubscriptions) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/StreamGetSubscriptionsType.md b/services/fabricv4/docs/StreamGetSubscriptionsType.md deleted file mode 100644 index 21de7774..00000000 --- a/services/fabricv4/docs/StreamGetSubscriptionsType.md +++ /dev/null @@ -1,11 +0,0 @@ -# StreamGetSubscriptionsType - -## Enum - - -* `STREAM_SUBSCRIPTION` (value: `"STREAM_SUBSCRIPTION"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/StreamSubscription.md b/services/fabricv4/docs/StreamSubscription.md index 9a4ae726..ae4e10f6 100644 --- a/services/fabricv4/docs/StreamSubscription.md +++ b/services/fabricv4/docs/StreamSubscription.md @@ -9,10 +9,8 @@ Name | Type | Description | Notes **Type** | Pointer to [**StreamSubscriptionType**](StreamSubscriptionType.md) | | [optional] **Name** | Pointer to **string** | Customer-provided subscription name | [optional] **Description** | Pointer to **string** | Customer-provided subscription description | [optional] -**Project** | Pointer to [**Project**](Project.md) | | [optional] **State** | Pointer to [**StreamSubscriptionState**](StreamSubscriptionState.md) | | [optional] **Enabled** | Pointer to **bool** | Stream subscription enabled status | [optional] -**Stream** | Pointer to [**StreamTarget**](StreamTarget.md) | | [optional] **Filters** | Pointer to [**StreamSubscriptionFilter**](StreamSubscriptionFilter.md) | | [optional] **MetricSelector** | Pointer to [**StreamSubscriptionSelector**](StreamSubscriptionSelector.md) | | [optional] **EventSelector** | Pointer to [**StreamSubscriptionSelector**](StreamSubscriptionSelector.md) | | [optional] @@ -163,31 +161,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetProject - -`func (o *StreamSubscription) GetProject() Project` - -GetProject returns the Project field if non-nil, zero value otherwise. - -### GetProjectOk - -`func (o *StreamSubscription) GetProjectOk() (*Project, bool)` - -GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProject - -`func (o *StreamSubscription) SetProject(v Project)` - -SetProject sets Project field to given value. - -### HasProject - -`func (o *StreamSubscription) HasProject() bool` - -HasProject returns a boolean if a field has been set. - ### GetState `func (o *StreamSubscription) GetState() StreamSubscriptionState` @@ -238,31 +211,6 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. -### GetStream - -`func (o *StreamSubscription) GetStream() StreamTarget` - -GetStream returns the Stream field if non-nil, zero value otherwise. - -### GetStreamOk - -`func (o *StreamSubscription) GetStreamOk() (*StreamTarget, bool)` - -GetStreamOk returns a tuple with the Stream field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStream - -`func (o *StreamSubscription) SetStream(v StreamTarget)` - -SetStream sets Stream field to given value. - -### HasStream - -`func (o *StreamSubscription) HasStream() bool` - -HasStream returns a boolean if a field has been set. - ### GetFilters `func (o *StreamSubscription) GetFilters() StreamSubscriptionFilter` diff --git a/services/fabricv4/docs/StreamSubscriptionPostRequest.md b/services/fabricv4/docs/StreamSubscriptionPostRequest.md index b3dd1c18..e0653b8c 100644 --- a/services/fabricv4/docs/StreamSubscriptionPostRequest.md +++ b/services/fabricv4/docs/StreamSubscriptionPostRequest.md @@ -7,9 +7,7 @@ Name | Type | Description | Notes **Type** | Pointer to [**StreamSubscriptionPostRequestType**](StreamSubscriptionPostRequestType.md) | | [optional] **Name** | Pointer to **string** | Customer-provided stream subscription name | [optional] **Description** | Pointer to **string** | Customer-provided stream subscription description | [optional] -**Project** | Pointer to [**Project**](Project.md) | | [optional] **Enabled** | Pointer to **bool** | Stream subscription enabled status | [optional] -**Stream** | Pointer to [**StreamTarget**](StreamTarget.md) | | [optional] **Filters** | Pointer to [**StreamSubscriptionFilter**](StreamSubscriptionFilter.md) | | [optional] **MetricSelector** | Pointer to [**StreamSubscriptionSelector**](StreamSubscriptionSelector.md) | | [optional] **EventSelector** | Pointer to [**StreamSubscriptionSelector**](StreamSubscriptionSelector.md) | | [optional] @@ -109,31 +107,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetProject - -`func (o *StreamSubscriptionPostRequest) GetProject() Project` - -GetProject returns the Project field if non-nil, zero value otherwise. - -### GetProjectOk - -`func (o *StreamSubscriptionPostRequest) GetProjectOk() (*Project, bool)` - -GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProject - -`func (o *StreamSubscriptionPostRequest) SetProject(v Project)` - -SetProject sets Project field to given value. - -### HasProject - -`func (o *StreamSubscriptionPostRequest) HasProject() bool` - -HasProject returns a boolean if a field has been set. - ### GetEnabled `func (o *StreamSubscriptionPostRequest) GetEnabled() bool` @@ -159,31 +132,6 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. -### GetStream - -`func (o *StreamSubscriptionPostRequest) GetStream() StreamTarget` - -GetStream returns the Stream field if non-nil, zero value otherwise. - -### GetStreamOk - -`func (o *StreamSubscriptionPostRequest) GetStreamOk() (*StreamTarget, bool)` - -GetStreamOk returns a tuple with the Stream field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStream - -`func (o *StreamSubscriptionPostRequest) SetStream(v StreamTarget)` - -SetStream sets Stream field to given value. - -### HasStream - -`func (o *StreamSubscriptionPostRequest) HasStream() bool` - -HasStream returns a boolean if a field has been set. - ### GetFilters `func (o *StreamSubscriptionPostRequest) GetFilters() StreamSubscriptionFilter` diff --git a/services/fabricv4/docs/StreamSubscriptionPutRequest.md b/services/fabricv4/docs/StreamSubscriptionPutRequest.md index dca96c96..01c15c68 100644 --- a/services/fabricv4/docs/StreamSubscriptionPutRequest.md +++ b/services/fabricv4/docs/StreamSubscriptionPutRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Customer-provided stream subscription name | [optional] **Description** | Pointer to **string** | Customer-provided stream subscription description | [optional] -**Stream** | Pointer to [**StreamTarget**](StreamTarget.md) | | [optional] **Enabled** | Pointer to **bool** | Stream subscription enabled status | [optional] **Filters** | Pointer to [**StreamSubscriptionFilter**](StreamSubscriptionFilter.md) | | [optional] **MetricSelector** | Pointer to [**StreamSubscriptionSelector**](StreamSubscriptionSelector.md) | | [optional] @@ -82,31 +81,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetStream - -`func (o *StreamSubscriptionPutRequest) GetStream() StreamTarget` - -GetStream returns the Stream field if non-nil, zero value otherwise. - -### GetStreamOk - -`func (o *StreamSubscriptionPutRequest) GetStreamOk() (*StreamTarget, bool)` - -GetStreamOk returns a tuple with the Stream field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStream - -`func (o *StreamSubscriptionPutRequest) SetStream(v StreamTarget)` - -SetStream sets Stream field to given value. - -### HasStream - -`func (o *StreamSubscriptionPutRequest) HasStream() bool` - -HasStream returns a boolean if a field has been set. - ### GetEnabled `func (o *StreamSubscriptionPutRequest) GetEnabled() bool` diff --git a/services/fabricv4/docs/StreamSubscriptionSink.md b/services/fabricv4/docs/StreamSubscriptionSink.md index 358b6977..c45ba48a 100644 --- a/services/fabricv4/docs/StreamSubscriptionSink.md +++ b/services/fabricv4/docs/StreamSubscriptionSink.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **BatchWaitTimeMax** | Pointer to **int32** | maximum batch waiting time | [optional] **Credential** | Pointer to [**StreamSubscriptionSinkCredential**](StreamSubscriptionSinkCredential.md) | | [optional] **Settings** | Pointer to [**StreamSubscriptionSinkSetting**](StreamSubscriptionSinkSetting.md) | | [optional] +**Host** | Pointer to **string** | sink host | [optional] ## Methods @@ -206,6 +207,31 @@ SetSettings sets Settings field to given value. HasSettings returns a boolean if a field has been set. +### GetHost + +`func (o *StreamSubscriptionSink) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *StreamSubscriptionSink) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *StreamSubscriptionSink) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *StreamSubscriptionSink) HasHost() bool` + +HasHost returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/fabricv4/docs/StreamSubscriptionSinkCredential.md b/services/fabricv4/docs/StreamSubscriptionSinkCredential.md index 13101c6a..44c7ac01 100644 --- a/services/fabricv4/docs/StreamSubscriptionSinkCredential.md +++ b/services/fabricv4/docs/StreamSubscriptionSinkCredential.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **AccessToken** | Pointer to **string** | passed as Authorization header value | [optional] **IntegrationKey** | Pointer to **string** | passed as Authorization header value | [optional] **ApiKey** | Pointer to **string** | passed as Authorization header value | [optional] +**Username** | Pointer to **string** | passed as Authorization header value | [optional] +**Password** | Pointer to **string** | passed as Authorization header value | [optional] ## Methods @@ -128,6 +130,56 @@ SetApiKey sets ApiKey field to given value. HasApiKey returns a boolean if a field has been set. +### GetUsername + +`func (o *StreamSubscriptionSinkCredential) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *StreamSubscriptionSinkCredential) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *StreamSubscriptionSinkCredential) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *StreamSubscriptionSinkCredential) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetPassword + +`func (o *StreamSubscriptionSinkCredential) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *StreamSubscriptionSinkCredential) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *StreamSubscriptionSinkCredential) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *StreamSubscriptionSinkCredential) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/fabricv4/docs/StreamSubscriptionSinkCredentialType.md b/services/fabricv4/docs/StreamSubscriptionSinkCredentialType.md index 4137c36b..409918d0 100644 --- a/services/fabricv4/docs/StreamSubscriptionSinkCredentialType.md +++ b/services/fabricv4/docs/StreamSubscriptionSinkCredentialType.md @@ -9,6 +9,8 @@ * `API_KEY` (value: `"API_KEY"`) +* `USERNAME_PASSWORD` (value: `"USERNAME_PASSWORD"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/fabricv4/docs/StreamSubscriptionSinkSetting.md b/services/fabricv4/docs/StreamSubscriptionSinkSetting.md index 1d4f59bb..13bf2a17 100644 --- a/services/fabricv4/docs/StreamSubscriptionSinkSetting.md +++ b/services/fabricv4/docs/StreamSubscriptionSinkSetting.md @@ -8,6 +8,9 @@ Name | Type | Description | Notes **MetricIndex** | Pointer to **string** | metric index | [optional] **Source** | Pointer to **string** | source | [optional] **ApplicationKey** | Pointer to **string** | Application key | [optional] +**EventUri** | Pointer to **string** | event uri | [optional] +**MetricUri** | Pointer to **string** | metric uri | [optional] +**TransformAlerts** | Pointer to **bool** | transform alerts | [optional] ## Methods @@ -128,6 +131,81 @@ SetApplicationKey sets ApplicationKey field to given value. HasApplicationKey returns a boolean if a field has been set. +### GetEventUri + +`func (o *StreamSubscriptionSinkSetting) GetEventUri() string` + +GetEventUri returns the EventUri field if non-nil, zero value otherwise. + +### GetEventUriOk + +`func (o *StreamSubscriptionSinkSetting) GetEventUriOk() (*string, bool)` + +GetEventUriOk returns a tuple with the EventUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventUri + +`func (o *StreamSubscriptionSinkSetting) SetEventUri(v string)` + +SetEventUri sets EventUri field to given value. + +### HasEventUri + +`func (o *StreamSubscriptionSinkSetting) HasEventUri() bool` + +HasEventUri returns a boolean if a field has been set. + +### GetMetricUri + +`func (o *StreamSubscriptionSinkSetting) GetMetricUri() string` + +GetMetricUri returns the MetricUri field if non-nil, zero value otherwise. + +### GetMetricUriOk + +`func (o *StreamSubscriptionSinkSetting) GetMetricUriOk() (*string, bool)` + +GetMetricUriOk returns a tuple with the MetricUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricUri + +`func (o *StreamSubscriptionSinkSetting) SetMetricUri(v string)` + +SetMetricUri sets MetricUri field to given value. + +### HasMetricUri + +`func (o *StreamSubscriptionSinkSetting) HasMetricUri() bool` + +HasMetricUri returns a boolean if a field has been set. + +### GetTransformAlerts + +`func (o *StreamSubscriptionSinkSetting) GetTransformAlerts() bool` + +GetTransformAlerts returns the TransformAlerts field if non-nil, zero value otherwise. + +### GetTransformAlertsOk + +`func (o *StreamSubscriptionSinkSetting) GetTransformAlertsOk() (*bool, bool)` + +GetTransformAlertsOk returns a tuple with the TransformAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransformAlerts + +`func (o *StreamSubscriptionSinkSetting) SetTransformAlerts(v bool)` + +SetTransformAlerts sets TransformAlerts field to given value. + +### HasTransformAlerts + +`func (o *StreamSubscriptionSinkSetting) HasTransformAlerts() bool` + +HasTransformAlerts returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/fabricv4/docs/StreamSubscriptionsApi.md b/services/fabricv4/docs/StreamSubscriptionsApi.md index 460b0822..624bfaff 100644 --- a/services/fabricv4/docs/StreamSubscriptionsApi.md +++ b/services/fabricv4/docs/StreamSubscriptionsApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.equinix.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateStreamSubscriptions**](StreamSubscriptionsApi.md#CreateStreamSubscriptions) | **Post** /fabric/v4/streamSubscriptions | Create Subscription -[**DeleteStreamSubscriptionByUuid**](StreamSubscriptionsApi.md#DeleteStreamSubscriptionByUuid) | **Delete** /fabric/v4/streamSubscriptions/{streamSubscriptionId} | Delete Subscription -[**GetStreamSubscriptionByUuid**](StreamSubscriptionsApi.md#GetStreamSubscriptionByUuid) | **Get** /fabric/v4/streamSubscriptions/{streamSubscriptionId} | Get Subscription -[**GetStreamSubscriptions**](StreamSubscriptionsApi.md#GetStreamSubscriptions) | **Get** /fabric/v4/streamSubscriptions | Get Subscriptions -[**UpdateStreamSubscriptionByUuid**](StreamSubscriptionsApi.md#UpdateStreamSubscriptionByUuid) | **Put** /fabric/v4/streamSubscriptions/{streamSubscriptionId} | Update Subscription +[**CreateStreamSubscriptions**](StreamSubscriptionsApi.md#CreateStreamSubscriptions) | **Post** /fabric/v4/streams/{streamId}/subscriptions | Create Subscription +[**DeleteStreamSubscriptionByUuid**](StreamSubscriptionsApi.md#DeleteStreamSubscriptionByUuid) | **Delete** /fabric/v4/streams/{streamId}/subscriptions/{subscriptionId} | Delete Subscription +[**GetStreamSubscriptionByUuid**](StreamSubscriptionsApi.md#GetStreamSubscriptionByUuid) | **Get** /fabric/v4/streams/{streamId}/subscriptions/{subscriptionId} | Get Subscription +[**GetStreamSubscriptions**](StreamSubscriptionsApi.md#GetStreamSubscriptions) | **Get** /fabric/v4/streams/{streamId}/subscriptions | Get Subscriptions +[**UpdateStreamSubscriptionByUuid**](StreamSubscriptionsApi.md#UpdateStreamSubscriptionByUuid) | **Put** /fabric/v4/streams/{streamId}/subscriptions/{subscriptionId} | Update Subscription ## CreateStreamSubscriptions -> StreamSubscription CreateStreamSubscriptions(ctx).StreamSubscriptionPostRequest(streamSubscriptionPostRequest).Execute() +> StreamSubscription CreateStreamSubscriptions(ctx, streamId).StreamSubscriptionPostRequest(streamSubscriptionPostRequest).Execute() Create Subscription @@ -33,11 +33,12 @@ import ( ) func main() { + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID streamSubscriptionPostRequest := *openapiclient.NewStreamSubscriptionPostRequest() // StreamSubscriptionPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StreamSubscriptionsApi.CreateStreamSubscriptions(context.Background()).StreamSubscriptionPostRequest(streamSubscriptionPostRequest).Execute() + resp, r, err := apiClient.StreamSubscriptionsApi.CreateStreamSubscriptions(context.Background(), streamId).StreamSubscriptionPostRequest(streamSubscriptionPostRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `StreamSubscriptionsApi.CreateStreamSubscriptions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -50,6 +51,10 @@ func main() { ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**streamId** | **string** | Stream UUID | ### Other Parameters @@ -58,6 +63,7 @@ Other parameters are passed through a pointer to a apiCreateStreamSubscriptionsR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **streamSubscriptionPostRequest** | [**StreamSubscriptionPostRequest**](StreamSubscriptionPostRequest.md) | | ### Return type @@ -80,7 +86,7 @@ Name | Type | Description | Notes ## DeleteStreamSubscriptionByUuid -> StreamSubscription DeleteStreamSubscriptionByUuid(ctx, streamSubscriptionId).Execute() +> StreamSubscription DeleteStreamSubscriptionByUuid(ctx, streamId, subscriptionId).Execute() Delete Subscription @@ -99,11 +105,12 @@ import ( ) func main() { - streamSubscriptionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream Subscription UUID + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID + subscriptionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream Subscription UUID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StreamSubscriptionsApi.DeleteStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + resp, r, err := apiClient.StreamSubscriptionsApi.DeleteStreamSubscriptionByUuid(context.Background(), streamId, subscriptionId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `StreamSubscriptionsApi.DeleteStreamSubscriptionByUuid``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -119,7 +126,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**streamSubscriptionId** | **string** | Stream Subscription UUID | +**streamId** | **string** | Stream UUID | +**subscriptionId** | **string** | Stream Subscription UUID | ### Other Parameters @@ -130,6 +138,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + ### Return type [**StreamSubscription**](StreamSubscription.md) @@ -150,7 +159,7 @@ Name | Type | Description | Notes ## GetStreamSubscriptionByUuid -> StreamSubscription GetStreamSubscriptionByUuid(ctx, streamSubscriptionId).Execute() +> StreamSubscription GetStreamSubscriptionByUuid(ctx, streamId, subscriptionId).Execute() Get Subscription @@ -169,11 +178,12 @@ import ( ) func main() { - streamSubscriptionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream Subscription UUID + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID + subscriptionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream Subscription UUID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + resp, r, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptionByUuid(context.Background(), streamId, subscriptionId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `StreamSubscriptionsApi.GetStreamSubscriptionByUuid``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -189,7 +199,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**streamSubscriptionId** | **string** | Stream Subscription UUID | +**streamId** | **string** | Stream UUID | +**subscriptionId** | **string** | Stream Subscription UUID | ### Other Parameters @@ -200,6 +211,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + ### Return type [**StreamSubscription**](StreamSubscription.md) @@ -220,7 +232,7 @@ Name | Type | Description | Notes ## GetStreamSubscriptions -> GetAllStreamSubscriptionResponse GetStreamSubscriptions(ctx).Offset(offset).Limit(limit).Execute() +> GetAllStreamSubscriptionResponse GetStreamSubscriptions(ctx, streamId).Offset(offset).Limit(limit).Execute() Get Subscriptions @@ -239,12 +251,13 @@ import ( ) func main() { + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID offset := int32(1) // int32 | offset (optional) limit := int32(10) // int32 | number of records to fetch (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptions(context.Background()).Offset(offset).Limit(limit).Execute() + resp, r, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptions(context.Background(), streamId).Offset(offset).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `StreamSubscriptionsApi.GetStreamSubscriptions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -257,6 +270,10 @@ func main() { ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**streamId** | **string** | Stream UUID | ### Other Parameters @@ -265,6 +282,7 @@ Other parameters are passed through a pointer to a apiGetStreamSubscriptionsRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **offset** | **int32** | offset | **limit** | **int32** | number of records to fetch | @@ -288,7 +306,7 @@ Name | Type | Description | Notes ## UpdateStreamSubscriptionByUuid -> StreamSubscription UpdateStreamSubscriptionByUuid(ctx, streamSubscriptionId).StreamSubscriptionPutRequest(streamSubscriptionPutRequest).Execute() +> StreamSubscription UpdateStreamSubscriptionByUuid(ctx, streamId, subscriptionId).StreamSubscriptionPutRequest(streamSubscriptionPutRequest).Execute() Update Subscription @@ -307,12 +325,13 @@ import ( ) func main() { - streamSubscriptionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream Subscription UUID + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID + subscriptionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream Subscription UUID streamSubscriptionPutRequest := *openapiclient.NewStreamSubscriptionPutRequest() // StreamSubscriptionPutRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StreamSubscriptionsApi.UpdateStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).StreamSubscriptionPutRequest(streamSubscriptionPutRequest).Execute() + resp, r, err := apiClient.StreamSubscriptionsApi.UpdateStreamSubscriptionByUuid(context.Background(), streamId, subscriptionId).StreamSubscriptionPutRequest(streamSubscriptionPutRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `StreamSubscriptionsApi.UpdateStreamSubscriptionByUuid``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -328,7 +347,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**streamSubscriptionId** | **string** | Stream Subscription UUID | +**streamId** | **string** | Stream UUID | +**subscriptionId** | **string** | Stream Subscription UUID | ### Other Parameters @@ -338,6 +358,7 @@ Other parameters are passed through a pointer to a apiUpdateStreamSubscriptionBy Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **streamSubscriptionPutRequest** | [**StreamSubscriptionPutRequest**](StreamSubscriptionPutRequest.md) | | ### Return type diff --git a/services/fabricv4/docs/StreamTarget.md b/services/fabricv4/docs/StreamTarget.md deleted file mode 100644 index 5bebc449..00000000 --- a/services/fabricv4/docs/StreamTarget.md +++ /dev/null @@ -1,56 +0,0 @@ -# StreamTarget - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Uuid** | Pointer to **string** | Stream UUID | [optional] - -## Methods - -### NewStreamTarget - -`func NewStreamTarget() *StreamTarget` - -NewStreamTarget instantiates a new StreamTarget 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 - -### NewStreamTargetWithDefaults - -`func NewStreamTargetWithDefaults() *StreamTarget` - -NewStreamTargetWithDefaults instantiates a new StreamTarget 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 - -### GetUuid - -`func (o *StreamTarget) GetUuid() string` - -GetUuid returns the Uuid field if non-nil, zero value otherwise. - -### GetUuidOk - -`func (o *StreamTarget) GetUuidOk() (*string, bool)` - -GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUuid - -`func (o *StreamTarget) SetUuid(v string)` - -SetUuid sets Uuid field to given value. - -### HasUuid - -`func (o *StreamTarget) HasUuid() bool` - -HasUuid returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/services/fabricv4/docs/StreamsApi.md b/services/fabricv4/docs/StreamsApi.md index 36a89087..35c7505c 100644 --- a/services/fabricv4/docs/StreamsApi.md +++ b/services/fabricv4/docs/StreamsApi.md @@ -11,7 +11,6 @@ Method | HTTP request | Description [**GetStreamByUuid**](StreamsApi.md#GetStreamByUuid) | **Get** /fabric/v4/streams/{streamId} | Get Stream [**GetStreams**](StreamsApi.md#GetStreams) | **Get** /fabric/v4/streams | Get Streams [**GetStreamsAssets**](StreamsApi.md#GetStreamsAssets) | **Post** /fabric/v4/streamAssets/search | Get Assets -[**GetSubscriptionsInStream**](StreamsApi.md#GetSubscriptionsInStream) | **Get** /fabric/v4/streams/{streamId}/streamSubscriptions | Get Stream's Subs [**UpdateStreamAssetByUuid**](StreamsApi.md#UpdateStreamAssetByUuid) | **Put** /fabric/v4/streams/{streamId}/{asset}/{assetId} | Attach Asset [**UpdateStreamByUuid**](StreamsApi.md#UpdateStreamByUuid) | **Put** /fabric/v4/streams/{streamId} | Update Stream @@ -513,80 +512,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetSubscriptionsInStream - -> GetSubscriptionsInStreamResponse GetSubscriptionsInStream(ctx, streamId).Offset(offset).Limit(limit).Execute() - -Get Stream's Subs - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" -) - -func main() { - streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID - offset := int32(1) // int32 | offset (optional) - limit := int32(10) // int32 | number of records to fetch (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StreamsApi.GetSubscriptionsInStream(context.Background(), streamId).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.GetSubscriptionsInStream``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSubscriptionsInStream`: GetSubscriptionsInStreamResponse - fmt.Fprintf(os.Stdout, "Response from `StreamsApi.GetSubscriptionsInStream`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**streamId** | **string** | Stream UUID | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSubscriptionsInStreamRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **offset** | **int32** | offset | - **limit** | **int32** | number of records to fetch | - -### Return type - -[**GetSubscriptionsInStreamResponse**](GetSubscriptionsInStreamResponse.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## UpdateStreamAssetByUuid > StreamAsset UpdateStreamAssetByUuid(ctx, assetId, asset, streamId).StreamAssetPutRequest(streamAssetPutRequest).Execute() diff --git a/services/fabricv4/model_check_capacity.go b/services/fabricv4/model_check_capacity.go new file mode 100644 index 00000000..7b63d66c --- /dev/null +++ b/services/fabricv4/model_check_capacity.go @@ -0,0 +1,415 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the CheckCapacity type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CheckCapacity{} + +// CheckCapacity Check capcaity Port specification +type CheckCapacity struct { + // demarcation point IBX + DemarcationPointIbx *string `json:"demarcationPointIbx,omitempty"` + // cloud port ibx location + TetherIbx *string `json:"tetherIbx,omitempty"` + // metroConnect + MetroConnectUsed *bool `json:"metroConnectUsed,omitempty"` + // campusCrossConnect + CampusCrossConnectUsed *bool `json:"campusCrossConnectUsed,omitempty"` + // lag or non lag port + LagEnabled *bool `json:"lagEnabled,omitempty"` + // Physical Ports Speed in Mbps + PhysicalPortsSpeed *int32 `json:"physicalPortsSpeed,omitempty"` + Redundancy *CheckCapacityPortRedundancy `json:"redundancy,omitempty"` + PhysicalPortsType *PortPhysicalPortsType `json:"physicalPortsType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CheckCapacity CheckCapacity + +// NewCheckCapacity instantiates a new CheckCapacity 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 NewCheckCapacity() *CheckCapacity { + this := CheckCapacity{} + return &this +} + +// NewCheckCapacityWithDefaults instantiates a new CheckCapacity 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 NewCheckCapacityWithDefaults() *CheckCapacity { + this := CheckCapacity{} + return &this +} + +// GetDemarcationPointIbx returns the DemarcationPointIbx field value if set, zero value otherwise. +func (o *CheckCapacity) GetDemarcationPointIbx() string { + if o == nil || IsNil(o.DemarcationPointIbx) { + var ret string + return ret + } + return *o.DemarcationPointIbx +} + +// GetDemarcationPointIbxOk returns a tuple with the DemarcationPointIbx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetDemarcationPointIbxOk() (*string, bool) { + if o == nil || IsNil(o.DemarcationPointIbx) { + return nil, false + } + return o.DemarcationPointIbx, true +} + +// HasDemarcationPointIbx returns a boolean if a field has been set. +func (o *CheckCapacity) HasDemarcationPointIbx() bool { + if o != nil && !IsNil(o.DemarcationPointIbx) { + return true + } + + return false +} + +// SetDemarcationPointIbx gets a reference to the given string and assigns it to the DemarcationPointIbx field. +func (o *CheckCapacity) SetDemarcationPointIbx(v string) { + o.DemarcationPointIbx = &v +} + +// GetTetherIbx returns the TetherIbx field value if set, zero value otherwise. +func (o *CheckCapacity) GetTetherIbx() string { + if o == nil || IsNil(o.TetherIbx) { + var ret string + return ret + } + return *o.TetherIbx +} + +// GetTetherIbxOk returns a tuple with the TetherIbx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetTetherIbxOk() (*string, bool) { + if o == nil || IsNil(o.TetherIbx) { + return nil, false + } + return o.TetherIbx, true +} + +// HasTetherIbx returns a boolean if a field has been set. +func (o *CheckCapacity) HasTetherIbx() bool { + if o != nil && !IsNil(o.TetherIbx) { + return true + } + + return false +} + +// SetTetherIbx gets a reference to the given string and assigns it to the TetherIbx field. +func (o *CheckCapacity) SetTetherIbx(v string) { + o.TetherIbx = &v +} + +// GetMetroConnectUsed returns the MetroConnectUsed field value if set, zero value otherwise. +func (o *CheckCapacity) GetMetroConnectUsed() bool { + if o == nil || IsNil(o.MetroConnectUsed) { + var ret bool + return ret + } + return *o.MetroConnectUsed +} + +// GetMetroConnectUsedOk returns a tuple with the MetroConnectUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetMetroConnectUsedOk() (*bool, bool) { + if o == nil || IsNil(o.MetroConnectUsed) { + return nil, false + } + return o.MetroConnectUsed, true +} + +// HasMetroConnectUsed returns a boolean if a field has been set. +func (o *CheckCapacity) HasMetroConnectUsed() bool { + if o != nil && !IsNil(o.MetroConnectUsed) { + return true + } + + return false +} + +// SetMetroConnectUsed gets a reference to the given bool and assigns it to the MetroConnectUsed field. +func (o *CheckCapacity) SetMetroConnectUsed(v bool) { + o.MetroConnectUsed = &v +} + +// GetCampusCrossConnectUsed returns the CampusCrossConnectUsed field value if set, zero value otherwise. +func (o *CheckCapacity) GetCampusCrossConnectUsed() bool { + if o == nil || IsNil(o.CampusCrossConnectUsed) { + var ret bool + return ret + } + return *o.CampusCrossConnectUsed +} + +// GetCampusCrossConnectUsedOk returns a tuple with the CampusCrossConnectUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetCampusCrossConnectUsedOk() (*bool, bool) { + if o == nil || IsNil(o.CampusCrossConnectUsed) { + return nil, false + } + return o.CampusCrossConnectUsed, true +} + +// HasCampusCrossConnectUsed returns a boolean if a field has been set. +func (o *CheckCapacity) HasCampusCrossConnectUsed() bool { + if o != nil && !IsNil(o.CampusCrossConnectUsed) { + return true + } + + return false +} + +// SetCampusCrossConnectUsed gets a reference to the given bool and assigns it to the CampusCrossConnectUsed field. +func (o *CheckCapacity) SetCampusCrossConnectUsed(v bool) { + o.CampusCrossConnectUsed = &v +} + +// GetLagEnabled returns the LagEnabled field value if set, zero value otherwise. +func (o *CheckCapacity) GetLagEnabled() bool { + if o == nil || IsNil(o.LagEnabled) { + var ret bool + return ret + } + return *o.LagEnabled +} + +// GetLagEnabledOk returns a tuple with the LagEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetLagEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.LagEnabled) { + return nil, false + } + return o.LagEnabled, true +} + +// HasLagEnabled returns a boolean if a field has been set. +func (o *CheckCapacity) HasLagEnabled() bool { + if o != nil && !IsNil(o.LagEnabled) { + return true + } + + return false +} + +// SetLagEnabled gets a reference to the given bool and assigns it to the LagEnabled field. +func (o *CheckCapacity) SetLagEnabled(v bool) { + o.LagEnabled = &v +} + +// GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field value if set, zero value otherwise. +func (o *CheckCapacity) GetPhysicalPortsSpeed() int32 { + if o == nil || IsNil(o.PhysicalPortsSpeed) { + var ret int32 + return ret + } + return *o.PhysicalPortsSpeed +} + +// GetPhysicalPortsSpeedOk returns a tuple with the PhysicalPortsSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetPhysicalPortsSpeedOk() (*int32, bool) { + if o == nil || IsNil(o.PhysicalPortsSpeed) { + return nil, false + } + return o.PhysicalPortsSpeed, true +} + +// HasPhysicalPortsSpeed returns a boolean if a field has been set. +func (o *CheckCapacity) HasPhysicalPortsSpeed() bool { + if o != nil && !IsNil(o.PhysicalPortsSpeed) { + return true + } + + return false +} + +// SetPhysicalPortsSpeed gets a reference to the given int32 and assigns it to the PhysicalPortsSpeed field. +func (o *CheckCapacity) SetPhysicalPortsSpeed(v int32) { + o.PhysicalPortsSpeed = &v +} + +// GetRedundancy returns the Redundancy field value if set, zero value otherwise. +func (o *CheckCapacity) GetRedundancy() CheckCapacityPortRedundancy { + if o == nil || IsNil(o.Redundancy) { + var ret CheckCapacityPortRedundancy + return ret + } + return *o.Redundancy +} + +// GetRedundancyOk returns a tuple with the Redundancy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetRedundancyOk() (*CheckCapacityPortRedundancy, bool) { + if o == nil || IsNil(o.Redundancy) { + return nil, false + } + return o.Redundancy, true +} + +// HasRedundancy returns a boolean if a field has been set. +func (o *CheckCapacity) HasRedundancy() bool { + if o != nil && !IsNil(o.Redundancy) { + return true + } + + return false +} + +// SetRedundancy gets a reference to the given CheckCapacityPortRedundancy and assigns it to the Redundancy field. +func (o *CheckCapacity) SetRedundancy(v CheckCapacityPortRedundancy) { + o.Redundancy = &v +} + +// GetPhysicalPortsType returns the PhysicalPortsType field value if set, zero value otherwise. +func (o *CheckCapacity) GetPhysicalPortsType() PortPhysicalPortsType { + if o == nil || IsNil(o.PhysicalPortsType) { + var ret PortPhysicalPortsType + return ret + } + return *o.PhysicalPortsType +} + +// GetPhysicalPortsTypeOk returns a tuple with the PhysicalPortsType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacity) GetPhysicalPortsTypeOk() (*PortPhysicalPortsType, bool) { + if o == nil || IsNil(o.PhysicalPortsType) { + return nil, false + } + return o.PhysicalPortsType, true +} + +// HasPhysicalPortsType returns a boolean if a field has been set. +func (o *CheckCapacity) HasPhysicalPortsType() bool { + if o != nil && !IsNil(o.PhysicalPortsType) { + return true + } + + return false +} + +// SetPhysicalPortsType gets a reference to the given PortPhysicalPortsType and assigns it to the PhysicalPortsType field. +func (o *CheckCapacity) SetPhysicalPortsType(v PortPhysicalPortsType) { + o.PhysicalPortsType = &v +} + +func (o CheckCapacity) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CheckCapacity) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DemarcationPointIbx) { + toSerialize["demarcationPointIbx"] = o.DemarcationPointIbx + } + if !IsNil(o.TetherIbx) { + toSerialize["tetherIbx"] = o.TetherIbx + } + if !IsNil(o.MetroConnectUsed) { + toSerialize["metroConnectUsed"] = o.MetroConnectUsed + } + if !IsNil(o.CampusCrossConnectUsed) { + toSerialize["campusCrossConnectUsed"] = o.CampusCrossConnectUsed + } + if !IsNil(o.LagEnabled) { + toSerialize["lagEnabled"] = o.LagEnabled + } + if !IsNil(o.PhysicalPortsSpeed) { + toSerialize["physicalPortsSpeed"] = o.PhysicalPortsSpeed + } + if !IsNil(o.Redundancy) { + toSerialize["redundancy"] = o.Redundancy + } + if !IsNil(o.PhysicalPortsType) { + toSerialize["physicalPortsType"] = o.PhysicalPortsType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CheckCapacity) UnmarshalJSON(data []byte) (err error) { + varCheckCapacity := _CheckCapacity{} + + err = json.Unmarshal(data, &varCheckCapacity) + + if err != nil { + return err + } + + *o = CheckCapacity(varCheckCapacity) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "demarcationPointIbx") + delete(additionalProperties, "tetherIbx") + delete(additionalProperties, "metroConnectUsed") + delete(additionalProperties, "campusCrossConnectUsed") + delete(additionalProperties, "lagEnabled") + delete(additionalProperties, "physicalPortsSpeed") + delete(additionalProperties, "redundancy") + delete(additionalProperties, "physicalPortsType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCheckCapacity struct { + value *CheckCapacity + isSet bool +} + +func (v NullableCheckCapacity) Get() *CheckCapacity { + return v.value +} + +func (v *NullableCheckCapacity) Set(val *CheckCapacity) { + v.value = val + v.isSet = true +} + +func (v NullableCheckCapacity) IsSet() bool { + return v.isSet +} + +func (v *NullableCheckCapacity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCheckCapacity(val *CheckCapacity) *NullableCheckCapacity { + return &NullableCheckCapacity{value: val, isSet: true} +} + +func (v NullableCheckCapacity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCheckCapacity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_check_capacity_port_redundancy.go b/services/fabricv4/model_check_capacity_port_redundancy.go new file mode 100644 index 00000000..88a07c05 --- /dev/null +++ b/services/fabricv4/model_check_capacity_port_redundancy.go @@ -0,0 +1,150 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the CheckCapacityPortRedundancy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CheckCapacityPortRedundancy{} + +// CheckCapacityPortRedundancy Check Capacity Port redundancy configuration +type CheckCapacityPortRedundancy struct { + Priority *PortPriority `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CheckCapacityPortRedundancy CheckCapacityPortRedundancy + +// NewCheckCapacityPortRedundancy instantiates a new CheckCapacityPortRedundancy 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 NewCheckCapacityPortRedundancy() *CheckCapacityPortRedundancy { + this := CheckCapacityPortRedundancy{} + return &this +} + +// NewCheckCapacityPortRedundancyWithDefaults instantiates a new CheckCapacityPortRedundancy 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 NewCheckCapacityPortRedundancyWithDefaults() *CheckCapacityPortRedundancy { + this := CheckCapacityPortRedundancy{} + return &this +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CheckCapacityPortRedundancy) GetPriority() PortPriority { + if o == nil || IsNil(o.Priority) { + var ret PortPriority + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckCapacityPortRedundancy) GetPriorityOk() (*PortPriority, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CheckCapacityPortRedundancy) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given PortPriority and assigns it to the Priority field. +func (o *CheckCapacityPortRedundancy) SetPriority(v PortPriority) { + o.Priority = &v +} + +func (o CheckCapacityPortRedundancy) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CheckCapacityPortRedundancy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CheckCapacityPortRedundancy) UnmarshalJSON(data []byte) (err error) { + varCheckCapacityPortRedundancy := _CheckCapacityPortRedundancy{} + + err = json.Unmarshal(data, &varCheckCapacityPortRedundancy) + + if err != nil { + return err + } + + *o = CheckCapacityPortRedundancy(varCheckCapacityPortRedundancy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCheckCapacityPortRedundancy struct { + value *CheckCapacityPortRedundancy + isSet bool +} + +func (v NullableCheckCapacityPortRedundancy) Get() *CheckCapacityPortRedundancy { + return v.value +} + +func (v *NullableCheckCapacityPortRedundancy) Set(val *CheckCapacityPortRedundancy) { + v.value = val + v.isSet = true +} + +func (v NullableCheckCapacityPortRedundancy) IsSet() bool { + return v.isSet +} + +func (v *NullableCheckCapacityPortRedundancy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCheckCapacityPortRedundancy(val *CheckCapacityPortRedundancy) *NullableCheckCapacityPortRedundancy { + return &NullableCheckCapacityPortRedundancy{value: val, isSet: true} +} + +func (v NullableCheckCapacityPortRedundancy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCheckCapacityPortRedundancy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_top_utilized_statistics.go b/services/fabricv4/model_check_capacity_response.go similarity index 53% rename from services/fabricv4/model_top_utilized_statistics.go rename to services/fabricv4/model_check_capacity_response.go index 7c7c0d12..aeb34dbe 100644 --- a/services/fabricv4/model_top_utilized_statistics.go +++ b/services/fabricv4/model_check_capacity_response.go @@ -11,38 +11,38 @@ import ( "encoding/json" ) -// checks if the TopUtilizedStatistics type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TopUtilizedStatistics{} +// checks if the CheckCapacityResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CheckCapacityResponse{} -// TopUtilizedStatistics This API provides service-level traffic metrics for the top utilized ports so that you can view access and gather key information required to manage service subscription sizing and capacity. -type TopUtilizedStatistics struct { +// CheckCapacityResponse GET All available ports +type CheckCapacityResponse struct { Pagination *Pagination `json:"pagination,omitempty"` - // Data returned from the API call. - Data []Statistics `json:"data,omitempty"` + // GET All available ports + Data []CheckCapacity `json:"data,omitempty"` AdditionalProperties map[string]interface{} } -type _TopUtilizedStatistics TopUtilizedStatistics +type _CheckCapacityResponse CheckCapacityResponse -// NewTopUtilizedStatistics instantiates a new TopUtilizedStatistics object +// NewCheckCapacityResponse instantiates a new CheckCapacityResponse 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 NewTopUtilizedStatistics() *TopUtilizedStatistics { - this := TopUtilizedStatistics{} +func NewCheckCapacityResponse() *CheckCapacityResponse { + this := CheckCapacityResponse{} return &this } -// NewTopUtilizedStatisticsWithDefaults instantiates a new TopUtilizedStatistics object +// NewCheckCapacityResponseWithDefaults instantiates a new CheckCapacityResponse 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 NewTopUtilizedStatisticsWithDefaults() *TopUtilizedStatistics { - this := TopUtilizedStatistics{} +func NewCheckCapacityResponseWithDefaults() *CheckCapacityResponse { + this := CheckCapacityResponse{} return &this } // GetPagination returns the Pagination field value if set, zero value otherwise. -func (o *TopUtilizedStatistics) GetPagination() Pagination { +func (o *CheckCapacityResponse) GetPagination() Pagination { if o == nil || IsNil(o.Pagination) { var ret Pagination return ret @@ -52,7 +52,7 @@ func (o *TopUtilizedStatistics) GetPagination() Pagination { // GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *TopUtilizedStatistics) GetPaginationOk() (*Pagination, bool) { +func (o *CheckCapacityResponse) GetPaginationOk() (*Pagination, bool) { if o == nil || IsNil(o.Pagination) { return nil, false } @@ -60,7 +60,7 @@ func (o *TopUtilizedStatistics) GetPaginationOk() (*Pagination, bool) { } // HasPagination returns a boolean if a field has been set. -func (o *TopUtilizedStatistics) HasPagination() bool { +func (o *CheckCapacityResponse) HasPagination() bool { if o != nil && !IsNil(o.Pagination) { return true } @@ -69,14 +69,14 @@ func (o *TopUtilizedStatistics) HasPagination() bool { } // SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. -func (o *TopUtilizedStatistics) SetPagination(v Pagination) { +func (o *CheckCapacityResponse) SetPagination(v Pagination) { o.Pagination = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *TopUtilizedStatistics) GetData() []Statistics { +func (o *CheckCapacityResponse) GetData() []CheckCapacity { if o == nil || IsNil(o.Data) { - var ret []Statistics + var ret []CheckCapacity return ret } return o.Data @@ -84,7 +84,7 @@ func (o *TopUtilizedStatistics) GetData() []Statistics { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *TopUtilizedStatistics) GetDataOk() ([]Statistics, bool) { +func (o *CheckCapacityResponse) GetDataOk() ([]CheckCapacity, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *TopUtilizedStatistics) GetDataOk() ([]Statistics, bool) { } // HasData returns a boolean if a field has been set. -func (o *TopUtilizedStatistics) HasData() bool { +func (o *CheckCapacityResponse) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *TopUtilizedStatistics) HasData() bool { return false } -// SetData gets a reference to the given []Statistics and assigns it to the Data field. -func (o *TopUtilizedStatistics) SetData(v []Statistics) { +// SetData gets a reference to the given []CheckCapacity and assigns it to the Data field. +func (o *CheckCapacityResponse) SetData(v []CheckCapacity) { o.Data = v } -func (o TopUtilizedStatistics) MarshalJSON() ([]byte, error) { +func (o CheckCapacityResponse) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o TopUtilizedStatistics) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o TopUtilizedStatistics) ToMap() (map[string]interface{}, error) { +func (o CheckCapacityResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Pagination) { toSerialize["pagination"] = o.Pagination @@ -129,16 +129,16 @@ func (o TopUtilizedStatistics) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *TopUtilizedStatistics) UnmarshalJSON(data []byte) (err error) { - varTopUtilizedStatistics := _TopUtilizedStatistics{} +func (o *CheckCapacityResponse) UnmarshalJSON(data []byte) (err error) { + varCheckCapacityResponse := _CheckCapacityResponse{} - err = json.Unmarshal(data, &varTopUtilizedStatistics) + err = json.Unmarshal(data, &varCheckCapacityResponse) if err != nil { return err } - *o = TopUtilizedStatistics(varTopUtilizedStatistics) + *o = CheckCapacityResponse(varCheckCapacityResponse) additionalProperties := make(map[string]interface{}) @@ -151,38 +151,38 @@ func (o *TopUtilizedStatistics) UnmarshalJSON(data []byte) (err error) { return err } -type NullableTopUtilizedStatistics struct { - value *TopUtilizedStatistics +type NullableCheckCapacityResponse struct { + value *CheckCapacityResponse isSet bool } -func (v NullableTopUtilizedStatistics) Get() *TopUtilizedStatistics { +func (v NullableCheckCapacityResponse) Get() *CheckCapacityResponse { return v.value } -func (v *NullableTopUtilizedStatistics) Set(val *TopUtilizedStatistics) { +func (v *NullableCheckCapacityResponse) Set(val *CheckCapacityResponse) { v.value = val v.isSet = true } -func (v NullableTopUtilizedStatistics) IsSet() bool { +func (v NullableCheckCapacityResponse) IsSet() bool { return v.isSet } -func (v *NullableTopUtilizedStatistics) Unset() { +func (v *NullableCheckCapacityResponse) Unset() { v.value = nil v.isSet = false } -func NewNullableTopUtilizedStatistics(val *TopUtilizedStatistics) *NullableTopUtilizedStatistics { - return &NullableTopUtilizedStatistics{value: val, isSet: true} +func NewNullableCheckCapacityResponse(val *CheckCapacityResponse) *NullableCheckCapacityResponse { + return &NullableCheckCapacityResponse{value: val, isSet: true} } -func (v NullableTopUtilizedStatistics) MarshalJSON() ([]byte, error) { +func (v NullableCheckCapacityResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableTopUtilizedStatistics) UnmarshalJSON(src []byte) error { +func (v *NullableCheckCapacityResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/services/fabricv4/model_duration.go b/services/fabricv4/model_duration.go deleted file mode 100644 index ddd092ba..00000000 --- a/services/fabricv4/model_duration.go +++ /dev/null @@ -1,109 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// Duration Duration of the statistical analysis interval. -type Duration string - -// List of duration -const ( - DURATION_P7_D Duration = "P7D" - DURATION_P1_M Duration = "P1M" - DURATION_P3_M Duration = "P3M" -) - -// All allowed values of Duration enum -var AllowedDurationEnumValues = []Duration{ - "P7D", - "P1M", - "P3M", -} - -func (v *Duration) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := Duration(value) - for _, existing := range AllowedDurationEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid Duration", value) -} - -// NewDurationFromValue returns a pointer to a valid Duration -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewDurationFromValue(v string) (*Duration, error) { - ev := Duration(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for Duration: valid values are %v", v, AllowedDurationEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v Duration) IsValid() bool { - for _, existing := range AllowedDurationEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to duration value -func (v Duration) Ptr() *Duration { - return &v -} - -type NullableDuration struct { - value *Duration - isSet bool -} - -func (v NullableDuration) Get() *Duration { - return v.value -} - -func (v *NullableDuration) Set(val *Duration) { - v.value = val - v.isSet = true -} - -func (v NullableDuration) IsSet() bool { - return v.isSet -} - -func (v *NullableDuration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDuration(val *Duration) *NullableDuration { - return &NullableDuration{value: val, isSet: true} -} - -func (v NullableDuration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDuration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_get_subscriptions_in_stream_response.go b/services/fabricv4/model_get_subscriptions_in_stream_response.go deleted file mode 100644 index 4f1fce94..00000000 --- a/services/fabricv4/model_get_subscriptions_in_stream_response.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the GetSubscriptionsInStreamResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetSubscriptionsInStreamResponse{} - -// GetSubscriptionsInStreamResponse struct for GetSubscriptionsInStreamResponse -type GetSubscriptionsInStreamResponse struct { - Pagination *Pagination `json:"pagination,omitempty"` - // Data returned from the API call. - Data []StreamGetSubscriptions `json:"data,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _GetSubscriptionsInStreamResponse GetSubscriptionsInStreamResponse - -// NewGetSubscriptionsInStreamResponse instantiates a new GetSubscriptionsInStreamResponse 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 NewGetSubscriptionsInStreamResponse() *GetSubscriptionsInStreamResponse { - this := GetSubscriptionsInStreamResponse{} - return &this -} - -// NewGetSubscriptionsInStreamResponseWithDefaults instantiates a new GetSubscriptionsInStreamResponse 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 NewGetSubscriptionsInStreamResponseWithDefaults() *GetSubscriptionsInStreamResponse { - this := GetSubscriptionsInStreamResponse{} - return &this -} - -// GetPagination returns the Pagination field value if set, zero value otherwise. -func (o *GetSubscriptionsInStreamResponse) GetPagination() Pagination { - if o == nil || IsNil(o.Pagination) { - var ret Pagination - return ret - } - return *o.Pagination -} - -// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetSubscriptionsInStreamResponse) GetPaginationOk() (*Pagination, bool) { - if o == nil || IsNil(o.Pagination) { - return nil, false - } - return o.Pagination, true -} - -// HasPagination returns a boolean if a field has been set. -func (o *GetSubscriptionsInStreamResponse) HasPagination() bool { - if o != nil && !IsNil(o.Pagination) { - return true - } - - return false -} - -// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. -func (o *GetSubscriptionsInStreamResponse) SetPagination(v Pagination) { - o.Pagination = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *GetSubscriptionsInStreamResponse) GetData() []StreamGetSubscriptions { - if o == nil || IsNil(o.Data) { - var ret []StreamGetSubscriptions - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetSubscriptionsInStreamResponse) GetDataOk() ([]StreamGetSubscriptions, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *GetSubscriptionsInStreamResponse) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []StreamGetSubscriptions and assigns it to the Data field. -func (o *GetSubscriptionsInStreamResponse) SetData(v []StreamGetSubscriptions) { - o.Data = v -} - -func (o GetSubscriptionsInStreamResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetSubscriptionsInStreamResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Pagination) { - toSerialize["pagination"] = o.Pagination - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *GetSubscriptionsInStreamResponse) UnmarshalJSON(data []byte) (err error) { - varGetSubscriptionsInStreamResponse := _GetSubscriptionsInStreamResponse{} - - err = json.Unmarshal(data, &varGetSubscriptionsInStreamResponse) - - if err != nil { - return err - } - - *o = GetSubscriptionsInStreamResponse(varGetSubscriptionsInStreamResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "pagination") - delete(additionalProperties, "data") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableGetSubscriptionsInStreamResponse struct { - value *GetSubscriptionsInStreamResponse - isSet bool -} - -func (v NullableGetSubscriptionsInStreamResponse) Get() *GetSubscriptionsInStreamResponse { - return v.value -} - -func (v *NullableGetSubscriptionsInStreamResponse) Set(val *GetSubscriptionsInStreamResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetSubscriptionsInStreamResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetSubscriptionsInStreamResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetSubscriptionsInStreamResponse(val *GetSubscriptionsInStreamResponse) *NullableGetSubscriptionsInStreamResponse { - return &NullableGetSubscriptionsInStreamResponse{value: val, isSet: true} -} - -func (v NullableGetSubscriptionsInStreamResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetSubscriptionsInStreamResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_metric_interval.go b/services/fabricv4/model_metric_interval.go deleted file mode 100644 index d10bec5d..00000000 --- a/services/fabricv4/model_metric_interval.go +++ /dev/null @@ -1,105 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// MetricInterval metric interval -type MetricInterval string - -// List of metricInterval -const ( - METRICINTERVAL_P7_D MetricInterval = "P7D" -) - -// All allowed values of MetricInterval enum -var AllowedMetricIntervalEnumValues = []MetricInterval{ - "P7D", -} - -func (v *MetricInterval) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := MetricInterval(value) - for _, existing := range AllowedMetricIntervalEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid MetricInterval", value) -} - -// NewMetricIntervalFromValue returns a pointer to a valid MetricInterval -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewMetricIntervalFromValue(v string) (*MetricInterval, error) { - ev := MetricInterval(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for MetricInterval: valid values are %v", v, AllowedMetricIntervalEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v MetricInterval) IsValid() bool { - for _, existing := range AllowedMetricIntervalEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to metricInterval value -func (v MetricInterval) Ptr() *MetricInterval { - return &v -} - -type NullableMetricInterval struct { - value *MetricInterval - isSet bool -} - -func (v NullableMetricInterval) Get() *MetricInterval { - return v.value -} - -func (v *NullableMetricInterval) Set(val *MetricInterval) { - v.value = val - v.isSet = true -} - -func (v NullableMetricInterval) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricInterval) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricInterval(val *MetricInterval) *NullableMetricInterval { - return &NullableMetricInterval{value: val, isSet: true} -} - -func (v NullableMetricInterval) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricInterval) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_port_capacity_expression.go b/services/fabricv4/model_port_capacity_expression.go new file mode 100644 index 00000000..8818b654 --- /dev/null +++ b/services/fabricv4/model_port_capacity_expression.go @@ -0,0 +1,298 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the PortCapacityExpression type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PortCapacityExpression{} + +// PortCapacityExpression struct for PortCapacityExpression +type PortCapacityExpression struct { + And *PortCapacityExpression `json:"and,omitempty"` + Or *PortCapacityExpression `json:"or,omitempty"` + Property *PortCapacitySearchFieldName `json:"property,omitempty"` + Operator *ServiceTokenSearchExpressionOperator `json:"operator,omitempty"` + Values []string `json:"values,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PortCapacityExpression PortCapacityExpression + +// NewPortCapacityExpression instantiates a new PortCapacityExpression 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 NewPortCapacityExpression() *PortCapacityExpression { + this := PortCapacityExpression{} + return &this +} + +// NewPortCapacityExpressionWithDefaults instantiates a new PortCapacityExpression 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 NewPortCapacityExpressionWithDefaults() *PortCapacityExpression { + this := PortCapacityExpression{} + return &this +} + +// GetAnd returns the And field value if set, zero value otherwise. +func (o *PortCapacityExpression) GetAnd() PortCapacityExpression { + if o == nil || IsNil(o.And) { + var ret PortCapacityExpression + return ret + } + return *o.And +} + +// GetAndOk returns a tuple with the And field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortCapacityExpression) GetAndOk() (*PortCapacityExpression, bool) { + if o == nil || IsNil(o.And) { + return nil, false + } + return o.And, true +} + +// HasAnd returns a boolean if a field has been set. +func (o *PortCapacityExpression) HasAnd() bool { + if o != nil && !IsNil(o.And) { + return true + } + + return false +} + +// SetAnd gets a reference to the given PortCapacityExpression and assigns it to the And field. +func (o *PortCapacityExpression) SetAnd(v PortCapacityExpression) { + o.And = &v +} + +// GetOr returns the Or field value if set, zero value otherwise. +func (o *PortCapacityExpression) GetOr() PortCapacityExpression { + if o == nil || IsNil(o.Or) { + var ret PortCapacityExpression + return ret + } + return *o.Or +} + +// GetOrOk returns a tuple with the Or field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortCapacityExpression) GetOrOk() (*PortCapacityExpression, bool) { + if o == nil || IsNil(o.Or) { + return nil, false + } + return o.Or, true +} + +// HasOr returns a boolean if a field has been set. +func (o *PortCapacityExpression) HasOr() bool { + if o != nil && !IsNil(o.Or) { + return true + } + + return false +} + +// SetOr gets a reference to the given PortCapacityExpression and assigns it to the Or field. +func (o *PortCapacityExpression) SetOr(v PortCapacityExpression) { + o.Or = &v +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *PortCapacityExpression) GetProperty() PortCapacitySearchFieldName { + if o == nil || IsNil(o.Property) { + var ret PortCapacitySearchFieldName + return ret + } + return *o.Property +} + +// GetPropertyOk returns a tuple with the Property field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortCapacityExpression) GetPropertyOk() (*PortCapacitySearchFieldName, bool) { + if o == nil || IsNil(o.Property) { + return nil, false + } + return o.Property, true +} + +// HasProperty returns a boolean if a field has been set. +func (o *PortCapacityExpression) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given PortCapacitySearchFieldName and assigns it to the Property field. +func (o *PortCapacityExpression) SetProperty(v PortCapacitySearchFieldName) { + o.Property = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *PortCapacityExpression) GetOperator() ServiceTokenSearchExpressionOperator { + if o == nil || IsNil(o.Operator) { + var ret ServiceTokenSearchExpressionOperator + return ret + } + return *o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortCapacityExpression) GetOperatorOk() (*ServiceTokenSearchExpressionOperator, bool) { + if o == nil || IsNil(o.Operator) { + return nil, false + } + return o.Operator, true +} + +// HasOperator returns a boolean if a field has been set. +func (o *PortCapacityExpression) HasOperator() bool { + if o != nil && !IsNil(o.Operator) { + return true + } + + return false +} + +// SetOperator gets a reference to the given ServiceTokenSearchExpressionOperator and assigns it to the Operator field. +func (o *PortCapacityExpression) SetOperator(v ServiceTokenSearchExpressionOperator) { + o.Operator = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *PortCapacityExpression) GetValues() []string { + if o == nil || IsNil(o.Values) { + var ret []string + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortCapacityExpression) GetValuesOk() ([]string, bool) { + if o == nil || IsNil(o.Values) { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *PortCapacityExpression) HasValues() bool { + if o != nil && !IsNil(o.Values) { + return true + } + + return false +} + +// SetValues gets a reference to the given []string and assigns it to the Values field. +func (o *PortCapacityExpression) SetValues(v []string) { + o.Values = v +} + +func (o PortCapacityExpression) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PortCapacityExpression) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.And) { + toSerialize["and"] = o.And + } + if !IsNil(o.Or) { + toSerialize["or"] = o.Or + } + if !IsNil(o.Property) { + toSerialize["property"] = o.Property + } + if !IsNil(o.Operator) { + toSerialize["operator"] = o.Operator + } + if !IsNil(o.Values) { + toSerialize["values"] = o.Values + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PortCapacityExpression) UnmarshalJSON(data []byte) (err error) { + varPortCapacityExpression := _PortCapacityExpression{} + + err = json.Unmarshal(data, &varPortCapacityExpression) + + if err != nil { + return err + } + + *o = PortCapacityExpression(varPortCapacityExpression) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "and") + delete(additionalProperties, "or") + delete(additionalProperties, "property") + delete(additionalProperties, "operator") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePortCapacityExpression struct { + value *PortCapacityExpression + isSet bool +} + +func (v NullablePortCapacityExpression) Get() *PortCapacityExpression { + return v.value +} + +func (v *NullablePortCapacityExpression) Set(val *PortCapacityExpression) { + v.value = val + v.isSet = true +} + +func (v NullablePortCapacityExpression) IsSet() bool { + return v.isSet +} + +func (v *NullablePortCapacityExpression) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortCapacityExpression(val *PortCapacityExpression) *NullablePortCapacityExpression { + return &NullablePortCapacityExpression{value: val, isSet: true} +} + +func (v NullablePortCapacityExpression) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortCapacityExpression) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_capacity_search_field_name.go b/services/fabricv4/model_port_capacity_search_field_name.go new file mode 100644 index 00000000..f2a02839 --- /dev/null +++ b/services/fabricv4/model_port_capacity_search_field_name.go @@ -0,0 +1,113 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PortCapacitySearchFieldName Possible field names to use on filters +type PortCapacitySearchFieldName string + +// List of PortCapacitySearchFieldName +const ( + PORTCAPACITYSEARCHFIELDNAME_DEMARCATION_POINT_IBX PortCapacitySearchFieldName = "/demarcationPointIbx" + PORTCAPACITYSEARCHFIELDNAME_TETHER_IBX PortCapacitySearchFieldName = "/tetherIbx" + PORTCAPACITYSEARCHFIELDNAME_PHYSICAL_PORTS_SPEED PortCapacitySearchFieldName = "/physicalPortsSpeed" + PORTCAPACITYSEARCHFIELDNAME_PHYSICAL_PORTS_TYPE PortCapacitySearchFieldName = "/physicalPortsType" + PORTCAPACITYSEARCHFIELDNAME_LAG_ENABLED PortCapacitySearchFieldName = "/lagEnabled" +) + +// All allowed values of PortCapacitySearchFieldName enum +var AllowedPortCapacitySearchFieldNameEnumValues = []PortCapacitySearchFieldName{ + "/demarcationPointIbx", + "/tetherIbx", + "/physicalPortsSpeed", + "/physicalPortsType", + "/lagEnabled", +} + +func (v *PortCapacitySearchFieldName) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PortCapacitySearchFieldName(value) + for _, existing := range AllowedPortCapacitySearchFieldNameEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PortCapacitySearchFieldName", value) +} + +// NewPortCapacitySearchFieldNameFromValue returns a pointer to a valid PortCapacitySearchFieldName +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPortCapacitySearchFieldNameFromValue(v string) (*PortCapacitySearchFieldName, error) { + ev := PortCapacitySearchFieldName(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PortCapacitySearchFieldName: valid values are %v", v, AllowedPortCapacitySearchFieldNameEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PortCapacitySearchFieldName) IsValid() bool { + for _, existing := range AllowedPortCapacitySearchFieldNameEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PortCapacitySearchFieldName value +func (v PortCapacitySearchFieldName) Ptr() *PortCapacitySearchFieldName { + return &v +} + +type NullablePortCapacitySearchFieldName struct { + value *PortCapacitySearchFieldName + isSet bool +} + +func (v NullablePortCapacitySearchFieldName) Get() *PortCapacitySearchFieldName { + return v.value +} + +func (v *NullablePortCapacitySearchFieldName) Set(val *PortCapacitySearchFieldName) { + v.value = val + v.isSet = true +} + +func (v NullablePortCapacitySearchFieldName) IsSet() bool { + return v.isSet +} + +func (v *NullablePortCapacitySearchFieldName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortCapacitySearchFieldName(val *PortCapacitySearchFieldName) *NullablePortCapacitySearchFieldName { + return &NullablePortCapacitySearchFieldName{value: val, isSet: true} +} + +func (v NullablePortCapacitySearchFieldName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortCapacitySearchFieldName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_capacity_search_request.go b/services/fabricv4/model_port_capacity_search_request.go new file mode 100644 index 00000000..8da47e87 --- /dev/null +++ b/services/fabricv4/model_port_capacity_search_request.go @@ -0,0 +1,187 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the PortCapacitySearchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PortCapacitySearchRequest{} + +// PortCapacitySearchRequest Search requests containing criteria +type PortCapacitySearchRequest struct { + Filter *PortCapacityExpression `json:"filter,omitempty"` + Pagination *Pagination `json:"pagination,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PortCapacitySearchRequest PortCapacitySearchRequest + +// NewPortCapacitySearchRequest instantiates a new PortCapacitySearchRequest 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 NewPortCapacitySearchRequest() *PortCapacitySearchRequest { + this := PortCapacitySearchRequest{} + return &this +} + +// NewPortCapacitySearchRequestWithDefaults instantiates a new PortCapacitySearchRequest 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 NewPortCapacitySearchRequestWithDefaults() *PortCapacitySearchRequest { + this := PortCapacitySearchRequest{} + return &this +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *PortCapacitySearchRequest) GetFilter() PortCapacityExpression { + if o == nil || IsNil(o.Filter) { + var ret PortCapacityExpression + return ret + } + return *o.Filter +} + +// GetFilterOk returns a tuple with the Filter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortCapacitySearchRequest) GetFilterOk() (*PortCapacityExpression, bool) { + if o == nil || IsNil(o.Filter) { + return nil, false + } + return o.Filter, true +} + +// HasFilter returns a boolean if a field has been set. +func (o *PortCapacitySearchRequest) HasFilter() bool { + if o != nil && !IsNil(o.Filter) { + return true + } + + return false +} + +// SetFilter gets a reference to the given PortCapacityExpression and assigns it to the Filter field. +func (o *PortCapacitySearchRequest) SetFilter(v PortCapacityExpression) { + o.Filter = &v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *PortCapacitySearchRequest) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortCapacitySearchRequest) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *PortCapacitySearchRequest) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *PortCapacitySearchRequest) SetPagination(v Pagination) { + o.Pagination = &v +} + +func (o PortCapacitySearchRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PortCapacitySearchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Filter) { + toSerialize["filter"] = o.Filter + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PortCapacitySearchRequest) UnmarshalJSON(data []byte) (err error) { + varPortCapacitySearchRequest := _PortCapacitySearchRequest{} + + err = json.Unmarshal(data, &varPortCapacitySearchRequest) + + if err != nil { + return err + } + + *o = PortCapacitySearchRequest(varPortCapacitySearchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "filter") + delete(additionalProperties, "pagination") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePortCapacitySearchRequest struct { + value *PortCapacitySearchRequest + isSet bool +} + +func (v NullablePortCapacitySearchRequest) Get() *PortCapacitySearchRequest { + return v.value +} + +func (v *NullablePortCapacitySearchRequest) Set(val *PortCapacitySearchRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePortCapacitySearchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePortCapacitySearchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortCapacitySearchRequest(val *PortCapacitySearchRequest) *NullablePortCapacitySearchRequest { + return &NullablePortCapacitySearchRequest{value: val, isSet: true} +} + +func (v NullablePortCapacitySearchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortCapacitySearchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_change_operation.go b/services/fabricv4/model_port_change_operation.go new file mode 100644 index 00000000..acc2d093 --- /dev/null +++ b/services/fabricv4/model_port_change_operation.go @@ -0,0 +1,228 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// checks if the PortChangeOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PortChangeOperation{} + +// PortChangeOperation Port change operation data +type PortChangeOperation struct { + // Handy shortcut for operation name + Op string `json:"op"` + // path inside document leading to updated parameter + Path string `json:"path"` + // new value for updated parameter + Value interface{} `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PortChangeOperation PortChangeOperation + +// NewPortChangeOperation instantiates a new PortChangeOperation 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 NewPortChangeOperation(op string, path string, value interface{}) *PortChangeOperation { + this := PortChangeOperation{} + this.Op = op + this.Path = path + this.Value = value + return &this +} + +// NewPortChangeOperationWithDefaults instantiates a new PortChangeOperation 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 NewPortChangeOperationWithDefaults() *PortChangeOperation { + this := PortChangeOperation{} + return &this +} + +// GetOp returns the Op field value +func (o *PortChangeOperation) GetOp() string { + if o == nil { + var ret string + return ret + } + + return o.Op +} + +// GetOpOk returns a tuple with the Op field value +// and a boolean to check if the value has been set. +func (o *PortChangeOperation) GetOpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Op, true +} + +// SetOp sets field value +func (o *PortChangeOperation) SetOp(v string) { + o.Op = v +} + +// GetPath returns the Path field value +func (o *PortChangeOperation) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *PortChangeOperation) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *PortChangeOperation) SetPath(v string) { + o.Path = v +} + +// GetValue returns the Value field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PortChangeOperation) GetValue() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PortChangeOperation) GetValueOk() (*interface{}, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PortChangeOperation) SetValue(v interface{}) { + o.Value = v +} + +func (o PortChangeOperation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PortChangeOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["op"] = o.Op + toSerialize["path"] = o.Path + if o.Value != nil { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PortChangeOperation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "op", + "path", + "value", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPortChangeOperation := _PortChangeOperation{} + + err = json.Unmarshal(data, &varPortChangeOperation) + + if err != nil { + return err + } + + *o = PortChangeOperation(varPortChangeOperation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "op") + delete(additionalProperties, "path") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePortChangeOperation struct { + value *PortChangeOperation + isSet bool +} + +func (v NullablePortChangeOperation) Get() *PortChangeOperation { + return v.value +} + +func (v *NullablePortChangeOperation) Set(val *PortChangeOperation) { + v.value = val + v.isSet = true +} + +func (v NullablePortChangeOperation) IsSet() bool { + return v.isSet +} + +func (v *NullablePortChangeOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortChangeOperation(val *PortChangeOperation) *NullablePortChangeOperation { + return &NullablePortChangeOperation{value: val, isSet: true} +} + +func (v NullablePortChangeOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortChangeOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_query_direction.go b/services/fabricv4/model_query_direction.go deleted file mode 100644 index bd973993..00000000 --- a/services/fabricv4/model_query_direction.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// QueryDirection Direction of traffic from the requester's viewpoint. -type QueryDirection string - -// List of query_direction -const ( - QUERYDIRECTION_INBOUND QueryDirection = "inbound" - QUERYDIRECTION_OUTBOUND QueryDirection = "outbound" -) - -// All allowed values of QueryDirection enum -var AllowedQueryDirectionEnumValues = []QueryDirection{ - "inbound", - "outbound", -} - -func (v *QueryDirection) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := QueryDirection(value) - for _, existing := range AllowedQueryDirectionEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid QueryDirection", value) -} - -// NewQueryDirectionFromValue returns a pointer to a valid QueryDirection -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewQueryDirectionFromValue(v string) (*QueryDirection, error) { - ev := QueryDirection(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for QueryDirection: valid values are %v", v, AllowedQueryDirectionEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v QueryDirection) IsValid() bool { - for _, existing := range AllowedQueryDirectionEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to query_direction value -func (v QueryDirection) Ptr() *QueryDirection { - return &v -} - -type NullableQueryDirection struct { - value *QueryDirection - isSet bool -} - -func (v NullableQueryDirection) Get() *QueryDirection { - return v.value -} - -func (v *NullableQueryDirection) Set(val *QueryDirection) { - v.value = val - v.isSet = true -} - -func (v NullableQueryDirection) IsSet() bool { - return v.isSet -} - -func (v *NullableQueryDirection) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQueryDirection(val *QueryDirection) *NullableQueryDirection { - return &NullableQueryDirection{value: val, isSet: true} -} - -func (v NullableQueryDirection) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableQueryDirection) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_route_filter_rules_patch_request_item.go b/services/fabricv4/model_route_filter_rules_patch_request_item.go index d9bcb29e..2b5d450e 100644 --- a/services/fabricv4/model_route_filter_rules_patch_request_item.go +++ b/services/fabricv4/model_route_filter_rules_patch_request_item.go @@ -22,7 +22,7 @@ type RouteFilterRulesPatchRequestItem struct { // path to change Path string `json:"path"` // new value for updated parameter - Value interface{} `json:"value"` + Value map[string]interface{} `json:"value"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _RouteFilterRulesPatchRequestItem RouteFilterRulesPatchRequestItem // 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 NewRouteFilterRulesPatchRequestItem(op string, path string, value interface{}) *RouteFilterRulesPatchRequestItem { +func NewRouteFilterRulesPatchRequestItem(op string, path string, value map[string]interface{}) *RouteFilterRulesPatchRequestItem { this := RouteFilterRulesPatchRequestItem{} this.Op = op this.Path = path @@ -97,10 +97,9 @@ func (o *RouteFilterRulesPatchRequestItem) SetPath(v string) { } // GetValue returns the Value field value -// If the value is explicit nil, the zero value for interface{} will be returned -func (o *RouteFilterRulesPatchRequestItem) GetValue() interface{} { +func (o *RouteFilterRulesPatchRequestItem) GetValue() map[string]interface{} { if o == nil { - var ret interface{} + var ret map[string]interface{} return ret } @@ -109,16 +108,15 @@ func (o *RouteFilterRulesPatchRequestItem) GetValue() interface{} { // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteFilterRulesPatchRequestItem) GetValueOk() (*interface{}, bool) { - if o == nil || IsNil(o.Value) { - return nil, false +func (o *RouteFilterRulesPatchRequestItem) GetValueOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false } - return &o.Value, true + return o.Value, true } // SetValue sets field value -func (o *RouteFilterRulesPatchRequestItem) SetValue(v interface{}) { +func (o *RouteFilterRulesPatchRequestItem) SetValue(v map[string]interface{}) { o.Value = v } @@ -134,9 +132,7 @@ func (o RouteFilterRulesPatchRequestItem) ToMap() (map[string]interface{}, error toSerialize := map[string]interface{}{} toSerialize["op"] = o.Op toSerialize["path"] = o.Path - if o.Value != nil { - toSerialize["value"] = o.Value - } + toSerialize["value"] = o.Value for key, value := range o.AdditionalProperties { toSerialize[key] = value diff --git a/services/fabricv4/model_service_token_connection.go b/services/fabricv4/model_service_token_connection.go index dd5ad471..309c1cef 100644 --- a/services/fabricv4/model_service_token_connection.go +++ b/services/fabricv4/model_service_token_connection.go @@ -9,7 +9,6 @@ package fabricv4 import ( "encoding/json" - "fmt" ) // checks if the ServiceTokenConnection type satisfies the MappedNullable interface at compile time @@ -17,7 +16,7 @@ var _ MappedNullable = &ServiceTokenConnection{} // ServiceTokenConnection Service Token Connection Type Information type ServiceTokenConnection struct { - Type ServiceTokenConnectionType `json:"type"` + Type *ServiceTokenConnectionType `json:"type,omitempty"` // An absolute URL that is the subject of the link's context. Href *string `json:"href,omitempty"` // Equinix-assigned connection identifier @@ -41,9 +40,8 @@ type _ServiceTokenConnection ServiceTokenConnection // 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 NewServiceTokenConnection(type_ ServiceTokenConnectionType) *ServiceTokenConnection { +func NewServiceTokenConnection() *ServiceTokenConnection { this := ServiceTokenConnection{} - this.Type = type_ var allowRemoteConnection bool = false this.AllowRemoteConnection = &allowRemoteConnection var allowCustomBandwidth bool = false @@ -63,28 +61,36 @@ func NewServiceTokenConnectionWithDefaults() *ServiceTokenConnection { return &this } -// GetType returns the Type field value +// GetType returns the Type field value if set, zero value otherwise. func (o *ServiceTokenConnection) GetType() ServiceTokenConnectionType { - if o == nil { + if o == nil || IsNil(o.Type) { var ret ServiceTokenConnectionType return ret } - - return o.Type + return *o.Type } -// GetTypeOk returns a tuple with the Type field value +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ServiceTokenConnection) GetTypeOk() (*ServiceTokenConnectionType, bool) { - if o == nil { + if o == nil || IsNil(o.Type) { return nil, false } - return &o.Type, true + return o.Type, true } -// SetType sets field value +// HasType returns a boolean if a field has been set. +func (o *ServiceTokenConnection) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given ServiceTokenConnectionType and assigns it to the Type field. func (o *ServiceTokenConnection) SetType(v ServiceTokenConnectionType) { - o.Type = v + o.Type = &v } // GetHref returns the Href field value if set, zero value otherwise. @@ -353,7 +359,9 @@ func (o ServiceTokenConnection) MarshalJSON() ([]byte, error) { func (o ServiceTokenConnection) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } if !IsNil(o.Href) { toSerialize["href"] = o.Href } @@ -387,27 +395,6 @@ func (o ServiceTokenConnection) ToMap() (map[string]interface{}, error) { } func (o *ServiceTokenConnection) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - varServiceTokenConnection := _ServiceTokenConnection{} err = json.Unmarshal(data, &varServiceTokenConnection) diff --git a/services/fabricv4/model_service_token_connection_type.go b/services/fabricv4/model_service_token_connection_type.go index 24a394d9..c9c940ff 100644 --- a/services/fabricv4/model_service_token_connection_type.go +++ b/services/fabricv4/model_service_token_connection_type.go @@ -22,6 +22,7 @@ const ( SERVICETOKENCONNECTIONTYPE_EVPLAN_VC ServiceTokenConnectionType = "EVPLAN_VC" SERVICETOKENCONNECTIONTYPE_EPLAN_VC ServiceTokenConnectionType = "EPLAN_VC" SERVICETOKENCONNECTIONTYPE_IPWAN_VC ServiceTokenConnectionType = "IPWAN_VC" + SERVICETOKENCONNECTIONTYPE_IP_VC ServiceTokenConnectionType = "IP_VC" ) // All allowed values of ServiceTokenConnectionType enum @@ -31,6 +32,7 @@ var AllowedServiceTokenConnectionTypeEnumValues = []ServiceTokenConnectionType{ "EVPLAN_VC", "EPLAN_VC", "IPWAN_VC", + "IP_VC", } func (v *ServiceTokenConnectionType) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_sort.go b/services/fabricv4/model_sort.go deleted file mode 100644 index 2d62e808..00000000 --- a/services/fabricv4/model_sort.go +++ /dev/null @@ -1,105 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// Sort Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The \"?\" prefix indicates descending (DESC) order. -type Sort string - -// List of sort -const ( - SORT_BANDWIDTH_UTILIZATION Sort = "-bandwidthUtilization" -) - -// All allowed values of Sort enum -var AllowedSortEnumValues = []Sort{ - "-bandwidthUtilization", -} - -func (v *Sort) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := Sort(value) - for _, existing := range AllowedSortEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid Sort", value) -} - -// NewSortFromValue returns a pointer to a valid Sort -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewSortFromValue(v string) (*Sort, error) { - ev := Sort(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for Sort: valid values are %v", v, AllowedSortEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v Sort) IsValid() bool { - for _, existing := range AllowedSortEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to sort value -func (v Sort) Ptr() *Sort { - return &v -} - -type NullableSort struct { - value *Sort - isSet bool -} - -func (v NullableSort) Get() *Sort { - return v.value -} - -func (v *NullableSort) Set(val *Sort) { - v.value = val - v.isSet = true -} - -func (v NullableSort) IsSet() bool { - return v.isSet -} - -func (v *NullableSort) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSort(val *Sort) *NullableSort { - return &NullableSort{value: val, isSet: true} -} - -func (v NullableSort) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSort) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_stream_filter_simple_expression.go b/services/fabricv4/model_stream_filter_simple_expression.go index ffadbeb8..83693e5d 100644 --- a/services/fabricv4/model_stream_filter_simple_expression.go +++ b/services/fabricv4/model_stream_filter_simple_expression.go @@ -19,7 +19,8 @@ type StreamFilterSimpleExpression struct { // Possible field names to use on filters: * `/subject` - subject * `/type` - type Property *string `json:"property,omitempty"` // Possible operators to use on filters: * `=` - equal * `in` - in * `LIKE` - case-sensitive like * `ILIKE` - case-insensitive like - Operator *string `json:"operator,omitempty"` + Operator *string `json:"operator,omitempty"` + // ### Supported event or metric names to use on filters with property /type: * `*` - all events or metrics * `equinix.fabric.port.*` - port events or metrics * `equinix.fabric.connection.*` - connection events or metrics * `equinix.fabric.router.*` - cloud router events * `equinix.fabric.metro.*` - metro metrics * `equinix.fabric.network.*` - network events * `equinix.fabric.service_token.*` - service token events * `equinix.network_edge.*` - network edge events * `equinix.network_edge.acl.*` - network edge acl events * `equinix.network_edge.device.*` - network edge device events * `equinix.access_manager.*` - identity access manager events * `equinix.access_manager.user.role.*` - identity access manager user role events ### Supported event or metric names to use on filters with property /subject: * `*` - all events or metrics * `/fabric/v4/ports/` - port events or metrics * `/fabric/v4/connections/` - connection events or metrics * `/fabric/v4/routers/` - cloud router events * `/fabric/v4/metros/` - metro metrics * `/fabric/v4/networks/` - network events * `/fabric/v4/tokens/` - service token events * `/ne/v1/acl/` - network edge acl events * `/ne/v1/devices/` - network edge device events * `/am/v2/users//roleAssignments/` - identity access manager events Values []string `json:"values,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/fabricv4/model_stream_get_subscriptions.go b/services/fabricv4/model_stream_get_subscriptions.go deleted file mode 100644 index 837f9b9a..00000000 --- a/services/fabricv4/model_stream_get_subscriptions.go +++ /dev/null @@ -1,226 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the StreamGetSubscriptions type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StreamGetSubscriptions{} - -// StreamGetSubscriptions Stream object -type StreamGetSubscriptions struct { - // Stream Get Stream Subscriptions URI - Href *string `json:"href,omitempty"` - // Equinix-assigned access point identifier - Uuid *string `json:"uuid,omitempty"` - Type *StreamGetSubscriptionsType `json:"type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _StreamGetSubscriptions StreamGetSubscriptions - -// NewStreamGetSubscriptions instantiates a new StreamGetSubscriptions 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 NewStreamGetSubscriptions() *StreamGetSubscriptions { - this := StreamGetSubscriptions{} - return &this -} - -// NewStreamGetSubscriptionsWithDefaults instantiates a new StreamGetSubscriptions 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 NewStreamGetSubscriptionsWithDefaults() *StreamGetSubscriptions { - this := StreamGetSubscriptions{} - return &this -} - -// GetHref returns the Href field value if set, zero value otherwise. -func (o *StreamGetSubscriptions) GetHref() string { - if o == nil || IsNil(o.Href) { - var ret string - return ret - } - return *o.Href -} - -// GetHrefOk returns a tuple with the Href field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamGetSubscriptions) GetHrefOk() (*string, bool) { - if o == nil || IsNil(o.Href) { - return nil, false - } - return o.Href, true -} - -// HasHref returns a boolean if a field has been set. -func (o *StreamGetSubscriptions) HasHref() bool { - if o != nil && !IsNil(o.Href) { - return true - } - - return false -} - -// SetHref gets a reference to the given string and assigns it to the Href field. -func (o *StreamGetSubscriptions) SetHref(v string) { - o.Href = &v -} - -// GetUuid returns the Uuid field value if set, zero value otherwise. -func (o *StreamGetSubscriptions) GetUuid() string { - if o == nil || IsNil(o.Uuid) { - var ret string - return ret - } - return *o.Uuid -} - -// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamGetSubscriptions) GetUuidOk() (*string, bool) { - if o == nil || IsNil(o.Uuid) { - return nil, false - } - return o.Uuid, true -} - -// HasUuid returns a boolean if a field has been set. -func (o *StreamGetSubscriptions) HasUuid() bool { - if o != nil && !IsNil(o.Uuid) { - return true - } - - return false -} - -// SetUuid gets a reference to the given string and assigns it to the Uuid field. -func (o *StreamGetSubscriptions) SetUuid(v string) { - o.Uuid = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *StreamGetSubscriptions) GetType() StreamGetSubscriptionsType { - if o == nil || IsNil(o.Type) { - var ret StreamGetSubscriptionsType - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamGetSubscriptions) GetTypeOk() (*StreamGetSubscriptionsType, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *StreamGetSubscriptions) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given StreamGetSubscriptionsType and assigns it to the Type field. -func (o *StreamGetSubscriptions) SetType(v StreamGetSubscriptionsType) { - o.Type = &v -} - -func (o StreamGetSubscriptions) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o StreamGetSubscriptions) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Href) { - toSerialize["href"] = o.Href - } - if !IsNil(o.Uuid) { - toSerialize["uuid"] = o.Uuid - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *StreamGetSubscriptions) UnmarshalJSON(data []byte) (err error) { - varStreamGetSubscriptions := _StreamGetSubscriptions{} - - err = json.Unmarshal(data, &varStreamGetSubscriptions) - - if err != nil { - return err - } - - *o = StreamGetSubscriptions(varStreamGetSubscriptions) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "href") - delete(additionalProperties, "uuid") - delete(additionalProperties, "type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableStreamGetSubscriptions struct { - value *StreamGetSubscriptions - isSet bool -} - -func (v NullableStreamGetSubscriptions) Get() *StreamGetSubscriptions { - return v.value -} - -func (v *NullableStreamGetSubscriptions) Set(val *StreamGetSubscriptions) { - v.value = val - v.isSet = true -} - -func (v NullableStreamGetSubscriptions) IsSet() bool { - return v.isSet -} - -func (v *NullableStreamGetSubscriptions) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStreamGetSubscriptions(val *StreamGetSubscriptions) *NullableStreamGetSubscriptions { - return &NullableStreamGetSubscriptions{value: val, isSet: true} -} - -func (v NullableStreamGetSubscriptions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStreamGetSubscriptions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_stream_get_subscriptions_type.go b/services/fabricv4/model_stream_get_subscriptions_type.go deleted file mode 100644 index 1b3c842d..00000000 --- a/services/fabricv4/model_stream_get_subscriptions_type.go +++ /dev/null @@ -1,105 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// StreamGetSubscriptionsType Stream subscription type -type StreamGetSubscriptionsType string - -// List of StreamGetSubscriptions_type -const ( - STREAMGETSUBSCRIPTIONSTYPE_STREAM_SUBSCRIPTION StreamGetSubscriptionsType = "STREAM_SUBSCRIPTION" -) - -// All allowed values of StreamGetSubscriptionsType enum -var AllowedStreamGetSubscriptionsTypeEnumValues = []StreamGetSubscriptionsType{ - "STREAM_SUBSCRIPTION", -} - -func (v *StreamGetSubscriptionsType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := StreamGetSubscriptionsType(value) - for _, existing := range AllowedStreamGetSubscriptionsTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid StreamGetSubscriptionsType", value) -} - -// NewStreamGetSubscriptionsTypeFromValue returns a pointer to a valid StreamGetSubscriptionsType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewStreamGetSubscriptionsTypeFromValue(v string) (*StreamGetSubscriptionsType, error) { - ev := StreamGetSubscriptionsType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for StreamGetSubscriptionsType: valid values are %v", v, AllowedStreamGetSubscriptionsTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v StreamGetSubscriptionsType) IsValid() bool { - for _, existing := range AllowedStreamGetSubscriptionsTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to StreamGetSubscriptions_type value -func (v StreamGetSubscriptionsType) Ptr() *StreamGetSubscriptionsType { - return &v -} - -type NullableStreamGetSubscriptionsType struct { - value *StreamGetSubscriptionsType - isSet bool -} - -func (v NullableStreamGetSubscriptionsType) Get() *StreamGetSubscriptionsType { - return v.value -} - -func (v *NullableStreamGetSubscriptionsType) Set(val *StreamGetSubscriptionsType) { - v.value = val - v.isSet = true -} - -func (v NullableStreamGetSubscriptionsType) IsSet() bool { - return v.isSet -} - -func (v *NullableStreamGetSubscriptionsType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStreamGetSubscriptionsType(val *StreamGetSubscriptionsType) *NullableStreamGetSubscriptionsType { - return &NullableStreamGetSubscriptionsType{value: val, isSet: true} -} - -func (v NullableStreamGetSubscriptionsType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStreamGetSubscriptionsType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_stream_subscription.go b/services/fabricv4/model_stream_subscription.go index 303c3adf..fdd80373 100644 --- a/services/fabricv4/model_stream_subscription.go +++ b/services/fabricv4/model_stream_subscription.go @@ -25,11 +25,9 @@ type StreamSubscription struct { Name *string `json:"name,omitempty"` // Customer-provided subscription description Description *string `json:"description,omitempty"` - Project *Project `json:"project,omitempty"` State *StreamSubscriptionState `json:"state,omitempty"` // Stream subscription enabled status Enabled *bool `json:"enabled,omitempty"` - Stream *StreamTarget `json:"stream,omitempty"` Filters *StreamSubscriptionFilter `json:"filters,omitempty"` MetricSelector *StreamSubscriptionSelector `json:"metricSelector,omitempty"` EventSelector *StreamSubscriptionSelector `json:"eventSelector,omitempty"` @@ -217,38 +215,6 @@ func (o *StreamSubscription) SetDescription(v string) { o.Description = &v } -// GetProject returns the Project field value if set, zero value otherwise. -func (o *StreamSubscription) GetProject() Project { - if o == nil || IsNil(o.Project) { - var ret Project - return ret - } - return *o.Project -} - -// GetProjectOk returns a tuple with the Project field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamSubscription) GetProjectOk() (*Project, bool) { - if o == nil || IsNil(o.Project) { - return nil, false - } - return o.Project, true -} - -// HasProject returns a boolean if a field has been set. -func (o *StreamSubscription) HasProject() bool { - if o != nil && !IsNil(o.Project) { - return true - } - - return false -} - -// SetProject gets a reference to the given Project and assigns it to the Project field. -func (o *StreamSubscription) SetProject(v Project) { - o.Project = &v -} - // GetState returns the State field value if set, zero value otherwise. func (o *StreamSubscription) GetState() StreamSubscriptionState { if o == nil || IsNil(o.State) { @@ -313,38 +279,6 @@ func (o *StreamSubscription) SetEnabled(v bool) { o.Enabled = &v } -// GetStream returns the Stream field value if set, zero value otherwise. -func (o *StreamSubscription) GetStream() StreamTarget { - if o == nil || IsNil(o.Stream) { - var ret StreamTarget - return ret - } - return *o.Stream -} - -// GetStreamOk returns a tuple with the Stream field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamSubscription) GetStreamOk() (*StreamTarget, bool) { - if o == nil || IsNil(o.Stream) { - return nil, false - } - return o.Stream, true -} - -// HasStream returns a boolean if a field has been set. -func (o *StreamSubscription) HasStream() bool { - if o != nil && !IsNil(o.Stream) { - return true - } - - return false -} - -// SetStream gets a reference to the given StreamTarget and assigns it to the Stream field. -func (o *StreamSubscription) SetStream(v StreamTarget) { - o.Stream = &v -} - // GetFilters returns the Filters field value if set, zero value otherwise. func (o *StreamSubscription) GetFilters() StreamSubscriptionFilter { if o == nil || IsNil(o.Filters) { @@ -530,18 +464,12 @@ func (o StreamSubscription) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Project) { - toSerialize["project"] = o.Project - } if !IsNil(o.State) { toSerialize["state"] = o.State } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !IsNil(o.Stream) { - toSerialize["stream"] = o.Stream - } if !IsNil(o.Filters) { toSerialize["filters"] = o.Filters } @@ -584,10 +512,8 @@ func (o *StreamSubscription) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "name") delete(additionalProperties, "description") - delete(additionalProperties, "project") delete(additionalProperties, "state") delete(additionalProperties, "enabled") - delete(additionalProperties, "stream") delete(additionalProperties, "filters") delete(additionalProperties, "metricSelector") delete(additionalProperties, "eventSelector") diff --git a/services/fabricv4/model_stream_subscription_post_request.go b/services/fabricv4/model_stream_subscription_post_request.go index 97442214..99b0feed 100644 --- a/services/fabricv4/model_stream_subscription_post_request.go +++ b/services/fabricv4/model_stream_subscription_post_request.go @@ -20,11 +20,9 @@ type StreamSubscriptionPostRequest struct { // Customer-provided stream subscription name Name *string `json:"name,omitempty"` // Customer-provided stream subscription description - Description *string `json:"description,omitempty"` - Project *Project `json:"project,omitempty"` + Description *string `json:"description,omitempty"` // Stream subscription enabled status Enabled *bool `json:"enabled,omitempty"` - Stream *StreamTarget `json:"stream,omitempty"` Filters *StreamSubscriptionFilter `json:"filters,omitempty"` MetricSelector *StreamSubscriptionSelector `json:"metricSelector,omitempty"` EventSelector *StreamSubscriptionSelector `json:"eventSelector,omitempty"` @@ -147,38 +145,6 @@ func (o *StreamSubscriptionPostRequest) SetDescription(v string) { o.Description = &v } -// GetProject returns the Project field value if set, zero value otherwise. -func (o *StreamSubscriptionPostRequest) GetProject() Project { - if o == nil || IsNil(o.Project) { - var ret Project - return ret - } - return *o.Project -} - -// GetProjectOk returns a tuple with the Project field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamSubscriptionPostRequest) GetProjectOk() (*Project, bool) { - if o == nil || IsNil(o.Project) { - return nil, false - } - return o.Project, true -} - -// HasProject returns a boolean if a field has been set. -func (o *StreamSubscriptionPostRequest) HasProject() bool { - if o != nil && !IsNil(o.Project) { - return true - } - - return false -} - -// SetProject gets a reference to the given Project and assigns it to the Project field. -func (o *StreamSubscriptionPostRequest) SetProject(v Project) { - o.Project = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *StreamSubscriptionPostRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -211,38 +177,6 @@ func (o *StreamSubscriptionPostRequest) SetEnabled(v bool) { o.Enabled = &v } -// GetStream returns the Stream field value if set, zero value otherwise. -func (o *StreamSubscriptionPostRequest) GetStream() StreamTarget { - if o == nil || IsNil(o.Stream) { - var ret StreamTarget - return ret - } - return *o.Stream -} - -// GetStreamOk returns a tuple with the Stream field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamSubscriptionPostRequest) GetStreamOk() (*StreamTarget, bool) { - if o == nil || IsNil(o.Stream) { - return nil, false - } - return o.Stream, true -} - -// HasStream returns a boolean if a field has been set. -func (o *StreamSubscriptionPostRequest) HasStream() bool { - if o != nil && !IsNil(o.Stream) { - return true - } - - return false -} - -// SetStream gets a reference to the given StreamTarget and assigns it to the Stream field. -func (o *StreamSubscriptionPostRequest) SetStream(v StreamTarget) { - o.Stream = &v -} - // GetFilters returns the Filters field value if set, zero value otherwise. func (o *StreamSubscriptionPostRequest) GetFilters() StreamSubscriptionFilter { if o == nil || IsNil(o.Filters) { @@ -390,15 +324,9 @@ func (o StreamSubscriptionPostRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Project) { - toSerialize["project"] = o.Project - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !IsNil(o.Stream) { - toSerialize["stream"] = o.Stream - } if !IsNil(o.Filters) { toSerialize["filters"] = o.Filters } @@ -436,9 +364,7 @@ func (o *StreamSubscriptionPostRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "name") delete(additionalProperties, "description") - delete(additionalProperties, "project") delete(additionalProperties, "enabled") - delete(additionalProperties, "stream") delete(additionalProperties, "filters") delete(additionalProperties, "metricSelector") delete(additionalProperties, "eventSelector") diff --git a/services/fabricv4/model_stream_subscription_put_request.go b/services/fabricv4/model_stream_subscription_put_request.go index bdc8f373..5856490c 100644 --- a/services/fabricv4/model_stream_subscription_put_request.go +++ b/services/fabricv4/model_stream_subscription_put_request.go @@ -19,8 +19,7 @@ type StreamSubscriptionPutRequest struct { // Customer-provided stream subscription name Name *string `json:"name,omitempty"` // Customer-provided stream subscription description - Description *string `json:"description,omitempty"` - Stream *StreamTarget `json:"stream,omitempty"` + Description *string `json:"description,omitempty"` // Stream subscription enabled status Enabled *bool `json:"enabled,omitempty"` Filters *StreamSubscriptionFilter `json:"filters,omitempty"` @@ -113,38 +112,6 @@ func (o *StreamSubscriptionPutRequest) SetDescription(v string) { o.Description = &v } -// GetStream returns the Stream field value if set, zero value otherwise. -func (o *StreamSubscriptionPutRequest) GetStream() StreamTarget { - if o == nil || IsNil(o.Stream) { - var ret StreamTarget - return ret - } - return *o.Stream -} - -// GetStreamOk returns a tuple with the Stream field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamSubscriptionPutRequest) GetStreamOk() (*StreamTarget, bool) { - if o == nil || IsNil(o.Stream) { - return nil, false - } - return o.Stream, true -} - -// HasStream returns a boolean if a field has been set. -func (o *StreamSubscriptionPutRequest) HasStream() bool { - if o != nil && !IsNil(o.Stream) { - return true - } - - return false -} - -// SetStream gets a reference to the given StreamTarget and assigns it to the Stream field. -func (o *StreamSubscriptionPutRequest) SetStream(v StreamTarget) { - o.Stream = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *StreamSubscriptionPutRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -321,9 +288,6 @@ func (o StreamSubscriptionPutRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Stream) { - toSerialize["stream"] = o.Stream - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } @@ -363,7 +327,6 @@ func (o *StreamSubscriptionPutRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") - delete(additionalProperties, "stream") delete(additionalProperties, "enabled") delete(additionalProperties, "filters") delete(additionalProperties, "metricSelector") diff --git a/services/fabricv4/model_stream_subscription_sink.go b/services/fabricv4/model_stream_subscription_sink.go index 5ce00774..67e02f6c 100644 --- a/services/fabricv4/model_stream_subscription_sink.go +++ b/services/fabricv4/model_stream_subscription_sink.go @@ -24,9 +24,11 @@ type StreamSubscriptionSink struct { // maximum batch size BatchSizeMax *int32 `json:"batchSizeMax,omitempty"` // maximum batch waiting time - BatchWaitTimeMax *int32 `json:"batchWaitTimeMax,omitempty"` - Credential *StreamSubscriptionSinkCredential `json:"credential,omitempty"` - Settings *StreamSubscriptionSinkSetting `json:"settings,omitempty"` + BatchWaitTimeMax *int32 `json:"batchWaitTimeMax,omitempty"` + Credential *StreamSubscriptionSinkCredential `json:"credential,omitempty"` + Settings *StreamSubscriptionSinkSetting `json:"settings,omitempty"` + // sink host + Host *string `json:"host,omitempty"` AdditionalProperties map[string]interface{} } @@ -273,6 +275,38 @@ func (o *StreamSubscriptionSink) SetSettings(v StreamSubscriptionSinkSetting) { o.Settings = &v } +// GetHost returns the Host field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetHost() string { + if o == nil || IsNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSink) GetHostOk() (*string, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *StreamSubscriptionSink) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *StreamSubscriptionSink) SetHost(v string) { + o.Host = &v +} + func (o StreamSubscriptionSink) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -304,6 +338,9 @@ func (o StreamSubscriptionSink) ToMap() (map[string]interface{}, error) { if !IsNil(o.Settings) { toSerialize["settings"] = o.Settings } + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -333,6 +370,7 @@ func (o *StreamSubscriptionSink) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "batchWaitTimeMax") delete(additionalProperties, "credential") delete(additionalProperties, "settings") + delete(additionalProperties, "host") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_stream_subscription_sink_credential.go b/services/fabricv4/model_stream_subscription_sink_credential.go index 974ed4dd..3f2a517c 100644 --- a/services/fabricv4/model_stream_subscription_sink_credential.go +++ b/services/fabricv4/model_stream_subscription_sink_credential.go @@ -22,7 +22,11 @@ type StreamSubscriptionSinkCredential struct { // passed as Authorization header value IntegrationKey *string `json:"integrationKey,omitempty"` // passed as Authorization header value - ApiKey *string `json:"apiKey,omitempty"` + ApiKey *string `json:"apiKey,omitempty"` + // passed as Authorization header value + Username *string `json:"username,omitempty"` + // passed as Authorization header value + Password *string `json:"password,omitempty"` AdditionalProperties map[string]interface{} } @@ -173,6 +177,70 @@ func (o *StreamSubscriptionSinkCredential) SetApiKey(v string) { o.ApiKey = &v } +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkCredential) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkCredential) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkCredential) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *StreamSubscriptionSinkCredential) SetUsername(v string) { + o.Username = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkCredential) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkCredential) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkCredential) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *StreamSubscriptionSinkCredential) SetPassword(v string) { + o.Password = &v +} + func (o StreamSubscriptionSinkCredential) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -195,6 +263,12 @@ func (o StreamSubscriptionSinkCredential) ToMap() (map[string]interface{}, error if !IsNil(o.ApiKey) { toSerialize["apiKey"] = o.ApiKey } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -221,6 +295,8 @@ func (o *StreamSubscriptionSinkCredential) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "accessToken") delete(additionalProperties, "integrationKey") delete(additionalProperties, "apiKey") + delete(additionalProperties, "username") + delete(additionalProperties, "password") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_stream_subscription_sink_credential_type.go b/services/fabricv4/model_stream_subscription_sink_credential_type.go index 817363ad..0fd70c48 100644 --- a/services/fabricv4/model_stream_subscription_sink_credential_type.go +++ b/services/fabricv4/model_stream_subscription_sink_credential_type.go @@ -17,9 +17,10 @@ type StreamSubscriptionSinkCredentialType string // List of StreamSubscriptionSinkCredential_type const ( - STREAMSUBSCRIPTIONSINKCREDENTIALTYPE_ACCESS_TOKEN StreamSubscriptionSinkCredentialType = "ACCESS_TOKEN" - STREAMSUBSCRIPTIONSINKCREDENTIALTYPE_INTEGRATION_KEY StreamSubscriptionSinkCredentialType = "INTEGRATION_KEY" - STREAMSUBSCRIPTIONSINKCREDENTIALTYPE_API_KEY StreamSubscriptionSinkCredentialType = "API_KEY" + STREAMSUBSCRIPTIONSINKCREDENTIALTYPE_ACCESS_TOKEN StreamSubscriptionSinkCredentialType = "ACCESS_TOKEN" + STREAMSUBSCRIPTIONSINKCREDENTIALTYPE_INTEGRATION_KEY StreamSubscriptionSinkCredentialType = "INTEGRATION_KEY" + STREAMSUBSCRIPTIONSINKCREDENTIALTYPE_API_KEY StreamSubscriptionSinkCredentialType = "API_KEY" + STREAMSUBSCRIPTIONSINKCREDENTIALTYPE_USERNAME_PASSWORD StreamSubscriptionSinkCredentialType = "USERNAME_PASSWORD" ) // All allowed values of StreamSubscriptionSinkCredentialType enum @@ -27,6 +28,7 @@ var AllowedStreamSubscriptionSinkCredentialTypeEnumValues = []StreamSubscription "ACCESS_TOKEN", "INTEGRATION_KEY", "API_KEY", + "USERNAME_PASSWORD", } func (v *StreamSubscriptionSinkCredentialType) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_stream_subscription_sink_setting.go b/services/fabricv4/model_stream_subscription_sink_setting.go index d9febfee..77559c57 100644 --- a/services/fabricv4/model_stream_subscription_sink_setting.go +++ b/services/fabricv4/model_stream_subscription_sink_setting.go @@ -23,7 +23,13 @@ type StreamSubscriptionSinkSetting struct { // source Source *string `json:"source,omitempty"` // Application key - ApplicationKey *string `json:"applicationKey,omitempty"` + ApplicationKey *string `json:"applicationKey,omitempty"` + // event uri + EventUri *string `json:"eventUri,omitempty"` + // metric uri + MetricUri *string `json:"metricUri,omitempty"` + // transform alerts + TransformAlerts *bool `json:"transformAlerts,omitempty"` AdditionalProperties map[string]interface{} } @@ -174,6 +180,102 @@ func (o *StreamSubscriptionSinkSetting) SetApplicationKey(v string) { o.ApplicationKey = &v } +// GetEventUri returns the EventUri field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkSetting) GetEventUri() string { + if o == nil || IsNil(o.EventUri) { + var ret string + return ret + } + return *o.EventUri +} + +// GetEventUriOk returns a tuple with the EventUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkSetting) GetEventUriOk() (*string, bool) { + if o == nil || IsNil(o.EventUri) { + return nil, false + } + return o.EventUri, true +} + +// HasEventUri returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkSetting) HasEventUri() bool { + if o != nil && !IsNil(o.EventUri) { + return true + } + + return false +} + +// SetEventUri gets a reference to the given string and assigns it to the EventUri field. +func (o *StreamSubscriptionSinkSetting) SetEventUri(v string) { + o.EventUri = &v +} + +// GetMetricUri returns the MetricUri field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkSetting) GetMetricUri() string { + if o == nil || IsNil(o.MetricUri) { + var ret string + return ret + } + return *o.MetricUri +} + +// GetMetricUriOk returns a tuple with the MetricUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkSetting) GetMetricUriOk() (*string, bool) { + if o == nil || IsNil(o.MetricUri) { + return nil, false + } + return o.MetricUri, true +} + +// HasMetricUri returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkSetting) HasMetricUri() bool { + if o != nil && !IsNil(o.MetricUri) { + return true + } + + return false +} + +// SetMetricUri gets a reference to the given string and assigns it to the MetricUri field. +func (o *StreamSubscriptionSinkSetting) SetMetricUri(v string) { + o.MetricUri = &v +} + +// GetTransformAlerts returns the TransformAlerts field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkSetting) GetTransformAlerts() bool { + if o == nil || IsNil(o.TransformAlerts) { + var ret bool + return ret + } + return *o.TransformAlerts +} + +// GetTransformAlertsOk returns a tuple with the TransformAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkSetting) GetTransformAlertsOk() (*bool, bool) { + if o == nil || IsNil(o.TransformAlerts) { + return nil, false + } + return o.TransformAlerts, true +} + +// HasTransformAlerts returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkSetting) HasTransformAlerts() bool { + if o != nil && !IsNil(o.TransformAlerts) { + return true + } + + return false +} + +// SetTransformAlerts gets a reference to the given bool and assigns it to the TransformAlerts field. +func (o *StreamSubscriptionSinkSetting) SetTransformAlerts(v bool) { + o.TransformAlerts = &v +} + func (o StreamSubscriptionSinkSetting) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -196,6 +298,15 @@ func (o StreamSubscriptionSinkSetting) ToMap() (map[string]interface{}, error) { if !IsNil(o.ApplicationKey) { toSerialize["applicationKey"] = o.ApplicationKey } + if !IsNil(o.EventUri) { + toSerialize["eventUri"] = o.EventUri + } + if !IsNil(o.MetricUri) { + toSerialize["metricUri"] = o.MetricUri + } + if !IsNil(o.TransformAlerts) { + toSerialize["transformAlerts"] = o.TransformAlerts + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -222,6 +333,9 @@ func (o *StreamSubscriptionSinkSetting) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "metricIndex") delete(additionalProperties, "source") delete(additionalProperties, "applicationKey") + delete(additionalProperties, "eventUri") + delete(additionalProperties, "metricUri") + delete(additionalProperties, "transformAlerts") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_stream_target.go b/services/fabricv4/model_stream_target.go deleted file mode 100644 index 1eb13163..00000000 --- a/services/fabricv4/model_stream_target.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -Equinix Fabric API v4 - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the StreamTarget type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StreamTarget{} - -// StreamTarget Stream uuid -type StreamTarget struct { - // Stream UUID - Uuid *string `json:"uuid,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _StreamTarget StreamTarget - -// NewStreamTarget instantiates a new StreamTarget 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 NewStreamTarget() *StreamTarget { - this := StreamTarget{} - return &this -} - -// NewStreamTargetWithDefaults instantiates a new StreamTarget 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 NewStreamTargetWithDefaults() *StreamTarget { - this := StreamTarget{} - return &this -} - -// GetUuid returns the Uuid field value if set, zero value otherwise. -func (o *StreamTarget) GetUuid() string { - if o == nil || IsNil(o.Uuid) { - var ret string - return ret - } - return *o.Uuid -} - -// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StreamTarget) GetUuidOk() (*string, bool) { - if o == nil || IsNil(o.Uuid) { - return nil, false - } - return o.Uuid, true -} - -// HasUuid returns a boolean if a field has been set. -func (o *StreamTarget) HasUuid() bool { - if o != nil && !IsNil(o.Uuid) { - return true - } - - return false -} - -// SetUuid gets a reference to the given string and assigns it to the Uuid field. -func (o *StreamTarget) SetUuid(v string) { - o.Uuid = &v -} - -func (o StreamTarget) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o StreamTarget) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Uuid) { - toSerialize["uuid"] = o.Uuid - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *StreamTarget) UnmarshalJSON(data []byte) (err error) { - varStreamTarget := _StreamTarget{} - - err = json.Unmarshal(data, &varStreamTarget) - - if err != nil { - return err - } - - *o = StreamTarget(varStreamTarget) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "uuid") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableStreamTarget struct { - value *StreamTarget - isSet bool -} - -func (v NullableStreamTarget) Get() *StreamTarget { - return v.value -} - -func (v *NullableStreamTarget) Set(val *StreamTarget) { - v.value = val - v.isSet = true -} - -func (v NullableStreamTarget) IsSet() bool { - return v.isSet -} - -func (v *NullableStreamTarget) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStreamTarget(val *StreamTarget) *NullableStreamTarget { - return &NullableStreamTarget{value: val, isSet: true} -} - -func (v NullableStreamTarget) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStreamTarget) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/test/api_ports_test.go b/services/fabricv4/test/api_ports_test.go index f8057229..d54cd8d8 100644 --- a/services/fabricv4/test/api_ports_test.go +++ b/services/fabricv4/test/api_ports_test.go @@ -109,4 +109,16 @@ func Test_fabricv4_PortsApiService(t *testing.T) { require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) + + t.Run("Test PortsApiService UpdatePortByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var portId string + + resp, httpRes, err := apiClient.PortsApi.UpdatePortByUuid(context.Background(), portId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/services/fabricv4/test/api_statistics_test.go b/services/fabricv4/test/api_statistics_test.go index b9365fd6..542b57dc 100644 --- a/services/fabricv4/test/api_statistics_test.go +++ b/services/fabricv4/test/api_statistics_test.go @@ -34,16 +34,6 @@ func Test_fabricv4_StatisticsApiService(t *testing.T) { assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test StatisticsApiService GetPortStats", func(t *testing.T) { - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.StatisticsApi.GetPortStats(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - t.Run("Test StatisticsApiService GetPortStatsByPortUuid", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/services/fabricv4/test/api_stream_subscriptions_test.go b/services/fabricv4/test/api_stream_subscriptions_test.go index 160cc76c..5f328c8a 100644 --- a/services/fabricv4/test/api_stream_subscriptions_test.go +++ b/services/fabricv4/test/api_stream_subscriptions_test.go @@ -25,7 +25,9 @@ func Test_fabricv4_StreamSubscriptionsApiService(t *testing.T) { t.Run("Test StreamSubscriptionsApiService CreateStreamSubscriptions", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.StreamSubscriptionsApi.CreateStreamSubscriptions(context.Background()).Execute() + var streamId string + + resp, httpRes, err := apiClient.StreamSubscriptionsApi.CreateStreamSubscriptions(context.Background(), streamId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -35,9 +37,10 @@ func Test_fabricv4_StreamSubscriptionsApiService(t *testing.T) { t.Run("Test StreamSubscriptionsApiService DeleteStreamSubscriptionByUuid", func(t *testing.T) { t.Skip("skip test") // remove to run test - var streamSubscriptionId string + var streamId string + var subscriptionId string - resp, httpRes, err := apiClient.StreamSubscriptionsApi.DeleteStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + resp, httpRes, err := apiClient.StreamSubscriptionsApi.DeleteStreamSubscriptionByUuid(context.Background(), streamId, subscriptionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -47,9 +50,10 @@ func Test_fabricv4_StreamSubscriptionsApiService(t *testing.T) { t.Run("Test StreamSubscriptionsApiService GetStreamSubscriptionByUuid", func(t *testing.T) { t.Skip("skip test") // remove to run test - var streamSubscriptionId string + var streamId string + var subscriptionId string - resp, httpRes, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + resp, httpRes, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptionByUuid(context.Background(), streamId, subscriptionId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -59,7 +63,9 @@ func Test_fabricv4_StreamSubscriptionsApiService(t *testing.T) { t.Run("Test StreamSubscriptionsApiService GetStreamSubscriptions", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptions(context.Background()).Execute() + var streamId string + + resp, httpRes, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptions(context.Background(), streamId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -69,9 +75,10 @@ func Test_fabricv4_StreamSubscriptionsApiService(t *testing.T) { t.Run("Test StreamSubscriptionsApiService UpdateStreamSubscriptionByUuid", func(t *testing.T) { t.Skip("skip test") // remove to run test - var streamSubscriptionId string + var streamId string + var subscriptionId string - resp, httpRes, err := apiClient.StreamSubscriptionsApi.UpdateStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + resp, httpRes, err := apiClient.StreamSubscriptionsApi.UpdateStreamSubscriptionByUuid(context.Background(), streamId, subscriptionId).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/services/fabricv4/test/api_streams_test.go b/services/fabricv4/test/api_streams_test.go index ca429c7e..10fb5f9d 100644 --- a/services/fabricv4/test/api_streams_test.go +++ b/services/fabricv4/test/api_streams_test.go @@ -104,18 +104,6 @@ func Test_fabricv4_StreamsApiService(t *testing.T) { assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test StreamsApiService GetSubscriptionsInStream", func(t *testing.T) { - t.Skip("skip test") // remove to run test - - var streamId string - - resp, httpRes, err := apiClient.StreamsApi.GetSubscriptionsInStream(context.Background(), streamId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - t.Run("Test StreamsApiService UpdateStreamAssetByUuid", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/spec/services/fabricv4/oas3.fetched/swagger.yaml b/spec/services/fabricv4/oas3.fetched/swagger.yaml index c311384c..34ef0ad0 100644 --- a/spec/services/fabricv4/oas3.fetched/swagger.yaml +++ b/spec/services/fabricv4/oas3.fetched/swagger.yaml @@ -9,7 +9,7 @@ info: license: name: Equinix Inc url: https://developer.equinix.com/agreement - version: '4.18' + version: '4.19' externalDocs: description: Find more information on Equinix Developer Portal url: https://developer.equinix.com @@ -169,6 +169,8 @@ paths: $ref: "#/components/examples/Fcr2Sp-Aws-marketplaceSubscription" Fcr2MetalNetwork: $ref: "#/components/examples/Fcr2Metal-Network" + Fcr2ServiceToken: + $ref: "#/components/examples/Fcr2ServiceToken" AsideServiceToken2ColoWithDot1q: $ref: "#/components/examples/AsideServiceToken2PortWithDot1q" AsideServiceToken2ColoWithQinq: @@ -195,8 +197,18 @@ paths: $ref: "#/components/examples/Metal2ServiceToken" Metal2Sp-Generic: $ref: "#/components/examples/Metal2Sp-Generic" + MultiCloudNetwork2Sp-Alibaba: + $ref: "#/components/examples/MCNS2Sp-Alibaba" MultiCloudNetwork2Sp-Aws: $ref: "#/components/examples/MCNS2Sp-Aws" + MultiCloudNetwork2Sp-GCP: + $ref: "#/components/examples/MCNS2Sp-GCP" + MultiCloudNetwork2Sp-IBM2: + $ref: "#/components/examples/MCNS2Sp-IBM2" + MultiCloudNetwork2Sp-Azure: + $ref: "#/components/examples/MCNS2Sp-Azure" + MultiCloudNetwork2Sp-OCI: + $ref: "#/components/examples/MCNS2Sp-OCI" Vd2IASp: $ref: "#/components/examples/Vd2IAProfile-Request" Fcr2Metal-Network: @@ -212,8 +224,28 @@ paths: schema: $ref: "#/components/schemas/Connection" examples: + ConnectionDryRun-Colo2AWS: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2AWS" + ConnectionDryRun-Colo2Azure: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Azure" + ConnectionDryRun-Colo2Google: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Google" + ConnectionDryRun-Colo2IBM: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2IBM" + ConnectionDryRun-Colo2Network-EPLAN_VC: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Network-EPLAN_VC" + ConnectionDryRun-Colo2Network-EVPLAN_VC: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Network-EVPLAN_VC" ConnectionDryRun-Colo2Sp-Generic: - $ref: "#/components/examples/CreateConnectionDryRunResponse" + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Sp-Generic" + ConnectionDryRun-Fcr2Colo: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Fcr2Colo" + ConnectionDryRun-Fcr2Ipwan: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Fcr2Ipwan" + ConnectionDryRun-Fcr2Sp-Generic: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Fcr2Sp-Generic" + ConnectionDryRun-PortServiceToken2Port: + $ref: "#/components/examples/CreateConnectionDryRunResponse-PortServiceToken2Port" "201": description: Accept Connection Request content: @@ -273,6 +305,18 @@ paths: $ref: "#/components/examples/Metal2ServiceToken-Response" Metal2Sp-Generic: $ref: "#/components/examples/Metal2Sp-Generic-Response" + MultiCloudNetwork2Sp-Alibaba: + $ref: "#/components/examples/MCNS2Sp-Alibaba-Response" + MultiCloudNetwork2Sp-Aws: + $ref: "#/components/examples/MCNS2Sp-Aws-Response" + MultiCloudNetwork2Sp-GCP: + $ref: "#/components/examples/MCNS2Sp-GCP-Response" + MultiCloudNetwork2Sp-IBM2: + $ref: "#/components/examples/MCNS2Sp-IBM2-Response" + MultiCloudNetwork2Sp-Azure: + $ref: "#/components/examples/MCNS2Sp-Azure-Response" + MultiCloudNetwork2Sp-OCI: + $ref: "#/components/examples/MCNS2Sp-OCI-Response" Fcr2Metal-Network: $ref: "#/components/examples/Fcr2Metal-Network" Colo2Network-EVPLAN_VC: @@ -487,8 +531,6 @@ paths: $ref: "#/components/examples/ConnectionUpdateBandwidthRequest" ConnectionAddAccessAndSecretKeyAWSRequest: $ref: "#/components/examples/ConnectionAddAccessAndSecretKeyAWSRequest" - ConnectionAddRoutingRequest: - $ref: "#/components/examples/ConnectionAddRoutingRequest" ConnectionMigrationAsideRequest: $ref: "#/components/examples/ConnectionMigrationAsideRequest" ConnectionUpdateNotificationEmailRequest: @@ -2202,84 +2244,6 @@ paths: examples: example: $ref: "#/components/examples/500" - /fabric/v4/ports/stats: - get: - tags: - - Statistics - summary: Top Port Statistics - description: This API provides top utilized service-level traffic metrics so that you can view access and gather key information required to manage service subscription sizing and capacity. - operationId: getPortStats - parameters: - - name: sort - in: query - description: Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The "?" prefix indicates descending (DESC) order. - required: false - schema: - $ref: "#/components/schemas/sort" - - name: top - in: query - description: Filter returning only the specified number of most heavily trafficked ports. The standard value is [1...10], and the default is 5. - required: false - schema: - $ref: "#/components/schemas/top" - - name: duration - in: query - description: duration - required: false - schema: - $ref: "#/components/schemas/duration" - - name: direction - in: query - description: Direction of traffic from the requester's viewpoint. The default is outbound. - required: false - schema: - $ref: "#/components/schemas/query_direction" - - name: metricInterval - in: query - description: metricInterval - required: false - schema: - $ref: "#/components/schemas/metricInterval" - - name: metros - in: query - description: Two-letter prefix indicating the metropolitan area in which a specified Equinix asset is located. - required: true - schema: - $ref: "#/components/schemas/metros" - - name: projectId - in: query - description: projectId - required: false - schema: - $ref: "#/components/schemas/projectId" - responses: - "200": - description: Successful operation - content: - application/json: - schema: - $ref: "#/components/schemas/TopUtilizedStatistics" - examples: - statsExample: - $ref: "#/components/examples/200_top" - "401": - description: Unauthorized - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/401" - "403": - description: Forbidden - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/403" "/fabric/v4/connections/{connectionId}/stats": get: tags: @@ -3221,6 +3185,8 @@ paths: $ref: "#/components/examples/createZsideServiceTokenWithNetwork" AsideTokenWithDot1QDryRunCreate: $ref: "#/components/examples/createServiceTokenDryRunRequest" + AsideFCRWithZsidePortBasedToken: + $ref: "#/components/examples/createZsideServiceTokenWithAsideFCR" required: true responses: "200": @@ -3801,6 +3767,65 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorList" + patch: + tags: + - Ports + summary: Update by UUID + description: Update Port by UUID + operationId: updatePortByUuid + parameters: + - name: portId + in: path + description: Port UUID + required: true + schema: + $ref: "#/components/schemas/PortUUID" + requestBody: + content: + application/json-patch+json: + schema: + $ref: "#/components/schemas/PortUpdateRequest" + examples: + PortUpdateNameRequest: + $ref: "#/components/examples/PortUpdateNameRequest" + required: true + responses: + "202": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/AllPortsResponse" + examples: + portExample: + $ref: "#/components/examples/ports" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400" + "403": + description: Forbidden + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/403" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" "/fabric/v4/ports/{portUuid}/linkProtocols": get: tags: @@ -10737,13 +10762,13 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/streams/{streamId}/streamSubscriptions": + "/fabric/v4/streams/{streamId}/subscriptions": get: tags: - - Streams - summary: Get Stream's Subs - description: This API provides capability to retrieve subscriptions in a stream - operationId: getSubscriptionsInStream + - Stream Subscriptions + summary: Get Subscriptions + description: This API provides capability to retrieve stream subscriptions + operationId: getStreamSubscriptions parameters: - name: streamId in: path @@ -10765,74 +10790,6 @@ paths: schema: type: integer example: 10 - responses: - "200": - description: Successful operation - content: - application/json: - schema: - $ref: "#/components/schemas/GetSubscriptionsInStreamResponse" - examples: - Example: - $ref: "#/components/examples/stream-get-all-subscription-example" - "401": - description: Unauthorized - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/401" - "403": - description: Forbidden - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/403" - "404": - description: Not Found - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/404" - "500": - description: Internal server error - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/500" - /fabric/v4/streamSubscriptions: - get: - tags: - - Stream Subscriptions - summary: Get Subscriptions - description: This API provides capability to retrieve stream subscriptions - operationId: getStreamSubscriptions - parameters: - - name: offset - in: query - description: offset - required: false - schema: - type: integer - example: 1 - - name: limit - in: query - description: number of records to fetch - required: false - schema: - type: integer - example: 10 responses: "200": description: Successful operation @@ -10885,13 +10842,21 @@ paths: summary: Create Subscription description: This API provides capability to create user's Stream Subscriptions operationId: createStreamSubscriptions - parameters: [] + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" requestBody: content: application/json: schema: $ref: "#/components/schemas/StreamSubscriptionPostRequest" examples: + CreateStreamSubscription_Splunk_Simple: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSimpleDefaultSplunk" CreateStreamSubscription_Splunk: $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSplunk" CreateStreamSubscription_Slack: @@ -10900,6 +10865,8 @@ paths: $ref: "#/components/examples/StreamSubscriptionPostRequestExamplePagerduty" CreateStreamSubscription_Datadog: $ref: "#/components/examples/StreamSubscriptionPostRequestExampleDatadog" + CreateStreamSubscription_Microsoft_Teams: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleTeams" required: true responses: "202": @@ -10953,7 +10920,7 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/streamSubscriptions/{streamSubscriptionId}": + "/fabric/v4/streams/{streamId}/subscriptions/{subscriptionId}": get: tags: - Stream Subscriptions @@ -10961,88 +10928,100 @@ paths: description: This API provides capability to delete user's get Stream Subscriptions operationId: getStreamSubscriptionByUuid parameters: - - name: streamSubscriptionId + - name: streamId in: path - description: Stream Subscription UUID + description: Stream UUID required: true schema: - $ref: "#/components/schemas/StreamSubscriptionId" - responses: - "200": - description: Stream Subscription object - content: - application/json: - schema: - $ref: "#/components/schemas/StreamSubscription" - examples: - StreamSubscriptionResponse: - $ref: "#/components/examples/StreamSubscriptionResponseExample" - "400": - description: Bad request - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - "401": - description: Unauthorized - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/401" - "403": - description: Forbidden - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/403" - "404": - description: Not Found - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/404" - "500": - description: Internal server error - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/500" - put: - tags: - - Stream Subscriptions - summary: Update Subscription - description: This API provides capability to update user's Stream Subscriptions - operationId: updateStreamSubscriptionByUuid - parameters: - - name: streamSubscriptionId + $ref: "#/components/schemas/StreamId" + - name: subscriptionId in: path description: Stream Subscription UUID required: true schema: $ref: "#/components/schemas/StreamSubscriptionId" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/StreamSubscriptionPutRequest" - examples: - UpdateSubscription: - $ref: "#/components/examples/StreamSubscriptionPutRequestExample" - required: true responses: - "202": + "200": + description: Stream Subscription object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscription" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamSubscriptionResponseExample" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + "401": + description: Unauthorized + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/401" + "403": + description: Forbidden + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/403" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + put: + tags: + - Stream Subscriptions + summary: Update Subscription + description: This API provides capability to update user's Stream Subscriptions + operationId: updateStreamSubscriptionByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + - name: subscriptionId + in: path + description: Stream Subscription UUID + required: true + schema: + $ref: "#/components/schemas/StreamSubscriptionId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscriptionPutRequest" + examples: + UpdateSubscription: + $ref: "#/components/examples/StreamSubscriptionPutRequestExample" + required: true + responses: + "202": description: Stream Subscription object content: application/json: @@ -11109,7 +11088,13 @@ paths: description: This API provides capability to delete user's Stream Subscriptions operationId: deleteStreamSubscriptionByUuid parameters: - - name: streamSubscriptionId + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + - name: subscriptionId in: path description: Stream Subscription UUID required: true @@ -11936,57 +11921,6 @@ components: description: Mean bandwidth within statistics object time interval, represented in units specified by response "units" field format: float description: Bandwidth utilization statistics for a specified interval. - sort: - type: string - description: Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The "?" prefix indicates descending (DESC) order. - default: -bandwidthUtilization - enum: - - -bandwidthUtilization - top: - type: integer - description: Filter returning only the specified number of most heavily trafficked ports. The standard value is [1...10], and the default is 5. - default: 5 - duration: - type: string - description: Duration of the statistical analysis interval. - default: P7D - enum: - - P7D - - P1M - - P3M - query_direction: - type: string - description: Direction of traffic from the requester's viewpoint. - default: outbound - enum: - - inbound - - outbound - metricInterval: - type: string - description: metric interval - default: P7D - enum: - - P7D - metros: - type: array - description: Two-letter prefix indicating the metropolitan area in which a specified Equinix asset is located. - items: - type: string - projectId: - type: string - description: projectId - example: 30ad25e2-53dc-11ed-bdc3-0242ac120002 - TopUtilizedStatistics: - type: object - properties: - pagination: - $ref: "#/components/schemas/Pagination" - data: - type: array - description: Data returned from the API call. - items: - $ref: "#/components/schemas/Statistics" - description: This API provides service-level traffic metrics for the top utilized ports so that you can view access and gather key information required to manage service subscription sizing and capacity. viewPoint: type: string description: viewPoint @@ -13117,6 +13051,12 @@ components: items: $ref: "#/components/schemas/PhysicalPort" description: GET All Physical Ports + PortUpdateRequest: + minItems: 1 + type: array + description: Port Update Request + items: + $ref: "#/components/schemas/PortChangeOperation" LinkProtocolGetResponse: type: object properties: @@ -13174,6 +13114,85 @@ components: $ref: "#/components/schemas/PortSortDirection" property: $ref: "#/components/schemas/PortSortBy" + PortCapacitySearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/PortCapacityExpression" + pagination: + $ref: "#/components/schemas/Pagination" + description: Search requests containing criteria + PortCapacityExpression: + type: object + properties: + and: + $ref: "#/components/schemas/PortCapacityExpression" + or: + $ref: "#/components/schemas/PortCapacityExpression" + property: + $ref: "#/components/schemas/PortCapacitySearchFieldName" + operator: + type: string + enum: + - = + values: + type: array + items: + type: string + PortCapacitySearchFieldName: + type: string + description: Possible field names to use on filters + enum: + - /demarcationPointIbx + - /tetherIbx + - /physicalPortsSpeed + - /physicalPortsType + - /lagEnabled + CheckCapacityResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + description: GET All available ports + items: + $ref: "#/components/schemas/CheckCapacity" + description: GET All available ports + CheckCapacity: + type: object + properties: + demarcationPointIbx: + type: string + description: demarcation point IBX + tetherIbx: + type: string + description: cloud port ibx location + metroConnectUsed: + type: boolean + description: metroConnect + campusCrossConnectUsed: + type: boolean + description: campusCrossConnect + lagEnabled: + type: boolean + description: lag or non lag port + physicalPortsSpeed: + minimum: 0 + type: integer + description: Physical Ports Speed in Mbps + redundancy: + $ref: "#/components/schemas/CheckCapacityPortRedundancy" + physicalPortsType: + type: string + description: Physical Ports Type + enum: + - 1000BASE_LX + - 10GBASE_LR + - 100GBASE_LR4 + - 10GBASE_ER + - 1000BASE_SX + description: Check capcaity Port specification GetAllConnectionRouteAggregationsResponse: type: object properties: @@ -15427,16 +15446,6 @@ components: description: enable metric example: false description: Update Stream Asset - GetSubscriptionsInStreamResponse: - type: object - properties: - pagination: - $ref: "#/components/schemas/Pagination" - data: - type: array - description: Data returned from the API call. - items: - $ref: "#/components/schemas/StreamGetSubscriptions" GetAllStreamSubscriptionResponse: type: object properties: @@ -15460,14 +15469,10 @@ components: description: type: string description: Customer-provided stream subscription description - project: - $ref: "#/components/schemas/Project" enabled: type: boolean description: Stream subscription enabled status example: true - stream: - $ref: "#/components/schemas/StreamTarget" filters: $ref: "#/components/schemas/StreamSubscriptionFilter" metricSelector: @@ -15499,7 +15504,7 @@ components: Possible field names to use on filters: * `/subject` - subject * `/type` - type - example: /equinixproject + example: /type operator: type: string description: | @@ -15511,6 +15516,31 @@ components: example: = values: type: array + description: | + ### Supported event or metric names to use on filters with property /type: + * `*` - all events or metrics + * `equinix.fabric.port.*` - port events or metrics + * `equinix.fabric.connection.*` - connection events or metrics + * `equinix.fabric.router.*` - cloud router events + * `equinix.fabric.metro.*` - metro metrics + * `equinix.fabric.network.*` - network events + * `equinix.fabric.service_token.*` - service token events + * `equinix.network_edge.*` - network edge events + * `equinix.network_edge.acl.*` - network edge acl events + * `equinix.network_edge.device.*` - network edge device events + * `equinix.access_manager.*` - identity access manager events + * `equinix.access_manager.user.role.*` - identity access manager user role events + ### Supported event or metric names to use on filters with property /subject: + * `*` - all events or metrics + * `/fabric/v4/ports/` - port events or metrics + * `/fabric/v4/connections/` - connection events or metrics + * `/fabric/v4/routers/` - cloud router events + * `/fabric/v4/metros/` - metro metrics + * `/fabric/v4/networks/` - network events + * `/fabric/v4/tokens/` - service token events + * `/ne/v1/acl/` - network edge acl events + * `/ne/v1/devices/` - network edge device events + * `/am/v2/users//roleAssignments/` - identity access manager events items: type: string StreamFilterOrFilter: @@ -15528,24 +15558,28 @@ components: maxItems: 8 type: array items: - $ref: "#/components/schemas/StreamSubscriptionExpression" + $ref: "#/components/schemas/StreamSubscriptionSelectorExpression" except: maxItems: 8 type: array items: - $ref: "#/components/schemas/StreamSubscriptionExpression" - StreamSubscriptionExpression: + $ref: "#/components/schemas/StreamSubscriptionSelectorExpression" + StreamSubscriptionSelectorExpression: type: string description: | - Possible event or metric names to use on event and metric selectors: + Supported event or metric types to use on event and metric selectors: * `*` - all events or metrics * `equinix.fabric.port.*` - port events or metrics * `equinix.fabric.connection.*` - connection events or metrics - * `equinix.fabric.cloudrouter.*` - cloud router events + * `equinix.fabric.router.*` - cloud router events * `equinix.fabric.metro.*` - metro metrics * `equinix.fabric.network.*` - network events * `equinix.fabric.service_token.*` - service token events - * `equinix.fabric.network_edge.*` - network edge events + * `equinix.network_edge.*` - network edge events + * `equinix.network_edge.acl.*` - network edge acl events + * `equinix.network_edge.device.*` - network edge device events + * `equinix.access_manager.*` - identity access manager events + * `equinix.access_manager.user.role.*` - identity access manager user role events example: equinix.fabric.connection.* StreamSubscriptionSink: type: object @@ -15577,6 +15611,9 @@ components: $ref: "#/components/schemas/StreamSubscriptionSinkCredential" settings: $ref: "#/components/schemas/StreamSubscriptionSinkSetting" + host: + type: string + description: sink host description: Create Stream destination StreamSubscriptionSinkCredential: type: object @@ -15588,6 +15625,7 @@ components: - ACCESS_TOKEN - INTEGRATION_KEY - API_KEY + - USERNAME_PASSWORD accessToken: type: string description: passed as Authorization header value @@ -15597,6 +15635,12 @@ components: apiKey: type: string description: passed as Authorization header value + username: + type: string + description: passed as Authorization header value + password: + type: string + description: passed as Authorization header value description: Stream subscription sink credentials StreamSubscriptionSinkSetting: type: object @@ -15613,6 +15657,16 @@ components: applicationKey: type: string description: Application key + eventUri: + type: string + description: event uri + metricUri: + type: string + description: metric uri + transformAlerts: + type: boolean + description: transform alerts + example: true description: Stream subscription sink settings StreamSubscription: type: object @@ -15622,7 +15676,7 @@ components: description: Stream Subscription URI format: uri readOnly: true - example: https://api.equinix.com/fabric/v4/streamSubscription/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + example: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 uuid: type: string description: Equinix-assigned access point identifier @@ -15639,8 +15693,6 @@ components: description: type: string description: Customer-provided subscription description - project: - $ref: "#/components/schemas/Project" state: type: string description: Steam subscription provision state @@ -15653,8 +15705,6 @@ components: enabled: type: boolean description: Stream subscription enabled status - stream: - $ref: "#/components/schemas/StreamTarget" filters: $ref: "#/components/schemas/StreamSubscriptionFilter" metricSelector: @@ -15680,8 +15730,6 @@ components: description: type: string description: Customer-provided stream subscription description - stream: - $ref: "#/components/schemas/StreamTarget" enabled: type: boolean description: Stream subscription enabled status @@ -16538,8 +16586,6 @@ components: - VC_TOKEN - EPL_TOKEN ServiceTokenConnection: - required: - - type type: object properties: type: @@ -16551,6 +16597,7 @@ components: - EVPLAN_VC - EPLAN_VC - IPWAN_VC + - IP_VC href: type: string description: An absolute URL that is the subject of the link's context. @@ -16917,6 +16964,25 @@ components: type: string deprecated: true description: Physical Port configuration settings + PortChangeOperation: + required: + - op + - path + - value + type: object + properties: + op: + type: string + description: Handy shortcut for operation name + example: replace + path: + type: string + description: path inside document leading to updated parameter + example: /name + value: + type: object + description: new value for updated parameter + description: Port change operation data LinkProtocolResponse: type: object properties: @@ -16980,6 +17046,12 @@ components: default: /device/name enum: - /device/name + CheckCapacityPortRedundancy: + type: object + properties: + priority: + $ref: "#/components/schemas/PortPriority" + description: Check Capacity Port redundancy configuration RouteFilterState: type: string description: Route Filter status @@ -17868,31 +17940,6 @@ components: uuid: type: string format: uuid - StreamGetSubscriptions: - type: object - properties: - href: - type: string - description: Stream Get Stream Subscriptions URI - format: uri - readOnly: true - uuid: - type: string - description: Equinix-assigned access point identifier - format: uuid - example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 - type: - type: string - description: Stream subscription type - enum: - - STREAM_SUBSCRIPTION - description: Stream object - StreamTarget: - type: object - properties: - uuid: - $ref: "#/components/schemas/StreamId" - description: Stream uuid ConnectionPriority: type: string description: Connection priority in redundancy group @@ -20667,6 +20714,7 @@ components: emails: - test@equinix.com - test1@equinix.com + Fcr2ServiceToken: {} AsideServiceToken2PortWithDot1q: value: type: EVPL_VC @@ -20981,10 +21029,36 @@ components: - type: ALL emails: - test@test.com + MCNS2Sp-Alibaba: + value: + type: EVPL_VC + name: My-MCNS2Alibaba-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: 4c4b8edf-873b-4c6c-805a-edb2c335bd6c + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: us-east-1 + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com MCNS2Sp-Aws: value: type: EVPL_VC - name: My-MCNS2Aws-connection + name: My-MCNS2Aws-Connection bandwidth: 50 aSide: accessPoint: @@ -21000,13 +21074,126 @@ components: metroCode: DC authenticationKey: xxxx-xxx-xxxx sellerRegion: us-east-1 + project: + projectId: b543e64d-1e13-423a-9d81-4eae7b0e1959 notifications: - type: ALL emails: - - test@equinix.com - - test1@equinix.com + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-GCP: + value: + type: EVPL_VC + name: My-MCNS2GCP-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: bd4570e2-d792-4a00-87f5-3bde040cdcd7 + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: us-east1 project: - projectId: b543e64d-1e13-423a-9d81-4eae7b0e1959 + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-IBM2: + value: + type: EVPL_VC + name: My-MCNS2IBM2-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: e092ed47-63d2-4f4a-87a0-82e3b08eefe5 + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: Washington 2 + additionalInfo: + - key: ASN + value: 12345 + - key: BGP_CER_CIDR + value: 172.16.0.17/30 + - key: BGP_IBM_CIDR + value: 172.16.0.18/30 + - key: Global + value: false + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-Azure: + value: + type: EVPL_VC + name: My-MCNS2Azure-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: a1390b22-bbe0-4e93-ad37-85beef9d254d + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + peeringType: PRIVATE + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-OCI: + value: + type: EVPL_VC + name: My-MCNS2OCI-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: 60ef0382-cdaa-44e7-bd36-b803731816b8 + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: us-ashburn-1 + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com Vd2IAProfile-Request: value: type: IA_VC @@ -21062,21 +21249,270 @@ components: location: metroCode: DC project: - projectId: 41418 + projectId: a347a370-39b5-427f-c330-7471a9abd9 order: purchaseOrderNumber: 1-129105284100 notifications: - type: ALL emails: - test@test.com - CreateConnectionDryRunResponse: + CreateConnectionDryRunResponse-Colo2AWS: + value: + type: EVPL_VC + name: Colo to AWS Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/20d32a80-0d61-4333-bc03-707b591ae2f5 + type: L2_PROFILE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + sellerRegion: us-west-1 + authenticationKey: xxx-xxx-xxx + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Azure: + value: + type: EVPL_VC + name: Colo to Azure Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/20d32a80-0d61-4333-bc03-707b591ae2f5 + type: L2_PROFILE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + authenticationKey: xxx-xxx-xxx + peeringType: PRIVATE + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Google: + value: + type: EVPL_VC + name: Colo to Google Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/bd4570e2-d792-4a00-87f5-3bde040cdcd7 + type: L2_PROFILE + uuid: bd4570e2-d792-4a00-87f5-3bde040cdcd7 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + sellerRegion: us-west-1 + authenticationKey: xxx-xxx-xxx + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2IBM: + value: + type: EVPL_VC + name: Colo to IBM Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/22d4e853-ef33-4ff0-b5b2-a2b1d5dfa50c + type: L2_PROFILE + uuid: 22d4e853-ef33-4ff0-b5b2-a2b1d5dfa50c + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + sellerRegion: us-west-1 + authenticationKey: xxx-xxx-xxx + additionalInfo: + - key: ASN + value: 1234 + - key: Global + value: false + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Network-EPLAN_VC: + value: + type: EPLAN_VC + name: My Colo to Network EPLAN_VC Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Network-EVPLAN_VC: + value: + type: EVPLAN_VC + name: My Colo to Network EVPLAN_VC Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/25f8884e-85e3-4eaa-8ea9-a7ad2ca5b3c2 + uuid: 25f8884e-85e3-4eaa-8ea9-a7ad2ca5b3c2 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Sp-Generic: value: type: EVPL_VC name: My-EVPL-Connection - bandwidth: 500 + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/92dc376a-a932-43aa-a6a2-c806dedbd784 + type: L2_PROFILE + uuid: 92dc376a-a932-43aa-a6a2-c806dedbd784 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/DC + metroCode: DC + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Fcr2Colo: + value: + type: EVPL_VC + name: Fcr to Colo Connection + bandwidth: 50 redundancy: priority: PRIMARY aSide: + accessPoint: + type: CLOUD_ROUTER + router: + href: https://api.equinix.com/fabric/v4/routers/66a21614-1c4a-11ec-9621-0242ac130002 + uuid: 66a21614-1c4a-11ec-9621-0242ac130002 + zSide: accessPoint: type: COLO port: @@ -21085,6 +21521,53 @@ components: linkProtocol: type: DOT1Q vlanTag: 1137 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Fcr2Ipwan: + value: + type: EVPL_VC + name: Fcr to Ipwan Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: CLOUD_ROUTER + router: + href: https://api.equinix.com/fabric/v4/routers/66a21614-1c4a-11ec-9621-0242ac130002 + uuid: 66a21614-1c4a-11ec-9621-0242ac130002 + zSide: + accessPoint: + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Fcr2Sp-Generic: + value: + type: EVPL_VC + name: Fcr to Sp-Generic Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: CLOUD_ROUTER + router: + href: https://api.equinix.com/fabric/v4/routers/66a21614-1c4a-11ec-9621-0242ac130002 + uuid: 66a21614-1c4a-11ec-9621-0242ac130002 zSide: accessPoint: type: SP @@ -21096,7 +21579,42 @@ components: metroHref: https://api.equinix.com/fabric/v4/metros/DC metroCode: DC project: - projectId: 41418 + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-PortServiceToken2Port: + value: + type: EVPL_VC + name: Port Service Token to Port Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + serviceToken: + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/20d32a80-0d61-4333-bc03-707b591ae2f5 + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 order: purchaseOrderNumber: 1-129105284100 notifications: @@ -21861,7 +22379,7 @@ components: href: https://api.equinix.com/fabric/v4/connections/f37e40c5-2802-4df7-9732-839a8a5868ce type: EVPL_VC uuid: f37e40c5-2802-4df7-9732-839a8a5868ce - name: My-Metal-sp-connection + name: My-Metal2Aws-Connection bandwidth: 1000 aSide: accessPoint: @@ -21877,7 +22395,7 @@ components: profile: type: L2_PROFILE uuid: 9127bb72-5f4f-4517-be74-3af7ce612687 - authenticationKey: xxxxxxxxx + authenticationKey: xxxx-xxx-xxxx sellerRegion: us-west-1 order: purchaseOrderNumber: 1-129105284100 @@ -21892,11 +22410,12 @@ components: notifications: - type: ALL emails: - - test@equinix.com + - fabric@gmail.com + - fabric1@gmail.com changeLog: - createdBy: testuser - createdByEmail: testuser@equinix.com - createdByFullName: testuser testuser + createdBy: fabric + createdByEmail: fabric@gmail.com + createdByFullName: fabric createdDateTime: 2020-05-21T10:30:00Z Metal2Sp-Azure-Response: value: @@ -21948,7 +22467,7 @@ components: type: EVPL_VC href: https://api.equinix.com/fabric/v4/connections/d3b69c6b-3b23-4ac0-a1bb-8db16460714d uuid: d3b69c6b-3b23-4ac0-a1bb-8db16460714d - name: Metal2GCP Connection + name: My-Metal2GCP-Connection operation: providerStatus: PROVISIONING equinixStatus: PROVISIONING @@ -21957,7 +22476,7 @@ components: notifications: - type: ALL emails: - - eqxfabricamcrh@gmail.com + - fabric@gmail.com changeLog: createdBy: fabric createdByFullName: fabric @@ -21987,7 +22506,7 @@ components: type: L2_PROFILE name: GCP Service Profile uuid: 063f4b0f-2d5b-4db7-95da-d9eddfc92602 - authenticationKey: xxxxxxxxx + authenticationKey: xxxx-xxx-xxxx Metal2Sp-Oracle-Response: value: type: EVPL_VC @@ -22271,6 +22790,275 @@ components: type: L2_PROFILE name: Generic Service Profile uuid: f1a247aa-8f86-4a89-88c2-72497686cd0d + MCNS2Sp-Alibaba-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/974cb1c6-5090-4796-9d38-f5c14432d2c4 + type: EVPL_VC + uuid: 974cb1c6-5090-4796-9d38-f5c14432d2c4 + name: My-MCNS2Alibaba-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T05:35:23.750Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T05:35:23.750Z + bandwidth: 50 + redundancy: + group: 9d92f86f-2c2a-4b88-b9a1-a61ec83c28cf + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/4c4b8edf-873b-4c6c-805a-edb2c335bd6c + type: L2_PROFILE + name: Alibaba Cloud Express Connect + uuid: 4c4b8edf-873b-4c6c-805a-edb2c335bd6c + sellerRegion: us-east-1 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-Aws-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/729a1248-afa5-4dee-a4e7-5f24cab53287 + type: EVPL_VC + uuid: 729a1248-afa5-4dee-a4e7-5f24cab53287 + name: My-MCNS2AWS-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-06T17:08:45.548Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-06T17:08:45.548Z + bandwidth: 50 + redundancy: + group: 75346f39-4193-466e-9a83-78c7e153f6e2 + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/69ee618d-be52-468d-bc99-00566f2dd2b9 + type: L2_PROFILE + name: AWS Direct Connect + uuid: 69ee618d-be52-468d-bc99-00566f2dd2b9 + sellerRegion: us-east-1 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-GCP-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/4c2c8739-f476-47ae-a0fa-f924e1081e62 + type: EVPL_VC + uuid: 4c2c8739-f476-47ae-a0fa-f924e1081e62 + name: My-MCNS2GCP-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-06T19:25:09.527Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-06T19:25:09.527Z + bandwidth: 50 + redundancy: + group: 33286a70-e0d5-466b-873e-f2c1836d1f0c + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/bd4570e2-d792-4a00-87f5-3bde040cdcd7 + type: L2_PROFILE + name: Google Cloud Partner Interconnect Zone 1 + uuid: bd4570e2-d792-4a00-87f5-3bde040cdcd7 + sellerRegion: us-east1 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-IBM2-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/d9e3f826-71e4-40a5-9e27-6030d1498e13 + type: EVPL_VC + uuid: d9e3f826-71e4-40a5-9e27-6030d1498e13 + name: MY-MCNS2IBM2-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T05:23:43.711Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T05:23:43.711Z + bandwidth: 50 + redundancy: + group: f65c252c-ea74-4a12-87aa-7bc0236cb24a + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/e092ed47-63d2-4f4a-87a0-82e3b08eefe5 + type: L2_PROFILE + name: IBM Cloud Direct Link 2 + uuid: e092ed47-63d2-4f4a-87a0-82e3b08eefe5 + sellerRegion: Washington 2 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-Azure-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/43504d46-f5ce-4d47-99f6-d220df13f81d + type: EVPL_VC + uuid: 43504d46-f5ce-4d47-99f6-d220df13f81d + name: My-MCNS2Azure-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T04:41:43.111Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T04:41:43.111Z + bandwidth: 50 + redundancy: + group: d88b8fe3-23ac-42b6-8c28-33d33f0b9760 + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/a1390b22-bbe0-4e93-ad37-85beef9d254d + type: L2_PROFILE + name: Azure ExpressRoute + uuid: a1390b22-bbe0-4e93-ad37-85beef9d254d + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-OCI-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/addae6f7-69c1-494e-905a-3d94b8cb8f1a + type: EVPL_VC + uuid: addae6f7-69c1-494e-905a-3d94b8cb8f1a + name: My-MCNS2OCI-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T05:09:26.587Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T05:09:26.587Z + bandwidth: 50 + redundancy: + group: 6620b2a3-d3d7-420b-a3a0-4b5ae8b0cd10 + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/60ef0382-cdaa-44e7-bd36-b803731816b8 + type: L2_PROFILE + name: Oracle Cloud Infrastructure FastConnect + uuid: 60ef0382-cdaa-44e7-bd36-b803731816b8 + sellerRegion: us-ashburn-1 + authenticationKey: xxxx-xxx-xxxx COLO2NETWORKwithDot1q-Response: value: type: EVPLAN_VC @@ -23975,12 +24763,6 @@ components: value: nTTgtgoQbTQCRHTbynll - key: secretKey value: NwPcpbWgFEPofydsZEQGwjtHqJOYrUmBbrcxtOzP - ConnectionAddRoutingRequest: - value: - - op: add - path: /ipv6 - value: - equinixIfaceIp: 1202:ABCD::/64 ConnectionMigrationAsideRequest: value: - op: replace @@ -26313,88 +27095,6 @@ components: - intervalEndDateTime: 2020-05-21T10:30:00Z max: 42.01401189333334 mean: 39.40894303096296 - 200_top: - value: - pagination: - offset: 0 - limit: 5 - total: 5 - data: - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: - max: 1913400000 - mean: 474960.24489120545 - lastPolled: 53.333333333333336 - metrics: - - intervalEndDateTime: 2021-03-18T18:49:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - intervalEndDateTime: 2021-03-18T18:54:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - intervalEndDateTime: 2021-03-18T18:59:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - intervalEndDateTime: 2021-03-18T19:04:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} - - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} 200_vc: value: href: https://api.equinix.com/fabric/v4/connections/97d1850f-4df0-468c-9281-fa7b0dfa2096 @@ -27849,6 +28549,7 @@ components: emails: - abc@company.com - provider@company.com + createZsideServiceTokenWithAsideFCR: {} createServiceTokenDryRunResponse: value: type: VC_TOKEN @@ -29195,6 +29896,11 @@ components: organizationName: Cust_Org_100179 changeLog: createdDateTime: 2018-06-14T17:21:25.587Z + PortUpdateNameRequest: + value: + - op: replace + path: /name + value: 1234-ibx-port LinkProtocolGetQinqResponseExample: value: pagination: @@ -29416,6 +30122,65 @@ components: sort: - property: /device/name direction: DESC + PortSearchByDemarcationIbx: + value: + filter: + - and: + - operator: = + property: /demarcationPointIbx + values: + - FR4 + - operator: = + property: /physicalPortsSpeed + values: + - 1000 + pagination: + limit: 5 + offset: 0 + total: 0 + checkCapacity: + value: + pagination: + offset: 0 + limit: 5 + total: 4 + data: + - demarcationPointIbx: AM2 + tetherIbx: AM2 + metroConnectUsed: false + lagEnabled: true + physicalPortsType: 10GBASE_LR + physicalPortsSpeed: 10000 + physicalPortsAvailable: 4 + redundancy: + priority: PRIMARY + - demarcationPointIbx: AM2 + tetherIbx: AM2 + metroConnectUsed: false + lagEnabled: true + physicalPortsType: 10GBASE_LR + physicalPortsSpeed: 10000 + physicalPortsAvailable: 8 + redundancy: + priority: SECONDARY + - demarcationPointIbx: AM2 + tetherIbx: AM1 + metroConnectUsed: true + lagEnabled: true + physicalPortsType: 10GBASE_L + physicalPortsSpeed: 10000 + physicalPortsAvailable: 8 + redundancy: + priority: PRIMARY + - demarcationPointIbx: AM2 + tetherIbx: AM1 + metroConnectUsed: true + lagEnabled: true + physicalPortsType: 10GBASE_L + physicalPortsSpeed: 10000 + physicalPortsAvailable: 8 + redundancy: + priority: SECONDARY ConnectionRouteAggregationsGetAll: value: pagination: @@ -33565,16 +34330,6 @@ components: type: XF_ROUTER metricsEnabled: false attachmentStatus: DETACHING - stream-get-all-subscription-example: - value: - pagination: - offset: 0 - limit: 20 - total: 1 - data: - - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/streamSubscriptions - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - type: STREAM_SUBSCRIPTION stream-subscription-get-all-example: value: pagination: @@ -33582,29 +34337,23 @@ components: limit: 20 total: 1 data: - - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: splunk description: subscription 1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: PROVISIONED enabled: true - stream: - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 filters: and: - property: /subject operator: LIKE values: - - "%36276e58-b5a1-4864-ab5e-be10dff9eac1%" - - property: /equinixproject + - "%/fabric/v4/connections/36276e58-b5a1-4864-ab5e-be10dff9eac1%" + - property: /type operator: IN values: - - "197607000886247" + - equinix.fabric.connection.state.provisioned metricSelector: include: - equinix.fabric.connection.* @@ -33619,22 +34368,34 @@ components: batchWaitTimeMax: 5 changeLog: createdDateTime: 2024-05-06T16:21:18.545214Z + StreamSubscriptionPostRequestExampleSimpleDefaultSplunk: + value: + type: STREAM_SUBSCRIPTION + name: splunk1 + description: subscription-1 + enabled: true + sink: + uri: https://xxxxxx + type: SPLUNK_HEC + credential: + type: ACCESS_TOKEN + accessToken: Splunk + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric StreamSubscriptionPostRequestExampleSplunk: value: type: STREAM_SUBSCRIPTION name: splunk1 description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33646,7 +34407,7 @@ components: type: SPLUNK_HEC credential: type: ACCESS_TOKEN - accessToken: my-access-token + accessToken: Splunk settings: source: Equinix eventIndex: idx-hec-event @@ -33657,16 +34418,12 @@ components: name: slack1 description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33682,48 +34439,45 @@ components: name: pagerduty description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% + metricSelector: + include: + - equinix.fabric.connection.* eventSelector: include: - equinix.fabric.connection.* sink: - uri: https://xxxxxx + host: events.pagerduty.com type: PAGERDUTY credential: type: INTEGRATION_KEY integrationKey: my-integration-key settings: - source: Equinix + transformAlerts: true + changeUri: https://events.pagerduty.com/v2/change/enqueeue + alertUri: https://events.pagerduty.com/v2/enqueeue StreamSubscriptionPostRequestExampleDatadog: value: type: STREAM_SUBSCRIPTION name: datadog description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* sink: - uri: https://xx.datadoghq.com + host: us.datadoghq.com type: DATADOG credential: type: API_KEY @@ -33731,27 +34485,44 @@ components: settings: source: Equinix applicationKey: my-application-key + eventUri: https://us.datadoghq.com/api/v1/events + metricUri: https://us.datadoghq.com/api/v2/series + StreamSubscriptionPostRequestExampleTeams: + value: + type: STREAM_SUBSCRIPTION + name: teams1 + description: subscription-1 + enabled: true + filters: + and: + - property: /type + operator: LIKE + values: + - equinix.fabric.connection% + metricSelector: + include: + - equinix.fabric.connection.* + eventSelector: + include: + - equinix.fabric.connection.* + sink: + uri: https://xxxxxx + type: TEAMS StreamSubscriptionResponseExample: value: - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: stream 1 description: stream dec 1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: PROVISIONED enabled: true - stream: - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33763,7 +34534,7 @@ components: type: SPLUNK_HEC credential: type: ACCESS_TOKEN - accessToken: my-access-token + accessToken: Splunk settings: source: Equinix eventIndex: idx-hec-event @@ -33778,14 +34549,12 @@ components: name: splunk1 description: subscription 1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 filters: and: - property: /type operator: LIKE values: - - "%equinix.event.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33807,25 +34576,19 @@ components: batchWaitTimeMax: 5 StreamSubscriptionDeleteResponseExample: value: - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: stream 1 description: stream dec 1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: DEPROVISIONING enabled: true - stream: - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33837,7 +34600,7 @@ components: type: SPLUNK_HEC credential: type: ACCESS_TOKEN - accessToken: my-access-token + accessToken: Splunk settings: source: Equinix eventIndex: idx-hec-event diff --git a/spec/services/fabricv4/oas3.patched/swagger.yaml b/spec/services/fabricv4/oas3.patched/swagger.yaml index 8979c6be..483e5fe2 100644 --- a/spec/services/fabricv4/oas3.patched/swagger.yaml +++ b/spec/services/fabricv4/oas3.patched/swagger.yaml @@ -9,7 +9,7 @@ info: license: name: Equinix Inc url: https://developer.equinix.com/agreement - version: '4.18' + version: '4.19' externalDocs: description: Find more information on Equinix Developer Portal url: https://developer.equinix.com @@ -169,6 +169,8 @@ paths: $ref: "#/components/examples/Fcr2Sp-Aws-marketplaceSubscription" Fcr2MetalNetwork: $ref: "#/components/examples/Fcr2Metal-Network" + Fcr2ServiceToken: + $ref: "#/components/examples/Fcr2ServiceToken" AsideServiceToken2ColoWithDot1q: $ref: "#/components/examples/AsideServiceToken2PortWithDot1q" AsideServiceToken2ColoWithQinq: @@ -195,8 +197,18 @@ paths: $ref: "#/components/examples/Metal2ServiceToken" Metal2Sp-Generic: $ref: "#/components/examples/Metal2Sp-Generic" + MultiCloudNetwork2Sp-Alibaba: + $ref: "#/components/examples/MCNS2Sp-Alibaba" MultiCloudNetwork2Sp-Aws: $ref: "#/components/examples/MCNS2Sp-Aws" + MultiCloudNetwork2Sp-GCP: + $ref: "#/components/examples/MCNS2Sp-GCP" + MultiCloudNetwork2Sp-IBM2: + $ref: "#/components/examples/MCNS2Sp-IBM2" + MultiCloudNetwork2Sp-Azure: + $ref: "#/components/examples/MCNS2Sp-Azure" + MultiCloudNetwork2Sp-OCI: + $ref: "#/components/examples/MCNS2Sp-OCI" Vd2IASp: $ref: "#/components/examples/Vd2IAProfile-Request" Fcr2Metal-Network: @@ -212,8 +224,28 @@ paths: schema: $ref: "#/components/schemas/Connection" examples: + ConnectionDryRun-Colo2AWS: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2AWS" + ConnectionDryRun-Colo2Azure: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Azure" + ConnectionDryRun-Colo2Google: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Google" + ConnectionDryRun-Colo2IBM: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2IBM" + ConnectionDryRun-Colo2Network-EPLAN_VC: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Network-EPLAN_VC" + ConnectionDryRun-Colo2Network-EVPLAN_VC: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Network-EVPLAN_VC" ConnectionDryRun-Colo2Sp-Generic: - $ref: "#/components/examples/CreateConnectionDryRunResponse" + $ref: "#/components/examples/CreateConnectionDryRunResponse-Colo2Sp-Generic" + ConnectionDryRun-Fcr2Colo: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Fcr2Colo" + ConnectionDryRun-Fcr2Ipwan: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Fcr2Ipwan" + ConnectionDryRun-Fcr2Sp-Generic: + $ref: "#/components/examples/CreateConnectionDryRunResponse-Fcr2Sp-Generic" + ConnectionDryRun-PortServiceToken2Port: + $ref: "#/components/examples/CreateConnectionDryRunResponse-PortServiceToken2Port" "201": description: Accept Connection Request content: @@ -273,6 +305,18 @@ paths: $ref: "#/components/examples/Metal2ServiceToken-Response" Metal2Sp-Generic: $ref: "#/components/examples/Metal2Sp-Generic-Response" + MultiCloudNetwork2Sp-Alibaba: + $ref: "#/components/examples/MCNS2Sp-Alibaba-Response" + MultiCloudNetwork2Sp-Aws: + $ref: "#/components/examples/MCNS2Sp-Aws-Response" + MultiCloudNetwork2Sp-GCP: + $ref: "#/components/examples/MCNS2Sp-GCP-Response" + MultiCloudNetwork2Sp-IBM2: + $ref: "#/components/examples/MCNS2Sp-IBM2-Response" + MultiCloudNetwork2Sp-Azure: + $ref: "#/components/examples/MCNS2Sp-Azure-Response" + MultiCloudNetwork2Sp-OCI: + $ref: "#/components/examples/MCNS2Sp-OCI-Response" Fcr2Metal-Network: $ref: "#/components/examples/Fcr2Metal-Network" Colo2Network-EVPLAN_VC: @@ -487,8 +531,6 @@ paths: $ref: "#/components/examples/ConnectionUpdateBandwidthRequest" ConnectionAddAccessAndSecretKeyAWSRequest: $ref: "#/components/examples/ConnectionAddAccessAndSecretKeyAWSRequest" - ConnectionAddRoutingRequest: - $ref: "#/components/examples/ConnectionAddRoutingRequest" ConnectionMigrationAsideRequest: $ref: "#/components/examples/ConnectionMigrationAsideRequest" ConnectionUpdateNotificationEmailRequest: @@ -2202,84 +2244,6 @@ paths: examples: example: $ref: "#/components/examples/500" - /fabric/v4/ports/stats: - get: - tags: - - Statistics - summary: Top Port Statistics - description: This API provides top utilized service-level traffic metrics so that you can view access and gather key information required to manage service subscription sizing and capacity. - operationId: getPortStats - parameters: - - name: sort - in: query - description: Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The "?" prefix indicates descending (DESC) order. - required: false - schema: - $ref: "#/components/schemas/sort" - - name: top - in: query - description: Filter returning only the specified number of most heavily trafficked ports. The standard value is [1...10], and the default is 5. - required: false - schema: - $ref: "#/components/schemas/top" - - name: duration - in: query - description: duration - required: false - schema: - $ref: "#/components/schemas/duration" - - name: direction - in: query - description: Direction of traffic from the requester's viewpoint. The default is outbound. - required: false - schema: - $ref: "#/components/schemas/query_direction" - - name: metricInterval - in: query - description: metricInterval - required: false - schema: - $ref: "#/components/schemas/metricInterval" - - name: metros - in: query - description: Two-letter prefix indicating the metropolitan area in which a specified Equinix asset is located. - required: true - schema: - $ref: "#/components/schemas/metros" - - name: projectId - in: query - description: projectId - required: false - schema: - $ref: "#/components/schemas/projectId" - responses: - "200": - description: Successful operation - content: - application/json: - schema: - $ref: "#/components/schemas/TopUtilizedStatistics" - examples: - statsExample: - $ref: "#/components/examples/200_top" - "401": - description: Unauthorized - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/401" - "403": - description: Forbidden - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/403" "/fabric/v4/connections/{connectionId}/stats": get: tags: @@ -3221,6 +3185,8 @@ paths: $ref: "#/components/examples/createZsideServiceTokenWithNetwork" AsideTokenWithDot1QDryRunCreate: $ref: "#/components/examples/createServiceTokenDryRunRequest" + AsideFCRWithZsidePortBasedToken: + $ref: "#/components/examples/createZsideServiceTokenWithAsideFCR" required: true responses: "200": @@ -3801,6 +3767,65 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorList" + patch: + tags: + - Ports + summary: Update by UUID + description: Update Port by UUID + operationId: updatePortByUuid + parameters: + - name: portId + in: path + description: Port UUID + required: true + schema: + $ref: "#/components/schemas/PortUUID" + requestBody: + content: + application/json-patch+json: + schema: + $ref: "#/components/schemas/PortUpdateRequest" + examples: + PortUpdateNameRequest: + $ref: "#/components/examples/PortUpdateNameRequest" + required: true + responses: + "202": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/AllPortsResponse" + examples: + portExample: + $ref: "#/components/examples/ports" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400" + "403": + description: Forbidden + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/403" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" "/fabric/v4/ports/{portUuid}/linkProtocols": get: tags: @@ -10737,13 +10762,13 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/streams/{streamId}/streamSubscriptions": + "/fabric/v4/streams/{streamId}/subscriptions": get: tags: - - Streams - summary: Get Stream's Subs - description: This API provides capability to retrieve subscriptions in a stream - operationId: getSubscriptionsInStream + - Stream Subscriptions + summary: Get Subscriptions + description: This API provides capability to retrieve stream subscriptions + operationId: getStreamSubscriptions parameters: - name: streamId in: path @@ -10765,74 +10790,6 @@ paths: schema: type: integer example: 10 - responses: - "200": - description: Successful operation - content: - application/json: - schema: - $ref: "#/components/schemas/GetSubscriptionsInStreamResponse" - examples: - Example: - $ref: "#/components/examples/stream-get-all-subscription-example" - "401": - description: Unauthorized - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/401" - "403": - description: Forbidden - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/403" - "404": - description: Not Found - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/404" - "500": - description: Internal server error - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/500" - /fabric/v4/streamSubscriptions: - get: - tags: - - Stream Subscriptions - summary: Get Subscriptions - description: This API provides capability to retrieve stream subscriptions - operationId: getStreamSubscriptions - parameters: - - name: offset - in: query - description: offset - required: false - schema: - type: integer - example: 1 - - name: limit - in: query - description: number of records to fetch - required: false - schema: - type: integer - example: 10 responses: "200": description: Successful operation @@ -10885,13 +10842,21 @@ paths: summary: Create Subscription description: This API provides capability to create user's Stream Subscriptions operationId: createStreamSubscriptions - parameters: [] + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" requestBody: content: application/json: schema: $ref: "#/components/schemas/StreamSubscriptionPostRequest" examples: + CreateStreamSubscription_Splunk_Simple: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSimpleDefaultSplunk" CreateStreamSubscription_Splunk: $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSplunk" CreateStreamSubscription_Slack: @@ -10900,6 +10865,8 @@ paths: $ref: "#/components/examples/StreamSubscriptionPostRequestExamplePagerduty" CreateStreamSubscription_Datadog: $ref: "#/components/examples/StreamSubscriptionPostRequestExampleDatadog" + CreateStreamSubscription_Microsoft_Teams: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleTeams" required: true responses: "202": @@ -10953,7 +10920,7 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/streamSubscriptions/{streamSubscriptionId}": + "/fabric/v4/streams/{streamId}/subscriptions/{subscriptionId}": get: tags: - Stream Subscriptions @@ -10961,88 +10928,100 @@ paths: description: This API provides capability to delete user's get Stream Subscriptions operationId: getStreamSubscriptionByUuid parameters: - - name: streamSubscriptionId + - name: streamId in: path - description: Stream Subscription UUID + description: Stream UUID required: true schema: - $ref: "#/components/schemas/StreamSubscriptionId" - responses: - "200": - description: Stream Subscription object - content: - application/json: - schema: - $ref: "#/components/schemas/StreamSubscription" - examples: - StreamSubscriptionResponse: - $ref: "#/components/examples/StreamSubscriptionResponseExample" - "400": - description: Bad request - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - "401": - description: Unauthorized - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/401" - "403": - description: Forbidden - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/403" - "404": - description: Not Found - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/404" - "500": - description: Internal server error - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorList" - examples: - example: - $ref: "#/components/examples/500" - put: - tags: - - Stream Subscriptions - summary: Update Subscription - description: This API provides capability to update user's Stream Subscriptions - operationId: updateStreamSubscriptionByUuid - parameters: - - name: streamSubscriptionId + $ref: "#/components/schemas/StreamId" + - name: subscriptionId in: path description: Stream Subscription UUID required: true schema: $ref: "#/components/schemas/StreamSubscriptionId" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/StreamSubscriptionPutRequest" - examples: - UpdateSubscription: - $ref: "#/components/examples/StreamSubscriptionPutRequestExample" - required: true responses: - "202": + "200": + description: Stream Subscription object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscription" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamSubscriptionResponseExample" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + "401": + description: Unauthorized + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/401" + "403": + description: Forbidden + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/403" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + put: + tags: + - Stream Subscriptions + summary: Update Subscription + description: This API provides capability to update user's Stream Subscriptions + operationId: updateStreamSubscriptionByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + - name: subscriptionId + in: path + description: Stream Subscription UUID + required: true + schema: + $ref: "#/components/schemas/StreamSubscriptionId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscriptionPutRequest" + examples: + UpdateSubscription: + $ref: "#/components/examples/StreamSubscriptionPutRequestExample" + required: true + responses: + "202": description: Stream Subscription object content: application/json: @@ -11109,7 +11088,13 @@ paths: description: This API provides capability to delete user's Stream Subscriptions operationId: deleteStreamSubscriptionByUuid parameters: - - name: streamSubscriptionId + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + - name: subscriptionId in: path description: Stream Subscription UUID required: true @@ -11936,57 +11921,6 @@ components: description: Mean bandwidth within statistics object time interval, represented in units specified by response "units" field format: float description: Bandwidth utilization statistics for a specified interval. - sort: - type: string - description: Key or set of keys that organizes the search payload by property (such as createdDate or metroCode) or by direction. Ascending (ASC) is the default value. The "?" prefix indicates descending (DESC) order. - default: -bandwidthUtilization - enum: - - -bandwidthUtilization - top: - type: integer - description: Filter returning only the specified number of most heavily trafficked ports. The standard value is [1...10], and the default is 5. - default: 5 - duration: - type: string - description: Duration of the statistical analysis interval. - default: P7D - enum: - - P7D - - P1M - - P3M - query_direction: - type: string - description: Direction of traffic from the requester's viewpoint. - default: outbound - enum: - - inbound - - outbound - metricInterval: - type: string - description: metric interval - default: P7D - enum: - - P7D - metros: - type: array - description: Two-letter prefix indicating the metropolitan area in which a specified Equinix asset is located. - items: - type: string - projectId: - type: string - description: projectId - example: 30ad25e2-53dc-11ed-bdc3-0242ac120002 - TopUtilizedStatistics: - type: object - properties: - pagination: - $ref: "#/components/schemas/Pagination" - data: - type: array - description: Data returned from the API call. - items: - $ref: "#/components/schemas/Statistics" - description: This API provides service-level traffic metrics for the top utilized ports so that you can view access and gather key information required to manage service subscription sizing and capacity. viewPoint: type: string description: viewPoint @@ -13117,6 +13051,12 @@ components: items: $ref: "#/components/schemas/PhysicalPort" description: GET All Physical Ports + PortUpdateRequest: + minItems: 1 + type: array + description: Port Update Request + items: + $ref: "#/components/schemas/PortChangeOperation" LinkProtocolGetResponse: type: object properties: @@ -13174,6 +13114,85 @@ components: $ref: "#/components/schemas/PortSortDirection" property: $ref: "#/components/schemas/PortSortBy" + PortCapacitySearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/PortCapacityExpression" + pagination: + $ref: "#/components/schemas/Pagination" + description: Search requests containing criteria + PortCapacityExpression: + type: object + properties: + and: + $ref: "#/components/schemas/PortCapacityExpression" + or: + $ref: "#/components/schemas/PortCapacityExpression" + property: + $ref: "#/components/schemas/PortCapacitySearchFieldName" + operator: + type: string + enum: + - = + values: + type: array + items: + type: string + PortCapacitySearchFieldName: + type: string + description: Possible field names to use on filters + enum: + - /demarcationPointIbx + - /tetherIbx + - /physicalPortsSpeed + - /physicalPortsType + - /lagEnabled + CheckCapacityResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + description: GET All available ports + items: + $ref: "#/components/schemas/CheckCapacity" + description: GET All available ports + CheckCapacity: + type: object + properties: + demarcationPointIbx: + type: string + description: demarcation point IBX + tetherIbx: + type: string + description: cloud port ibx location + metroConnectUsed: + type: boolean + description: metroConnect + campusCrossConnectUsed: + type: boolean + description: campusCrossConnect + lagEnabled: + type: boolean + description: lag or non lag port + physicalPortsSpeed: + minimum: 0 + type: integer + description: Physical Ports Speed in Mbps + redundancy: + $ref: "#/components/schemas/CheckCapacityPortRedundancy" + physicalPortsType: + type: string + description: Physical Ports Type + enum: + - 1000BASE_LX + - 10GBASE_LR + - 100GBASE_LR4 + - 10GBASE_ER + - 1000BASE_SX + description: Check capcaity Port specification GetAllConnectionRouteAggregationsResponse: type: object properties: @@ -15426,16 +15445,6 @@ components: description: enable metric example: false description: Update Stream Asset - GetSubscriptionsInStreamResponse: - type: object - properties: - pagination: - $ref: "#/components/schemas/Pagination" - data: - type: array - description: Data returned from the API call. - items: - $ref: "#/components/schemas/StreamGetSubscriptions" GetAllStreamSubscriptionResponse: type: object properties: @@ -15459,14 +15468,10 @@ components: description: type: string description: Customer-provided stream subscription description - project: - $ref: "#/components/schemas/Project" enabled: type: boolean description: Stream subscription enabled status example: true - stream: - $ref: "#/components/schemas/StreamTarget" filters: $ref: "#/components/schemas/StreamSubscriptionFilter" metricSelector: @@ -15498,7 +15503,7 @@ components: Possible field names to use on filters: * `/subject` - subject * `/type` - type - example: /equinixproject + example: /type operator: type: string description: | @@ -15510,6 +15515,31 @@ components: example: = values: type: array + description: | + ### Supported event or metric names to use on filters with property /type: + * `*` - all events or metrics + * `equinix.fabric.port.*` - port events or metrics + * `equinix.fabric.connection.*` - connection events or metrics + * `equinix.fabric.router.*` - cloud router events + * `equinix.fabric.metro.*` - metro metrics + * `equinix.fabric.network.*` - network events + * `equinix.fabric.service_token.*` - service token events + * `equinix.network_edge.*` - network edge events + * `equinix.network_edge.acl.*` - network edge acl events + * `equinix.network_edge.device.*` - network edge device events + * `equinix.access_manager.*` - identity access manager events + * `equinix.access_manager.user.role.*` - identity access manager user role events + ### Supported event or metric names to use on filters with property /subject: + * `*` - all events or metrics + * `/fabric/v4/ports/` - port events or metrics + * `/fabric/v4/connections/` - connection events or metrics + * `/fabric/v4/routers/` - cloud router events + * `/fabric/v4/metros/` - metro metrics + * `/fabric/v4/networks/` - network events + * `/fabric/v4/tokens/` - service token events + * `/ne/v1/acl/` - network edge acl events + * `/ne/v1/devices/` - network edge device events + * `/am/v2/users//roleAssignments/` - identity access manager events items: type: string StreamFilterOrFilter: @@ -15527,24 +15557,28 @@ components: maxItems: 8 type: array items: - $ref: "#/components/schemas/StreamSubscriptionExpression" + $ref: "#/components/schemas/StreamSubscriptionSelectorExpression" except: maxItems: 8 type: array items: - $ref: "#/components/schemas/StreamSubscriptionExpression" - StreamSubscriptionExpression: + $ref: "#/components/schemas/StreamSubscriptionSelectorExpression" + StreamSubscriptionSelectorExpression: type: string description: | - Possible event or metric names to use on event and metric selectors: + Supported event or metric types to use on event and metric selectors: * `*` - all events or metrics * `equinix.fabric.port.*` - port events or metrics * `equinix.fabric.connection.*` - connection events or metrics - * `equinix.fabric.cloudrouter.*` - cloud router events + * `equinix.fabric.router.*` - cloud router events * `equinix.fabric.metro.*` - metro metrics * `equinix.fabric.network.*` - network events * `equinix.fabric.service_token.*` - service token events - * `equinix.fabric.network_edge.*` - network edge events + * `equinix.network_edge.*` - network edge events + * `equinix.network_edge.acl.*` - network edge acl events + * `equinix.network_edge.device.*` - network edge device events + * `equinix.access_manager.*` - identity access manager events + * `equinix.access_manager.user.role.*` - identity access manager user role events example: equinix.fabric.connection.* StreamSubscriptionSink: type: object @@ -15576,6 +15610,9 @@ components: $ref: "#/components/schemas/StreamSubscriptionSinkCredential" settings: $ref: "#/components/schemas/StreamSubscriptionSinkSetting" + host: + type: string + description: sink host description: Create Stream destination StreamSubscriptionSinkCredential: type: object @@ -15587,6 +15624,7 @@ components: - ACCESS_TOKEN - INTEGRATION_KEY - API_KEY + - USERNAME_PASSWORD accessToken: type: string description: passed as Authorization header value @@ -15596,6 +15634,12 @@ components: apiKey: type: string description: passed as Authorization header value + username: + type: string + description: passed as Authorization header value + password: + type: string + description: passed as Authorization header value description: Stream subscription sink credentials StreamSubscriptionSinkSetting: type: object @@ -15612,6 +15656,16 @@ components: applicationKey: type: string description: Application key + eventUri: + type: string + description: event uri + metricUri: + type: string + description: metric uri + transformAlerts: + type: boolean + description: transform alerts + example: true description: Stream subscription sink settings StreamSubscription: type: object @@ -15621,7 +15675,7 @@ components: description: Stream Subscription URI format: uri readOnly: true - example: https://api.equinix.com/fabric/v4/streamSubscription/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + example: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 uuid: type: string description: Equinix-assigned access point identifier @@ -15638,8 +15692,6 @@ components: description: type: string description: Customer-provided subscription description - project: - $ref: "#/components/schemas/Project" state: type: string description: Steam subscription provision state @@ -15652,8 +15704,6 @@ components: enabled: type: boolean description: Stream subscription enabled status - stream: - $ref: "#/components/schemas/StreamTarget" filters: $ref: "#/components/schemas/StreamSubscriptionFilter" metricSelector: @@ -15679,8 +15729,6 @@ components: description: type: string description: Customer-provided stream subscription description - stream: - $ref: "#/components/schemas/StreamTarget" enabled: type: boolean description: Stream subscription enabled status @@ -16536,8 +16584,6 @@ components: - VC_TOKEN - EPL_TOKEN ServiceTokenConnection: - required: - - type type: object properties: type: @@ -16549,6 +16595,7 @@ components: - EVPLAN_VC - EPLAN_VC - IPWAN_VC + - IP_VC href: type: string description: An absolute URL that is the subject of the link's context. @@ -16914,6 +16961,24 @@ components: type: string deprecated: true description: Physical Port configuration settings + PortChangeOperation: + required: + - op + - path + - value + type: object + properties: + op: + type: string + description: Handy shortcut for operation name + example: replace + path: + type: string + description: path inside document leading to updated parameter + example: /name + value: + description: new value for updated parameter + description: Port change operation data LinkProtocolResponse: type: object properties: @@ -16977,6 +17042,12 @@ components: default: /device/name enum: - /device/name + CheckCapacityPortRedundancy: + type: object + properties: + priority: + $ref: "#/components/schemas/PortPriority" + description: Check Capacity Port redundancy configuration RouteFilterState: type: string description: Route Filter status @@ -17120,6 +17191,7 @@ components: description: path to change example: /prefixMatch value: + type: object description: new value for updated parameter description: Route filter rule change operation data RouteFilterRulesChangeOperation: @@ -17861,31 +17933,6 @@ components: uuid: type: string format: uuid - StreamGetSubscriptions: - type: object - properties: - href: - type: string - description: Stream Get Stream Subscriptions URI - format: uri - readOnly: true - uuid: - type: string - description: Equinix-assigned access point identifier - format: uuid - example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 - type: - type: string - description: Stream subscription type - enum: - - STREAM_SUBSCRIPTION - description: Stream object - StreamTarget: - type: object - properties: - uuid: - $ref: "#/components/schemas/StreamId" - description: Stream uuid ConnectionPriority: type: string description: Connection priority in redundancy group @@ -20660,6 +20707,7 @@ components: emails: - test@equinix.com - test1@equinix.com + Fcr2ServiceToken: {} AsideServiceToken2PortWithDot1q: value: type: EVPL_VC @@ -20974,10 +21022,36 @@ components: - type: ALL emails: - test@test.com + MCNS2Sp-Alibaba: + value: + type: EVPL_VC + name: My-MCNS2Alibaba-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: 4c4b8edf-873b-4c6c-805a-edb2c335bd6c + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: us-east-1 + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com MCNS2Sp-Aws: value: type: EVPL_VC - name: My-MCNS2Aws-connection + name: My-MCNS2Aws-Connection bandwidth: 50 aSide: accessPoint: @@ -20993,13 +21067,126 @@ components: metroCode: DC authenticationKey: xxxx-xxx-xxxx sellerRegion: us-east-1 + project: + projectId: b543e64d-1e13-423a-9d81-4eae7b0e1959 notifications: - type: ALL emails: - - test@equinix.com - - test1@equinix.com + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-GCP: + value: + type: EVPL_VC + name: My-MCNS2GCP-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: bd4570e2-d792-4a00-87f5-3bde040cdcd7 + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: us-east1 project: - projectId: b543e64d-1e13-423a-9d81-4eae7b0e1959 + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-IBM2: + value: + type: EVPL_VC + name: My-MCNS2IBM2-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: e092ed47-63d2-4f4a-87a0-82e3b08eefe5 + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: Washington 2 + additionalInfo: + - key: ASN + value: 12345 + - key: BGP_CER_CIDR + value: 172.16.0.17/30 + - key: BGP_IBM_CIDR + value: 172.16.0.18/30 + - key: Global + value: false + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-Azure: + value: + type: EVPL_VC + name: My-MCNS2Azure-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: a1390b22-bbe0-4e93-ad37-85beef9d254d + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + peeringType: PRIVATE + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com + MCNS2Sp-OCI: + value: + type: EVPL_VC + name: My-MCNS2OCI-Connection + bandwidth: 50 + aSide: + accessPoint: + type: VPIC_INTERFACE + authenticationKey: xxxx-xxx-xxxx + zSide: + accessPoint: + type: SP + profile: + type: L2_PROFILE + uuid: 60ef0382-cdaa-44e7-bd36-b803731816b8 + location: + metroCode: DC + authenticationKey: xxxx-xxx-xxxx + sellerRegion: us-ashburn-1 + project: + projectId: 16799d66-ef43-445c-ba29-d17522d8a137 + notifications: + - type: ALL + emails: + - fabric@gmail.com + - fabric1@gmail.com Vd2IAProfile-Request: value: type: IA_VC @@ -21055,21 +21242,270 @@ components: location: metroCode: DC project: - projectId: 41418 + projectId: a347a370-39b5-427f-c330-7471a9abd9 order: purchaseOrderNumber: 1-129105284100 notifications: - type: ALL emails: - test@test.com - CreateConnectionDryRunResponse: + CreateConnectionDryRunResponse-Colo2AWS: + value: + type: EVPL_VC + name: Colo to AWS Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/20d32a80-0d61-4333-bc03-707b591ae2f5 + type: L2_PROFILE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + sellerRegion: us-west-1 + authenticationKey: xxx-xxx-xxx + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Azure: + value: + type: EVPL_VC + name: Colo to Azure Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/20d32a80-0d61-4333-bc03-707b591ae2f5 + type: L2_PROFILE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + authenticationKey: xxx-xxx-xxx + peeringType: PRIVATE + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Google: + value: + type: EVPL_VC + name: Colo to Google Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/bd4570e2-d792-4a00-87f5-3bde040cdcd7 + type: L2_PROFILE + uuid: bd4570e2-d792-4a00-87f5-3bde040cdcd7 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + sellerRegion: us-west-1 + authenticationKey: xxx-xxx-xxx + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2IBM: + value: + type: EVPL_VC + name: Colo to IBM Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/22d4e853-ef33-4ff0-b5b2-a2b1d5dfa50c + type: L2_PROFILE + uuid: 22d4e853-ef33-4ff0-b5b2-a2b1d5dfa50c + location: + metroHref: https://api.equinix.com/fabric/v4/metros/SV + metroCode: SV + sellerRegion: us-west-1 + authenticationKey: xxx-xxx-xxx + additionalInfo: + - key: ASN + value: 1234 + - key: Global + value: false + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Network-EPLAN_VC: + value: + type: EPLAN_VC + name: My Colo to Network EPLAN_VC Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Network-EVPLAN_VC: + value: + type: EVPLAN_VC + name: My Colo to Network EVPLAN_VC Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/25f8884e-85e3-4eaa-8ea9-a7ad2ca5b3c2 + uuid: 25f8884e-85e3-4eaa-8ea9-a7ad2ca5b3c2 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Colo2Sp-Generic: value: type: EVPL_VC name: My-EVPL-Connection - bandwidth: 500 + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: SP + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/92dc376a-a932-43aa-a6a2-c806dedbd784 + type: L2_PROFILE + uuid: 92dc376a-a932-43aa-a6a2-c806dedbd784 + location: + metroHref: https://api.equinix.com/fabric/v4/metros/DC + metroCode: DC + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Fcr2Colo: + value: + type: EVPL_VC + name: Fcr to Colo Connection + bandwidth: 50 redundancy: priority: PRIMARY aSide: + accessPoint: + type: CLOUD_ROUTER + router: + href: https://api.equinix.com/fabric/v4/routers/66a21614-1c4a-11ec-9621-0242ac130002 + uuid: 66a21614-1c4a-11ec-9621-0242ac130002 + zSide: accessPoint: type: COLO port: @@ -21078,6 +21514,53 @@ components: linkProtocol: type: DOT1Q vlanTag: 1137 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Fcr2Ipwan: + value: + type: EVPL_VC + name: Fcr to Ipwan Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: CLOUD_ROUTER + router: + href: https://api.equinix.com/fabric/v4/routers/66a21614-1c4a-11ec-9621-0242ac130002 + uuid: 66a21614-1c4a-11ec-9621-0242ac130002 + zSide: + accessPoint: + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-Fcr2Sp-Generic: + value: + type: EVPL_VC + name: Fcr to Sp-Generic Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + accessPoint: + type: CLOUD_ROUTER + router: + href: https://api.equinix.com/fabric/v4/routers/66a21614-1c4a-11ec-9621-0242ac130002 + uuid: 66a21614-1c4a-11ec-9621-0242ac130002 zSide: accessPoint: type: SP @@ -21089,7 +21572,42 @@ components: metroHref: https://api.equinix.com/fabric/v4/metros/DC metroCode: DC project: - projectId: 41418 + projectId: a347a370-39b5-427f-c330-7471a9abd9 + order: + purchaseOrderNumber: 1-129105284100 + notifications: + - type: ALL + emails: + - test@test.com + CreateConnectionDryRunResponse-PortServiceToken2Port: + value: + type: EVPL_VC + name: Port Service Token to Port Connection + bandwidth: 50 + redundancy: + priority: PRIMARY + aSide: + serviceToken: + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/20d32a80-0d61-4333-bc03-707b591ae2f5 + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f5 + linkProtocol: + type: DOT1Q + vlanTag: 1137 + zSide: + accessPoint: + type: COLO + port: + href: https://api.equinix.com/fabric/v4/ports/2a4fb415-5a7f-436f-bae6-02f5e403deec + uuid: 2a4fb415-5a7f-436f-bae6-02f5e403deec + linkProtocol: + type: DOT1Q + vlanTag: 1137 + project: + projectId: a347a370-39b5-427f-c330-7471a9abd9 order: purchaseOrderNumber: 1-129105284100 notifications: @@ -21854,7 +22372,7 @@ components: href: https://api.equinix.com/fabric/v4/connections/f37e40c5-2802-4df7-9732-839a8a5868ce type: EVPL_VC uuid: f37e40c5-2802-4df7-9732-839a8a5868ce - name: My-Metal-sp-connection + name: My-Metal2Aws-Connection bandwidth: 1000 aSide: accessPoint: @@ -21870,7 +22388,7 @@ components: profile: type: L2_PROFILE uuid: 9127bb72-5f4f-4517-be74-3af7ce612687 - authenticationKey: xxxxxxxxx + authenticationKey: xxxx-xxx-xxxx sellerRegion: us-west-1 order: purchaseOrderNumber: 1-129105284100 @@ -21885,11 +22403,12 @@ components: notifications: - type: ALL emails: - - test@equinix.com + - fabric@gmail.com + - fabric1@gmail.com changeLog: - createdBy: testuser - createdByEmail: testuser@equinix.com - createdByFullName: testuser testuser + createdBy: fabric + createdByEmail: fabric@gmail.com + createdByFullName: fabric createdDateTime: 2020-05-21T10:30:00Z Metal2Sp-Azure-Response: value: @@ -21941,7 +22460,7 @@ components: type: EVPL_VC href: https://api.equinix.com/fabric/v4/connections/d3b69c6b-3b23-4ac0-a1bb-8db16460714d uuid: d3b69c6b-3b23-4ac0-a1bb-8db16460714d - name: Metal2GCP Connection + name: My-Metal2GCP-Connection operation: providerStatus: PROVISIONING equinixStatus: PROVISIONING @@ -21950,7 +22469,7 @@ components: notifications: - type: ALL emails: - - eqxfabricamcrh@gmail.com + - fabric@gmail.com changeLog: createdBy: fabric createdByFullName: fabric @@ -21980,7 +22499,7 @@ components: type: L2_PROFILE name: GCP Service Profile uuid: 063f4b0f-2d5b-4db7-95da-d9eddfc92602 - authenticationKey: xxxxxxxxx + authenticationKey: xxxx-xxx-xxxx Metal2Sp-Oracle-Response: value: type: EVPL_VC @@ -22264,6 +22783,275 @@ components: type: L2_PROFILE name: Generic Service Profile uuid: f1a247aa-8f86-4a89-88c2-72497686cd0d + MCNS2Sp-Alibaba-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/974cb1c6-5090-4796-9d38-f5c14432d2c4 + type: EVPL_VC + uuid: 974cb1c6-5090-4796-9d38-f5c14432d2c4 + name: My-MCNS2Alibaba-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T05:35:23.750Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T05:35:23.750Z + bandwidth: 50 + redundancy: + group: 9d92f86f-2c2a-4b88-b9a1-a61ec83c28cf + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/4c4b8edf-873b-4c6c-805a-edb2c335bd6c + type: L2_PROFILE + name: Alibaba Cloud Express Connect + uuid: 4c4b8edf-873b-4c6c-805a-edb2c335bd6c + sellerRegion: us-east-1 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-Aws-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/729a1248-afa5-4dee-a4e7-5f24cab53287 + type: EVPL_VC + uuid: 729a1248-afa5-4dee-a4e7-5f24cab53287 + name: My-MCNS2AWS-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-06T17:08:45.548Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-06T17:08:45.548Z + bandwidth: 50 + redundancy: + group: 75346f39-4193-466e-9a83-78c7e153f6e2 + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/69ee618d-be52-468d-bc99-00566f2dd2b9 + type: L2_PROFILE + name: AWS Direct Connect + uuid: 69ee618d-be52-468d-bc99-00566f2dd2b9 + sellerRegion: us-east-1 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-GCP-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/4c2c8739-f476-47ae-a0fa-f924e1081e62 + type: EVPL_VC + uuid: 4c2c8739-f476-47ae-a0fa-f924e1081e62 + name: My-MCNS2GCP-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-06T19:25:09.527Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-06T19:25:09.527Z + bandwidth: 50 + redundancy: + group: 33286a70-e0d5-466b-873e-f2c1836d1f0c + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/bd4570e2-d792-4a00-87f5-3bde040cdcd7 + type: L2_PROFILE + name: Google Cloud Partner Interconnect Zone 1 + uuid: bd4570e2-d792-4a00-87f5-3bde040cdcd7 + sellerRegion: us-east1 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-IBM2-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/d9e3f826-71e4-40a5-9e27-6030d1498e13 + type: EVPL_VC + uuid: d9e3f826-71e4-40a5-9e27-6030d1498e13 + name: MY-MCNS2IBM2-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T05:23:43.711Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T05:23:43.711Z + bandwidth: 50 + redundancy: + group: f65c252c-ea74-4a12-87aa-7bc0236cb24a + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/e092ed47-63d2-4f4a-87a0-82e3b08eefe5 + type: L2_PROFILE + name: IBM Cloud Direct Link 2 + uuid: e092ed47-63d2-4f4a-87a0-82e3b08eefe5 + sellerRegion: Washington 2 + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-Azure-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/43504d46-f5ce-4d47-99f6-d220df13f81d + type: EVPL_VC + uuid: 43504d46-f5ce-4d47-99f6-d220df13f81d + name: My-MCNS2Azure-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T04:41:43.111Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T04:41:43.111Z + bandwidth: 50 + redundancy: + group: d88b8fe3-23ac-42b6-8c28-33d33f0b9760 + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/a1390b22-bbe0-4e93-ad37-85beef9d254d + type: L2_PROFILE + name: Azure ExpressRoute + uuid: a1390b22-bbe0-4e93-ad37-85beef9d254d + authenticationKey: xxxx-xxx-xxxx + MCNS2Sp-OCI-Response: + value: + href: https://api.equinix.com/fabric/v4/connections/addae6f7-69c1-494e-905a-3d94b8cb8f1a + type: EVPL_VC + uuid: addae6f7-69c1-494e-905a-3d94b8cb8f1a + name: My-MCNS2OCI-Connection + operation: + providerStatus: PROVISIONING + equinixStatus: PROVISIONING + order: + billingTier: Up to 50 MB + notifications: + - type: ALL + emails: + - fabric@gmail.com + changeLog: + createdBy: fabric + createdByFullName: fabric + createdByEmail: fabric@gmail.com + createdDateTime: 2024-09-07T05:09:26.587Z + updatedBy: fabric + updatedByFullName: fabric + updatedByEmail: fabric@gmail.com + updatedDateTime: 2024-09-07T05:09:26.587Z + bandwidth: 50 + redundancy: + group: 6620b2a3-d3d7-420b-a3a0-4b5ae8b0cd10 + priority: PRIMARY + aSide: + accessPoint: + type: VPIC_INTERFACE + vpicInterface: + uuid: cd67f685-41b0-1b07-6de0-0320a5c00abe + zSide: + accessPoint: + location: + metroHref: http://api.corp.equinix.com/fabric/v4/metros/DC + metroCode: DC + profile: + href: https://api.equinix.com/fabric/v4/serviceProfiles/60ef0382-cdaa-44e7-bd36-b803731816b8 + type: L2_PROFILE + name: Oracle Cloud Infrastructure FastConnect + uuid: 60ef0382-cdaa-44e7-bd36-b803731816b8 + sellerRegion: us-ashburn-1 + authenticationKey: xxxx-xxx-xxxx COLO2NETWORKwithDot1q-Response: value: type: EVPLAN_VC @@ -23968,12 +24756,6 @@ components: value: nTTgtgoQbTQCRHTbynll - key: secretKey value: NwPcpbWgFEPofydsZEQGwjtHqJOYrUmBbrcxtOzP - ConnectionAddRoutingRequest: - value: - - op: add - path: /ipv6 - value: - equinixIfaceIp: 1202:ABCD::/64 ConnectionMigrationAsideRequest: value: - op: replace @@ -26306,88 +27088,6 @@ components: - intervalEndDateTime: 2020-05-21T10:30:00Z max: 42.01401189333334 mean: 39.40894303096296 - 200_top: - value: - pagination: - offset: 0 - limit: 5 - total: 5 - data: - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: - max: 1913400000 - mean: 474960.24489120545 - lastPolled: 53.333333333333336 - metrics: - - intervalEndDateTime: 2021-03-18T18:49:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - intervalEndDateTime: 2021-03-18T18:54:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - intervalEndDateTime: 2021-03-18T18:59:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - intervalEndDateTime: 2021-03-18T19:04:21Z - max: 53.333333333333336 - mean: 53.333333333333336 - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} - - href: http://api.equinix.com/fabric/v4/ports/xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} - - type: XF_PORT - uuid: xxxxx191-xx70-xxxx-xx04-xxxxxxxa37xx - name: testUser-CX-SV2-NL-Dot1Q-BO-1G-PRI-JP-15 - bandwidth: 10000 - stats: - startDateTime: 2021-03-11T22:08:30.851Z - endDateTime: 2021-06-09T22:08:30.851Z - bandwidthUtilization: - unit: Mbps - metricInterval: PT5M - inbound: {} 200_vc: value: href: https://api.equinix.com/fabric/v4/connections/97d1850f-4df0-468c-9281-fa7b0dfa2096 @@ -27842,6 +28542,7 @@ components: emails: - abc@company.com - provider@company.com + createZsideServiceTokenWithAsideFCR: {} createServiceTokenDryRunResponse: value: type: VC_TOKEN @@ -29188,6 +29889,11 @@ components: organizationName: Cust_Org_100179 changeLog: createdDateTime: 2018-06-14T17:21:25.587Z + PortUpdateNameRequest: + value: + - op: replace + path: /name + value: 1234-ibx-port LinkProtocolGetQinqResponseExample: value: pagination: @@ -29409,6 +30115,65 @@ components: sort: - property: /device/name direction: DESC + PortSearchByDemarcationIbx: + value: + filter: + - and: + - operator: = + property: /demarcationPointIbx + values: + - FR4 + - operator: = + property: /physicalPortsSpeed + values: + - 1000 + pagination: + limit: 5 + offset: 0 + total: 0 + checkCapacity: + value: + pagination: + offset: 0 + limit: 5 + total: 4 + data: + - demarcationPointIbx: AM2 + tetherIbx: AM2 + metroConnectUsed: false + lagEnabled: true + physicalPortsType: 10GBASE_LR + physicalPortsSpeed: 10000 + physicalPortsAvailable: 4 + redundancy: + priority: PRIMARY + - demarcationPointIbx: AM2 + tetherIbx: AM2 + metroConnectUsed: false + lagEnabled: true + physicalPortsType: 10GBASE_LR + physicalPortsSpeed: 10000 + physicalPortsAvailable: 8 + redundancy: + priority: SECONDARY + - demarcationPointIbx: AM2 + tetherIbx: AM1 + metroConnectUsed: true + lagEnabled: true + physicalPortsType: 10GBASE_L + physicalPortsSpeed: 10000 + physicalPortsAvailable: 8 + redundancy: + priority: PRIMARY + - demarcationPointIbx: AM2 + tetherIbx: AM1 + metroConnectUsed: true + lagEnabled: true + physicalPortsType: 10GBASE_L + physicalPortsSpeed: 10000 + physicalPortsAvailable: 8 + redundancy: + priority: SECONDARY ConnectionRouteAggregationsGetAll: value: pagination: @@ -33558,16 +34323,6 @@ components: type: XF_ROUTER metricsEnabled: false attachmentStatus: DETACHING - stream-get-all-subscription-example: - value: - pagination: - offset: 0 - limit: 20 - total: 1 - data: - - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/streamSubscriptions - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - type: STREAM_SUBSCRIPTION stream-subscription-get-all-example: value: pagination: @@ -33575,29 +34330,23 @@ components: limit: 20 total: 1 data: - - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: splunk description: subscription 1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: PROVISIONED enabled: true - stream: - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 filters: and: - property: /subject operator: LIKE values: - - "%36276e58-b5a1-4864-ab5e-be10dff9eac1%" - - property: /equinixproject + - "%/fabric/v4/connections/36276e58-b5a1-4864-ab5e-be10dff9eac1%" + - property: /type operator: IN values: - - "197607000886247" + - equinix.fabric.connection.state.provisioned metricSelector: include: - equinix.fabric.connection.* @@ -33612,22 +34361,34 @@ components: batchWaitTimeMax: 5 changeLog: createdDateTime: 2024-05-06T16:21:18.545214Z + StreamSubscriptionPostRequestExampleSimpleDefaultSplunk: + value: + type: STREAM_SUBSCRIPTION + name: splunk1 + description: subscription-1 + enabled: true + sink: + uri: https://xxxxxx + type: SPLUNK_HEC + credential: + type: ACCESS_TOKEN + accessToken: Splunk + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric StreamSubscriptionPostRequestExampleSplunk: value: type: STREAM_SUBSCRIPTION name: splunk1 description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33639,7 +34400,7 @@ components: type: SPLUNK_HEC credential: type: ACCESS_TOKEN - accessToken: my-access-token + accessToken: Splunk settings: source: Equinix eventIndex: idx-hec-event @@ -33650,16 +34411,12 @@ components: name: slack1 description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33675,48 +34432,45 @@ components: name: pagerduty description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% + metricSelector: + include: + - equinix.fabric.connection.* eventSelector: include: - equinix.fabric.connection.* sink: - uri: https://xxxxxx + host: events.pagerduty.com type: PAGERDUTY credential: type: INTEGRATION_KEY integrationKey: my-integration-key settings: - source: Equinix + transformAlerts: true + changeUri: https://events.pagerduty.com/v2/change/enqueeue + alertUri: https://events.pagerduty.com/v2/enqueeue StreamSubscriptionPostRequestExampleDatadog: value: type: STREAM_SUBSCRIPTION name: datadog description: subscription-1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* sink: - uri: https://xx.datadoghq.com + host: us.datadoghq.com type: DATADOG credential: type: API_KEY @@ -33724,27 +34478,44 @@ components: settings: source: Equinix applicationKey: my-application-key + eventUri: https://us.datadoghq.com/api/v1/events + metricUri: https://us.datadoghq.com/api/v2/series + StreamSubscriptionPostRequestExampleTeams: + value: + type: STREAM_SUBSCRIPTION + name: teams1 + description: subscription-1 + enabled: true + filters: + and: + - property: /type + operator: LIKE + values: + - equinix.fabric.connection% + metricSelector: + include: + - equinix.fabric.connection.* + eventSelector: + include: + - equinix.fabric.connection.* + sink: + uri: https://xxxxxx + type: TEAMS StreamSubscriptionResponseExample: value: - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: stream 1 description: stream dec 1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: PROVISIONED enabled: true - stream: - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33756,7 +34527,7 @@ components: type: SPLUNK_HEC credential: type: ACCESS_TOKEN - accessToken: my-access-token + accessToken: Splunk settings: source: Equinix eventIndex: idx-hec-event @@ -33771,14 +34542,12 @@ components: name: splunk1 description: subscription 1 enabled: true - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 filters: and: - property: /type operator: LIKE values: - - "%equinix.event.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33800,25 +34569,19 @@ components: batchWaitTimeMax: 5 StreamSubscriptionDeleteResponseExample: value: - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418/subscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: stream 1 description: stream dec 1 - project: - projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: DEPROVISIONING enabled: true - stream: - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 filters: and: - property: /type operator: LIKE values: - - "%com.equinix.fabric.connection%" + - equinix.fabric.connection% metricSelector: include: - equinix.fabric.connection.* @@ -33830,7 +34593,7 @@ components: type: SPLUNK_HEC credential: type: ACCESS_TOKEN - accessToken: my-access-token + accessToken: Splunk settings: source: Equinix eventIndex: idx-hec-event