From b45829419af5f64841d0fbabac357d6ad8535d1d Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 14 Oct 2024 13:26:59 -0700 Subject: [PATCH 1/4] Upgrade spec version download link from 4.15 to 4.17 --- Makefile.fabricv4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.fabricv4 b/Makefile.fabricv4 index bffef8fe..812c56e8 100644 --- a/Makefile.fabricv4 +++ b/Makefile.fabricv4 @@ -3,7 +3,7 @@ include Makefile PACKAGE_NAME=fabricv4 -SPEC_BASE_URL:=https://api.swaggerhub.com/apis/equinix-api/fabric/4.15 +SPEC_BASE_URL:=https://api.swaggerhub.com/apis/equinix-api/fabric/4.17 SPEC_ROOT_FILE:=swagger.yaml CODE_DIR=${CODE_BASE_DIR}/${PACKAGE_NAME} From fa26efc266f517006bfdf707fde100b150697baf Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 14 Oct 2024 15:52:08 -0700 Subject: [PATCH 2/4] Remove unused patches from spec patching list --- ...e_required_fields_from_port_response.patch | 66 ------------------- ...mp_simplifiedAccount_to_portResponse.patch | 48 -------------- ...e_required_fields_from_project_model.patch | 13 ---- ...nection_as_connection_response_model.patch | 46 ------------- 4 files changed, 173 deletions(-) delete mode 100644 spec/services/fabricv4/patches/20240328_remove_required_fields_from_port_response.patch delete mode 100644 spec/services/fabricv4/patches/20240405_add_temp_simplifiedAccount_to_portResponse.patch delete mode 100644 spec/services/fabricv4/patches/20240506_remove_required_fields_from_project_model.patch delete mode 100644 spec/services/fabricv4/patches/20240822_use_base_connection_as_connection_response_model.patch diff --git a/spec/services/fabricv4/patches/20240328_remove_required_fields_from_port_response.patch b/spec/services/fabricv4/patches/20240328_remove_required_fields_from_port_response.patch deleted file mode 100644 index 44a0474c..00000000 --- a/spec/services/fabricv4/patches/20240328_remove_required_fields_from_port_response.patch +++ /dev/null @@ -1,66 +0,0 @@ -diff --git a/spec/services/fabricv4/oas3.patched/swagger.yaml b/spec/services/fabricv4/oas3.patched/swagger.yaml -index e8b0692..4608d7b 100644 ---- a/spec/services/fabricv4/oas3.patched/swagger.yaml -+++ b/spec/services/fabricv4/oas3.patched/swagger.yaml -@@ -3228,7 +3228,7 @@ paths: - content: - application/json: - schema: -- $ref: "#/components/schemas/Port" -+ $ref: "#/components/schemas/PortResponse" - examples: - portExample: - $ref: "#/components/examples/COLOSinglePortNonLagResponse" -@@ -3355,7 +3355,7 @@ paths: - content: - application/json: - schema: -- $ref: "#/components/schemas/Port" -+ $ref: "#/components/schemas/PortResponse" - examples: - portExample: - $ref: "#/components/examples/portByUUID" -@@ -8800,18 +8800,9 @@ components: - type: array - description: GET All User Port Across Fabric Metros - items: -- $ref: "#/components/schemas/Port" -+ $ref: "#/components/schemas/PortResponse" - description: GET All User Port Across Fabric Metros -- Port: -- required: -- - account -- - connectivitySourceType -- - encapsulation -- - location -- - physicalPortsSpeed -- - physicalPortsType -- - settings -- - type -+ PortResponse: - type: object - properties: - type: -@@ -8949,7 +8940,21 @@ components: - description: Port Loas - items: - $ref: "#/components/schemas/PortLoa" -- description: Port specification -+ description: Port response specification -+ Port: -+ required: -+ - account -+ - connectivitySourceType -+ - encapsulation -+ - location -+ - physicalPortsSpeed -+ - physicalPortsType -+ - settings -+ - type -+ type: object -+ description: Port is the Request Object for Creating Fabric Ports -+ allOf: -+ - $ref: "#/components/schemas/PortResponse" - PhysicalPort: - type: object - properties: diff --git a/spec/services/fabricv4/patches/20240405_add_temp_simplifiedAccount_to_portResponse.patch b/spec/services/fabricv4/patches/20240405_add_temp_simplifiedAccount_to_portResponse.patch deleted file mode 100644 index 3b1f3753..00000000 --- a/spec/services/fabricv4/patches/20240405_add_temp_simplifiedAccount_to_portResponse.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/spec/services/fabricv4/oas3.patched/swagger.yaml b/spec/services/fabricv4/oas3.patched/swagger.yaml -index 4608d7b..920b724 100644 ---- a/spec/services/fabricv4/oas3.patched/swagger.yaml -+++ b/spec/services/fabricv4/oas3.patched/swagger.yaml -@@ -8868,7 +8868,7 @@ components: - operation: - $ref: "#/components/schemas/PortOperation" - account: -- $ref: "#/components/schemas/SimplifiedAccount" -+ $ref: "#/components/schemas/SimplifiedAccountPortResponse" - changelog: - $ref: "#/components/schemas/Changelog" - serviceType: -@@ -8955,6 +8955,9 @@ components: - description: Port is the Request Object for Creating Fabric Ports - allOf: - - $ref: "#/components/schemas/PortResponse" -+ properties: -+ account: -+ $ref: "#/components/schemas/SimplifiedAccount" - PhysicalPort: - type: object - properties: -@@ -10635,6 +10638,24 @@ components: - type: integer - description: Reseller customer organization identifier - format: int64 -+ SimplifiedAccountPortResponse: -+ type: object -+ description: Temporary SimplifiedAccount for PortResponse data mismatch of all strings in account -+ allOf: -+ - $ref: "#/components/schemas/SimplifiedAccount" -+ properties: -+ accountNumber: -+ type: string -+ description: Account number -+ orgId: -+ type: string -+ description: Customer organization identifier -+ resellerAccountNumber: -+ type: string -+ description: Reseller account number -+ resellerOrgId: -+ type: string -+ description: Reseller customer organization identifier - Changelog: - type: object - properties: diff --git a/spec/services/fabricv4/patches/20240506_remove_required_fields_from_project_model.patch b/spec/services/fabricv4/patches/20240506_remove_required_fields_from_project_model.patch deleted file mode 100644 index 369f03bf..00000000 --- a/spec/services/fabricv4/patches/20240506_remove_required_fields_from_project_model.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/spec/services/fabricv4/oas3.patched/swagger.yaml b/spec/services/fabricv4/oas3.patched/swagger.yaml -index 403295f..53e4acf 100644 ---- a/spec/services/fabricv4/oas3.patched/swagger.yaml -+++ b/spec/services/fabricv4/oas3.patched/swagger.yaml -@@ -10711,8 +10711,6 @@ components: - $ref: "#/components/schemas/ConnectionSideAdditionalInfo" - description: Connection configuration object for each side of multi-segment connection - Project: -- required: -- - projectId - type: object - properties: - projectId: diff --git a/spec/services/fabricv4/patches/20240822_use_base_connection_as_connection_response_model.patch b/spec/services/fabricv4/patches/20240822_use_base_connection_as_connection_response_model.patch deleted file mode 100644 index 905e9f5a..00000000 --- a/spec/services/fabricv4/patches/20240822_use_base_connection_as_connection_response_model.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/spec/services/fabricv4/oas3.patched/swagger.yaml b/spec/services/fabricv4/oas3.patched/swagger.yaml -index 701d20e..ac39f1e 100644 ---- a/spec/services/fabricv4/oas3.patched/swagger.yaml -+++ b/spec/services/fabricv4/oas3.patched/swagger.yaml -@@ -7720,13 +7720,7 @@ components: - marketplaceSubscription: - $ref: "#/components/schemas/marketplaceSubscription" - description: Create connection post request -- Connection: -- required: -- - aSide -- - bandwidth -- - name -- - type -- - zSide -+ BaseConnection: - type: object - properties: - type: -@@ -7789,6 +7783,17 @@ components: - $ref: "#/components/schemas/ConnectionSideAdditionalInfo" - project: - $ref: "#/components/schemas/Project" -+ description: Connection base specification -+ Connection: -+ required: -+ - aSide -+ - bandwidth -+ - name -+ - type -+ - zSide -+ type: object -+ allOf: -+ - $ref: "#/components/schemas/BaseConnection" - description: Connection specification - ErrorList: - type: array -@@ -10421,7 +10426,7 @@ components: - type: array - description: Connection response data - items: -- $ref: "#/components/schemas/Connection" -+ $ref: "#/components/schemas/BaseConnection" - description: ValidateResponse - Pagination: - required: From c784c191f5954f8fd565156e6f8cc2a2ee152910 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 14 Oct 2024 16:19:50 -0700 Subject: [PATCH 3/4] Add post patch file for testing API Streams on asset type --- ...d-package-alias-to-custom-asset-type.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 patches/services/fabricv4/20241014-add-package-alias-to-custom-asset-type.patch diff --git a/patches/services/fabricv4/20241014-add-package-alias-to-custom-asset-type.patch b/patches/services/fabricv4/20241014-add-package-alias-to-custom-asset-type.patch new file mode 100644 index 00000000..df75e77e --- /dev/null +++ b/patches/services/fabricv4/20241014-add-package-alias-to-custom-asset-type.patch @@ -0,0 +1,31 @@ +diff --git a/services/fabricv4/test/api_streams_test.go b/services/fabricv4/test/api_streams_test.go +index f760724..ca429c7 100644 +--- a/services/fabricv4/test/api_streams_test.go ++++ b/services/fabricv4/test/api_streams_test.go +@@ -36,7 +36,7 @@ func Test_fabricv4_StreamsApiService(t *testing.T) { + t.Skip("skip test") // remove to run test + + var assetId string +- var asset Asset ++ var asset openapiclient.Asset + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.DeleteStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() +@@ -62,7 +62,7 @@ func Test_fabricv4_StreamsApiService(t *testing.T) { + t.Skip("skip test") // remove to run test + + var assetId string +- var asset Asset ++ var asset openapiclient.Asset + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.GetStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() +@@ -120,7 +120,7 @@ func Test_fabricv4_StreamsApiService(t *testing.T) { + t.Skip("skip test") // remove to run test + + var assetId string +- var asset Asset ++ var asset openapiclient.Asset + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.UpdateStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() From 20de9ba30eee76c4887e461ef1461c1d36baeb77 Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Mon, 14 Oct 2024 16:21:14 -0700 Subject: [PATCH 4/4] Code generation for 4.17 API Spec as well as removed patches and additional patches --- services/fabricv4/README.md | 150 +- services/fabricv4/api_cloud_routers.go | 680 +- services/fabricv4/api_connections.go | 1 - services/fabricv4/api_health.go | 1 - .../fabricv4/api_marketplace_subscriptions.go | 1 - services/fabricv4/api_metros.go | 1 - services/fabricv4/api_networks.go | 1 - services/fabricv4/api_ports.go | 57 +- services/fabricv4/api_precision_time.go | 260 +- services/fabricv4/api_prices.go | 1 - services/fabricv4/api_route_filter_rules.go | 1 - services/fabricv4/api_route_filters.go | 1 - services/fabricv4/api_routing_protocols.go | 1 - services/fabricv4/api_service_profiles.go | 1 - services/fabricv4/api_service_tokens.go | 85 +- services/fabricv4/api_statistics.go | 1 - services/fabricv4/api_stream_subscriptions.go | 844 +++ services/fabricv4/api_streams.go | 1705 +++++ services/fabricv4/client.go | 9 +- services/fabricv4/configuration.go | 1 - services/fabricv4/docs/AccessPointSelector.md | 86 +- .../fabricv4/docs/AccessPointSelectorType.md | 4 + services/fabricv4/docs/Account.md | 129 - .../fabricv4/docs/AdvanceConfiguration.md | 82 - services/fabricv4/docs/AllPortsResponse.md | 8 +- services/fabricv4/docs/Asset.md | 17 + services/fabricv4/docs/BGPConnectionIpv4.md | 30 +- services/fabricv4/docs/BGPConnectionIpv6.md | 30 +- services/fabricv4/docs/BaseConnection.md | 602 -- services/fabricv4/docs/BulkPort.md | 2 +- services/fabricv4/docs/BulkPortRequest.md | 56 + .../docs/CloudRouterAccessPointState.md | 2 +- .../fabricv4/docs/CloudRouterActionRequest.md | 26 + .../docs/CloudRouterActionResponse.md | 78 + .../fabricv4/docs/CloudRouterActionState.md | 2 +- .../fabricv4/docs/CloudRouterActionType.md | 4 + .../CloudRouterActionsSearchExpression.md | 108 + .../docs/CloudRouterActionsSearchFilter.md | 134 + .../docs/CloudRouterActionsSearchFilters.md | 56 + .../docs/CloudRouterActionsSearchOrFilter.md | 56 + .../docs/CloudRouterActionsSearchRequest.md | 108 + .../docs/CloudRouterActionsSearchResponse.md | 82 + .../docs/CloudRouterActionsSearchSortBy.md | 17 + .../CloudRouterActionsSearchSortCriteria.md | 82 + .../CloudRouterActionsSearchSortDirection.md | 13 + .../docs/CloudRouterChangeOperation.md | 10 +- services/fabricv4/docs/CloudRoutersApi.md | 299 +- services/fabricv4/docs/Connection.md | 42 +- .../fabricv4/docs/ConnectionActionRequest.md | 2 +- services/fabricv4/docs/ConnectionResponse.md | 8 +- .../docs/ConnectionRouteEntryFilter.md | 134 + .../docs/ConnectionRouteEntryFilters.md | 56 + .../docs/ConnectionRouteEntryOrFilter.md | 56 + .../ConnectionRouteEntrySimpleExpression.md | 108 + .../docs/ConnectionRouteEntrySortBy.md | 23 + ...d => ConnectionRouteEntrySortDirection.md} | 6 +- .../docs/ConnectionRouteSearchRequest.md | 108 + .../docs/ConnectionRouteSortCriteria.md | 82 + .../docs/ConnectionRouteTableEntry.md | 301 + ...=> ConnectionRouteTableEntryConnection.md} | 30 +- ...ConnectionRouteTableEntrySearchResponse.md | 82 + .../docs/ConnectionRouteTableEntryState.md | 13 + .../docs/GetAllStreamAssetResponse.md | 82 + .../fabricv4/docs/GetAllStreamResponse.md | 82 + .../docs/GetAllStreamSubscriptionResponse.md | 82 + .../docs/GetSubscriptionsInStreamResponse.md | 82 + services/fabricv4/docs/Ipv4.md | 25 +- services/fabricv4/docs/LinkProtocol.md | 427 -- services/fabricv4/docs/LinkProtocolDot1q.md | 155 - .../fabricv4/docs/LinkProtocolEvpnVxlan.md | 98 - .../docs/LinkProtocolIpv4Ipv6Config.md | 108 - services/fabricv4/docs/LinkProtocolQinq.md | 218 - .../fabricv4/docs/LinkProtocolUntagged.md | 108 - services/fabricv4/docs/Md5.md | 52 +- .../fabricv4/docs/NetworkChangeOperation.md | 10 +- services/fabricv4/docs/NetworksApi.md | 2 +- services/fabricv4/docs/Operation.md | 82 + .../docs/{LinkProtocolVxlan.md => Package.md} | 65 +- services/fabricv4/docs/PackageCode.md | 15 + ...tResponseServiceType.md => PackageType.md} | 2 +- services/fabricv4/docs/PhysicalPort.md | 130 +- .../fabricv4/docs/PhysicalPortSettings.md | 82 + services/fabricv4/docs/Port.md | 232 +- ...ortResponseBmmrType.md => PortBmmrType.md} | 2 +- ...eType.md => PortConnectivitySourceType.md} | 2 +- services/fabricv4/docs/PortInterface.md | 52 - services/fabricv4/docs/PortOperation.md | 86 +- .../docs/PortOperationOperationalStatus.md | 2 + services/fabricv4/docs/PortOrder.md | 2 +- .../fabricv4/docs/PortOrderPurchaseOrder.md | 26 + .../docs/PortOrderPurchaseOrderType.md | 17 + ...lPortsType.md => PortPhysicalPortsType.md} | 2 +- .../docs/{PortResponse.md => PortRequest.md} | 484 +- services/fabricv4/docs/PortServiceType.md | 13 + services/fabricv4/docs/PortSettings.md | 52 - .../fabricv4/docs/PortSettingsPackageType.md | 4 +- services/fabricv4/docs/PortsApi.md | 30 +- services/fabricv4/docs/PrecisionTimeApi.md | 111 +- .../docs/PrecisionTimeChangeOperationOp.md | 4 + .../docs/PrecisionTimeChangeOperationPath.md | 6 + services/fabricv4/docs/PrecisionTimeOrder.md | 108 + .../docs/PrecisionTimePackageRequest.md | 36 +- .../docs/PrecisionTimePackageRequestCode.md | 17 + .../docs/PrecisionTimePackageResponse.md | 138 +- .../PrecisionTimeServiceCreateResponse.md | 312 - .../docs/PrecisionTimeServiceRequest.md | 116 +- .../docs/PrecisionTimeServiceResponse.md | 224 +- ...d => PrecisionTimeServiceResponseState.md} | 24 +- ...md => PrecisionTimeServiceResponseType.md} | 2 +- services/fabricv4/docs/Project.md | 9 +- .../fabricv4/docs/PtpAdvanceConfiguration.md | 30 +- ...AdvanceConfigurationLogAnnounceInterval.md | 19 + ...AdvanceConfigurationLogDelayReqInterval.md | 23 + .../PtpAdvanceConfigurationLogSyncInterval.md | 23 + .../PtpAdvanceConfigurationTransportMode.md | 6 +- services/fabricv4/docs/RouteFiltersApi.md | 2 +- services/fabricv4/docs/RouteTableEntry.md | 42 +- .../fabricv4/docs/RouterActionsConnection.md | 56 + services/fabricv4/docs/ServiceToken.md | 35 +- .../docs/ServiceTokenChangeOperation.md | 10 +- .../fabricv4/docs/ServiceTokenConnection.md | 26 + .../docs/ServiceTokenConnectionType.md | 6 + .../fabricv4/docs/ServiceTokenIssuerSide.md | 13 + services/fabricv4/docs/ServiceTokenType.md | 2 + services/fabricv4/docs/ServiceTokensApi.md | 20 +- .../docs/SimplifiedAccountPortResponse.md | 342 - .../fabricv4/docs/SimplifiedMetadataEntity.md | 182 + services/fabricv4/docs/SimplifiedPort.md | 84 +- .../fabricv4/docs/SimplifiedTokenNetwork.md | 186 + ...onOp.md => SimplifiedTokenNetworkScope.md} | 8 +- .../docs/SimplifiedTokenNetworkType.md | 15 + .../fabricv4/docs/SimplifiedVirtualDevice.md | 160 + .../docs/SimplifiedVirtualDeviceType.md | 11 + services/fabricv4/docs/Stream.md | 316 + services/fabricv4/docs/StreamAsset.md | 134 + .../docs/StreamAssetAttachmentStatus.md | 19 + services/fabricv4/docs/StreamAssetFilter.md | 134 + services/fabricv4/docs/StreamAssetFilters.md | 56 + services/fabricv4/docs/StreamAssetOrFilter.md | 56 + .../fabricv4/docs/StreamAssetPutRequest.md | 56 + .../fabricv4/docs/StreamAssetSearchRequest.md | 108 + .../docs/StreamAssetSimpleExpression.md | 108 + services/fabricv4/docs/StreamAssetSortBy.md | 11 + .../fabricv4/docs/StreamAssetSortCriteria.md | 82 + .../fabricv4/docs/StreamAssetSortDirection.md | 13 + services/fabricv4/docs/StreamFilter.md | 134 + .../fabricv4/docs/StreamFilterOrFilter.md | 56 + .../docs/StreamFilterSimpleExpression.md | 108 + .../fabricv4/docs/StreamGetSubscriptions.md | 108 + .../docs/StreamGetSubscriptionsType.md | 11 + services/fabricv4/docs/StreamPostRequest.md | 160 + .../fabricv4/docs/StreamPostRequestType.md | 11 + services/fabricv4/docs/StreamPutRequest.md | 108 + services/fabricv4/docs/StreamSubscription.md | 342 + .../fabricv4/docs/StreamSubscriptionFilter.md | 56 + .../docs/StreamSubscriptionPostRequest.md | 238 + .../docs/StreamSubscriptionPostRequestType.md | 11 + .../docs/StreamSubscriptionPutRequest.md | 186 + .../fabricv4/docs/StreamSubscriptionSink.md | 212 + .../docs/StreamSubscriptionSinkCredential.md | 134 + .../StreamSubscriptionSinkCredentialType.md | 15 + .../docs/StreamSubscriptionSinkSetting.md | 134 + .../docs/StreamSubscriptionSinkType.md | 21 + .../fabricv4/docs/StreamSubscriptionState.md | 19 + .../fabricv4/docs/StreamSubscriptionType.md | 11 + .../fabricv4/docs/StreamSubscriptionsApi.md | 359 + services/fabricv4/docs/StreamTarget.md | 56 + services/fabricv4/docs/StreamsApi.md | 738 ++ services/fabricv4/docs/SubscriptionAsset.md | 10 +- .../docs/SubscriptionEntitlementResponse.md | 6 +- .../fabricv4/docs/SubscriptionResponse.md | 51 +- ...criptionStatus.md => SubscriptionState.md} | 2 +- services/fabricv4/docs/SubscriptionTrial.md | 4 +- .../docs/ValidateConnectionResponse.md | 160 + .../fabricv4/docs/VirtualConnectionSide.md | 56 + .../VirtualConnectionTimeServiceResponse.md | 145 + ...ectionUuid.md => VirtualConnectionUuid.md} | 76 +- .../fabricv4/docs/VirtualDeviceInterface.md | 108 + .../docs/VirtualDeviceInterfaceType.md | 11 + services/fabricv4/model_access_point.go | 1 - .../fabricv4/model_access_point_selector.go | 124 +- .../model_access_point_selector_type.go | 7 +- services/fabricv4/model_access_point_type.go | 1 - services/fabricv4/model_account.go | 275 - services/fabricv4/model_actions.go | 1 - services/fabricv4/model_add_operation.go | 1 - .../fabricv4/model_advance_configuration.go | 188 - .../model_all_physical_ports_response.go | 1 - services/fabricv4/model_all_ports_response.go | 13 +- services/fabricv4/model_api_config.go | 1 - services/fabricv4/model_api_services.go | 1 - services/fabricv4/model_asset.go | 111 + services/fabricv4/model_authentication_key.go | 1 - .../fabricv4/model_bandwidth_utilization.go | 1 - .../model_bandwidth_utilization_unit.go | 1 - services/fabricv4/model_base_connection.go | 936 --- services/fabricv4/model_bgp_action_data.go | 1 - services/fabricv4/model_bgp_action_request.go | 1 - services/fabricv4/model_bgp_action_states.go | 1 - services/fabricv4/model_bgp_actions.go | 1 - .../fabricv4/model_bgp_actions_bulk_data.go | 1 - .../fabricv4/model_bgp_connection_ipv4.go | 45 +- .../fabricv4/model_bgp_connection_ipv6.go | 45 +- .../model_bgp_connection_operation.go | 1 - ...connection_operation_operational_status.go | 1 - services/fabricv4/model_bulk_physical_port.go | 1 - services/fabricv4/model_bulk_port.go | 4 +- services/fabricv4/model_bulk_port_request.go | 150 + services/fabricv4/model_change.go | 1 - services/fabricv4/model_change_status.go | 1 - services/fabricv4/model_change_type.go | 1 - services/fabricv4/model_changelog.go | 1 - services/fabricv4/model_cloud_router.go | 1 - .../model_cloud_router_access_point_state.go | 5 +- .../model_cloud_router_action_request.go | 40 +- .../model_cloud_router_action_response.go | 122 +- .../model_cloud_router_action_state.go | 9 +- .../model_cloud_router_action_type.go | 9 +- ..._cloud_router_actions_search_expression.go | 226 + ...odel_cloud_router_actions_search_filter.go | 100 + ...del_cloud_router_actions_search_filters.go | 150 + ...l_cloud_router_actions_search_or_filter.go | 150 + ...del_cloud_router_actions_search_request.go | 224 + ...el_cloud_router_actions_search_response.go | 188 + ...del_cloud_router_actions_search_sort_by.go | 111 + ...oud_router_actions_search_sort_criteria.go | 195 + ...ud_router_actions_search_sort_direction.go | 107 + .../fabricv4/model_cloud_router_change.go | 1 - .../model_cloud_router_change_operation.go | 13 +- .../model_cloud_router_change_status.go | 1 - .../model_cloud_router_change_type.go | 1 - .../fabricv4/model_cloud_router_filter.go | 1 - .../fabricv4/model_cloud_router_filters.go | 1 - .../fabricv4/model_cloud_router_or_filter.go | 1 - .../fabricv4/model_cloud_router_package.go | 1 - .../model_cloud_router_package_nat_type.go | 1 - .../model_cloud_router_package_type.go | 1 - .../model_cloud_router_post_request.go | 1 - ...model_cloud_router_post_request_package.go | 1 - ..._cloud_router_post_request_package_code.go | 1 - ..._cloud_router_post_request_package_type.go | 1 - .../model_cloud_router_post_request_type.go | 1 - .../model_cloud_router_search_request.go | 1 - .../model_cloud_router_simple_expression.go | 1 - .../fabricv4/model_cloud_router_sort_by.go | 1 - .../model_cloud_router_sort_criteria.go | 1 - .../model_cloud_router_sort_direction.go | 1 - services/fabricv4/model_code.go | 1 - services/fabricv4/model_connected_metro.go | 1 - services/fabricv4/model_connection.go | 57 +- .../model_connection_acceptance_data.go | 1 - services/fabricv4/model_connection_action.go | 1 - .../model_connection_action_request.go | 3 +- .../model_connection_change_operation.go | 1 - .../model_connection_company_profile.go | 1 - .../fabricv4/model_connection_direction.go | 1 - .../fabricv4/model_connection_invitation.go | 1 - services/fabricv4/model_connection_link.go | 1 - .../fabricv4/model_connection_link_type.go | 1 - .../fabricv4/model_connection_operation.go | 1 - ...connection_operation_operational_status.go | 1 - .../fabricv4/model_connection_post_request.go | 1 - .../fabricv4/model_connection_priority.go | 1 - .../fabricv4/model_connection_redundancy.go | 1 - .../fabricv4/model_connection_response.go | 13 +- .../model_connection_route_entry_filter.go | 100 + .../model_connection_route_entry_filters.go | 150 + .../model_connection_route_entry_or_filter.go | 150 + ...onnection_route_entry_simple_expression.go | 226 + .../model_connection_route_entry_sort_by.go | 117 + ...l_connection_route_entry_sort_direction.go | 107 + .../model_connection_route_filter_data.go | 1 - ...ion_route_filter_data_attachment_status.go | 1 - ..._connection_route_filter_data_direction.go | 1 - ...model_connection_route_filter_data_type.go | 1 - .../model_connection_route_filters_base.go | 1 - ...connection_route_filters_base_direction.go | 1 - .../model_connection_route_search_request.go | 224 + .../model_connection_route_sort_criteria.go | 195 + .../model_connection_route_table_entry.go | 517 ++ ...onnection_route_table_entry_connection.go} | 71 +- ...ction_route_table_entry_search_response.go | 188 + ...odel_connection_route_table_entry_state.go | 107 + ...onnection_routing_protocol_post_request.go | 1 - .../model_connection_search_response.go | 1 - services/fabricv4/model_connection_side.go | 1 - .../model_connection_side_additional_info.go | 1 - services/fabricv4/model_connection_state.go | 1 - services/fabricv4/model_connection_type.go | 1 - .../fabricv4/model_connectivity_source.go | 1 - .../model_connectivity_source_type.go | 1 - services/fabricv4/model_custom_field.go | 1 - .../fabricv4/model_custom_field_data_type.go | 1 - .../fabricv4/model_direct_connection_ipv4.go | 1 - .../fabricv4/model_direct_connection_ipv6.go | 1 - services/fabricv4/model_direction.go | 1 - services/fabricv4/model_duration.go | 1 - services/fabricv4/model_equinix_status.go | 1 - services/fabricv4/model_error.go | 1 - services/fabricv4/model_expression.go | 1 - .../fabricv4/model_expression_operator.go | 1 - .../model_fabric_cloud_router_code.go | 1 - .../model_fabric_cloud_router_packages.go | 1 - .../model_fabric_cloud_router_price.go | 1 - services/fabricv4/model_filter_body.go | 1 - services/fabricv4/model_geo_coordinates.go | 1 - services/fabricv4/model_geo_scope_type.go | 1 - ...t_all_connection_route_filters_response.go | 1 - .../model_get_all_stream_asset_response.go | 188 + .../fabricv4/model_get_all_stream_response.go | 188 + ...el_get_all_stream_subscription_response.go | 188 + services/fabricv4/model_get_response.go | 1 - ...t_route_filter_get_connections_response.go | 1 - .../model_get_route_filter_rules_response.go | 1 - ...t_service_profiles_view_point_parameter.go | 1 - ...el_get_subscriptions_in_stream_response.go | 188 + ..._package_by_code_package_code_parameter.go | 1 - services/fabricv4/model_health_response.go | 1 - services/fabricv4/model_interface.go | 1 - services/fabricv4/model_interface_type.go | 1 - services/fabricv4/model_internet_access.go | 1 - services/fabricv4/model_ip_block_price.go | 1 - services/fabricv4/model_ip_block_type.go | 1 - services/fabricv4/model_ipv4.go | 130 +- .../fabricv4/model_json_patch_operation.go | 1 - services/fabricv4/model_link.go | 1 - .../fabricv4/model_link_aggregation_group.go | 1 - services/fabricv4/model_link_protocol.go | 233 - .../model_link_protocol_connection.go | 1 - .../fabricv4/model_link_protocol_dot1q.go | 316 - .../model_link_protocol_evpn_vxlan.go | 232 - .../model_link_protocol_get_response.go | 1 - .../model_link_protocol_ipv4_ipv6_config.go | 228 - services/fabricv4/model_link_protocol_qinq.go | 406 - .../model_link_protocol_request_type.go | 1 - .../fabricv4/model_link_protocol_response.go | 1 - .../model_link_protocol_service_token.go | 1 - .../fabricv4/model_link_protocol_state.go | 1 - services/fabricv4/model_link_protocol_type.go | 1 - .../fabricv4/model_link_protocol_untagged.go | 225 - .../fabricv4/model_link_protocol_vxlan.go | 202 - services/fabricv4/model_marketing_info.go | 1 - .../model_marketplace_subscription.go | 1 - .../model_marketplace_subscription_type.go | 1 - services/fabricv4/model_md5.go | 77 +- services/fabricv4/model_md5_type.go | 1 - .../fabricv4/model_metal_interconnection.go | 1 - services/fabricv4/model_metric_interval.go | 1 - services/fabricv4/model_metrics.go | 1 - services/fabricv4/model_metro.go | 1 - services/fabricv4/model_metro_error.go | 1 - .../fabricv4/model_metro_error_error_code.go | 1 - .../model_metro_error_error_message.go | 1 - services/fabricv4/model_metro_response.go | 1 - services/fabricv4/model_network.go | 1 - services/fabricv4/model_network_change.go | 1 - .../model_network_change_operation.go | 13 +- .../fabricv4/model_network_change_response.go | 1 - .../fabricv4/model_network_change_status.go | 1 - .../fabricv4/model_network_change_type.go | 1 - .../fabricv4/model_network_connections.go | 1 - .../fabricv4/model_network_equinix_status.go | 1 - services/fabricv4/model_network_filter.go | 1 - .../fabricv4/model_network_filter_operator.go | 1 - services/fabricv4/model_network_operation.go | 1 - .../fabricv4/model_network_post_request.go | 1 - services/fabricv4/model_network_scope.go | 1 - .../model_network_search_field_name.go | 1 - .../fabricv4/model_network_search_request.go | 1 - .../fabricv4/model_network_search_response.go | 1 - services/fabricv4/model_network_sort_by.go | 1 - .../model_network_sort_by_response.go | 1 - .../fabricv4/model_network_sort_criteria.go | 1 - .../model_network_sort_criteria_response.go | 1 - .../fabricv4/model_network_sort_direction.go | 1 - .../model_network_sort_direction_response.go | 1 - services/fabricv4/model_network_state.go | 1 - services/fabricv4/model_network_type.go | 1 - services/fabricv4/model_op_enum.go | 1 - services/fabricv4/model_operation.go | 189 + services/fabricv4/model_order.go | 1 - services/fabricv4/model_package.go | 187 + services/fabricv4/model_package_change_log.go | 1 - services/fabricv4/model_package_code.go | 109 + services/fabricv4/model_package_response.go | 1 - services/fabricv4/model_package_type.go | 107 + services/fabricv4/model_pagination.go | 1 - services/fabricv4/model_pagination_request.go | 1 - services/fabricv4/model_peering_type.go | 1 - services/fabricv4/model_physical_port.go | 197 +- .../fabricv4/model_physical_port_settings.go | 191 + services/fabricv4/model_physical_port_type.go | 1 - services/fabricv4/model_port.go | 559 +- .../fabricv4/model_port_additional_info.go | 1 - services/fabricv4/model_port_bmmr_type.go | 107 + .../model_port_connectivity_source_type.go | 109 + .../fabricv4/model_port_demarcation_point.go | 1 - services/fabricv4/model_port_device.go | 1 - .../fabricv4/model_port_device_redundancy.go | 1 - .../model_port_device_redundancy_priority.go | 1 - services/fabricv4/model_port_encapsulation.go | 1 - .../fabricv4/model_port_encapsulation_type.go | 1 - services/fabricv4/model_port_expression.go | 1 - services/fabricv4/model_port_interface.go | 79 +- services/fabricv4/model_port_lag.go | 5 +- services/fabricv4/model_port_loa.go | 1 - services/fabricv4/model_port_loa_type.go | 1 - services/fabricv4/model_port_notification.go | 1 - .../fabricv4/model_port_notification_type.go | 1 - services/fabricv4/model_port_operation.go | 127 +- ...model_port_operation_operational_status.go | 7 +- services/fabricv4/model_port_order.go | 3 +- .../model_port_order_purchase_order.go | 50 +- ...ort_order_purchase_order_selection_type.go | 1 - .../model_port_order_purchase_order_type.go | 111 + .../fabricv4/model_port_order_signature.go | 1 - .../model_port_order_signature_delegate.go | 1 - .../model_port_order_signature_signatory.go | 1 - .../model_port_physical_ports_type.go | 113 + services/fabricv4/model_port_priority.go | 1 - services/fabricv4/model_port_redundancy.go | 5 +- ...port_response.go => model_port_request.go} | 837 +-- .../fabricv4/model_port_response_bmmr_type.go | 108 - ..._port_response_connectivity_source_type.go | 110 - ...model_port_response_physical_ports_type.go | 114 - .../model_port_response_service_type.go | 108 - .../fabricv4/model_port_search_field_name.go | 1 - services/fabricv4/model_port_service_type.go | 107 + services/fabricv4/model_port_settings.go | 112 +- .../model_port_settings_package_type.go | 7 +- ...model_port_settings_shared_port_product.go | 1 - services/fabricv4/model_port_sort_by.go | 1 - services/fabricv4/model_port_sort_criteria.go | 1 - .../fabricv4/model_port_sort_direction.go | 1 - services/fabricv4/model_port_state.go | 1 - services/fabricv4/model_port_tether.go | 1 - services/fabricv4/model_port_type.go | 1 - .../fabricv4/model_port_v4_search_request.go | 1 - .../model_precision_time_change_operation.go | 1 - ...odel_precision_time_change_operation_op.go | 5 +- ...el_precision_time_change_operation_path.go | 11 +- .../fabricv4/model_precision_time_order.go | 227 + .../model_precision_time_package_request.go | 52 +- ...del_precision_time_package_request_code.go | 111 + .../model_precision_time_package_response.go | 231 +- ...el_precision_time_package_response_type.go | 1 - ...ision_time_service_connections_response.go | 1 - ..._precision_time_service_create_response.go | 534 -- ...sion_time_service_create_response_state.go | 124 - ...ision_time_service_create_response_type.go | 108 - ...recision_time_service_packages_response.go | 1 - .../model_precision_time_service_request.go | 178 +- ...del_precision_time_service_request_type.go | 3 +- .../model_precision_time_service_response.go | 352 +- ...l_precision_time_service_response_state.go | 127 + ...el_precision_time_service_response_type.go | 107 + services/fabricv4/model_presence.go | 1 - services/fabricv4/model_price.go | 1 - services/fabricv4/model_price_category.go | 1 - services/fabricv4/model_price_charge.go | 1 - services/fabricv4/model_price_charge_type.go | 1 - services/fabricv4/model_price_error.go | 1 - .../model_price_error_additional_info.go | 1 - .../fabricv4/model_price_error_error_code.go | 1 - .../model_price_error_error_message.go | 1 - services/fabricv4/model_price_location.go | 1 - .../fabricv4/model_price_search_response.go | 1 - services/fabricv4/model_price_term_length.go | 1 - services/fabricv4/model_process_step.go | 1 - services/fabricv4/model_product_type.go | 1 - services/fabricv4/model_project.go | 58 +- services/fabricv4/model_provider_status.go | 1 - .../model_ptp_advance_configuration.go | 52 +- ...nce_configuration_log_announce_interval.go | 113 + ...ce_configuration_log_delay_req_interval.go | 117 + ...advance_configuration_log_sync_interval.go | 117 + ...el_ptp_advance_configuration_time_scale.go | 1 - ...tp_advance_configuration_transport_mode.go | 13 +- services/fabricv4/model_query_direction.go | 1 - services/fabricv4/model_remove_operation.go | 1 - services/fabricv4/model_replace_operation.go | 1 - .../model_route_filter_change_data.go | 1 - ...model_route_filter_change_data_response.go | 1 - .../model_route_filter_connections_data.go | 1 - .../fabricv4/model_route_filter_rule_state.go | 1 - .../fabricv4/model_route_filter_rules_base.go | 1 - .../model_route_filter_rules_change.go | 1 - .../model_route_filter_rules_change_data.go | 1 - ...route_filter_rules_change_data_response.go | 1 - ...del_route_filter_rules_change_operation.go | 1 - .../model_route_filter_rules_change_type.go | 1 - .../fabricv4/model_route_filter_rules_data.go | 1 - .../model_route_filter_rules_data_action.go | 1 - .../model_route_filter_rules_data_type.go | 1 - ...l_route_filter_rules_patch_request_item.go | 1 - .../model_route_filter_rules_post_request.go | 1 - services/fabricv4/model_route_filter_state.go | 1 - services/fabricv4/model_route_filters_base.go | 1 - .../fabricv4/model_route_filters_change.go | 1 - .../model_route_filters_change_operation.go | 1 - .../model_route_filters_change_type.go | 1 - services/fabricv4/model_route_filters_data.go | 1 - ...te_filters_data_not_matched_rule_action.go | 1 - .../model_route_filters_data_project.go | 1 - .../model_route_filters_patch_request_item.go | 1 - .../model_route_filters_search_base.go | 1 - .../model_route_filters_search_base_filter.go | 1 - .../model_route_filters_search_filter_item.go | 1 - ...ute_filters_search_filter_item_property.go | 1 - .../model_route_filters_search_response.go | 1 - services/fabricv4/model_route_table_entry.go | 77 +- .../model_route_table_entry_filter.go | 1 - .../model_route_table_entry_filters.go | 1 - .../model_route_table_entry_or_filter.go | 1 - .../model_route_table_entry_protocol_type.go | 1 - .../model_route_table_entry_search_request.go | 1 - ...model_route_table_entry_search_response.go | 1 - ...del_route_table_entry_simple_expression.go | 1 - .../model_route_table_entry_sort_by.go | 1 - .../model_route_table_entry_sort_criteria.go | 1 - .../model_route_table_entry_sort_direction.go | 1 - .../fabricv4/model_route_table_entry_state.go | 1 - .../fabricv4/model_route_table_entry_type.go | 1 - .../model_router_actions_connection.go | 151 + .../fabricv4/model_router_package_code.go | 1 - .../fabricv4/model_routing_protocol_base.go | 1 - .../fabricv4/model_routing_protocol_bfd.go | 1 - .../model_routing_protocol_bgp_data.go | 1 - .../model_routing_protocol_bgp_data_state.go | 1 - .../model_routing_protocol_bgp_type.go | 1 - .../model_routing_protocol_bgp_type_type.go | 1 - .../fabricv4/model_routing_protocol_change.go | 1 - .../model_routing_protocol_change_data.go | 1 - ...l_routing_protocol_change_data_response.go | 1 - ...model_routing_protocol_change_operation.go | 1 - ...el_routing_protocol_change_operation_op.go | 1 - .../model_routing_protocol_change_type.go | 1 - .../fabricv4/model_routing_protocol_data.go | 1 - .../model_routing_protocol_direct_data.go | 1 - .../model_routing_protocol_direct_type.go | 1 - ...model_routing_protocol_direct_type_type.go | 1 - .../model_routing_protocol_operation.go | 1 - services/fabricv4/model_search_expression.go | 1 - services/fabricv4/model_search_field_name.go | 1 - services/fabricv4/model_search_request.go | 1 - services/fabricv4/model_search_response.go | 1 - services/fabricv4/model_service_metro.go | 1 - services/fabricv4/model_service_metros.go | 1 - services/fabricv4/model_service_profile.go | 1 - ...model_service_profile_access_point_colo.go | 1 - ..._service_profile_access_point_colo_type.go | 1 - ...model_service_profile_access_point_type.go | 1 - ..._service_profile_access_point_type_colo.go | 1 - ..._service_profile_access_point_type_enum.go | 1 - ...el_service_profile_access_point_type_vd.go | 1 - .../model_service_profile_access_point_vd.go | 1 - ...el_service_profile_access_point_vd_type.go | 1 - .../model_service_profile_and_filter.go | 1 - .../fabricv4/model_service_profile_filter.go | 1 - ...el_service_profile_link_protocol_config.go | 1 - ...file_link_protocol_config_encapsulation.go | 1 - ..._protocol_config_encapsulation_strategy.go | 1 - .../model_service_profile_metadata.go | 1 - .../fabricv4/model_service_profile_request.go | 1 - .../model_service_profile_search_request.go | 1 - ...model_service_profile_simple_expression.go | 1 - .../fabricv4/model_service_profile_sort_by.go | 1 - .../model_service_profile_sort_criteria.go | 1 - .../model_service_profile_sort_direction.go | 1 - .../model_service_profile_state_enum.go | 1 - .../model_service_profile_type_enum.go | 1 - .../model_service_profile_visibility_enum.go | 1 - services/fabricv4/model_service_profiles.go | 1 - .../fabricv4/model_service_search_response.go | 1 - services/fabricv4/model_service_token.go | 95 +- .../model_service_token_action_request.go | 1 - .../fabricv4/model_service_token_actions.go | 1 - .../model_service_token_change_operation.go | 13 +- ...model_service_token_change_operation_op.go | 110 - .../model_service_token_connection.go | 43 +- .../model_service_token_connection_type.go | 9 +- .../model_service_token_issuer_side.go | 107 + .../model_service_token_search_expression.go | 1 - ...ervice_token_search_expression_operator.go | 1 - .../model_service_token_search_field_name.go | 1 - .../model_service_token_search_request.go | 1 - services/fabricv4/model_service_token_side.go | 3 +- .../fabricv4/model_service_token_state.go | 1 - services/fabricv4/model_service_token_type.go | 5 +- services/fabricv4/model_service_tokens.go | 1 - services/fabricv4/model_simplified_account.go | 1 - .../model_simplified_account_port_response.go | 570 -- .../model_simplified_link_protocol.go | 1 - .../fabricv4/model_simplified_location.go | 13 +- .../model_simplified_location_without_ibx.go | 1 - .../model_simplified_metadata_entity.go | 268 +- services/fabricv4/model_simplified_network.go | 1 - .../model_simplified_network_change.go | 1 - .../fabricv4/model_simplified_notification.go | 1 - .../model_simplified_notification_type.go | 1 - services/fabricv4/model_simplified_port.go | 138 +- .../model_simplified_service_profile.go | 1 - .../model_simplified_token_network.go | 338 + .../model_simplified_token_network_scope.go | 109 + .../model_simplified_token_network_type.go | 109 + .../model_simplified_virtual_device.go | 302 + .../model_simplified_virtual_device_type.go | 105 + services/fabricv4/model_sort.go | 1 - services/fabricv4/model_sort_by.go | 1 - services/fabricv4/model_sort_criteria.go | 1 - .../fabricv4/model_sort_criteria_response.go | 1 - services/fabricv4/model_sort_direction.go | 1 - services/fabricv4/model_sort_item.go | 1 - .../fabricv4/model_sort_item_direction.go | 1 - services/fabricv4/model_sort_item_property.go | 1 - services/fabricv4/model_statistics.go | 1 - .../fabricv4/model_statistics_view_point.go | 1 - services/fabricv4/model_stream.go | 528 ++ services/fabricv4/model_stream_asset.go | 264 + .../model_stream_asset_attachment_status.go | 113 + .../fabricv4/model_stream_asset_filter.go | 100 + .../fabricv4/model_stream_asset_filters.go | 150 + .../fabricv4/model_stream_asset_or_filter.go | 150 + .../model_stream_asset_put_request.go | 151 + .../model_stream_asset_search_request.go | 224 + .../model_stream_asset_simple_expression.go | 226 + .../fabricv4/model_stream_asset_sort_by.go | 105 + .../model_stream_asset_sort_criteria.go | 195 + .../model_stream_asset_sort_direction.go | 107 + services/fabricv4/model_stream_filter.go | 100 + .../fabricv4/model_stream_filter_or_filter.go | 150 + .../model_stream_filter_simple_expression.go | 226 + .../model_stream_get_subscriptions.go | 226 + .../model_stream_get_subscriptions_type.go | 105 + .../fabricv4/model_stream_post_request.go | 301 + .../model_stream_post_request_type.go | 105 + services/fabricv4/model_stream_put_request.go | 227 + .../fabricv4/model_stream_subscription.go | 562 ++ .../model_stream_subscription_filter.go | 150 + .../model_stream_subscription_post_request.go | 412 + ...l_stream_subscription_post_request_type.go | 105 + .../model_stream_subscription_put_request.go | 338 + .../model_stream_subscription_sink.go | 376 + ...del_stream_subscription_sink_credential.go | 264 + ...tream_subscription_sink_credential_type.go | 109 + .../model_stream_subscription_sink_setting.go | 265 + .../model_stream_subscription_sink_type.go | 115 + .../model_stream_subscription_state.go | 113 + .../model_stream_subscription_type.go | 105 + services/fabricv4/model_stream_target.go | 151 + services/fabricv4/model_sub_interface.go | 1 - services/fabricv4/model_subscription_asset.go | 19 +- .../fabricv4/model_subscription_asset_type.go | 108 - ...model_subscription_entitlement_response.go | 10 +- .../fabricv4/model_subscription_response.go | 152 +- ...model_subscription_response_marketplace.go | 3 +- .../model_subscription_response_offer_type.go | 3 +- .../model_subscription_router_package_type.go | 1 - ...l_subscription_router_package_type_code.go | 1 - services/fabricv4/model_subscription_state.go | 111 + .../fabricv4/model_subscription_status.go | 112 - services/fabricv4/model_subscription_trial.go | 7 +- .../fabricv4/model_time_service_filter.go | 1 - .../fabricv4/model_time_service_filters.go | 1 - .../fabricv4/model_time_service_or_filter.go | 1 - .../model_time_service_simple_expression.go | 1 - .../fabricv4/model_time_service_sort_by.go | 1 - .../model_time_service_sort_criteria.go | 1 - .../model_time_service_sort_direction.go | 1 - .../model_time_services_search_request.go | 1 - .../fabricv4/model_top_utilized_statistics.go | 1 - .../model_validate_connection_response.go | 300 + services/fabricv4/model_validate_request.go | 1 - .../fabricv4/model_validate_request_filter.go | 1 - .../model_validate_request_filter_and.go | 1 - .../model_validate_subnet_response.go | 1 - services/fabricv4/model_view_point.go | 1 - ..._virtual_connection_bridge_package_code.go | 1 - .../model_virtual_connection_price.go | 1 - .../model_virtual_connection_price_a_side.go | 1 - ...al_connection_price_a_side_access_point.go | 1 - ...nnection_price_a_side_access_point_port.go | 1 - ...price_a_side_access_point_port_settings.go | 1 - ...tual_connection_price_access_point_type.go | 1 - ...irtual_connection_price_connection_type.go | 1 - .../model_virtual_connection_price_z_side.go | 1 - ...al_connection_price_z_side_access_point.go | 1 - ...ection_price_z_side_access_point_bridge.go | 1 - ...rice_z_side_access_point_bridge_package.go | 1 - ...ction_price_z_side_access_point_profile.go | 1 - .../fabricv4/model_virtual_connection_side.go | 150 + ...irtual_connection_time_service_response.go | 298 + ...id.go => model_virtual_connection_uuid.go} | 136 +- services/fabricv4/model_virtual_device.go | 1 - .../model_virtual_device_interface.go | 226 + .../model_virtual_device_interface_type.go | 105 + .../fabricv4/model_virtual_device_type.go | 1 - services/fabricv4/model_virtual_network.go | 1 - .../model_virtual_port_configuration.go | 1 - .../fabricv4/model_virtual_port_location.go | 1 - services/fabricv4/model_virtual_port_price.go | 1 - .../fabricv4/model_virtual_port_redundancy.go | 1 - .../model_virtual_port_service_type.go | 1 - services/fabricv4/model_virtual_port_type.go | 1 - services/fabricv4/model_vpic_interface.go | 1 - services/fabricv4/response.go | 1 - .../fabricv4/test/api_cloud_routers_test.go | 49 + .../fabricv4/test/api_precision_time_test.go | 12 + .../fabricv4/test/api_service_tokens_test.go | 3 +- .../test/api_stream_subscriptions_test.go | 80 + services/fabricv4/test/api_streams_test.go | 144 + services/fabricv4/utils.go | 1 - .../fabricv4/oas3.fetched/swagger.yaml | 6602 ++++++++++++---- .../fabricv4/oas3.patched/swagger.yaml | 6627 +++++++++++++---- 714 files changed, 42866 insertions(+), 14365 deletions(-) create mode 100644 services/fabricv4/api_stream_subscriptions.go create mode 100644 services/fabricv4/api_streams.go delete mode 100644 services/fabricv4/docs/Account.md delete mode 100644 services/fabricv4/docs/AdvanceConfiguration.md create mode 100644 services/fabricv4/docs/Asset.md delete mode 100644 services/fabricv4/docs/BaseConnection.md create mode 100644 services/fabricv4/docs/BulkPortRequest.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchExpression.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchFilter.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchFilters.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchOrFilter.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchRequest.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchResponse.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchSortBy.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchSortCriteria.md create mode 100644 services/fabricv4/docs/CloudRouterActionsSearchSortDirection.md create mode 100644 services/fabricv4/docs/ConnectionRouteEntryFilter.md create mode 100644 services/fabricv4/docs/ConnectionRouteEntryFilters.md create mode 100644 services/fabricv4/docs/ConnectionRouteEntryOrFilter.md create mode 100644 services/fabricv4/docs/ConnectionRouteEntrySimpleExpression.md create mode 100644 services/fabricv4/docs/ConnectionRouteEntrySortBy.md rename services/fabricv4/docs/{SubscriptionAssetType.md => ConnectionRouteEntrySortDirection.md} (66%) create mode 100644 services/fabricv4/docs/ConnectionRouteSearchRequest.md create mode 100644 services/fabricv4/docs/ConnectionRouteSortCriteria.md create mode 100644 services/fabricv4/docs/ConnectionRouteTableEntry.md rename services/fabricv4/docs/{RouteTableEntryConnection.md => ConnectionRouteTableEntryConnection.md} (57%) create mode 100644 services/fabricv4/docs/ConnectionRouteTableEntrySearchResponse.md create mode 100644 services/fabricv4/docs/ConnectionRouteTableEntryState.md create mode 100644 services/fabricv4/docs/GetAllStreamAssetResponse.md create mode 100644 services/fabricv4/docs/GetAllStreamResponse.md create mode 100644 services/fabricv4/docs/GetAllStreamSubscriptionResponse.md create mode 100644 services/fabricv4/docs/GetSubscriptionsInStreamResponse.md delete mode 100644 services/fabricv4/docs/LinkProtocol.md delete mode 100644 services/fabricv4/docs/LinkProtocolDot1q.md delete mode 100644 services/fabricv4/docs/LinkProtocolEvpnVxlan.md delete mode 100644 services/fabricv4/docs/LinkProtocolIpv4Ipv6Config.md delete mode 100644 services/fabricv4/docs/LinkProtocolQinq.md delete mode 100644 services/fabricv4/docs/LinkProtocolUntagged.md create mode 100644 services/fabricv4/docs/Operation.md rename services/fabricv4/docs/{LinkProtocolVxlan.md => Package.md} (50%) create mode 100644 services/fabricv4/docs/PackageCode.md rename services/fabricv4/docs/{PortResponseServiceType.md => PackageType.md} (89%) create mode 100644 services/fabricv4/docs/PhysicalPortSettings.md rename services/fabricv4/docs/{PortResponseBmmrType.md => PortBmmrType.md} (91%) rename services/fabricv4/docs/{PortResponseConnectivitySourceType.md => PortConnectivitySourceType.md} (87%) create mode 100644 services/fabricv4/docs/PortOrderPurchaseOrderType.md rename services/fabricv4/docs/{PortResponsePhysicalPortsType.md => PortPhysicalPortsType.md} (92%) rename services/fabricv4/docs/{PortResponse.md => PortRequest.md} (62%) create mode 100644 services/fabricv4/docs/PortServiceType.md create mode 100644 services/fabricv4/docs/PrecisionTimeOrder.md create mode 100644 services/fabricv4/docs/PrecisionTimePackageRequestCode.md delete mode 100644 services/fabricv4/docs/PrecisionTimeServiceCreateResponse.md rename services/fabricv4/docs/{PrecisionTimeServiceCreateResponseState.md => PrecisionTimeServiceResponseState.md} (77%) rename services/fabricv4/docs/{PrecisionTimeServiceCreateResponseType.md => PrecisionTimeServiceResponseType.md} (84%) create mode 100644 services/fabricv4/docs/PtpAdvanceConfigurationLogAnnounceInterval.md create mode 100644 services/fabricv4/docs/PtpAdvanceConfigurationLogDelayReqInterval.md create mode 100644 services/fabricv4/docs/PtpAdvanceConfigurationLogSyncInterval.md create mode 100644 services/fabricv4/docs/RouterActionsConnection.md create mode 100644 services/fabricv4/docs/ServiceTokenIssuerSide.md delete mode 100644 services/fabricv4/docs/SimplifiedAccountPortResponse.md create mode 100644 services/fabricv4/docs/SimplifiedTokenNetwork.md rename services/fabricv4/docs/{ServiceTokenChangeOperationOp.md => SimplifiedTokenNetworkScope.md} (58%) create mode 100644 services/fabricv4/docs/SimplifiedTokenNetworkType.md create mode 100644 services/fabricv4/docs/SimplifiedVirtualDevice.md create mode 100644 services/fabricv4/docs/SimplifiedVirtualDeviceType.md create mode 100644 services/fabricv4/docs/Stream.md create mode 100644 services/fabricv4/docs/StreamAsset.md create mode 100644 services/fabricv4/docs/StreamAssetAttachmentStatus.md create mode 100644 services/fabricv4/docs/StreamAssetFilter.md create mode 100644 services/fabricv4/docs/StreamAssetFilters.md create mode 100644 services/fabricv4/docs/StreamAssetOrFilter.md create mode 100644 services/fabricv4/docs/StreamAssetPutRequest.md create mode 100644 services/fabricv4/docs/StreamAssetSearchRequest.md create mode 100644 services/fabricv4/docs/StreamAssetSimpleExpression.md create mode 100644 services/fabricv4/docs/StreamAssetSortBy.md create mode 100644 services/fabricv4/docs/StreamAssetSortCriteria.md create mode 100644 services/fabricv4/docs/StreamAssetSortDirection.md create mode 100644 services/fabricv4/docs/StreamFilter.md create mode 100644 services/fabricv4/docs/StreamFilterOrFilter.md create mode 100644 services/fabricv4/docs/StreamFilterSimpleExpression.md create mode 100644 services/fabricv4/docs/StreamGetSubscriptions.md create mode 100644 services/fabricv4/docs/StreamGetSubscriptionsType.md create mode 100644 services/fabricv4/docs/StreamPostRequest.md create mode 100644 services/fabricv4/docs/StreamPostRequestType.md create mode 100644 services/fabricv4/docs/StreamPutRequest.md create mode 100644 services/fabricv4/docs/StreamSubscription.md create mode 100644 services/fabricv4/docs/StreamSubscriptionFilter.md create mode 100644 services/fabricv4/docs/StreamSubscriptionPostRequest.md create mode 100644 services/fabricv4/docs/StreamSubscriptionPostRequestType.md create mode 100644 services/fabricv4/docs/StreamSubscriptionPutRequest.md create mode 100644 services/fabricv4/docs/StreamSubscriptionSink.md create mode 100644 services/fabricv4/docs/StreamSubscriptionSinkCredential.md create mode 100644 services/fabricv4/docs/StreamSubscriptionSinkCredentialType.md create mode 100644 services/fabricv4/docs/StreamSubscriptionSinkSetting.md create mode 100644 services/fabricv4/docs/StreamSubscriptionSinkType.md create mode 100644 services/fabricv4/docs/StreamSubscriptionState.md create mode 100644 services/fabricv4/docs/StreamSubscriptionType.md create mode 100644 services/fabricv4/docs/StreamSubscriptionsApi.md create mode 100644 services/fabricv4/docs/StreamTarget.md create mode 100644 services/fabricv4/docs/StreamsApi.md rename services/fabricv4/docs/{SubscriptionStatus.md => SubscriptionState.md} (93%) create mode 100644 services/fabricv4/docs/ValidateConnectionResponse.md create mode 100644 services/fabricv4/docs/VirtualConnectionSide.md create mode 100644 services/fabricv4/docs/VirtualConnectionTimeServiceResponse.md rename services/fabricv4/docs/{FabricConnectionUuid.md => VirtualConnectionUuid.md} (58%) create mode 100644 services/fabricv4/docs/VirtualDeviceInterface.md create mode 100644 services/fabricv4/docs/VirtualDeviceInterfaceType.md delete mode 100644 services/fabricv4/model_account.go delete mode 100644 services/fabricv4/model_advance_configuration.go create mode 100644 services/fabricv4/model_asset.go delete mode 100644 services/fabricv4/model_base_connection.go create mode 100644 services/fabricv4/model_bulk_port_request.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_expression.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_filter.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_filters.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_or_filter.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_request.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_response.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_sort_by.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_sort_criteria.go create mode 100644 services/fabricv4/model_cloud_router_actions_search_sort_direction.go create mode 100644 services/fabricv4/model_connection_route_entry_filter.go create mode 100644 services/fabricv4/model_connection_route_entry_filters.go create mode 100644 services/fabricv4/model_connection_route_entry_or_filter.go create mode 100644 services/fabricv4/model_connection_route_entry_simple_expression.go create mode 100644 services/fabricv4/model_connection_route_entry_sort_by.go create mode 100644 services/fabricv4/model_connection_route_entry_sort_direction.go create mode 100644 services/fabricv4/model_connection_route_search_request.go create mode 100644 services/fabricv4/model_connection_route_sort_criteria.go create mode 100644 services/fabricv4/model_connection_route_table_entry.go rename services/fabricv4/{model_route_table_entry_connection.go => model_connection_route_table_entry_connection.go} (50%) create mode 100644 services/fabricv4/model_connection_route_table_entry_search_response.go create mode 100644 services/fabricv4/model_connection_route_table_entry_state.go create mode 100644 services/fabricv4/model_get_all_stream_asset_response.go create mode 100644 services/fabricv4/model_get_all_stream_response.go create mode 100644 services/fabricv4/model_get_all_stream_subscription_response.go create mode 100644 services/fabricv4/model_get_subscriptions_in_stream_response.go delete mode 100644 services/fabricv4/model_link_protocol.go delete mode 100644 services/fabricv4/model_link_protocol_dot1q.go delete mode 100644 services/fabricv4/model_link_protocol_evpn_vxlan.go delete mode 100644 services/fabricv4/model_link_protocol_ipv4_ipv6_config.go delete mode 100644 services/fabricv4/model_link_protocol_qinq.go delete mode 100644 services/fabricv4/model_link_protocol_untagged.go delete mode 100644 services/fabricv4/model_link_protocol_vxlan.go create mode 100644 services/fabricv4/model_operation.go create mode 100644 services/fabricv4/model_package.go create mode 100644 services/fabricv4/model_package_code.go create mode 100644 services/fabricv4/model_package_type.go create mode 100644 services/fabricv4/model_physical_port_settings.go create mode 100644 services/fabricv4/model_port_bmmr_type.go create mode 100644 services/fabricv4/model_port_connectivity_source_type.go create mode 100644 services/fabricv4/model_port_order_purchase_order_type.go create mode 100644 services/fabricv4/model_port_physical_ports_type.go rename services/fabricv4/{model_port_response.go => model_port_request.go} (61%) delete mode 100644 services/fabricv4/model_port_response_bmmr_type.go delete mode 100644 services/fabricv4/model_port_response_connectivity_source_type.go delete mode 100644 services/fabricv4/model_port_response_physical_ports_type.go delete mode 100644 services/fabricv4/model_port_response_service_type.go create mode 100644 services/fabricv4/model_port_service_type.go create mode 100644 services/fabricv4/model_precision_time_order.go create mode 100644 services/fabricv4/model_precision_time_package_request_code.go delete mode 100644 services/fabricv4/model_precision_time_service_create_response.go delete mode 100644 services/fabricv4/model_precision_time_service_create_response_state.go delete mode 100644 services/fabricv4/model_precision_time_service_create_response_type.go create mode 100644 services/fabricv4/model_precision_time_service_response_state.go create mode 100644 services/fabricv4/model_precision_time_service_response_type.go create mode 100644 services/fabricv4/model_ptp_advance_configuration_log_announce_interval.go create mode 100644 services/fabricv4/model_ptp_advance_configuration_log_delay_req_interval.go create mode 100644 services/fabricv4/model_ptp_advance_configuration_log_sync_interval.go create mode 100644 services/fabricv4/model_router_actions_connection.go delete mode 100644 services/fabricv4/model_service_token_change_operation_op.go create mode 100644 services/fabricv4/model_service_token_issuer_side.go delete mode 100644 services/fabricv4/model_simplified_account_port_response.go create mode 100644 services/fabricv4/model_simplified_token_network.go create mode 100644 services/fabricv4/model_simplified_token_network_scope.go create mode 100644 services/fabricv4/model_simplified_token_network_type.go create mode 100644 services/fabricv4/model_simplified_virtual_device.go create mode 100644 services/fabricv4/model_simplified_virtual_device_type.go create mode 100644 services/fabricv4/model_stream.go create mode 100644 services/fabricv4/model_stream_asset.go create mode 100644 services/fabricv4/model_stream_asset_attachment_status.go create mode 100644 services/fabricv4/model_stream_asset_filter.go create mode 100644 services/fabricv4/model_stream_asset_filters.go create mode 100644 services/fabricv4/model_stream_asset_or_filter.go create mode 100644 services/fabricv4/model_stream_asset_put_request.go create mode 100644 services/fabricv4/model_stream_asset_search_request.go create mode 100644 services/fabricv4/model_stream_asset_simple_expression.go create mode 100644 services/fabricv4/model_stream_asset_sort_by.go create mode 100644 services/fabricv4/model_stream_asset_sort_criteria.go create mode 100644 services/fabricv4/model_stream_asset_sort_direction.go create mode 100644 services/fabricv4/model_stream_filter.go create mode 100644 services/fabricv4/model_stream_filter_or_filter.go create mode 100644 services/fabricv4/model_stream_filter_simple_expression.go create mode 100644 services/fabricv4/model_stream_get_subscriptions.go create mode 100644 services/fabricv4/model_stream_get_subscriptions_type.go create mode 100644 services/fabricv4/model_stream_post_request.go create mode 100644 services/fabricv4/model_stream_post_request_type.go create mode 100644 services/fabricv4/model_stream_put_request.go create mode 100644 services/fabricv4/model_stream_subscription.go create mode 100644 services/fabricv4/model_stream_subscription_filter.go create mode 100644 services/fabricv4/model_stream_subscription_post_request.go create mode 100644 services/fabricv4/model_stream_subscription_post_request_type.go create mode 100644 services/fabricv4/model_stream_subscription_put_request.go create mode 100644 services/fabricv4/model_stream_subscription_sink.go create mode 100644 services/fabricv4/model_stream_subscription_sink_credential.go create mode 100644 services/fabricv4/model_stream_subscription_sink_credential_type.go create mode 100644 services/fabricv4/model_stream_subscription_sink_setting.go create mode 100644 services/fabricv4/model_stream_subscription_sink_type.go create mode 100644 services/fabricv4/model_stream_subscription_state.go create mode 100644 services/fabricv4/model_stream_subscription_type.go create mode 100644 services/fabricv4/model_stream_target.go delete mode 100644 services/fabricv4/model_subscription_asset_type.go create mode 100644 services/fabricv4/model_subscription_state.go delete mode 100644 services/fabricv4/model_subscription_status.go create mode 100644 services/fabricv4/model_validate_connection_response.go create mode 100644 services/fabricv4/model_virtual_connection_side.go create mode 100644 services/fabricv4/model_virtual_connection_time_service_response.go rename services/fabricv4/{model_fabric_connection_uuid.go => model_virtual_connection_uuid.go} (60%) create mode 100644 services/fabricv4/model_virtual_device_interface.go create mode 100644 services/fabricv4/model_virtual_device_interface_type.go create mode 100644 services/fabricv4/test/api_stream_subscriptions_test.go create mode 100644 services/fabricv4/test/api_streams_test.go diff --git a/services/fabricv4/README.md b/services/fabricv4/README.md index 967d057f..8204875d 100644 --- a/services/fabricv4/README.md +++ b/services/fabricv4/README.md @@ -1,15 +1,15 @@ # Go API client for fabricv4 -Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to:
1. Cloud Service Providers - Clouds, network and other service providers.
2. Enterprises - Other Equinix customers, vendors and partners.
3. Myself - Another customer instance deployed at Equinix.

Integrations (SDKs, Tools) links:
Fabric Java SDK
Fabric Go SDK
Equinix Terraform Provider
Fabric Terraform Modules
Equinix Pulumi Provider
+Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to:
1. Cloud Service Providers - Clouds, network and other service providers.
2. Enterprises - Other Equinix customers, vendors and partners.
3. Myself - Another customer instance deployed at Equinix.

Integrations (SDKs, Tools) links:
Fabric Java SDK
Fabric Go SDK
Fabric Python SDK
Equinix Terraform Provider
Fabric Terraform Modules
Equinix Pulumi Provider
## 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.15 +- API version: 4.17 - Package version: 0.45.0 - Generator version: 7.4.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen -For more information, please visit [https://equinix.com/about/](https://equinix.com/about/) +For more information, please visit [https://docs.equinix.com/api-support.htm](https://docs.equinix.com/api-support.htm) ## Installation @@ -83,11 +83,15 @@ Class | Method | HTTP request | Description *CloudRoutersApi* | [**CreateCloudRouterAction**](docs/CloudRoutersApi.md#createcloudrouteraction) | **Post** /fabric/v4/routers/{routerId}/actions | Route table actions *CloudRoutersApi* | [**DeleteCloudRouterByUuid**](docs/CloudRoutersApi.md#deletecloudrouterbyuuid) | **Delete** /fabric/v4/routers/{routerId} | Delete Routers *CloudRoutersApi* | [**GetCloudRouterActions**](docs/CloudRoutersApi.md#getcloudrouteractions) | **Get** /fabric/v4/routers/{routerId}/actions | Get actions +*CloudRoutersApi* | [**GetCloudRouterActionsByUuid**](docs/CloudRoutersApi.md#getcloudrouteractionsbyuuid) | **Get** /fabric/v4/routers/{routerId}/actions/{actionId} | Get actions *CloudRoutersApi* | [**GetCloudRouterByUuid**](docs/CloudRoutersApi.md#getcloudrouterbyuuid) | **Get** /fabric/v4/routers/{routerId} | Get Routers *CloudRoutersApi* | [**GetCloudRouterPackageByCode**](docs/CloudRoutersApi.md#getcloudrouterpackagebycode) | **Get** /fabric/v4/routerPackages/{routerPackageCode} | Get Package Details *CloudRoutersApi* | [**GetCloudRouterPackages**](docs/CloudRoutersApi.md#getcloudrouterpackages) | **Get** /fabric/v4/routerPackages | List Packages *CloudRoutersApi* | [**SearchCloudRouterRoutes**](docs/CloudRoutersApi.md#searchcloudrouterroutes) | **Post** /fabric/v4/routers/{routerId}/routes/search | Search Route Table *CloudRoutersApi* | [**SearchCloudRouters**](docs/CloudRoutersApi.md#searchcloudrouters) | **Post** /fabric/v4/routers/search | Search Routers +*CloudRoutersApi* | [**SearchConnectionAdvertisedRoutes**](docs/CloudRoutersApi.md#searchconnectionadvertisedroutes) | **Post** /fabric/v4/connections/{connectionId}/advertisedRoutes/search | search advertised +*CloudRoutersApi* | [**SearchConnectionReceivedRoutes**](docs/CloudRoutersApi.md#searchconnectionreceivedroutes) | **Post** /fabric/v4/connections/{connectionId}/receivedRoutes/search | Search received +*CloudRoutersApi* | [**SearchRouterActions**](docs/CloudRoutersApi.md#searchrouteractions) | **Post** /fabric/v4/routers/{routerId}/actions/search | Search actions *CloudRoutersApi* | [**UpdateCloudRouterByUuid**](docs/CloudRoutersApi.md#updatecloudrouterbyuuid) | **Patch** /fabric/v4/routers/{routerId} | Update Routers *ConnectionsApi* | [**CreateConnection**](docs/ConnectionsApi.md#createconnection) | **Post** /fabric/v4/connections | Create Connection *ConnectionsApi* | [**CreateConnectionAction**](docs/ConnectionsApi.md#createconnectionaction) | **Post** /fabric/v4/connections/{connectionId}/actions | Connection Actions @@ -117,13 +121,14 @@ Class | Method | HTTP request | Description *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 *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 time service -*PrecisionTimeApi* | [**GetTimeServicesById**](docs/PrecisionTimeApi.md#gettimeservicesbyid) | **Get** /fabric/v4/timeServices/{serviceId} | Get 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. +*PrecisionTimeApi* | [**GetTimeServicesById**](docs/PrecisionTimeApi.md#gettimeservicesbyid) | **Get** /fabric/v4/timeServices/{serviceId} | Get Service By ID. *PrecisionTimeApi* | [**GetTimeServicesConnectionsByServiceId**](docs/PrecisionTimeApi.md#gettimeservicesconnectionsbyserviceid) | **Get** /fabric/v4/timeServices/{serviceId}/connections | Get Connection Links *PrecisionTimeApi* | [**GetTimeServicesPackageByCode**](docs/PrecisionTimeApi.md#gettimeservicespackagebycode) | **Get** /fabric/v4/timeServicePackages/{packageCode} | Get Package By Code *PrecisionTimeApi* | [**GetTimeServicesPackages**](docs/PrecisionTimeApi.md#gettimeservicespackages) | **Get** /fabric/v4/timeServicePackages | Get Packages *PrecisionTimeApi* | [**SearchTimeServices**](docs/PrecisionTimeApi.md#searchtimeservices) | **Post** /fabric/v4/timeServices/search | Search Time Services -*PrecisionTimeApi* | [**UpdateTimeServicesById**](docs/PrecisionTimeApi.md#updatetimeservicesbyid) | **Patch** /fabric/v4/timeServices/{serviceId} | Patch time service +*PrecisionTimeApi* | [**UpdateTimeServicesById**](docs/PrecisionTimeApi.md#updatetimeservicesbyid) | **Patch** /fabric/v4/timeServices/{serviceId} | Update By ID. *PricesApi* | [**SearchPrices**](docs/PricesApi.md#searchprices) | **Post** /fabric/v4/prices/search | Get Prices *RouteFilterRulesApi* | [**CreateRouteFilterRule**](docs/RouteFilterRulesApi.md#createroutefilterrule) | **Post** /fabric/v4/routeFilters/{routeFilterId}/routeFilterRules | Create RFRule *RouteFilterRulesApi* | [**CreateRouteFilterRulesInBulk**](docs/RouteFilterRulesApi.md#createroutefilterrulesinbulk) | **Post** /fabric/v4/routeFilters/{routeFilterId}/routeFilterRules/bulk | Bulk RFRules @@ -177,6 +182,21 @@ Class | Method | HTTP request | Description *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 +*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 +*StreamsApi* | [**GetStreamAssetByUuid**](docs/StreamsApi.md#getstreamassetbyuuid) | **Get** /fabric/v4/streams/{streamId}/{asset}/{assetId} | Get Asset +*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 ## Documentation For Models @@ -185,14 +205,13 @@ Class | Method | HTTP request | Description - [AccessPointSelector](docs/AccessPointSelector.md) - [AccessPointSelectorType](docs/AccessPointSelectorType.md) - [AccessPointType](docs/AccessPointType.md) - - [Account](docs/Account.md) - [Actions](docs/Actions.md) - [AddOperation](docs/AddOperation.md) - - [AdvanceConfiguration](docs/AdvanceConfiguration.md) - [AllPhysicalPortsResponse](docs/AllPhysicalPortsResponse.md) - [AllPortsResponse](docs/AllPortsResponse.md) - [ApiConfig](docs/ApiConfig.md) - [ApiServices](docs/ApiServices.md) + - [Asset](docs/Asset.md) - [AuthenticationKey](docs/AuthenticationKey.md) - [BGPActionData](docs/BGPActionData.md) - [BGPActionRequest](docs/BGPActionRequest.md) @@ -205,9 +224,9 @@ Class | Method | HTTP request | Description - [BGPConnectionOperationOperationalStatus](docs/BGPConnectionOperationOperationalStatus.md) - [BandwidthUtilization](docs/BandwidthUtilization.md) - [BandwidthUtilizationUnit](docs/BandwidthUtilizationUnit.md) - - [BaseConnection](docs/BaseConnection.md) - [BulkPhysicalPort](docs/BulkPhysicalPort.md) - [BulkPort](docs/BulkPort.md) + - [BulkPortRequest](docs/BulkPortRequest.md) - [Change](docs/Change.md) - [ChangeStatus](docs/ChangeStatus.md) - [ChangeType](docs/ChangeType.md) @@ -218,6 +237,15 @@ Class | Method | HTTP request | Description - [CloudRouterActionResponse](docs/CloudRouterActionResponse.md) - [CloudRouterActionState](docs/CloudRouterActionState.md) - [CloudRouterActionType](docs/CloudRouterActionType.md) + - [CloudRouterActionsSearchExpression](docs/CloudRouterActionsSearchExpression.md) + - [CloudRouterActionsSearchFilter](docs/CloudRouterActionsSearchFilter.md) + - [CloudRouterActionsSearchFilters](docs/CloudRouterActionsSearchFilters.md) + - [CloudRouterActionsSearchOrFilter](docs/CloudRouterActionsSearchOrFilter.md) + - [CloudRouterActionsSearchRequest](docs/CloudRouterActionsSearchRequest.md) + - [CloudRouterActionsSearchResponse](docs/CloudRouterActionsSearchResponse.md) + - [CloudRouterActionsSearchSortBy](docs/CloudRouterActionsSearchSortBy.md) + - [CloudRouterActionsSearchSortCriteria](docs/CloudRouterActionsSearchSortCriteria.md) + - [CloudRouterActionsSearchSortDirection](docs/CloudRouterActionsSearchSortDirection.md) - [CloudRouterChange](docs/CloudRouterChange.md) - [CloudRouterChangeOperation](docs/CloudRouterChangeOperation.md) - [CloudRouterChangeStatus](docs/CloudRouterChangeStatus.md) @@ -256,12 +284,24 @@ Class | Method | HTTP request | Description - [ConnectionPriority](docs/ConnectionPriority.md) - [ConnectionRedundancy](docs/ConnectionRedundancy.md) - [ConnectionResponse](docs/ConnectionResponse.md) + - [ConnectionRouteEntryFilter](docs/ConnectionRouteEntryFilter.md) + - [ConnectionRouteEntryFilters](docs/ConnectionRouteEntryFilters.md) + - [ConnectionRouteEntryOrFilter](docs/ConnectionRouteEntryOrFilter.md) + - [ConnectionRouteEntrySimpleExpression](docs/ConnectionRouteEntrySimpleExpression.md) + - [ConnectionRouteEntrySortBy](docs/ConnectionRouteEntrySortBy.md) + - [ConnectionRouteEntrySortDirection](docs/ConnectionRouteEntrySortDirection.md) - [ConnectionRouteFilterData](docs/ConnectionRouteFilterData.md) - [ConnectionRouteFilterDataAttachmentStatus](docs/ConnectionRouteFilterDataAttachmentStatus.md) - [ConnectionRouteFilterDataDirection](docs/ConnectionRouteFilterDataDirection.md) - [ConnectionRouteFilterDataType](docs/ConnectionRouteFilterDataType.md) - [ConnectionRouteFiltersBase](docs/ConnectionRouteFiltersBase.md) - [ConnectionRouteFiltersBaseDirection](docs/ConnectionRouteFiltersBaseDirection.md) + - [ConnectionRouteSearchRequest](docs/ConnectionRouteSearchRequest.md) + - [ConnectionRouteSortCriteria](docs/ConnectionRouteSortCriteria.md) + - [ConnectionRouteTableEntry](docs/ConnectionRouteTableEntry.md) + - [ConnectionRouteTableEntryConnection](docs/ConnectionRouteTableEntryConnection.md) + - [ConnectionRouteTableEntrySearchResponse](docs/ConnectionRouteTableEntrySearchResponse.md) + - [ConnectionRouteTableEntryState](docs/ConnectionRouteTableEntryState.md) - [ConnectionRoutingProtocolPostRequest](docs/ConnectionRoutingProtocolPostRequest.md) - [ConnectionSearchResponse](docs/ConnectionSearchResponse.md) - [ConnectionSide](docs/ConnectionSide.md) @@ -283,15 +323,18 @@ Class | Method | HTTP request | Description - [FabricCloudRouterCode](docs/FabricCloudRouterCode.md) - [FabricCloudRouterPackages](docs/FabricCloudRouterPackages.md) - [FabricCloudRouterPrice](docs/FabricCloudRouterPrice.md) - - [FabricConnectionUuid](docs/FabricConnectionUuid.md) - [FilterBody](docs/FilterBody.md) - [GeoCoordinates](docs/GeoCoordinates.md) - [GeoScopeType](docs/GeoScopeType.md) - [GetAllConnectionRouteFiltersResponse](docs/GetAllConnectionRouteFiltersResponse.md) + - [GetAllStreamAssetResponse](docs/GetAllStreamAssetResponse.md) + - [GetAllStreamResponse](docs/GetAllStreamResponse.md) + - [GetAllStreamSubscriptionResponse](docs/GetAllStreamSubscriptionResponse.md) - [GetResponse](docs/GetResponse.md) - [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) @@ -303,20 +346,13 @@ Class | Method | HTTP request | Description - [JsonPatchOperation](docs/JsonPatchOperation.md) - [Link](docs/Link.md) - [LinkAggregationGroup](docs/LinkAggregationGroup.md) - - [LinkProtocol](docs/LinkProtocol.md) - [LinkProtocolConnection](docs/LinkProtocolConnection.md) - - [LinkProtocolDot1q](docs/LinkProtocolDot1q.md) - - [LinkProtocolEvpnVxlan](docs/LinkProtocolEvpnVxlan.md) - [LinkProtocolGetResponse](docs/LinkProtocolGetResponse.md) - - [LinkProtocolIpv4Ipv6Config](docs/LinkProtocolIpv4Ipv6Config.md) - - [LinkProtocolQinq](docs/LinkProtocolQinq.md) - [LinkProtocolRequestType](docs/LinkProtocolRequestType.md) - [LinkProtocolResponse](docs/LinkProtocolResponse.md) - [LinkProtocolServiceToken](docs/LinkProtocolServiceToken.md) - [LinkProtocolState](docs/LinkProtocolState.md) - [LinkProtocolType](docs/LinkProtocolType.md) - - [LinkProtocolUntagged](docs/LinkProtocolUntagged.md) - - [LinkProtocolVxlan](docs/LinkProtocolVxlan.md) - [MarketingInfo](docs/MarketingInfo.md) - [MarketplaceSubscription](docs/MarketplaceSubscription.md) - [MarketplaceSubscriptionType](docs/MarketplaceSubscriptionType.md) @@ -355,16 +391,23 @@ Class | Method | HTTP request | Description - [NetworkState](docs/NetworkState.md) - [NetworkType](docs/NetworkType.md) - [OpEnum](docs/OpEnum.md) + - [Operation](docs/Operation.md) - [Order](docs/Order.md) + - [Package](docs/Package.md) - [PackageChangeLog](docs/PackageChangeLog.md) + - [PackageCode](docs/PackageCode.md) - [PackageResponse](docs/PackageResponse.md) + - [PackageType](docs/PackageType.md) - [Pagination](docs/Pagination.md) - [PaginationRequest](docs/PaginationRequest.md) - [PeeringType](docs/PeeringType.md) - [PhysicalPort](docs/PhysicalPort.md) + - [PhysicalPortSettings](docs/PhysicalPortSettings.md) - [PhysicalPortType](docs/PhysicalPortType.md) - [Port](docs/Port.md) - [PortAdditionalInfo](docs/PortAdditionalInfo.md) + - [PortBmmrType](docs/PortBmmrType.md) + - [PortConnectivitySourceType](docs/PortConnectivitySourceType.md) - [PortDemarcationPoint](docs/PortDemarcationPoint.md) - [PortDevice](docs/PortDevice.md) - [PortDeviceRedundancy](docs/PortDeviceRedundancy.md) @@ -383,17 +426,16 @@ Class | Method | HTTP request | Description - [PortOrder](docs/PortOrder.md) - [PortOrderPurchaseOrder](docs/PortOrderPurchaseOrder.md) - [PortOrderPurchaseOrderSelectionType](docs/PortOrderPurchaseOrderSelectionType.md) + - [PortOrderPurchaseOrderType](docs/PortOrderPurchaseOrderType.md) - [PortOrderSignature](docs/PortOrderSignature.md) - [PortOrderSignatureDelegate](docs/PortOrderSignatureDelegate.md) - [PortOrderSignatureSignatory](docs/PortOrderSignatureSignatory.md) + - [PortPhysicalPortsType](docs/PortPhysicalPortsType.md) - [PortPriority](docs/PortPriority.md) - [PortRedundancy](docs/PortRedundancy.md) - - [PortResponse](docs/PortResponse.md) - - [PortResponseBmmrType](docs/PortResponseBmmrType.md) - - [PortResponseConnectivitySourceType](docs/PortResponseConnectivitySourceType.md) - - [PortResponsePhysicalPortsType](docs/PortResponsePhysicalPortsType.md) - - [PortResponseServiceType](docs/PortResponseServiceType.md) + - [PortRequest](docs/PortRequest.md) - [PortSearchFieldName](docs/PortSearchFieldName.md) + - [PortServiceType](docs/PortServiceType.md) - [PortSettings](docs/PortSettings.md) - [PortSettingsPackageType](docs/PortSettingsPackageType.md) - [PortSettingsSharedPortProduct](docs/PortSettingsSharedPortProduct.md) @@ -407,17 +449,18 @@ Class | Method | HTTP request | Description - [PrecisionTimeChangeOperation](docs/PrecisionTimeChangeOperation.md) - [PrecisionTimeChangeOperationOp](docs/PrecisionTimeChangeOperationOp.md) - [PrecisionTimeChangeOperationPath](docs/PrecisionTimeChangeOperationPath.md) + - [PrecisionTimeOrder](docs/PrecisionTimeOrder.md) - [PrecisionTimePackageRequest](docs/PrecisionTimePackageRequest.md) + - [PrecisionTimePackageRequestCode](docs/PrecisionTimePackageRequestCode.md) - [PrecisionTimePackageResponse](docs/PrecisionTimePackageResponse.md) - [PrecisionTimePackageResponseType](docs/PrecisionTimePackageResponseType.md) - [PrecisionTimeServiceConnectionsResponse](docs/PrecisionTimeServiceConnectionsResponse.md) - - [PrecisionTimeServiceCreateResponse](docs/PrecisionTimeServiceCreateResponse.md) - - [PrecisionTimeServiceCreateResponseState](docs/PrecisionTimeServiceCreateResponseState.md) - - [PrecisionTimeServiceCreateResponseType](docs/PrecisionTimeServiceCreateResponseType.md) - [PrecisionTimeServicePackagesResponse](docs/PrecisionTimeServicePackagesResponse.md) - [PrecisionTimeServiceRequest](docs/PrecisionTimeServiceRequest.md) - [PrecisionTimeServiceRequestType](docs/PrecisionTimeServiceRequestType.md) - [PrecisionTimeServiceResponse](docs/PrecisionTimeServiceResponse.md) + - [PrecisionTimeServiceResponseState](docs/PrecisionTimeServiceResponseState.md) + - [PrecisionTimeServiceResponseType](docs/PrecisionTimeServiceResponseType.md) - [Presence](docs/Presence.md) - [Price](docs/Price.md) - [PriceCategory](docs/PriceCategory.md) @@ -435,6 +478,9 @@ Class | Method | HTTP request | Description - [Project](docs/Project.md) - [ProviderStatus](docs/ProviderStatus.md) - [PtpAdvanceConfiguration](docs/PtpAdvanceConfiguration.md) + - [PtpAdvanceConfigurationLogAnnounceInterval](docs/PtpAdvanceConfigurationLogAnnounceInterval.md) + - [PtpAdvanceConfigurationLogDelayReqInterval](docs/PtpAdvanceConfigurationLogDelayReqInterval.md) + - [PtpAdvanceConfigurationLogSyncInterval](docs/PtpAdvanceConfigurationLogSyncInterval.md) - [PtpAdvanceConfigurationTimeScale](docs/PtpAdvanceConfigurationTimeScale.md) - [PtpAdvanceConfigurationTransportMode](docs/PtpAdvanceConfigurationTransportMode.md) - [QueryDirection](docs/QueryDirection.md) @@ -470,7 +516,6 @@ Class | Method | HTTP request | Description - [RouteFiltersSearchFilterItemProperty](docs/RouteFiltersSearchFilterItemProperty.md) - [RouteFiltersSearchResponse](docs/RouteFiltersSearchResponse.md) - [RouteTableEntry](docs/RouteTableEntry.md) - - [RouteTableEntryConnection](docs/RouteTableEntryConnection.md) - [RouteTableEntryFilter](docs/RouteTableEntryFilter.md) - [RouteTableEntryFilters](docs/RouteTableEntryFilters.md) - [RouteTableEntryOrFilter](docs/RouteTableEntryOrFilter.md) @@ -483,6 +528,7 @@ Class | Method | HTTP request | Description - [RouteTableEntrySortDirection](docs/RouteTableEntrySortDirection.md) - [RouteTableEntryState](docs/RouteTableEntryState.md) - [RouteTableEntryType](docs/RouteTableEntryType.md) + - [RouterActionsConnection](docs/RouterActionsConnection.md) - [RouterPackageCode](docs/RouterPackageCode.md) - [RoutingProtocolBFD](docs/RoutingProtocolBFD.md) - [RoutingProtocolBGPData](docs/RoutingProtocolBGPData.md) @@ -537,9 +583,9 @@ Class | Method | HTTP request | Description - [ServiceTokenActionRequest](docs/ServiceTokenActionRequest.md) - [ServiceTokenActions](docs/ServiceTokenActions.md) - [ServiceTokenChangeOperation](docs/ServiceTokenChangeOperation.md) - - [ServiceTokenChangeOperationOp](docs/ServiceTokenChangeOperationOp.md) - [ServiceTokenConnection](docs/ServiceTokenConnection.md) - [ServiceTokenConnectionType](docs/ServiceTokenConnectionType.md) + - [ServiceTokenIssuerSide](docs/ServiceTokenIssuerSide.md) - [ServiceTokenSearchExpression](docs/ServiceTokenSearchExpression.md) - [ServiceTokenSearchExpressionOperator](docs/ServiceTokenSearchExpressionOperator.md) - [ServiceTokenSearchFieldName](docs/ServiceTokenSearchFieldName.md) @@ -549,7 +595,6 @@ Class | Method | HTTP request | Description - [ServiceTokenType](docs/ServiceTokenType.md) - [ServiceTokens](docs/ServiceTokens.md) - [SimplifiedAccount](docs/SimplifiedAccount.md) - - [SimplifiedAccountPortResponse](docs/SimplifiedAccountPortResponse.md) - [SimplifiedLinkProtocol](docs/SimplifiedLinkProtocol.md) - [SimplifiedLocation](docs/SimplifiedLocation.md) - [SimplifiedLocationWithoutIBX](docs/SimplifiedLocationWithoutIBX.md) @@ -560,6 +605,11 @@ Class | Method | HTTP request | Description - [SimplifiedNotificationType](docs/SimplifiedNotificationType.md) - [SimplifiedPort](docs/SimplifiedPort.md) - [SimplifiedServiceProfile](docs/SimplifiedServiceProfile.md) + - [SimplifiedTokenNetwork](docs/SimplifiedTokenNetwork.md) + - [SimplifiedTokenNetworkScope](docs/SimplifiedTokenNetworkScope.md) + - [SimplifiedTokenNetworkType](docs/SimplifiedTokenNetworkType.md) + - [SimplifiedVirtualDevice](docs/SimplifiedVirtualDevice.md) + - [SimplifiedVirtualDeviceType](docs/SimplifiedVirtualDeviceType.md) - [Sort](docs/Sort.md) - [SortBy](docs/SortBy.md) - [SortCriteria](docs/SortCriteria.md) @@ -570,16 +620,48 @@ Class | Method | HTTP request | Description - [SortItemProperty](docs/SortItemProperty.md) - [Statistics](docs/Statistics.md) - [StatisticsViewPoint](docs/StatisticsViewPoint.md) + - [Stream](docs/Stream.md) + - [StreamAsset](docs/StreamAsset.md) + - [StreamAssetAttachmentStatus](docs/StreamAssetAttachmentStatus.md) + - [StreamAssetFilter](docs/StreamAssetFilter.md) + - [StreamAssetFilters](docs/StreamAssetFilters.md) + - [StreamAssetOrFilter](docs/StreamAssetOrFilter.md) + - [StreamAssetPutRequest](docs/StreamAssetPutRequest.md) + - [StreamAssetSearchRequest](docs/StreamAssetSearchRequest.md) + - [StreamAssetSimpleExpression](docs/StreamAssetSimpleExpression.md) + - [StreamAssetSortBy](docs/StreamAssetSortBy.md) + - [StreamAssetSortCriteria](docs/StreamAssetSortCriteria.md) + - [StreamAssetSortDirection](docs/StreamAssetSortDirection.md) + - [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) + - [StreamSubscription](docs/StreamSubscription.md) + - [StreamSubscriptionFilter](docs/StreamSubscriptionFilter.md) + - [StreamSubscriptionPostRequest](docs/StreamSubscriptionPostRequest.md) + - [StreamSubscriptionPostRequestType](docs/StreamSubscriptionPostRequestType.md) + - [StreamSubscriptionPutRequest](docs/StreamSubscriptionPutRequest.md) + - [StreamSubscriptionSink](docs/StreamSubscriptionSink.md) + - [StreamSubscriptionSinkCredential](docs/StreamSubscriptionSinkCredential.md) + - [StreamSubscriptionSinkCredentialType](docs/StreamSubscriptionSinkCredentialType.md) + - [StreamSubscriptionSinkSetting](docs/StreamSubscriptionSinkSetting.md) + - [StreamSubscriptionSinkType](docs/StreamSubscriptionSinkType.md) + - [StreamSubscriptionState](docs/StreamSubscriptionState.md) + - [StreamSubscriptionType](docs/StreamSubscriptionType.md) + - [StreamTarget](docs/StreamTarget.md) - [SubInterface](docs/SubInterface.md) - [SubscriptionAsset](docs/SubscriptionAsset.md) - - [SubscriptionAssetType](docs/SubscriptionAssetType.md) - [SubscriptionEntitlementResponse](docs/SubscriptionEntitlementResponse.md) - [SubscriptionResponse](docs/SubscriptionResponse.md) - [SubscriptionResponseMarketplace](docs/SubscriptionResponseMarketplace.md) - [SubscriptionResponseOfferType](docs/SubscriptionResponseOfferType.md) - [SubscriptionRouterPackageType](docs/SubscriptionRouterPackageType.md) - [SubscriptionRouterPackageTypeCode](docs/SubscriptionRouterPackageTypeCode.md) - - [SubscriptionStatus](docs/SubscriptionStatus.md) + - [SubscriptionState](docs/SubscriptionState.md) - [SubscriptionTrial](docs/SubscriptionTrial.md) - [TimeServiceFilter](docs/TimeServiceFilter.md) - [TimeServiceFilters](docs/TimeServiceFilters.md) @@ -590,6 +672,7 @@ Class | Method | HTTP request | Description - [TimeServiceSortDirection](docs/TimeServiceSortDirection.md) - [TimeServicesSearchRequest](docs/TimeServicesSearchRequest.md) - [TopUtilizedStatistics](docs/TopUtilizedStatistics.md) + - [ValidateConnectionResponse](docs/ValidateConnectionResponse.md) - [ValidateRequest](docs/ValidateRequest.md) - [ValidateRequestFilter](docs/ValidateRequestFilter.md) - [ValidateRequestFilterAnd](docs/ValidateRequestFilterAnd.md) @@ -608,7 +691,12 @@ Class | Method | HTTP request | Description - [VirtualConnectionPriceZSideAccessPointBridge](docs/VirtualConnectionPriceZSideAccessPointBridge.md) - [VirtualConnectionPriceZSideAccessPointBridgePackage](docs/VirtualConnectionPriceZSideAccessPointBridgePackage.md) - [VirtualConnectionPriceZSideAccessPointProfile](docs/VirtualConnectionPriceZSideAccessPointProfile.md) + - [VirtualConnectionSide](docs/VirtualConnectionSide.md) + - [VirtualConnectionTimeServiceResponse](docs/VirtualConnectionTimeServiceResponse.md) + - [VirtualConnectionUuid](docs/VirtualConnectionUuid.md) - [VirtualDevice](docs/VirtualDevice.md) + - [VirtualDeviceInterface](docs/VirtualDeviceInterface.md) + - [VirtualDeviceInterfaceType](docs/VirtualDeviceInterfaceType.md) - [VirtualDeviceType](docs/VirtualDeviceType.md) - [VirtualNetwork](docs/VirtualNetwork.md) - [VirtualPortConfiguration](docs/VirtualPortConfiguration.md) @@ -654,5 +742,5 @@ Each of these functions takes a value of the given basic type and returns a poin ## Author -api-support@equinix.com + diff --git a/services/fabricv4/api_cloud_routers.go b/services/fabricv4/api_cloud_routers.go index 9b2fde7d..a9349415 100644 --- a/services/fabricv4/api_cloud_routers.go +++ b/services/fabricv4/api_cloud_routers.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -690,6 +689,189 @@ func (a *CloudRoutersApiService) GetCloudRouterActionsExecute(r ApiGetCloudRoute return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetCloudRouterActionsByUuidRequest struct { + ctx context.Context + ApiService *CloudRoutersApiService + routerId string + actionId string + state *CloudRouterActionState +} + +// Action state +func (r ApiGetCloudRouterActionsByUuidRequest) State(state CloudRouterActionState) ApiGetCloudRouterActionsByUuidRequest { + r.state = &state + return r +} + +func (r ApiGetCloudRouterActionsByUuidRequest) Execute() (*CloudRouterActionResponse, *http.Response, error) { + return r.ApiService.GetCloudRouterActionsByUuidExecute(r) +} + +/* +GetCloudRouterActionsByUuid Get actions + +This API provides capability to fetch action status + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param routerId Router UUID + @param actionId Action UUID + @return ApiGetCloudRouterActionsByUuidRequest +*/ +func (a *CloudRoutersApiService) GetCloudRouterActionsByUuid(ctx context.Context, routerId string, actionId string) ApiGetCloudRouterActionsByUuidRequest { + return ApiGetCloudRouterActionsByUuidRequest{ + ApiService: a, + ctx: ctx, + routerId: routerId, + actionId: actionId, + } +} + +// Execute executes the request +// +// @return CloudRouterActionResponse +func (a *CloudRoutersApiService) GetCloudRouterActionsByUuidExecute(r ApiGetCloudRouterActionsByUuidRequest) (*CloudRouterActionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CloudRouterActionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudRoutersApiService.GetCloudRouterActionsByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/routers/{routerId}/actions/{actionId}" + localVarPath = strings.Replace(localVarPath, "{"+"routerId"+"}", url.PathEscape(parameterValueToString(r.routerId, "routerId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"actionId"+"}", url.PathEscape(parameterValueToString(r.actionId, "actionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.state != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "") + } + // 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 == 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 == 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 == 415 { + 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 ApiGetCloudRouterByUuidRequest struct { ctx context.Context ApiService *CloudRoutersApiService @@ -1503,6 +1685,502 @@ func (a *CloudRoutersApiService) SearchCloudRoutersExecute(r ApiSearchCloudRoute return localVarReturnValue, localVarHTTPResponse, nil } +type ApiSearchConnectionAdvertisedRoutesRequest struct { + ctx context.Context + ApiService *CloudRoutersApiService + connectionId string + connectionRouteSearchRequest *ConnectionRouteSearchRequest +} + +func (r ApiSearchConnectionAdvertisedRoutesRequest) ConnectionRouteSearchRequest(connectionRouteSearchRequest ConnectionRouteSearchRequest) ApiSearchConnectionAdvertisedRoutesRequest { + r.connectionRouteSearchRequest = &connectionRouteSearchRequest + return r +} + +func (r ApiSearchConnectionAdvertisedRoutesRequest) Execute() (*ConnectionRouteTableEntrySearchResponse, *http.Response, error) { + return r.ApiService.SearchConnectionAdvertisedRoutesExecute(r) +} + +/* +SearchConnectionAdvertisedRoutes search advertised + +The API provides capability to get list of user's advertised routes using search criteria, including optional filtering, pagination and sorting + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectionId Connection Id + @return ApiSearchConnectionAdvertisedRoutesRequest +*/ +func (a *CloudRoutersApiService) SearchConnectionAdvertisedRoutes(ctx context.Context, connectionId string) ApiSearchConnectionAdvertisedRoutesRequest { + return ApiSearchConnectionAdvertisedRoutesRequest{ + ApiService: a, + ctx: ctx, + connectionId: connectionId, + } +} + +// Execute executes the request +// +// @return ConnectionRouteTableEntrySearchResponse +func (a *CloudRoutersApiService) SearchConnectionAdvertisedRoutesExecute(r ApiSearchConnectionAdvertisedRoutesRequest) (*ConnectionRouteTableEntrySearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectionRouteTableEntrySearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudRoutersApiService.SearchConnectionAdvertisedRoutes") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/connections/{connectionId}/advertisedRoutes/search" + localVarPath = strings.Replace(localVarPath, "{"+"connectionId"+"}", url.PathEscape(parameterValueToString(r.connectionId, "connectionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.connectionRouteSearchRequest == nil { + return localVarReturnValue, nil, reportError("connectionRouteSearchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.connectionRouteSearchRequest + 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 == 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 + } + + 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 ApiSearchConnectionReceivedRoutesRequest struct { + ctx context.Context + ApiService *CloudRoutersApiService + connectionId string + connectionRouteSearchRequest *ConnectionRouteSearchRequest +} + +func (r ApiSearchConnectionReceivedRoutesRequest) ConnectionRouteSearchRequest(connectionRouteSearchRequest ConnectionRouteSearchRequest) ApiSearchConnectionReceivedRoutesRequest { + r.connectionRouteSearchRequest = &connectionRouteSearchRequest + return r +} + +func (r ApiSearchConnectionReceivedRoutesRequest) Execute() (*ConnectionRouteTableEntrySearchResponse, *http.Response, error) { + return r.ApiService.SearchConnectionReceivedRoutesExecute(r) +} + +/* +SearchConnectionReceivedRoutes Search received + +The API provides capability to get list of received routes using search criteria, including optional filtering, pagination and sorting + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectionId Connection Id + @return ApiSearchConnectionReceivedRoutesRequest +*/ +func (a *CloudRoutersApiService) SearchConnectionReceivedRoutes(ctx context.Context, connectionId string) ApiSearchConnectionReceivedRoutesRequest { + return ApiSearchConnectionReceivedRoutesRequest{ + ApiService: a, + ctx: ctx, + connectionId: connectionId, + } +} + +// Execute executes the request +// +// @return ConnectionRouteTableEntrySearchResponse +func (a *CloudRoutersApiService) SearchConnectionReceivedRoutesExecute(r ApiSearchConnectionReceivedRoutesRequest) (*ConnectionRouteTableEntrySearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectionRouteTableEntrySearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudRoutersApiService.SearchConnectionReceivedRoutes") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/connections/{connectionId}/receivedRoutes/search" + localVarPath = strings.Replace(localVarPath, "{"+"connectionId"+"}", url.PathEscape(parameterValueToString(r.connectionId, "connectionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.connectionRouteSearchRequest == nil { + return localVarReturnValue, nil, reportError("connectionRouteSearchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.connectionRouteSearchRequest + 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 == 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 + } + + 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 ApiSearchRouterActionsRequest struct { + ctx context.Context + ApiService *CloudRoutersApiService + routerId string + cloudRouterActionsSearchRequest *CloudRouterActionsSearchRequest +} + +func (r ApiSearchRouterActionsRequest) CloudRouterActionsSearchRequest(cloudRouterActionsSearchRequest CloudRouterActionsSearchRequest) ApiSearchRouterActionsRequest { + r.cloudRouterActionsSearchRequest = &cloudRouterActionsSearchRequest + return r +} + +func (r ApiSearchRouterActionsRequest) Execute() (*CloudRouterActionsSearchResponse, *http.Response, error) { + return r.ApiService.SearchRouterActionsExecute(r) +} + +/* +SearchRouterActions Search actions + +This API provides capability to refresh route table and bgp session summary information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param routerId Router UUID + @return ApiSearchRouterActionsRequest +*/ +func (a *CloudRoutersApiService) SearchRouterActions(ctx context.Context, routerId string) ApiSearchRouterActionsRequest { + return ApiSearchRouterActionsRequest{ + ApiService: a, + ctx: ctx, + routerId: routerId, + } +} + +// Execute executes the request +// +// @return CloudRouterActionsSearchResponse +func (a *CloudRoutersApiService) SearchRouterActionsExecute(r ApiSearchRouterActionsRequest) (*CloudRouterActionsSearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CloudRouterActionsSearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudRoutersApiService.SearchRouterActions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/routers/{routerId}/actions/search" + localVarPath = strings.Replace(localVarPath, "{"+"routerId"+"}", url.PathEscape(parameterValueToString(r.routerId, "routerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cloudRouterActionsSearchRequest == nil { + return localVarReturnValue, nil, reportError("cloudRouterActionsSearchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.cloudRouterActionsSearchRequest + 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 == 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 == 415 { + 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 ApiUpdateCloudRouterByUuidRequest struct { ctx context.Context ApiService *CloudRoutersApiService diff --git a/services/fabricv4/api_connections.go b/services/fabricv4/api_connections.go index b21f39a3..12dfef77 100644 --- a/services/fabricv4/api_connections.go +++ b/services/fabricv4/api_connections.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_health.go b/services/fabricv4/api_health.go index aec9692a..117d4bf8 100644 --- a/services/fabricv4/api_health.go +++ b/services/fabricv4/api_health.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_marketplace_subscriptions.go b/services/fabricv4/api_marketplace_subscriptions.go index 5ed0819e..a221658b 100644 --- a/services/fabricv4/api_marketplace_subscriptions.go +++ b/services/fabricv4/api_marketplace_subscriptions.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_metros.go b/services/fabricv4/api_metros.go index d66efed5..ee94d5eb 100644 --- a/services/fabricv4/api_metros.go +++ b/services/fabricv4/api_metros.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_networks.go b/services/fabricv4/api_networks.go index 72a018af..e666a75e 100644 --- a/services/fabricv4/api_networks.go +++ b/services/fabricv4/api_networks.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_ports.go b/services/fabricv4/api_ports.go index c167d004..b1248dc8 100644 --- a/services/fabricv4/api_ports.go +++ b/services/fabricv4/api_ports.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -168,17 +167,17 @@ func (a *PortsApiService) AddToLagExecute(r ApiAddToLagRequest) (*AllPhysicalPor } type ApiCreateBulkPortRequest struct { - ctx context.Context - ApiService *PortsApiService - bulkPort *BulkPort + ctx context.Context + ApiService *PortsApiService + bulkPortRequest *BulkPortRequest } -func (r ApiCreateBulkPortRequest) BulkPort(bulkPort BulkPort) ApiCreateBulkPortRequest { - r.bulkPort = &bulkPort +func (r ApiCreateBulkPortRequest) BulkPortRequest(bulkPortRequest BulkPortRequest) ApiCreateBulkPortRequest { + r.bulkPortRequest = &bulkPortRequest return r } -func (r ApiCreateBulkPortRequest) Execute() (*AllPortsResponse, *http.Response, error) { +func (r ApiCreateBulkPortRequest) Execute() (*BulkPort, *http.Response, error) { return r.ApiService.CreateBulkPortExecute(r) } @@ -199,13 +198,13 @@ func (a *PortsApiService) CreateBulkPort(ctx context.Context) ApiCreateBulkPortR // Execute executes the request // -// @return AllPortsResponse -func (a *PortsApiService) CreateBulkPortExecute(r ApiCreateBulkPortRequest) (*AllPortsResponse, *http.Response, error) { +// @return BulkPort +func (a *PortsApiService) CreateBulkPortExecute(r ApiCreateBulkPortRequest) (*BulkPort, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AllPortsResponse + localVarReturnValue *BulkPort ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PortsApiService.CreateBulkPort") @@ -218,8 +217,8 @@ func (a *PortsApiService) CreateBulkPortExecute(r ApiCreateBulkPortRequest) (*Al localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.bulkPort == nil { - return localVarReturnValue, nil, reportError("bulkPort is required and must be specified") + if r.bulkPortRequest == nil { + return localVarReturnValue, nil, reportError("bulkPortRequest is required and must be specified") } // to determine the Content-Type header @@ -240,7 +239,7 @@ func (a *PortsApiService) CreateBulkPortExecute(r ApiCreateBulkPortRequest) (*Al localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.bulkPort + localVarPostBody = r.bulkPortRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -279,17 +278,17 @@ func (a *PortsApiService) CreateBulkPortExecute(r ApiCreateBulkPortRequest) (*Al } type ApiCreatePortRequest struct { - ctx context.Context - ApiService *PortsApiService - port *Port + ctx context.Context + ApiService *PortsApiService + portRequest *PortRequest } -func (r ApiCreatePortRequest) Port(port Port) ApiCreatePortRequest { - r.port = &port +func (r ApiCreatePortRequest) PortRequest(portRequest PortRequest) ApiCreatePortRequest { + r.portRequest = &portRequest return r } -func (r ApiCreatePortRequest) Execute() (*PortResponse, *http.Response, error) { +func (r ApiCreatePortRequest) Execute() (*Port, *http.Response, error) { return r.ApiService.CreatePortExecute(r) } @@ -310,13 +309,13 @@ func (a *PortsApiService) CreatePort(ctx context.Context) ApiCreatePortRequest { // Execute executes the request // -// @return PortResponse -func (a *PortsApiService) CreatePortExecute(r ApiCreatePortRequest) (*PortResponse, *http.Response, error) { +// @return Port +func (a *PortsApiService) CreatePortExecute(r ApiCreatePortRequest) (*Port, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PortResponse + localVarReturnValue *Port ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PortsApiService.CreatePort") @@ -329,8 +328,8 @@ func (a *PortsApiService) CreatePortExecute(r ApiCreatePortRequest) (*PortRespon localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.port == nil { - return localVarReturnValue, nil, reportError("port is required and must be specified") + if r.portRequest == nil { + return localVarReturnValue, nil, reportError("portRequest is required and must be specified") } // to determine the Content-Type header @@ -351,7 +350,7 @@ func (a *PortsApiService) CreatePortExecute(r ApiCreatePortRequest) (*PortRespon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.port + localVarPostBody = r.portRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -552,7 +551,7 @@ type ApiGetPortByUuidRequest struct { portId string } -func (r ApiGetPortByUuidRequest) Execute() (*PortResponse, *http.Response, error) { +func (r ApiGetPortByUuidRequest) Execute() (*Port, *http.Response, error) { return r.ApiService.GetPortByUuidExecute(r) } @@ -575,13 +574,13 @@ func (a *PortsApiService) GetPortByUuid(ctx context.Context, portId string) ApiG // Execute executes the request // -// @return PortResponse -func (a *PortsApiService) GetPortByUuidExecute(r ApiGetPortByUuidRequest) (*PortResponse, *http.Response, error) { +// @return Port +func (a *PortsApiService) GetPortByUuidExecute(r ApiGetPortByUuidRequest) (*Port, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PortResponse + localVarReturnValue *Port ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PortsApiService.GetPortByUuid") diff --git a/services/fabricv4/api_precision_time.go b/services/fabricv4/api_precision_time.go index 9046cccc..319c884f 100644 --- a/services/fabricv4/api_precision_time.go +++ b/services/fabricv4/api_precision_time.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -31,14 +30,14 @@ func (r ApiCreateTimeServicesRequest) PrecisionTimeServiceRequest(precisionTimeS return r } -func (r ApiCreateTimeServicesRequest) Execute() (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +func (r ApiCreateTimeServicesRequest) Execute() (*PrecisionTimeServiceResponse, *http.Response, error) { return r.ApiService.CreateTimeServicesExecute(r) } /* CreateTimeServices Create Time Service -The API provides capability to create timing service +The API provides capability to create Precision Time service @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateTimeServicesRequest @@ -52,13 +51,13 @@ func (a *PrecisionTimeApiService) CreateTimeServices(ctx context.Context) ApiCre // Execute executes the request // -// @return PrecisionTimeServiceCreateResponse -func (a *PrecisionTimeApiService) CreateTimeServicesExecute(r ApiCreateTimeServicesRequest) (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +// @return PrecisionTimeServiceResponse +func (a *PrecisionTimeApiService) CreateTimeServicesExecute(r ApiCreateTimeServicesRequest) (*PrecisionTimeServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PrecisionTimeServiceCreateResponse + localVarReturnValue *PrecisionTimeServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PrecisionTimeApiService.CreateTimeServices") @@ -191,14 +190,14 @@ type ApiDeleteTimeServiceByIdRequest struct { serviceId string } -func (r ApiDeleteTimeServiceByIdRequest) Execute() (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +func (r ApiDeleteTimeServiceByIdRequest) Execute() (*PrecisionTimeServiceResponse, *http.Response, error) { return r.ApiService.DeleteTimeServiceByIdExecute(r) } /* -DeleteTimeServiceById Delete time service +DeleteTimeServiceById Delete by ID. -Delete EPT service by it's uuid +The API provides capability to delete Precision Time Service by service id. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serviceId Service UUID @@ -214,13 +213,13 @@ func (a *PrecisionTimeApiService) DeleteTimeServiceById(ctx context.Context, ser // Execute executes the request // -// @return PrecisionTimeServiceCreateResponse -func (a *PrecisionTimeApiService) DeleteTimeServiceByIdExecute(r ApiDeleteTimeServiceByIdRequest) (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +// @return PrecisionTimeServiceResponse +func (a *PrecisionTimeApiService) DeleteTimeServiceByIdExecute(r ApiDeleteTimeServiceByIdRequest) (*PrecisionTimeServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PrecisionTimeServiceCreateResponse + localVarReturnValue *PrecisionTimeServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PrecisionTimeApiService.DeleteTimeServiceById") @@ -296,6 +295,197 @@ func (a *PrecisionTimeApiService) DeleteTimeServiceByIdExecute(r ApiDeleteTimeSe 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 == 415 { + 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 ApiFulfillTimeServicesRequest struct { + ctx context.Context + ApiService *PrecisionTimeApiService + serviceId string + precisionTimeServiceRequest *PrecisionTimeServiceRequest +} + +func (r ApiFulfillTimeServicesRequest) PrecisionTimeServiceRequest(precisionTimeServiceRequest PrecisionTimeServiceRequest) ApiFulfillTimeServicesRequest { + r.precisionTimeServiceRequest = &precisionTimeServiceRequest + return r +} + +func (r ApiFulfillTimeServicesRequest) Execute() (*PrecisionTimeServiceResponse, *http.Response, error) { + return r.ApiService.FulfillTimeServicesExecute(r) +} + +/* +FulfillTimeServices Configure Service. + +The API provides capability to Configure/Fulfill the Precision Time Service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId Service UUID + @return ApiFulfillTimeServicesRequest +*/ +func (a *PrecisionTimeApiService) FulfillTimeServices(ctx context.Context, serviceId string) ApiFulfillTimeServicesRequest { + return ApiFulfillTimeServicesRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// +// @return PrecisionTimeServiceResponse +func (a *PrecisionTimeApiService) FulfillTimeServicesExecute(r ApiFulfillTimeServicesRequest) (*PrecisionTimeServiceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PrecisionTimeServiceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PrecisionTimeApiService.FulfillTimeServices") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/timeServices/{serviceId}" + localVarPath = strings.Replace(localVarPath, "{"+"serviceId"+"}", url.PathEscape(parameterValueToString(r.serviceId, "serviceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.precisionTimeServiceRequest == nil { + return localVarReturnValue, nil, reportError("precisionTimeServiceRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.precisionTimeServiceRequest + 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 == 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 == 415 { var v []Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -338,14 +528,14 @@ type ApiGetTimeServicesByIdRequest struct { serviceId string } -func (r ApiGetTimeServicesByIdRequest) Execute() (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +func (r ApiGetTimeServicesByIdRequest) Execute() (*PrecisionTimeServiceResponse, *http.Response, error) { return r.ApiService.GetTimeServicesByIdExecute(r) } /* -GetTimeServicesById Get Time Service +GetTimeServicesById Get Service By ID. -The API provides capability to get precision timing service's details +The API provides capability to get Precision Time Service details @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serviceId Service UUID @@ -361,13 +551,13 @@ func (a *PrecisionTimeApiService) GetTimeServicesById(ctx context.Context, servi // Execute executes the request // -// @return PrecisionTimeServiceCreateResponse -func (a *PrecisionTimeApiService) GetTimeServicesByIdExecute(r ApiGetTimeServicesByIdRequest) (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +// @return PrecisionTimeServiceResponse +func (a *PrecisionTimeApiService) GetTimeServicesByIdExecute(r ApiGetTimeServicesByIdRequest) (*PrecisionTimeServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PrecisionTimeServiceCreateResponse + localVarReturnValue *PrecisionTimeServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PrecisionTimeApiService.GetTimeServicesById") @@ -454,6 +644,17 @@ func (a *PrecisionTimeApiService) GetTimeServicesByIdExecute(r ApiGetTimeService 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 == 415 { var v []Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1060,14 +1261,14 @@ func (r ApiUpdateTimeServicesByIdRequest) PrecisionTimeChangeOperation(precision return r } -func (r ApiUpdateTimeServicesByIdRequest) Execute() (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +func (r ApiUpdateTimeServicesByIdRequest) Execute() (*PrecisionTimeServiceResponse, *http.Response, error) { return r.ApiService.UpdateTimeServicesByIdExecute(r) } /* -UpdateTimeServicesById Patch time service +UpdateTimeServicesById Update By ID. -The API provides capability to update timing service +The API provides capability to update Precision Time Service by service id. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serviceId Service UUID @@ -1083,13 +1284,13 @@ func (a *PrecisionTimeApiService) UpdateTimeServicesById(ctx context.Context, se // Execute executes the request // -// @return PrecisionTimeServiceCreateResponse -func (a *PrecisionTimeApiService) UpdateTimeServicesByIdExecute(r ApiUpdateTimeServicesByIdRequest) (*PrecisionTimeServiceCreateResponse, *http.Response, error) { +// @return PrecisionTimeServiceResponse +func (a *PrecisionTimeApiService) UpdateTimeServicesByIdExecute(r ApiUpdateTimeServicesByIdRequest) (*PrecisionTimeServiceResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PrecisionTimeServiceCreateResponse + localVarReturnValue *PrecisionTimeServiceResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PrecisionTimeApiService.UpdateTimeServicesById") @@ -1187,6 +1388,17 @@ func (a *PrecisionTimeApiService) UpdateTimeServicesByIdExecute(r ApiUpdateTimeS 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 == 415 { var v []Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/services/fabricv4/api_prices.go b/services/fabricv4/api_prices.go index 1eedfd36..c42d353f 100644 --- a/services/fabricv4/api_prices.go +++ b/services/fabricv4/api_prices.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_route_filter_rules.go b/services/fabricv4/api_route_filter_rules.go index 4e4ad9d0..ece5c850 100644 --- a/services/fabricv4/api_route_filter_rules.go +++ b/services/fabricv4/api_route_filter_rules.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_route_filters.go b/services/fabricv4/api_route_filters.go index 991fd706..a37dea05 100644 --- a/services/fabricv4/api_route_filters.go +++ b/services/fabricv4/api_route_filters.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_routing_protocols.go b/services/fabricv4/api_routing_protocols.go index 8e14c20b..0d9ef4b9 100644 --- a/services/fabricv4/api_routing_protocols.go +++ b/services/fabricv4/api_routing_protocols.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_service_profiles.go b/services/fabricv4/api_service_profiles.go index 0c1f41c9..47293b89 100644 --- a/services/fabricv4/api_service_profiles.go +++ b/services/fabricv4/api_service_profiles.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_service_tokens.go b/services/fabricv4/api_service_tokens.go index 6048fe36..1fadcced 100644 --- a/services/fabricv4/api_service_tokens.go +++ b/services/fabricv4/api_service_tokens.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -327,7 +326,7 @@ type ApiDeleteServiceTokenByUuidRequest struct { serviceTokenId string } -func (r ApiDeleteServiceTokenByUuidRequest) Execute() (*http.Response, error) { +func (r ApiDeleteServiceTokenByUuidRequest) Execute() (*ServiceToken, *http.Response, error) { return r.ApiService.DeleteServiceTokenByUuidExecute(r) } @@ -349,16 +348,19 @@ func (a *ServiceTokensApiService) DeleteServiceTokenByUuid(ctx context.Context, } // Execute executes the request -func (a *ServiceTokensApiService) DeleteServiceTokenByUuidExecute(r ApiDeleteServiceTokenByUuidRequest) (*http.Response, error) { +// +// @return ServiceToken +func (a *ServiceTokensApiService) DeleteServiceTokenByUuidExecute(r ApiDeleteServiceTokenByUuidRequest) (*ServiceToken, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceToken ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceTokensApiService.DeleteServiceTokenByUuid") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/fabric/v4/serviceTokens/{serviceTokenId}" @@ -387,19 +389,19 @@ func (a *ServiceTokensApiService) DeleteServiceTokenByUuidExecute(r ApiDeleteSer } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -412,26 +414,46 @@ func (a *ServiceTokensApiService) DeleteServiceTokenByUuidExecute(r ApiDeleteSer err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) newErr.model = v - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - if localVarHTTPResponse.StatusCode == 401 { + 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 localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) newErr.model = v } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiGetServiceTokenByUuidRequest struct { @@ -704,6 +726,8 @@ type ApiSearchServiceTokensRequest struct { ctx context.Context ApiService *ServiceTokensApiService serviceTokenSearchRequest *ServiceTokenSearchRequest + offset *float32 + limit *float32 } func (r ApiSearchServiceTokensRequest) ServiceTokenSearchRequest(serviceTokenSearchRequest ServiceTokenSearchRequest) ApiSearchServiceTokensRequest { @@ -711,6 +735,18 @@ func (r ApiSearchServiceTokensRequest) ServiceTokenSearchRequest(serviceTokenSea return r } +// offset +func (r ApiSearchServiceTokensRequest) Offset(offset float32) ApiSearchServiceTokensRequest { + r.offset = &offset + return r +} + +// number of records to fetch +func (r ApiSearchServiceTokensRequest) Limit(limit float32) ApiSearchServiceTokensRequest { + r.limit = &limit + return r +} + func (r ApiSearchServiceTokensRequest) Execute() (*ServiceTokens, *http.Response, error) { return r.ApiService.SearchServiceTokensExecute(r) } @@ -755,6 +791,12 @@ func (a *ServiceTokensApiService) SearchServiceTokensExecute(r ApiSearchServiceT return localVarReturnValue, nil, reportError("serviceTokenSearchRequest is required and must be specified") } + 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{"application/json"} @@ -977,6 +1019,17 @@ func (a *ServiceTokensApiService) UpdateServiceTokenByUuidExecute(r ApiUpdateSer } 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 } diff --git a/services/fabricv4/api_statistics.go b/services/fabricv4/api_statistics.go index 1251df70..b0a3208a 100644 --- a/services/fabricv4/api_statistics.go +++ b/services/fabricv4/api_statistics.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/api_stream_subscriptions.go b/services/fabricv4/api_stream_subscriptions.go new file mode 100644 index 00000000..b2a6b68a --- /dev/null +++ b/services/fabricv4/api_stream_subscriptions.go @@ -0,0 +1,844 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// StreamSubscriptionsApiService StreamSubscriptionsApi service +type StreamSubscriptionsApiService service + +type ApiCreateStreamSubscriptionsRequest struct { + ctx context.Context + ApiService *StreamSubscriptionsApiService + streamSubscriptionPostRequest *StreamSubscriptionPostRequest +} + +func (r ApiCreateStreamSubscriptionsRequest) StreamSubscriptionPostRequest(streamSubscriptionPostRequest StreamSubscriptionPostRequest) ApiCreateStreamSubscriptionsRequest { + r.streamSubscriptionPostRequest = &streamSubscriptionPostRequest + return r +} + +func (r ApiCreateStreamSubscriptionsRequest) Execute() (*StreamSubscription, *http.Response, error) { + return r.ApiService.CreateStreamSubscriptionsExecute(r) +} + +/* +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(). + @return ApiCreateStreamSubscriptionsRequest +*/ +func (a *StreamSubscriptionsApiService) CreateStreamSubscriptions(ctx context.Context) ApiCreateStreamSubscriptionsRequest { + return ApiCreateStreamSubscriptionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return StreamSubscription +func (a *StreamSubscriptionsApiService) CreateStreamSubscriptionsExecute(r ApiCreateStreamSubscriptionsRequest) (*StreamSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StreamSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamSubscriptionsApiService.CreateStreamSubscriptions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streamSubscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.streamSubscriptionPostRequest == nil { + return localVarReturnValue, nil, reportError("streamSubscriptionPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.streamSubscriptionPostRequest + 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 == 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 == 415 { + 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 ApiDeleteStreamSubscriptionByUuidRequest struct { + ctx context.Context + ApiService *StreamSubscriptionsApiService + streamSubscriptionId string +} + +func (r ApiDeleteStreamSubscriptionByUuidRequest) Execute() (*StreamSubscription, *http.Response, error) { + return r.ApiService.DeleteStreamSubscriptionByUuidExecute(r) +} + +/* +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 + @return ApiDeleteStreamSubscriptionByUuidRequest +*/ +func (a *StreamSubscriptionsApiService) DeleteStreamSubscriptionByUuid(ctx context.Context, streamSubscriptionId string) ApiDeleteStreamSubscriptionByUuidRequest { + return ApiDeleteStreamSubscriptionByUuidRequest{ + ApiService: a, + ctx: ctx, + streamSubscriptionId: streamSubscriptionId, + } +} + +// Execute executes the request +// +// @return StreamSubscription +func (a *StreamSubscriptionsApiService) DeleteStreamSubscriptionByUuidExecute(r ApiDeleteStreamSubscriptionByUuidRequest) (*StreamSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StreamSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamSubscriptionsApiService.DeleteStreamSubscriptionByUuid") + if err != nil { + 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) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 == 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 == 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 ApiGetStreamSubscriptionByUuidRequest struct { + ctx context.Context + ApiService *StreamSubscriptionsApiService + streamSubscriptionId string +} + +func (r ApiGetStreamSubscriptionByUuidRequest) Execute() (*StreamSubscription, *http.Response, error) { + return r.ApiService.GetStreamSubscriptionByUuidExecute(r) +} + +/* +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 + @return ApiGetStreamSubscriptionByUuidRequest +*/ +func (a *StreamSubscriptionsApiService) GetStreamSubscriptionByUuid(ctx context.Context, streamSubscriptionId string) ApiGetStreamSubscriptionByUuidRequest { + return ApiGetStreamSubscriptionByUuidRequest{ + ApiService: a, + ctx: ctx, + streamSubscriptionId: streamSubscriptionId, + } +} + +// Execute executes the request +// +// @return StreamSubscription +func (a *StreamSubscriptionsApiService) GetStreamSubscriptionByUuidExecute(r ApiGetStreamSubscriptionByUuidRequest) (*StreamSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StreamSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamSubscriptionsApiService.GetStreamSubscriptionByUuid") + if err != nil { + 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) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 == 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 == 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 ApiGetStreamSubscriptionsRequest struct { + ctx context.Context + ApiService *StreamSubscriptionsApiService + offset *int32 + limit *int32 +} + +// offset +func (r ApiGetStreamSubscriptionsRequest) Offset(offset int32) ApiGetStreamSubscriptionsRequest { + r.offset = &offset + return r +} + +// number of records to fetch +func (r ApiGetStreamSubscriptionsRequest) Limit(limit int32) ApiGetStreamSubscriptionsRequest { + r.limit = &limit + return r +} + +func (r ApiGetStreamSubscriptionsRequest) Execute() (*GetAllStreamSubscriptionResponse, *http.Response, error) { + return r.ApiService.GetStreamSubscriptionsExecute(r) +} + +/* +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(). + @return ApiGetStreamSubscriptionsRequest +*/ +func (a *StreamSubscriptionsApiService) GetStreamSubscriptions(ctx context.Context) ApiGetStreamSubscriptionsRequest { + return ApiGetStreamSubscriptionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetAllStreamSubscriptionResponse +func (a *StreamSubscriptionsApiService) GetStreamSubscriptionsExecute(r ApiGetStreamSubscriptionsRequest) (*GetAllStreamSubscriptionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetAllStreamSubscriptionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamSubscriptionsApiService.GetStreamSubscriptions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streamSubscriptions" + + 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 ApiUpdateStreamSubscriptionByUuidRequest struct { + ctx context.Context + ApiService *StreamSubscriptionsApiService + streamSubscriptionId string + streamSubscriptionPutRequest *StreamSubscriptionPutRequest +} + +func (r ApiUpdateStreamSubscriptionByUuidRequest) StreamSubscriptionPutRequest(streamSubscriptionPutRequest StreamSubscriptionPutRequest) ApiUpdateStreamSubscriptionByUuidRequest { + r.streamSubscriptionPutRequest = &streamSubscriptionPutRequest + return r +} + +func (r ApiUpdateStreamSubscriptionByUuidRequest) Execute() (*StreamSubscription, *http.Response, error) { + return r.ApiService.UpdateStreamSubscriptionByUuidExecute(r) +} + +/* +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 + @return ApiUpdateStreamSubscriptionByUuidRequest +*/ +func (a *StreamSubscriptionsApiService) UpdateStreamSubscriptionByUuid(ctx context.Context, streamSubscriptionId string) ApiUpdateStreamSubscriptionByUuidRequest { + return ApiUpdateStreamSubscriptionByUuidRequest{ + ApiService: a, + ctx: ctx, + streamSubscriptionId: streamSubscriptionId, + } +} + +// Execute executes the request +// +// @return StreamSubscription +func (a *StreamSubscriptionsApiService) UpdateStreamSubscriptionByUuidExecute(r ApiUpdateStreamSubscriptionByUuidRequest) (*StreamSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StreamSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamSubscriptionsApiService.UpdateStreamSubscriptionByUuid") + if err != nil { + 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) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.streamSubscriptionPutRequest == nil { + return localVarReturnValue, nil, reportError("streamSubscriptionPutRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.streamSubscriptionPutRequest + 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 == 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 == 415 { + 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_streams.go b/services/fabricv4/api_streams.go new file mode 100644 index 00000000..28a7e258 --- /dev/null +++ b/services/fabricv4/api_streams.go @@ -0,0 +1,1705 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// StreamsApiService StreamsApi service +type StreamsApiService service + +type ApiCreateStreamsRequest struct { + ctx context.Context + ApiService *StreamsApiService + streamPostRequest *StreamPostRequest +} + +func (r ApiCreateStreamsRequest) StreamPostRequest(streamPostRequest StreamPostRequest) ApiCreateStreamsRequest { + r.streamPostRequest = &streamPostRequest + return r +} + +func (r ApiCreateStreamsRequest) Execute() (*Stream, *http.Response, error) { + return r.ApiService.CreateStreamsExecute(r) +} + +/* +CreateStreams Create Stream + +This API provides capability to create user's stream + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateStreamsRequest +*/ +func (a *StreamsApiService) CreateStreams(ctx context.Context) ApiCreateStreamsRequest { + return ApiCreateStreamsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Stream +func (a *StreamsApiService) CreateStreamsExecute(r ApiCreateStreamsRequest) (*Stream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Stream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.CreateStreams") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.streamPostRequest == nil { + return localVarReturnValue, nil, reportError("streamPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.streamPostRequest + 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 == 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 == 415 { + 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 ApiDeleteStreamAssetByUuidRequest struct { + ctx context.Context + ApiService *StreamsApiService + assetId string + asset Asset + streamId string +} + +func (r ApiDeleteStreamAssetByUuidRequest) Execute() (*StreamAsset, *http.Response, error) { + return r.ApiService.DeleteStreamAssetByUuidExecute(r) +} + +/* +DeleteStreamAssetByUuid Detach Asset + +This API provides capability to detach an asset from a stream + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param assetId asset UUID + @param asset asset + @param streamId Stream UUID + @return ApiDeleteStreamAssetByUuidRequest +*/ +func (a *StreamsApiService) DeleteStreamAssetByUuid(ctx context.Context, assetId string, asset Asset, streamId string) ApiDeleteStreamAssetByUuidRequest { + return ApiDeleteStreamAssetByUuidRequest{ + ApiService: a, + ctx: ctx, + assetId: assetId, + asset: asset, + streamId: streamId, + } +} + +// Execute executes the request +// +// @return StreamAsset +func (a *StreamsApiService) DeleteStreamAssetByUuidExecute(r ApiDeleteStreamAssetByUuidRequest) (*StreamAsset, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StreamAsset + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.DeleteStreamAssetByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/{asset}/{assetId}" + localVarPath = strings.Replace(localVarPath, "{"+"assetId"+"}", url.PathEscape(parameterValueToString(r.assetId, "assetId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"asset"+"}", url.PathEscape(parameterValueToString(r.asset, "asset")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 == 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 == 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 ApiDeleteStreamByUuidRequest struct { + ctx context.Context + ApiService *StreamsApiService + streamId string +} + +func (r ApiDeleteStreamByUuidRequest) Execute() (*Stream, *http.Response, error) { + return r.ApiService.DeleteStreamByUuidExecute(r) +} + +/* +DeleteStreamByUuid Delete Stream + +This API provides capability to delete user's stream + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param streamId Stream UUID + @return ApiDeleteStreamByUuidRequest +*/ +func (a *StreamsApiService) DeleteStreamByUuid(ctx context.Context, streamId string) ApiDeleteStreamByUuidRequest { + return ApiDeleteStreamByUuidRequest{ + ApiService: a, + ctx: ctx, + streamId: streamId, + } +} + +// Execute executes the request +// +// @return Stream +func (a *StreamsApiService) DeleteStreamByUuidExecute(r ApiDeleteStreamByUuidRequest) (*Stream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Stream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.DeleteStreamByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}" + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 == 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 == 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 ApiGetStreamAssetByUuidRequest struct { + ctx context.Context + ApiService *StreamsApiService + assetId string + asset Asset + streamId string +} + +func (r ApiGetStreamAssetByUuidRequest) Execute() (*StreamAsset, *http.Response, error) { + return r.ApiService.GetStreamAssetByUuidExecute(r) +} + +/* +GetStreamAssetByUuid Get Asset + +This API provides capability to get user's assets attached to a stream + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param assetId asset UUID + @param asset asset + @param streamId Stream UUID + @return ApiGetStreamAssetByUuidRequest +*/ +func (a *StreamsApiService) GetStreamAssetByUuid(ctx context.Context, assetId string, asset Asset, streamId string) ApiGetStreamAssetByUuidRequest { + return ApiGetStreamAssetByUuidRequest{ + ApiService: a, + ctx: ctx, + assetId: assetId, + asset: asset, + streamId: streamId, + } +} + +// Execute executes the request +// +// @return StreamAsset +func (a *StreamsApiService) GetStreamAssetByUuidExecute(r ApiGetStreamAssetByUuidRequest) (*StreamAsset, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StreamAsset + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.GetStreamAssetByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/{asset}/{assetId}" + localVarPath = strings.Replace(localVarPath, "{"+"assetId"+"}", url.PathEscape(parameterValueToString(r.assetId, "assetId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"asset"+"}", url.PathEscape(parameterValueToString(r.asset, "asset")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 == 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 == 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 ApiGetStreamByUuidRequest struct { + ctx context.Context + ApiService *StreamsApiService + streamId string +} + +func (r ApiGetStreamByUuidRequest) Execute() (*Stream, *http.Response, error) { + return r.ApiService.GetStreamByUuidExecute(r) +} + +/* +GetStreamByUuid Get Stream + +This API provides capability to get user's stream + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param streamId Stream UUID + @return ApiGetStreamByUuidRequest +*/ +func (a *StreamsApiService) GetStreamByUuid(ctx context.Context, streamId string) ApiGetStreamByUuidRequest { + return ApiGetStreamByUuidRequest{ + ApiService: a, + ctx: ctx, + streamId: streamId, + } +} + +// Execute executes the request +// +// @return Stream +func (a *StreamsApiService) GetStreamByUuidExecute(r ApiGetStreamByUuidRequest) (*Stream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Stream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.GetStreamByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}" + localVarPath = strings.Replace(localVarPath, "{"+"streamId"+"}", url.PathEscape(parameterValueToString(r.streamId, "streamId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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 == 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 == 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 ApiGetStreamsRequest struct { + ctx context.Context + ApiService *StreamsApiService + offset *int32 + limit *int32 +} + +// offset +func (r ApiGetStreamsRequest) Offset(offset int32) ApiGetStreamsRequest { + r.offset = &offset + return r +} + +// number of records to fetch +func (r ApiGetStreamsRequest) Limit(limit int32) ApiGetStreamsRequest { + r.limit = &limit + return r +} + +func (r ApiGetStreamsRequest) Execute() (*GetAllStreamResponse, *http.Response, error) { + return r.ApiService.GetStreamsExecute(r) +} + +/* +GetStreams Get Streams + +This API provides capability to retrieve streams + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStreamsRequest +*/ +func (a *StreamsApiService) GetStreams(ctx context.Context) ApiGetStreamsRequest { + return ApiGetStreamsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetAllStreamResponse +func (a *StreamsApiService) GetStreamsExecute(r ApiGetStreamsRequest) (*GetAllStreamResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetAllStreamResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.GetStreams") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams" + + 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 ApiGetStreamsAssetsRequest struct { + ctx context.Context + ApiService *StreamsApiService + streamAssetSearchRequest *StreamAssetSearchRequest + offset *int32 + limit *int32 +} + +func (r ApiGetStreamsAssetsRequest) StreamAssetSearchRequest(streamAssetSearchRequest StreamAssetSearchRequest) ApiGetStreamsAssetsRequest { + r.streamAssetSearchRequest = &streamAssetSearchRequest + return r +} + +// offset +func (r ApiGetStreamsAssetsRequest) Offset(offset int32) ApiGetStreamsAssetsRequest { + r.offset = &offset + return r +} + +// number of records to fetch +func (r ApiGetStreamsAssetsRequest) Limit(limit int32) ApiGetStreamsAssetsRequest { + r.limit = &limit + return r +} + +func (r ApiGetStreamsAssetsRequest) Execute() (*GetAllStreamAssetResponse, *http.Response, error) { + return r.ApiService.GetStreamsAssetsExecute(r) +} + +/* +GetStreamsAssets Get Assets + +This API provides capability to retrieve stream assets + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStreamsAssetsRequest +*/ +func (a *StreamsApiService) GetStreamsAssets(ctx context.Context) ApiGetStreamsAssetsRequest { + return ApiGetStreamsAssetsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetAllStreamAssetResponse +func (a *StreamsApiService) GetStreamsAssetsExecute(r ApiGetStreamsAssetsRequest) (*GetAllStreamAssetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetAllStreamAssetResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.GetStreamsAssets") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streamAssets/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.streamAssetSearchRequest == nil { + return localVarReturnValue, nil, reportError("streamAssetSearchRequest is required and must be specified") + } + + 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{"application/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.streamAssetSearchRequest + 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 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 + assetId string + asset Asset + streamId string + streamAssetPutRequest *StreamAssetPutRequest +} + +func (r ApiUpdateStreamAssetByUuidRequest) StreamAssetPutRequest(streamAssetPutRequest StreamAssetPutRequest) ApiUpdateStreamAssetByUuidRequest { + r.streamAssetPutRequest = &streamAssetPutRequest + return r +} + +func (r ApiUpdateStreamAssetByUuidRequest) Execute() (*StreamAsset, *http.Response, error) { + return r.ApiService.UpdateStreamAssetByUuidExecute(r) +} + +/* +UpdateStreamAssetByUuid Attach Asset + +This API provides capability to attach an asset to a stream + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param assetId asset UUID + @param asset asset + @param streamId Stream UUID + @return ApiUpdateStreamAssetByUuidRequest +*/ +func (a *StreamsApiService) UpdateStreamAssetByUuid(ctx context.Context, assetId string, asset Asset, streamId string) ApiUpdateStreamAssetByUuidRequest { + return ApiUpdateStreamAssetByUuidRequest{ + ApiService: a, + ctx: ctx, + assetId: assetId, + asset: asset, + streamId: streamId, + } +} + +// Execute executes the request +// +// @return StreamAsset +func (a *StreamsApiService) UpdateStreamAssetByUuidExecute(r ApiUpdateStreamAssetByUuidRequest) (*StreamAsset, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StreamAsset + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.UpdateStreamAssetByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}/{asset}/{assetId}" + localVarPath = strings.Replace(localVarPath, "{"+"assetId"+"}", url.PathEscape(parameterValueToString(r.assetId, "assetId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"asset"+"}", url.PathEscape(parameterValueToString(r.asset, "asset")), -1) + 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.streamAssetPutRequest == nil { + return localVarReturnValue, nil, reportError("streamAssetPutRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.streamAssetPutRequest + 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 == 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 == 415 { + 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 ApiUpdateStreamByUuidRequest struct { + ctx context.Context + ApiService *StreamsApiService + streamId string + streamPutRequest *StreamPutRequest +} + +func (r ApiUpdateStreamByUuidRequest) StreamPutRequest(streamPutRequest StreamPutRequest) ApiUpdateStreamByUuidRequest { + r.streamPutRequest = &streamPutRequest + return r +} + +func (r ApiUpdateStreamByUuidRequest) Execute() (*Stream, *http.Response, error) { + return r.ApiService.UpdateStreamByUuidExecute(r) +} + +/* +UpdateStreamByUuid Update Stream + +This API provides capability to update user's stream + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param streamId Stream UUID + @return ApiUpdateStreamByUuidRequest +*/ +func (a *StreamsApiService) UpdateStreamByUuid(ctx context.Context, streamId string) ApiUpdateStreamByUuidRequest { + return ApiUpdateStreamByUuidRequest{ + ApiService: a, + ctx: ctx, + streamId: streamId, + } +} + +// Execute executes the request +// +// @return Stream +func (a *StreamsApiService) UpdateStreamByUuidExecute(r ApiUpdateStreamByUuidRequest) (*Stream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Stream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreamsApiService.UpdateStreamByUuid") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fabric/v4/streams/{streamId}" + 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.streamPutRequest == nil { + return localVarReturnValue, nil, reportError("streamPutRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/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.streamPutRequest + 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 == 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 == 415 { + 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/client.go b/services/fabricv4/client.go index c66718a3..f96ac717 100644 --- a/services/fabricv4/client.go +++ b/services/fabricv4/client.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,7 +37,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Equinix Fabric API v4 API v4.15 +// APIClient manages communication with the Equinix Fabric API v4 API v4.17 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -75,6 +74,10 @@ type APIClient struct { ServiceTokensApi *ServiceTokensApiService StatisticsApi *StatisticsApiService + + StreamSubscriptionsApi *StreamSubscriptionsApiService + + StreamsApi *StreamsApiService } type service struct { @@ -108,6 +111,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.ServiceProfilesApi = (*ServiceProfilesApiService)(&c.common) c.ServiceTokensApi = (*ServiceTokensApiService)(&c.common) c.StatisticsApi = (*StatisticsApiService)(&c.common) + c.StreamSubscriptionsApi = (*StreamSubscriptionsApiService)(&c.common) + c.StreamsApi = (*StreamsApiService)(&c.common) return c } diff --git a/services/fabricv4/configuration.go b/services/fabricv4/configuration.go index 6390ed75..0aa4badc 100644 --- a/services/fabricv4/configuration.go +++ b/services/fabricv4/configuration.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/docs/AccessPointSelector.md b/services/fabricv4/docs/AccessPointSelector.md index 441367b6..b449f22e 100644 --- a/services/fabricv4/docs/AccessPointSelector.md +++ b/services/fabricv4/docs/AccessPointSelector.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to [**AccessPointSelectorType**](AccessPointSelectorType.md) | | [optional] **Port** | Pointer to [**SimplifiedMetadataEntity**](SimplifiedMetadataEntity.md) | | [optional] -**LinkProtocol** | Pointer to [**LinkProtocol**](LinkProtocol.md) | | [optional] +**LinkProtocol** | Pointer to [**SimplifiedLinkProtocol**](SimplifiedLinkProtocol.md) | | [optional] +**VirtualDevice** | Pointer to [**SimplifiedVirtualDevice**](SimplifiedVirtualDevice.md) | | [optional] +**Interface** | Pointer to [**VirtualDeviceInterface**](VirtualDeviceInterface.md) | | [optional] +**Network** | Pointer to [**SimplifiedTokenNetwork**](SimplifiedTokenNetwork.md) | | [optional] ## Methods @@ -79,20 +82,20 @@ HasPort returns a boolean if a field has been set. ### GetLinkProtocol -`func (o *AccessPointSelector) GetLinkProtocol() LinkProtocol` +`func (o *AccessPointSelector) GetLinkProtocol() SimplifiedLinkProtocol` GetLinkProtocol returns the LinkProtocol field if non-nil, zero value otherwise. ### GetLinkProtocolOk -`func (o *AccessPointSelector) GetLinkProtocolOk() (*LinkProtocol, bool)` +`func (o *AccessPointSelector) GetLinkProtocolOk() (*SimplifiedLinkProtocol, bool)` GetLinkProtocolOk returns a tuple with the LinkProtocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinkProtocol -`func (o *AccessPointSelector) SetLinkProtocol(v LinkProtocol)` +`func (o *AccessPointSelector) SetLinkProtocol(v SimplifiedLinkProtocol)` SetLinkProtocol sets LinkProtocol field to given value. @@ -102,6 +105,81 @@ SetLinkProtocol sets LinkProtocol field to given value. HasLinkProtocol returns a boolean if a field has been set. +### GetVirtualDevice + +`func (o *AccessPointSelector) GetVirtualDevice() SimplifiedVirtualDevice` + +GetVirtualDevice returns the VirtualDevice field if non-nil, zero value otherwise. + +### GetVirtualDeviceOk + +`func (o *AccessPointSelector) GetVirtualDeviceOk() (*SimplifiedVirtualDevice, bool)` + +GetVirtualDeviceOk returns a tuple with the VirtualDevice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualDevice + +`func (o *AccessPointSelector) SetVirtualDevice(v SimplifiedVirtualDevice)` + +SetVirtualDevice sets VirtualDevice field to given value. + +### HasVirtualDevice + +`func (o *AccessPointSelector) HasVirtualDevice() bool` + +HasVirtualDevice returns a boolean if a field has been set. + +### GetInterface + +`func (o *AccessPointSelector) GetInterface() VirtualDeviceInterface` + +GetInterface returns the Interface field if non-nil, zero value otherwise. + +### GetInterfaceOk + +`func (o *AccessPointSelector) GetInterfaceOk() (*VirtualDeviceInterface, bool)` + +GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterface + +`func (o *AccessPointSelector) SetInterface(v VirtualDeviceInterface)` + +SetInterface sets Interface field to given value. + +### HasInterface + +`func (o *AccessPointSelector) HasInterface() bool` + +HasInterface returns a boolean if a field has been set. + +### GetNetwork + +`func (o *AccessPointSelector) GetNetwork() SimplifiedTokenNetwork` + +GetNetwork returns the Network field if non-nil, zero value otherwise. + +### GetNetworkOk + +`func (o *AccessPointSelector) GetNetworkOk() (*SimplifiedTokenNetwork, bool)` + +GetNetworkOk returns a tuple with the Network field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetwork + +`func (o *AccessPointSelector) SetNetwork(v SimplifiedTokenNetwork)` + +SetNetwork sets Network field to given value. + +### HasNetwork + +`func (o *AccessPointSelector) HasNetwork() bool` + +HasNetwork 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/AccessPointSelectorType.md b/services/fabricv4/docs/AccessPointSelectorType.md index eb15f10e..b30717d6 100644 --- a/services/fabricv4/docs/AccessPointSelectorType.md +++ b/services/fabricv4/docs/AccessPointSelectorType.md @@ -5,6 +5,10 @@ * `COLO` (value: `"COLO"`) +* `VD` (value: `"VD"`) + +* `NETWORK` (value: `"NETWORK"`) + [[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/Account.md b/services/fabricv4/docs/Account.md deleted file mode 100644 index 167120ce..00000000 --- a/services/fabricv4/docs/Account.md +++ /dev/null @@ -1,129 +0,0 @@ -# Account - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountNumber** | **int32** | | -**IsResellerAccount** | Pointer to **bool** | | [optional] -**OrgId** | Pointer to **string** | | [optional] -**GlobalOrgId** | Pointer to **string** | | [optional] - -## Methods - -### NewAccount - -`func NewAccount(accountNumber int32, ) *Account` - -NewAccount instantiates a new Account 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 - -### NewAccountWithDefaults - -`func NewAccountWithDefaults() *Account` - -NewAccountWithDefaults instantiates a new Account 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 - -### GetAccountNumber - -`func (o *Account) GetAccountNumber() int32` - -GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. - -### GetAccountNumberOk - -`func (o *Account) GetAccountNumberOk() (*int32, bool)` - -GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccountNumber - -`func (o *Account) SetAccountNumber(v int32)` - -SetAccountNumber sets AccountNumber field to given value. - - -### GetIsResellerAccount - -`func (o *Account) GetIsResellerAccount() bool` - -GetIsResellerAccount returns the IsResellerAccount field if non-nil, zero value otherwise. - -### GetIsResellerAccountOk - -`func (o *Account) GetIsResellerAccountOk() (*bool, bool)` - -GetIsResellerAccountOk returns a tuple with the IsResellerAccount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsResellerAccount - -`func (o *Account) SetIsResellerAccount(v bool)` - -SetIsResellerAccount sets IsResellerAccount field to given value. - -### HasIsResellerAccount - -`func (o *Account) HasIsResellerAccount() bool` - -HasIsResellerAccount returns a boolean if a field has been set. - -### GetOrgId - -`func (o *Account) GetOrgId() string` - -GetOrgId returns the OrgId field if non-nil, zero value otherwise. - -### GetOrgIdOk - -`func (o *Account) GetOrgIdOk() (*string, bool)` - -GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrgId - -`func (o *Account) SetOrgId(v string)` - -SetOrgId sets OrgId field to given value. - -### HasOrgId - -`func (o *Account) HasOrgId() bool` - -HasOrgId returns a boolean if a field has been set. - -### GetGlobalOrgId - -`func (o *Account) GetGlobalOrgId() string` - -GetGlobalOrgId returns the GlobalOrgId field if non-nil, zero value otherwise. - -### GetGlobalOrgIdOk - -`func (o *Account) GetGlobalOrgIdOk() (*string, bool)` - -GetGlobalOrgIdOk returns a tuple with the GlobalOrgId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGlobalOrgId - -`func (o *Account) SetGlobalOrgId(v string)` - -SetGlobalOrgId sets GlobalOrgId field to given value. - -### HasGlobalOrgId - -`func (o *Account) HasGlobalOrgId() bool` - -HasGlobalOrgId 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/AdvanceConfiguration.md b/services/fabricv4/docs/AdvanceConfiguration.md deleted file mode 100644 index d993d96b..00000000 --- a/services/fabricv4/docs/AdvanceConfiguration.md +++ /dev/null @@ -1,82 +0,0 @@ -# AdvanceConfiguration - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Ntp** | Pointer to [**[]Md5**](Md5.md) | | [optional] -**Ptp** | Pointer to [**PtpAdvanceConfiguration**](PtpAdvanceConfiguration.md) | | [optional] - -## Methods - -### NewAdvanceConfiguration - -`func NewAdvanceConfiguration() *AdvanceConfiguration` - -NewAdvanceConfiguration instantiates a new AdvanceConfiguration 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 - -### NewAdvanceConfigurationWithDefaults - -`func NewAdvanceConfigurationWithDefaults() *AdvanceConfiguration` - -NewAdvanceConfigurationWithDefaults instantiates a new AdvanceConfiguration 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 - -### GetNtp - -`func (o *AdvanceConfiguration) GetNtp() []Md5` - -GetNtp returns the Ntp field if non-nil, zero value otherwise. - -### GetNtpOk - -`func (o *AdvanceConfiguration) GetNtpOk() (*[]Md5, bool)` - -GetNtpOk returns a tuple with the Ntp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNtp - -`func (o *AdvanceConfiguration) SetNtp(v []Md5)` - -SetNtp sets Ntp field to given value. - -### HasNtp - -`func (o *AdvanceConfiguration) HasNtp() bool` - -HasNtp returns a boolean if a field has been set. - -### GetPtp - -`func (o *AdvanceConfiguration) GetPtp() PtpAdvanceConfiguration` - -GetPtp returns the Ptp field if non-nil, zero value otherwise. - -### GetPtpOk - -`func (o *AdvanceConfiguration) GetPtpOk() (*PtpAdvanceConfiguration, bool)` - -GetPtpOk returns a tuple with the Ptp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPtp - -`func (o *AdvanceConfiguration) SetPtp(v PtpAdvanceConfiguration)` - -SetPtp sets Ptp field to given value. - -### HasPtp - -`func (o *AdvanceConfiguration) HasPtp() bool` - -HasPtp 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/AllPortsResponse.md b/services/fabricv4/docs/AllPortsResponse.md index 8abd71a2..9733c6dd 100644 --- a/services/fabricv4/docs/AllPortsResponse.md +++ b/services/fabricv4/docs/AllPortsResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] -**Data** | Pointer to [**[]PortResponse**](PortResponse.md) | GET All User Port Across Fabric Metros | [optional] +**Data** | Pointer to [**[]Port**](Port.md) | GET All User Port Across Fabric Metros | [optional] ## Methods @@ -53,20 +53,20 @@ HasPagination returns a boolean if a field has been set. ### GetData -`func (o *AllPortsResponse) GetData() []PortResponse` +`func (o *AllPortsResponse) GetData() []Port` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AllPortsResponse) GetDataOk() (*[]PortResponse, bool)` +`func (o *AllPortsResponse) GetDataOk() (*[]Port, 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 *AllPortsResponse) SetData(v []PortResponse)` +`func (o *AllPortsResponse) SetData(v []Port)` SetData sets Data field to given value. diff --git a/services/fabricv4/docs/Asset.md b/services/fabricv4/docs/Asset.md new file mode 100644 index 00000000..6d3f50d7 --- /dev/null +++ b/services/fabricv4/docs/Asset.md @@ -0,0 +1,17 @@ +# Asset + +## Enum + + +* `PORTS` (value: `"ports"`) + +* `CONNECTIONS` (value: `"connections"`) + +* `ROUTERS` (value: `"routers"`) + +* `METROS` (value: `"metros"`) + + +[[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/BGPConnectionIpv4.md b/services/fabricv4/docs/BGPConnectionIpv4.md index 88a3a09f..6d7656b8 100644 --- a/services/fabricv4/docs/BGPConnectionIpv4.md +++ b/services/fabricv4/docs/BGPConnectionIpv4.md @@ -8,8 +8,9 @@ Name | Type | Description | Notes **EquinixPeerIp** | Pointer to **string** | Equinix side peering ip | [optional] **Enabled** | **bool** | Admin status for the BGP session | **OutboundASPrependCount** | Pointer to **int64** | AS path prepend count | [optional] -**InboundMED** | Pointer to **int64** | inbound Multi Exit Discriminator attribute | [optional] -**OutboundMED** | Pointer to **int64** | inbound Multi Exit Discriminator attribute | [optional] +**InboundMED** | Pointer to **int64** | Inbound Multi Exit Discriminator attribute | [optional] +**OutboundMED** | Pointer to **int64** | Outbound Multi Exit Discriminator attribute | [optional] +**RoutesMax** | Pointer to **int64** | Maximum learnt prefixes limit | [optional] **Operation** | Pointer to [**BGPConnectionOperation**](BGPConnectionOperation.md) | | [optional] ## Methods @@ -171,6 +172,31 @@ SetOutboundMED sets OutboundMED field to given value. HasOutboundMED returns a boolean if a field has been set. +### GetRoutesMax + +`func (o *BGPConnectionIpv4) GetRoutesMax() int64` + +GetRoutesMax returns the RoutesMax field if non-nil, zero value otherwise. + +### GetRoutesMaxOk + +`func (o *BGPConnectionIpv4) GetRoutesMaxOk() (*int64, bool)` + +GetRoutesMaxOk returns a tuple with the RoutesMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutesMax + +`func (o *BGPConnectionIpv4) SetRoutesMax(v int64)` + +SetRoutesMax sets RoutesMax field to given value. + +### HasRoutesMax + +`func (o *BGPConnectionIpv4) HasRoutesMax() bool` + +HasRoutesMax returns a boolean if a field has been set. + ### GetOperation `func (o *BGPConnectionIpv4) GetOperation() BGPConnectionOperation` diff --git a/services/fabricv4/docs/BGPConnectionIpv6.md b/services/fabricv4/docs/BGPConnectionIpv6.md index ea27b194..8412682d 100644 --- a/services/fabricv4/docs/BGPConnectionIpv6.md +++ b/services/fabricv4/docs/BGPConnectionIpv6.md @@ -8,8 +8,9 @@ Name | Type | Description | Notes **EquinixPeerIp** | Pointer to **string** | Equinix side peering ip | [optional] **Enabled** | **bool** | Admin status for the BGP session | **OutboundASPrependCount** | Pointer to **int64** | AS path prepend count | [optional] -**InboundMED** | Pointer to **int64** | inbound Multi Exit Discriminator attribute | [optional] -**OutboundMED** | Pointer to **int64** | inbound Multi Exit Discriminator attribute | [optional] +**InboundMED** | Pointer to **int64** | Inbound Multi Exit Discriminator attribute | [optional] +**OutboundMED** | Pointer to **int64** | Outbound Multi Exit Discriminator attribute | [optional] +**RoutesMax** | Pointer to **int64** | Maximum learnt prefixes limit | [optional] **Operation** | Pointer to [**BGPConnectionOperation**](BGPConnectionOperation.md) | | [optional] ## Methods @@ -171,6 +172,31 @@ SetOutboundMED sets OutboundMED field to given value. HasOutboundMED returns a boolean if a field has been set. +### GetRoutesMax + +`func (o *BGPConnectionIpv6) GetRoutesMax() int64` + +GetRoutesMax returns the RoutesMax field if non-nil, zero value otherwise. + +### GetRoutesMaxOk + +`func (o *BGPConnectionIpv6) GetRoutesMaxOk() (*int64, bool)` + +GetRoutesMaxOk returns a tuple with the RoutesMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutesMax + +`func (o *BGPConnectionIpv6) SetRoutesMax(v int64)` + +SetRoutesMax sets RoutesMax field to given value. + +### HasRoutesMax + +`func (o *BGPConnectionIpv6) HasRoutesMax() bool` + +HasRoutesMax returns a boolean if a field has been set. + ### GetOperation `func (o *BGPConnectionIpv6) GetOperation() BGPConnectionOperation` diff --git a/services/fabricv4/docs/BaseConnection.md b/services/fabricv4/docs/BaseConnection.md deleted file mode 100644 index e494b878..00000000 --- a/services/fabricv4/docs/BaseConnection.md +++ /dev/null @@ -1,602 +0,0 @@ -# BaseConnection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to [**ConnectionType**](ConnectionType.md) | | [optional] -**Href** | Pointer to **string** | Connection URI | [optional] [readonly] -**Uuid** | Pointer to **string** | Equinix-assigned connection identifier | [optional] -**Name** | Pointer to **string** | Customer-provided connection name | [optional] -**Description** | Pointer to **string** | Customer-provided connection description | [optional] -**State** | Pointer to [**ConnectionState**](ConnectionState.md) | | [optional] -**Change** | Pointer to [**Change**](Change.md) | | [optional] -**Operation** | Pointer to [**ConnectionOperation**](ConnectionOperation.md) | | [optional] -**Order** | Pointer to [**Order**](Order.md) | | [optional] -**Notifications** | Pointer to [**[]SimplifiedNotification**](SimplifiedNotification.md) | Preferences for notifications on connection configuration or status changes | [optional] -**Account** | Pointer to [**SimplifiedAccount**](SimplifiedAccount.md) | | [optional] -**ChangeLog** | Pointer to [**Changelog**](Changelog.md) | | [optional] -**Bandwidth** | Pointer to **int32** | Connection bandwidth in Mbps | [optional] -**GeoScope** | Pointer to [**GeoScopeType**](GeoScopeType.md) | | [optional] -**Redundancy** | Pointer to [**ConnectionRedundancy**](ConnectionRedundancy.md) | | [optional] -**IsRemote** | Pointer to **bool** | Connection property derived from access point locations | [optional] -**Direction** | Pointer to [**ConnectionDirection**](ConnectionDirection.md) | | [optional] -**ASide** | Pointer to [**ConnectionSide**](ConnectionSide.md) | | [optional] -**ZSide** | Pointer to [**ConnectionSide**](ConnectionSide.md) | | [optional] -**MarketplaceSubscription** | Pointer to [**MarketplaceSubscription**](MarketplaceSubscription.md) | | [optional] -**AdditionalInfo** | Pointer to [**[]ConnectionSideAdditionalInfo**](ConnectionSideAdditionalInfo.md) | Connection additional information | [optional] -**Project** | Pointer to [**Project**](Project.md) | | [optional] - -## Methods - -### NewBaseConnection - -`func NewBaseConnection() *BaseConnection` - -NewBaseConnection instantiates a new BaseConnection 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 - -### NewBaseConnectionWithDefaults - -`func NewBaseConnectionWithDefaults() *BaseConnection` - -NewBaseConnectionWithDefaults instantiates a new BaseConnection 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 - -### GetType - -`func (o *BaseConnection) GetType() ConnectionType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *BaseConnection) GetTypeOk() (*ConnectionType, 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 *BaseConnection) SetType(v ConnectionType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *BaseConnection) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetHref - -`func (o *BaseConnection) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *BaseConnection) 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 *BaseConnection) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *BaseConnection) HasHref() bool` - -HasHref returns a boolean if a field has been set. - -### GetUuid - -`func (o *BaseConnection) GetUuid() string` - -GetUuid returns the Uuid field if non-nil, zero value otherwise. - -### GetUuidOk - -`func (o *BaseConnection) 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 *BaseConnection) SetUuid(v string)` - -SetUuid sets Uuid field to given value. - -### HasUuid - -`func (o *BaseConnection) HasUuid() bool` - -HasUuid returns a boolean if a field has been set. - -### GetName - -`func (o *BaseConnection) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *BaseConnection) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *BaseConnection) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *BaseConnection) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetDescription - -`func (o *BaseConnection) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *BaseConnection) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *BaseConnection) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *BaseConnection) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetState - -`func (o *BaseConnection) GetState() ConnectionState` - -GetState returns the State field if non-nil, zero value otherwise. - -### GetStateOk - -`func (o *BaseConnection) GetStateOk() (*ConnectionState, bool)` - -GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetState - -`func (o *BaseConnection) SetState(v ConnectionState)` - -SetState sets State field to given value. - -### HasState - -`func (o *BaseConnection) HasState() bool` - -HasState returns a boolean if a field has been set. - -### GetChange - -`func (o *BaseConnection) GetChange() Change` - -GetChange returns the Change field if non-nil, zero value otherwise. - -### GetChangeOk - -`func (o *BaseConnection) GetChangeOk() (*Change, bool)` - -GetChangeOk returns a tuple with the Change field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChange - -`func (o *BaseConnection) SetChange(v Change)` - -SetChange sets Change field to given value. - -### HasChange - -`func (o *BaseConnection) HasChange() bool` - -HasChange returns a boolean if a field has been set. - -### GetOperation - -`func (o *BaseConnection) GetOperation() ConnectionOperation` - -GetOperation returns the Operation field if non-nil, zero value otherwise. - -### GetOperationOk - -`func (o *BaseConnection) GetOperationOk() (*ConnectionOperation, bool)` - -GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOperation - -`func (o *BaseConnection) SetOperation(v ConnectionOperation)` - -SetOperation sets Operation field to given value. - -### HasOperation - -`func (o *BaseConnection) HasOperation() bool` - -HasOperation returns a boolean if a field has been set. - -### GetOrder - -`func (o *BaseConnection) GetOrder() Order` - -GetOrder returns the Order field if non-nil, zero value otherwise. - -### GetOrderOk - -`func (o *BaseConnection) GetOrderOk() (*Order, bool)` - -GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrder - -`func (o *BaseConnection) SetOrder(v Order)` - -SetOrder sets Order field to given value. - -### HasOrder - -`func (o *BaseConnection) HasOrder() bool` - -HasOrder returns a boolean if a field has been set. - -### GetNotifications - -`func (o *BaseConnection) GetNotifications() []SimplifiedNotification` - -GetNotifications returns the Notifications field if non-nil, zero value otherwise. - -### GetNotificationsOk - -`func (o *BaseConnection) GetNotificationsOk() (*[]SimplifiedNotification, bool)` - -GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNotifications - -`func (o *BaseConnection) SetNotifications(v []SimplifiedNotification)` - -SetNotifications sets Notifications field to given value. - -### HasNotifications - -`func (o *BaseConnection) HasNotifications() bool` - -HasNotifications returns a boolean if a field has been set. - -### GetAccount - -`func (o *BaseConnection) GetAccount() SimplifiedAccount` - -GetAccount returns the Account field if non-nil, zero value otherwise. - -### GetAccountOk - -`func (o *BaseConnection) GetAccountOk() (*SimplifiedAccount, bool)` - -GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccount - -`func (o *BaseConnection) SetAccount(v SimplifiedAccount)` - -SetAccount sets Account field to given value. - -### HasAccount - -`func (o *BaseConnection) HasAccount() bool` - -HasAccount returns a boolean if a field has been set. - -### GetChangeLog - -`func (o *BaseConnection) GetChangeLog() Changelog` - -GetChangeLog returns the ChangeLog field if non-nil, zero value otherwise. - -### GetChangeLogOk - -`func (o *BaseConnection) GetChangeLogOk() (*Changelog, bool)` - -GetChangeLogOk returns a tuple with the ChangeLog field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChangeLog - -`func (o *BaseConnection) SetChangeLog(v Changelog)` - -SetChangeLog sets ChangeLog field to given value. - -### HasChangeLog - -`func (o *BaseConnection) HasChangeLog() bool` - -HasChangeLog returns a boolean if a field has been set. - -### GetBandwidth - -`func (o *BaseConnection) GetBandwidth() int32` - -GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. - -### GetBandwidthOk - -`func (o *BaseConnection) GetBandwidthOk() (*int32, bool)` - -GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBandwidth - -`func (o *BaseConnection) SetBandwidth(v int32)` - -SetBandwidth sets Bandwidth field to given value. - -### HasBandwidth - -`func (o *BaseConnection) HasBandwidth() bool` - -HasBandwidth returns a boolean if a field has been set. - -### GetGeoScope - -`func (o *BaseConnection) GetGeoScope() GeoScopeType` - -GetGeoScope returns the GeoScope field if non-nil, zero value otherwise. - -### GetGeoScopeOk - -`func (o *BaseConnection) GetGeoScopeOk() (*GeoScopeType, bool)` - -GetGeoScopeOk returns a tuple with the GeoScope field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGeoScope - -`func (o *BaseConnection) SetGeoScope(v GeoScopeType)` - -SetGeoScope sets GeoScope field to given value. - -### HasGeoScope - -`func (o *BaseConnection) HasGeoScope() bool` - -HasGeoScope returns a boolean if a field has been set. - -### GetRedundancy - -`func (o *BaseConnection) GetRedundancy() ConnectionRedundancy` - -GetRedundancy returns the Redundancy field if non-nil, zero value otherwise. - -### GetRedundancyOk - -`func (o *BaseConnection) GetRedundancyOk() (*ConnectionRedundancy, 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 *BaseConnection) SetRedundancy(v ConnectionRedundancy)` - -SetRedundancy sets Redundancy field to given value. - -### HasRedundancy - -`func (o *BaseConnection) HasRedundancy() bool` - -HasRedundancy returns a boolean if a field has been set. - -### GetIsRemote - -`func (o *BaseConnection) GetIsRemote() bool` - -GetIsRemote returns the IsRemote field if non-nil, zero value otherwise. - -### GetIsRemoteOk - -`func (o *BaseConnection) GetIsRemoteOk() (*bool, bool)` - -GetIsRemoteOk returns a tuple with the IsRemote field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsRemote - -`func (o *BaseConnection) SetIsRemote(v bool)` - -SetIsRemote sets IsRemote field to given value. - -### HasIsRemote - -`func (o *BaseConnection) HasIsRemote() bool` - -HasIsRemote returns a boolean if a field has been set. - -### GetDirection - -`func (o *BaseConnection) GetDirection() ConnectionDirection` - -GetDirection returns the Direction field if non-nil, zero value otherwise. - -### GetDirectionOk - -`func (o *BaseConnection) GetDirectionOk() (*ConnectionDirection, bool)` - -GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDirection - -`func (o *BaseConnection) SetDirection(v ConnectionDirection)` - -SetDirection sets Direction field to given value. - -### HasDirection - -`func (o *BaseConnection) HasDirection() bool` - -HasDirection returns a boolean if a field has been set. - -### GetASide - -`func (o *BaseConnection) GetASide() ConnectionSide` - -GetASide returns the ASide field if non-nil, zero value otherwise. - -### GetASideOk - -`func (o *BaseConnection) GetASideOk() (*ConnectionSide, bool)` - -GetASideOk returns a tuple with the ASide field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetASide - -`func (o *BaseConnection) SetASide(v ConnectionSide)` - -SetASide sets ASide field to given value. - -### HasASide - -`func (o *BaseConnection) HasASide() bool` - -HasASide returns a boolean if a field has been set. - -### GetZSide - -`func (o *BaseConnection) GetZSide() ConnectionSide` - -GetZSide returns the ZSide field if non-nil, zero value otherwise. - -### GetZSideOk - -`func (o *BaseConnection) GetZSideOk() (*ConnectionSide, bool)` - -GetZSideOk returns a tuple with the ZSide field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetZSide - -`func (o *BaseConnection) SetZSide(v ConnectionSide)` - -SetZSide sets ZSide field to given value. - -### HasZSide - -`func (o *BaseConnection) HasZSide() bool` - -HasZSide returns a boolean if a field has been set. - -### GetMarketplaceSubscription - -`func (o *BaseConnection) GetMarketplaceSubscription() MarketplaceSubscription` - -GetMarketplaceSubscription returns the MarketplaceSubscription field if non-nil, zero value otherwise. - -### GetMarketplaceSubscriptionOk - -`func (o *BaseConnection) GetMarketplaceSubscriptionOk() (*MarketplaceSubscription, bool)` - -GetMarketplaceSubscriptionOk returns a tuple with the MarketplaceSubscription field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarketplaceSubscription - -`func (o *BaseConnection) SetMarketplaceSubscription(v MarketplaceSubscription)` - -SetMarketplaceSubscription sets MarketplaceSubscription field to given value. - -### HasMarketplaceSubscription - -`func (o *BaseConnection) HasMarketplaceSubscription() bool` - -HasMarketplaceSubscription returns a boolean if a field has been set. - -### GetAdditionalInfo - -`func (o *BaseConnection) GetAdditionalInfo() []ConnectionSideAdditionalInfo` - -GetAdditionalInfo returns the AdditionalInfo field if non-nil, zero value otherwise. - -### GetAdditionalInfoOk - -`func (o *BaseConnection) GetAdditionalInfoOk() (*[]ConnectionSideAdditionalInfo, bool)` - -GetAdditionalInfoOk returns a tuple with the AdditionalInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdditionalInfo - -`func (o *BaseConnection) SetAdditionalInfo(v []ConnectionSideAdditionalInfo)` - -SetAdditionalInfo sets AdditionalInfo field to given value. - -### HasAdditionalInfo - -`func (o *BaseConnection) HasAdditionalInfo() bool` - -HasAdditionalInfo returns a boolean if a field has been set. - -### GetProject - -`func (o *BaseConnection) GetProject() Project` - -GetProject returns the Project field if non-nil, zero value otherwise. - -### GetProjectOk - -`func (o *BaseConnection) 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 *BaseConnection) SetProject(v Project)` - -SetProject sets Project field to given value. - -### HasProject - -`func (o *BaseConnection) HasProject() bool` - -HasProject 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/BulkPort.md b/services/fabricv4/docs/BulkPort.md index 9da41af1..5611c06a 100644 --- a/services/fabricv4/docs/BulkPort.md +++ b/services/fabricv4/docs/BulkPort.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**[]Port**](Port.md) | | [optional] +**Data** | Pointer to [**[]Port**](Port.md) | Ports that are part of BulkPort | [optional] ## Methods diff --git a/services/fabricv4/docs/BulkPortRequest.md b/services/fabricv4/docs/BulkPortRequest.md new file mode 100644 index 00000000..46c9ce27 --- /dev/null +++ b/services/fabricv4/docs/BulkPortRequest.md @@ -0,0 +1,56 @@ +# BulkPortRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]PortRequest**](PortRequest.md) | | [optional] + +## Methods + +### NewBulkPortRequest + +`func NewBulkPortRequest() *BulkPortRequest` + +NewBulkPortRequest instantiates a new BulkPortRequest 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 + +### NewBulkPortRequestWithDefaults + +`func NewBulkPortRequestWithDefaults() *BulkPortRequest` + +NewBulkPortRequestWithDefaults instantiates a new BulkPortRequest 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 + +### GetData + +`func (o *BulkPortRequest) GetData() []PortRequest` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BulkPortRequest) GetDataOk() (*[]PortRequest, 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 *BulkPortRequest) SetData(v []PortRequest)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BulkPortRequest) 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/CloudRouterAccessPointState.md b/services/fabricv4/docs/CloudRouterAccessPointState.md index 90891dfa..1302759d 100644 --- a/services/fabricv4/docs/CloudRouterAccessPointState.md +++ b/services/fabricv4/docs/CloudRouterAccessPointState.md @@ -11,7 +11,7 @@ * `DEPROVISIONED` (value: `"DEPROVISIONED"`) -* `LOCKED` (value: `"LOCKED"`) +* `REPROVISIONING` (value: `"REPROVISIONING"`) * `NOT_PROVISIONED` (value: `"NOT_PROVISIONED"`) diff --git a/services/fabricv4/docs/CloudRouterActionRequest.md b/services/fabricv4/docs/CloudRouterActionRequest.md index fc76f550..6dbbadfa 100644 --- a/services/fabricv4/docs/CloudRouterActionRequest.md +++ b/services/fabricv4/docs/CloudRouterActionRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | [**CloudRouterActionType**](CloudRouterActionType.md) | | +**Connection** | Pointer to [**RouterActionsConnection**](RouterActionsConnection.md) | | [optional] ## Methods @@ -45,6 +46,31 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. +### GetConnection + +`func (o *CloudRouterActionRequest) GetConnection() RouterActionsConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *CloudRouterActionRequest) GetConnectionOk() (*RouterActionsConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *CloudRouterActionRequest) SetConnection(v RouterActionsConnection)` + +SetConnection sets Connection field to given value. + +### HasConnection + +`func (o *CloudRouterActionRequest) HasConnection() bool` + +HasConnection 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/CloudRouterActionResponse.md b/services/fabricv4/docs/CloudRouterActionResponse.md index 9bcce398..92723bb5 100644 --- a/services/fabricv4/docs/CloudRouterActionResponse.md +++ b/services/fabricv4/docs/CloudRouterActionResponse.md @@ -9,6 +9,9 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **State** | [**CloudRouterActionState**](CloudRouterActionState.md) | | **ChangeLog** | [**Changelog**](Changelog.md) | | +**Href** | Pointer to **string** | | [optional] +**Connection** | Pointer to [**RouterActionsConnection**](RouterActionsConnection.md) | | [optional] +**Operation** | Pointer to [**Operation**](Operation.md) | | [optional] ## Methods @@ -134,6 +137,81 @@ and a boolean to check if the value has been set. SetChangeLog sets ChangeLog field to given value. +### GetHref + +`func (o *CloudRouterActionResponse) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *CloudRouterActionResponse) 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 *CloudRouterActionResponse) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *CloudRouterActionResponse) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetConnection + +`func (o *CloudRouterActionResponse) GetConnection() RouterActionsConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *CloudRouterActionResponse) GetConnectionOk() (*RouterActionsConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *CloudRouterActionResponse) SetConnection(v RouterActionsConnection)` + +SetConnection sets Connection field to given value. + +### HasConnection + +`func (o *CloudRouterActionResponse) HasConnection() bool` + +HasConnection returns a boolean if a field has been set. + +### GetOperation + +`func (o *CloudRouterActionResponse) GetOperation() Operation` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *CloudRouterActionResponse) GetOperationOk() (*Operation, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *CloudRouterActionResponse) SetOperation(v Operation)` + +SetOperation sets Operation field to given value. + +### HasOperation + +`func (o *CloudRouterActionResponse) HasOperation() bool` + +HasOperation 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/CloudRouterActionState.md b/services/fabricv4/docs/CloudRouterActionState.md index a6d4f005..63bdf929 100644 --- a/services/fabricv4/docs/CloudRouterActionState.md +++ b/services/fabricv4/docs/CloudRouterActionState.md @@ -3,7 +3,7 @@ ## Enum -* `DONE` (value: `"DONE"`) +* `SUCCEEDED` (value: `"SUCCEEDED"`) * `FAILED` (value: `"FAILED"`) diff --git a/services/fabricv4/docs/CloudRouterActionType.md b/services/fabricv4/docs/CloudRouterActionType.md index 58462a15..5cffac0c 100644 --- a/services/fabricv4/docs/CloudRouterActionType.md +++ b/services/fabricv4/docs/CloudRouterActionType.md @@ -7,6 +7,10 @@ * `ROUTE_TABLE_ENTRY_UPDATE` (value: `"ROUTE_TABLE_ENTRY_UPDATE"`) +* `RECEIVED_ROUTE_ENTRY_UPDATE` (value: `"RECEIVED_ROUTE_ENTRY_UPDATE"`) + +* `ADVERTISED_ROUTE_ENTRY_UPDATE` (value: `"ADVERTISED_ROUTE_ENTRY_UPDATE"`) + [[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/CloudRouterActionsSearchExpression.md b/services/fabricv4/docs/CloudRouterActionsSearchExpression.md new file mode 100644 index 00000000..dfaef47f --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchExpression.md @@ -0,0 +1,108 @@ +# CloudRouterActionsSearchExpression + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Property** | Pointer to **string** | Possible field names to use on filters: * `/type` - type of update * `/state` - action state * `/connection/uuid` - connection uuid associated * `/_*` - all-category search | [optional] +**Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `~*` - case-insensitive like | [optional] +**Values** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCloudRouterActionsSearchExpression + +`func NewCloudRouterActionsSearchExpression() *CloudRouterActionsSearchExpression` + +NewCloudRouterActionsSearchExpression instantiates a new CloudRouterActionsSearchExpression 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 + +### NewCloudRouterActionsSearchExpressionWithDefaults + +`func NewCloudRouterActionsSearchExpressionWithDefaults() *CloudRouterActionsSearchExpression` + +NewCloudRouterActionsSearchExpressionWithDefaults instantiates a new CloudRouterActionsSearchExpression 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 + +### GetProperty + +`func (o *CloudRouterActionsSearchExpression) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *CloudRouterActionsSearchExpression) GetPropertyOk() (*string, 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 *CloudRouterActionsSearchExpression) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *CloudRouterActionsSearchExpression) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *CloudRouterActionsSearchExpression) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *CloudRouterActionsSearchExpression) GetOperatorOk() (*string, 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 *CloudRouterActionsSearchExpression) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *CloudRouterActionsSearchExpression) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *CloudRouterActionsSearchExpression) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *CloudRouterActionsSearchExpression) 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 *CloudRouterActionsSearchExpression) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *CloudRouterActionsSearchExpression) 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/CloudRouterActionsSearchFilter.md b/services/fabricv4/docs/CloudRouterActionsSearchFilter.md new file mode 100644 index 00000000..e16390af --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchFilter.md @@ -0,0 +1,134 @@ +# CloudRouterActionsSearchFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Property** | Pointer to **string** | Possible field names to use on filters: * `/type` - type of update * `/state` - action state * `/connection/uuid` - connection uuid associated * `/_*` - all-category search | [optional] +**Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `~*` - case-insensitive like | [optional] +**Values** | Pointer to **[]string** | | [optional] +**Or** | Pointer to [**[]CloudRouterActionsSearchExpression**](CloudRouterActionsSearchExpression.md) | | [optional] + +## Methods + +### NewCloudRouterActionsSearchFilter + +`func NewCloudRouterActionsSearchFilter() *CloudRouterActionsSearchFilter` + +NewCloudRouterActionsSearchFilter instantiates a new CloudRouterActionsSearchFilter 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 + +### NewCloudRouterActionsSearchFilterWithDefaults + +`func NewCloudRouterActionsSearchFilterWithDefaults() *CloudRouterActionsSearchFilter` + +NewCloudRouterActionsSearchFilterWithDefaults instantiates a new CloudRouterActionsSearchFilter 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 + +### GetProperty + +`func (o *CloudRouterActionsSearchFilter) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *CloudRouterActionsSearchFilter) GetPropertyOk() (*string, 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 *CloudRouterActionsSearchFilter) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *CloudRouterActionsSearchFilter) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *CloudRouterActionsSearchFilter) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *CloudRouterActionsSearchFilter) GetOperatorOk() (*string, 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 *CloudRouterActionsSearchFilter) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *CloudRouterActionsSearchFilter) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *CloudRouterActionsSearchFilter) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *CloudRouterActionsSearchFilter) 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 *CloudRouterActionsSearchFilter) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *CloudRouterActionsSearchFilter) HasValues() bool` + +HasValues returns a boolean if a field has been set. + +### GetOr + +`func (o *CloudRouterActionsSearchFilter) GetOr() []CloudRouterActionsSearchExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *CloudRouterActionsSearchFilter) GetOrOk() (*[]CloudRouterActionsSearchExpression, 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 *CloudRouterActionsSearchFilter) SetOr(v []CloudRouterActionsSearchExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *CloudRouterActionsSearchFilter) HasOr() bool` + +HasOr 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/CloudRouterActionsSearchFilters.md b/services/fabricv4/docs/CloudRouterActionsSearchFilters.md new file mode 100644 index 00000000..ceca898a --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchFilters.md @@ -0,0 +1,56 @@ +# CloudRouterActionsSearchFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**And** | Pointer to [**[]CloudRouterActionsSearchFilter**](CloudRouterActionsSearchFilter.md) | | [optional] + +## Methods + +### NewCloudRouterActionsSearchFilters + +`func NewCloudRouterActionsSearchFilters() *CloudRouterActionsSearchFilters` + +NewCloudRouterActionsSearchFilters instantiates a new CloudRouterActionsSearchFilters 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 + +### NewCloudRouterActionsSearchFiltersWithDefaults + +`func NewCloudRouterActionsSearchFiltersWithDefaults() *CloudRouterActionsSearchFilters` + +NewCloudRouterActionsSearchFiltersWithDefaults instantiates a new CloudRouterActionsSearchFilters 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 *CloudRouterActionsSearchFilters) GetAnd() []CloudRouterActionsSearchFilter` + +GetAnd returns the And field if non-nil, zero value otherwise. + +### GetAndOk + +`func (o *CloudRouterActionsSearchFilters) GetAndOk() (*[]CloudRouterActionsSearchFilter, 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 *CloudRouterActionsSearchFilters) SetAnd(v []CloudRouterActionsSearchFilter)` + +SetAnd sets And field to given value. + +### HasAnd + +`func (o *CloudRouterActionsSearchFilters) HasAnd() bool` + +HasAnd 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/CloudRouterActionsSearchOrFilter.md b/services/fabricv4/docs/CloudRouterActionsSearchOrFilter.md new file mode 100644 index 00000000..19aeb4b9 --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchOrFilter.md @@ -0,0 +1,56 @@ +# CloudRouterActionsSearchOrFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Or** | Pointer to [**[]CloudRouterActionsSearchExpression**](CloudRouterActionsSearchExpression.md) | | [optional] + +## Methods + +### NewCloudRouterActionsSearchOrFilter + +`func NewCloudRouterActionsSearchOrFilter() *CloudRouterActionsSearchOrFilter` + +NewCloudRouterActionsSearchOrFilter instantiates a new CloudRouterActionsSearchOrFilter 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 + +### NewCloudRouterActionsSearchOrFilterWithDefaults + +`func NewCloudRouterActionsSearchOrFilterWithDefaults() *CloudRouterActionsSearchOrFilter` + +NewCloudRouterActionsSearchOrFilterWithDefaults instantiates a new CloudRouterActionsSearchOrFilter 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 + +### GetOr + +`func (o *CloudRouterActionsSearchOrFilter) GetOr() []CloudRouterActionsSearchExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *CloudRouterActionsSearchOrFilter) GetOrOk() (*[]CloudRouterActionsSearchExpression, 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 *CloudRouterActionsSearchOrFilter) SetOr(v []CloudRouterActionsSearchExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *CloudRouterActionsSearchOrFilter) HasOr() bool` + +HasOr 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/CloudRouterActionsSearchRequest.md b/services/fabricv4/docs/CloudRouterActionsSearchRequest.md new file mode 100644 index 00000000..3f155b11 --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchRequest.md @@ -0,0 +1,108 @@ +# CloudRouterActionsSearchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filter** | Pointer to [**CloudRouterActionsSearchFilters**](CloudRouterActionsSearchFilters.md) | | [optional] +**Pagination** | Pointer to [**PaginationRequest**](PaginationRequest.md) | | [optional] +**Sort** | Pointer to [**[]CloudRouterActionsSearchSortCriteria**](CloudRouterActionsSearchSortCriteria.md) | | [optional] + +## Methods + +### NewCloudRouterActionsSearchRequest + +`func NewCloudRouterActionsSearchRequest() *CloudRouterActionsSearchRequest` + +NewCloudRouterActionsSearchRequest instantiates a new CloudRouterActionsSearchRequest 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 + +### NewCloudRouterActionsSearchRequestWithDefaults + +`func NewCloudRouterActionsSearchRequestWithDefaults() *CloudRouterActionsSearchRequest` + +NewCloudRouterActionsSearchRequestWithDefaults instantiates a new CloudRouterActionsSearchRequest 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 *CloudRouterActionsSearchRequest) GetFilter() CloudRouterActionsSearchFilters` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *CloudRouterActionsSearchRequest) GetFilterOk() (*CloudRouterActionsSearchFilters, 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 *CloudRouterActionsSearchRequest) SetFilter(v CloudRouterActionsSearchFilters)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *CloudRouterActionsSearchRequest) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### GetPagination + +`func (o *CloudRouterActionsSearchRequest) GetPagination() PaginationRequest` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *CloudRouterActionsSearchRequest) GetPaginationOk() (*PaginationRequest, 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 *CloudRouterActionsSearchRequest) SetPagination(v PaginationRequest)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *CloudRouterActionsSearchRequest) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetSort + +`func (o *CloudRouterActionsSearchRequest) GetSort() []CloudRouterActionsSearchSortCriteria` + +GetSort returns the Sort field if non-nil, zero value otherwise. + +### GetSortOk + +`func (o *CloudRouterActionsSearchRequest) GetSortOk() (*[]CloudRouterActionsSearchSortCriteria, bool)` + +GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSort + +`func (o *CloudRouterActionsSearchRequest) SetSort(v []CloudRouterActionsSearchSortCriteria)` + +SetSort sets Sort field to given value. + +### HasSort + +`func (o *CloudRouterActionsSearchRequest) HasSort() bool` + +HasSort 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/CloudRouterActionsSearchResponse.md b/services/fabricv4/docs/CloudRouterActionsSearchResponse.md new file mode 100644 index 00000000..5a752f6c --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchResponse.md @@ -0,0 +1,82 @@ +# CloudRouterActionsSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Data** | Pointer to [**[]CloudRouterActionResponse**](CloudRouterActionResponse.md) | Data returned from the API call. | [optional] + +## Methods + +### NewCloudRouterActionsSearchResponse + +`func NewCloudRouterActionsSearchResponse() *CloudRouterActionsSearchResponse` + +NewCloudRouterActionsSearchResponse instantiates a new CloudRouterActionsSearchResponse 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 + +### NewCloudRouterActionsSearchResponseWithDefaults + +`func NewCloudRouterActionsSearchResponseWithDefaults() *CloudRouterActionsSearchResponse` + +NewCloudRouterActionsSearchResponseWithDefaults instantiates a new CloudRouterActionsSearchResponse 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 *CloudRouterActionsSearchResponse) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *CloudRouterActionsSearchResponse) 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 *CloudRouterActionsSearchResponse) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *CloudRouterActionsSearchResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *CloudRouterActionsSearchResponse) GetData() []CloudRouterActionResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CloudRouterActionsSearchResponse) GetDataOk() (*[]CloudRouterActionResponse, 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 *CloudRouterActionsSearchResponse) SetData(v []CloudRouterActionResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *CloudRouterActionsSearchResponse) 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/CloudRouterActionsSearchSortBy.md b/services/fabricv4/docs/CloudRouterActionsSearchSortBy.md new file mode 100644 index 00000000..6a056ad4 --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchSortBy.md @@ -0,0 +1,17 @@ +# CloudRouterActionsSearchSortBy + +## Enum + + +* `CHANGE_LOG_CREATED_DATE_TIME` (value: `"/changeLog/createdDateTime"`) + +* `CHANGE_LOG_UPDATED_DATE_TIME` (value: `"/changeLog/updatedDateTime"`) + +* `CONNECTION_NAME` (value: `"/connection/name"`) + +* `TYPE` (value: `"/type"`) + + +[[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/CloudRouterActionsSearchSortCriteria.md b/services/fabricv4/docs/CloudRouterActionsSearchSortCriteria.md new file mode 100644 index 00000000..67f110b9 --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchSortCriteria.md @@ -0,0 +1,82 @@ +# CloudRouterActionsSearchSortCriteria + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Direction** | Pointer to [**CloudRouterActionsSearchSortDirection**](CloudRouterActionsSearchSortDirection.md) | | [optional] [default to CLOUDROUTERACTIONSSEARCHSORTDIRECTION_DESC] +**Property** | Pointer to [**CloudRouterActionsSearchSortBy**](CloudRouterActionsSearchSortBy.md) | | [optional] [default to CLOUDROUTERACTIONSSEARCHSORTBY_CHANGE_LOG_UPDATED_DATE_TIME] + +## Methods + +### NewCloudRouterActionsSearchSortCriteria + +`func NewCloudRouterActionsSearchSortCriteria() *CloudRouterActionsSearchSortCriteria` + +NewCloudRouterActionsSearchSortCriteria instantiates a new CloudRouterActionsSearchSortCriteria 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 + +### NewCloudRouterActionsSearchSortCriteriaWithDefaults + +`func NewCloudRouterActionsSearchSortCriteriaWithDefaults() *CloudRouterActionsSearchSortCriteria` + +NewCloudRouterActionsSearchSortCriteriaWithDefaults instantiates a new CloudRouterActionsSearchSortCriteria 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 + +### GetDirection + +`func (o *CloudRouterActionsSearchSortCriteria) GetDirection() CloudRouterActionsSearchSortDirection` + +GetDirection returns the Direction field if non-nil, zero value otherwise. + +### GetDirectionOk + +`func (o *CloudRouterActionsSearchSortCriteria) GetDirectionOk() (*CloudRouterActionsSearchSortDirection, bool)` + +GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirection + +`func (o *CloudRouterActionsSearchSortCriteria) SetDirection(v CloudRouterActionsSearchSortDirection)` + +SetDirection sets Direction field to given value. + +### HasDirection + +`func (o *CloudRouterActionsSearchSortCriteria) HasDirection() bool` + +HasDirection returns a boolean if a field has been set. + +### GetProperty + +`func (o *CloudRouterActionsSearchSortCriteria) GetProperty() CloudRouterActionsSearchSortBy` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *CloudRouterActionsSearchSortCriteria) GetPropertyOk() (*CloudRouterActionsSearchSortBy, 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 *CloudRouterActionsSearchSortCriteria) SetProperty(v CloudRouterActionsSearchSortBy)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *CloudRouterActionsSearchSortCriteria) HasProperty() bool` + +HasProperty 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/CloudRouterActionsSearchSortDirection.md b/services/fabricv4/docs/CloudRouterActionsSearchSortDirection.md new file mode 100644 index 00000000..9fade4b3 --- /dev/null +++ b/services/fabricv4/docs/CloudRouterActionsSearchSortDirection.md @@ -0,0 +1,13 @@ +# CloudRouterActionsSearchSortDirection + +## Enum + + +* `DESC` (value: `"DESC"`) + +* `ASC` (value: `"ASC"`) + + +[[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/CloudRouterChangeOperation.md b/services/fabricv4/docs/CloudRouterChangeOperation.md index 40b4d6e7..798ea1b4 100644 --- a/services/fabricv4/docs/CloudRouterChangeOperation.md +++ b/services/fabricv4/docs/CloudRouterChangeOperation.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Op** | [**ServiceTokenChangeOperationOp**](ServiceTokenChangeOperationOp.md) | | +**Op** | [**PrecisionTimeChangeOperationOp**](PrecisionTimeChangeOperationOp.md) | | **Path** | **string** | path inside document leading to updated parameter | **Value** | **interface{}** | new value for updated parameter | @@ -12,7 +12,7 @@ Name | Type | Description | Notes ### NewCloudRouterChangeOperation -`func NewCloudRouterChangeOperation(op ServiceTokenChangeOperationOp, path string, value interface{}, ) *CloudRouterChangeOperation` +`func NewCloudRouterChangeOperation(op PrecisionTimeChangeOperationOp, path string, value interface{}, ) *CloudRouterChangeOperation` NewCloudRouterChangeOperation instantiates a new CloudRouterChangeOperation object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetOp -`func (o *CloudRouterChangeOperation) GetOp() ServiceTokenChangeOperationOp` +`func (o *CloudRouterChangeOperation) GetOp() PrecisionTimeChangeOperationOp` GetOp returns the Op field if non-nil, zero value otherwise. ### GetOpOk -`func (o *CloudRouterChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, bool)` +`func (o *CloudRouterChangeOperation) GetOpOk() (*PrecisionTimeChangeOperationOp, 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 *CloudRouterChangeOperation) SetOp(v ServiceTokenChangeOperationOp)` +`func (o *CloudRouterChangeOperation) SetOp(v PrecisionTimeChangeOperationOp)` SetOp sets Op field to given value. diff --git a/services/fabricv4/docs/CloudRoutersApi.md b/services/fabricv4/docs/CloudRoutersApi.md index 14b194e7..9f31c5b3 100644 --- a/services/fabricv4/docs/CloudRoutersApi.md +++ b/services/fabricv4/docs/CloudRoutersApi.md @@ -8,11 +8,15 @@ Method | HTTP request | Description [**CreateCloudRouterAction**](CloudRoutersApi.md#CreateCloudRouterAction) | **Post** /fabric/v4/routers/{routerId}/actions | Route table actions [**DeleteCloudRouterByUuid**](CloudRoutersApi.md#DeleteCloudRouterByUuid) | **Delete** /fabric/v4/routers/{routerId} | Delete Routers [**GetCloudRouterActions**](CloudRoutersApi.md#GetCloudRouterActions) | **Get** /fabric/v4/routers/{routerId}/actions | Get actions +[**GetCloudRouterActionsByUuid**](CloudRoutersApi.md#GetCloudRouterActionsByUuid) | **Get** /fabric/v4/routers/{routerId}/actions/{actionId} | Get actions [**GetCloudRouterByUuid**](CloudRoutersApi.md#GetCloudRouterByUuid) | **Get** /fabric/v4/routers/{routerId} | Get Routers [**GetCloudRouterPackageByCode**](CloudRoutersApi.md#GetCloudRouterPackageByCode) | **Get** /fabric/v4/routerPackages/{routerPackageCode} | Get Package Details [**GetCloudRouterPackages**](CloudRoutersApi.md#GetCloudRouterPackages) | **Get** /fabric/v4/routerPackages | List Packages [**SearchCloudRouterRoutes**](CloudRoutersApi.md#SearchCloudRouterRoutes) | **Post** /fabric/v4/routers/{routerId}/routes/search | Search Route Table [**SearchCloudRouters**](CloudRoutersApi.md#SearchCloudRouters) | **Post** /fabric/v4/routers/search | Search Routers +[**SearchConnectionAdvertisedRoutes**](CloudRoutersApi.md#SearchConnectionAdvertisedRoutes) | **Post** /fabric/v4/connections/{connectionId}/advertisedRoutes/search | search advertised +[**SearchConnectionReceivedRoutes**](CloudRoutersApi.md#SearchConnectionReceivedRoutes) | **Post** /fabric/v4/connections/{connectionId}/receivedRoutes/search | Search received +[**SearchRouterActions**](CloudRoutersApi.md#SearchRouterActions) | **Post** /fabric/v4/routers/{routerId}/actions/search | Search actions [**UpdateCloudRouterByUuid**](CloudRoutersApi.md#UpdateCloudRouterByUuid) | **Patch** /fabric/v4/routers/{routerId} | Update Routers @@ -245,7 +249,7 @@ import ( func main() { routerId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Router UUID - state := openapiclient.CloudRouterActionState("DONE") // CloudRouterActionState | Action state (optional) + state := openapiclient.CloudRouterActionState("SUCCEEDED") // CloudRouterActionState | Action state (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -295,6 +299,81 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetCloudRouterActionsByUuid + +> CloudRouterActionResponse GetCloudRouterActionsByUuid(ctx, routerId, actionId).State(state).Execute() + +Get actions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + routerId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Router UUID + actionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Action UUID + state := openapiclient.CloudRouterActionState("SUCCEEDED") // CloudRouterActionState | Action state (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudRoutersApi.GetCloudRouterActionsByUuid(context.Background(), routerId, actionId).State(state).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudRoutersApi.GetCloudRouterActionsByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCloudRouterActionsByUuid`: CloudRouterActionResponse + fmt.Fprintf(os.Stdout, "Response from `CloudRoutersApi.GetCloudRouterActionsByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**routerId** | **string** | Router UUID | +**actionId** | **string** | Action UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCloudRouterActionsByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **state** | [**CloudRouterActionState**](CloudRouterActionState.md) | Action state | + +### Return type + +[**CloudRouterActionResponse**](CloudRouterActionResponse.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) + + ## GetCloudRouterByUuid > CloudRouter GetCloudRouterByUuid(ctx, routerId).Execute() @@ -641,6 +720,222 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## SearchConnectionAdvertisedRoutes + +> ConnectionRouteTableEntrySearchResponse SearchConnectionAdvertisedRoutes(ctx, connectionId).ConnectionRouteSearchRequest(connectionRouteSearchRequest).Execute() + +search advertised + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + connectionId := "connectionId_example" // string | Connection Id + connectionRouteSearchRequest := *openapiclient.NewConnectionRouteSearchRequest() // ConnectionRouteSearchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudRoutersApi.SearchConnectionAdvertisedRoutes(context.Background(), connectionId).ConnectionRouteSearchRequest(connectionRouteSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudRoutersApi.SearchConnectionAdvertisedRoutes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchConnectionAdvertisedRoutes`: ConnectionRouteTableEntrySearchResponse + fmt.Fprintf(os.Stdout, "Response from `CloudRoutersApi.SearchConnectionAdvertisedRoutes`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectionId** | **string** | Connection Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchConnectionAdvertisedRoutesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **connectionRouteSearchRequest** | [**ConnectionRouteSearchRequest**](ConnectionRouteSearchRequest.md) | | + +### Return type + +[**ConnectionRouteTableEntrySearchResponse**](ConnectionRouteTableEntrySearchResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + +## SearchConnectionReceivedRoutes + +> ConnectionRouteTableEntrySearchResponse SearchConnectionReceivedRoutes(ctx, connectionId).ConnectionRouteSearchRequest(connectionRouteSearchRequest).Execute() + +Search received + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + connectionId := "connectionId_example" // string | Connection Id + connectionRouteSearchRequest := *openapiclient.NewConnectionRouteSearchRequest() // ConnectionRouteSearchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudRoutersApi.SearchConnectionReceivedRoutes(context.Background(), connectionId).ConnectionRouteSearchRequest(connectionRouteSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudRoutersApi.SearchConnectionReceivedRoutes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchConnectionReceivedRoutes`: ConnectionRouteTableEntrySearchResponse + fmt.Fprintf(os.Stdout, "Response from `CloudRoutersApi.SearchConnectionReceivedRoutes`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectionId** | **string** | Connection Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchConnectionReceivedRoutesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **connectionRouteSearchRequest** | [**ConnectionRouteSearchRequest**](ConnectionRouteSearchRequest.md) | | + +### Return type + +[**ConnectionRouteTableEntrySearchResponse**](ConnectionRouteTableEntrySearchResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + +## SearchRouterActions + +> CloudRouterActionsSearchResponse SearchRouterActions(ctx, routerId).CloudRouterActionsSearchRequest(cloudRouterActionsSearchRequest).Execute() + +Search actions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + routerId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Router UUID + cloudRouterActionsSearchRequest := *openapiclient.NewCloudRouterActionsSearchRequest() // CloudRouterActionsSearchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudRoutersApi.SearchRouterActions(context.Background(), routerId).CloudRouterActionsSearchRequest(cloudRouterActionsSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudRoutersApi.SearchRouterActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchRouterActions`: CloudRouterActionsSearchResponse + fmt.Fprintf(os.Stdout, "Response from `CloudRoutersApi.SearchRouterActions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**routerId** | **string** | Router UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchRouterActionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cloudRouterActionsSearchRequest** | [**CloudRouterActionsSearchRequest**](CloudRouterActionsSearchRequest.md) | | + +### Return type + +[**CloudRouterActionsSearchResponse**](CloudRouterActionsSearchResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + ## UpdateCloudRouterByUuid > CloudRouter UpdateCloudRouterByUuid(ctx, routerId).CloudRouterChangeOperation(cloudRouterChangeOperation).Execute() @@ -663,7 +958,7 @@ import ( func main() { routerId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Cloud Router UUID - cloudRouterChangeOperation := []openapiclient.CloudRouterChangeOperation{*openapiclient.NewCloudRouterChangeOperation(openapiclient.ServiceTokenChangeOperation_op("replace"), "Path_example", interface{}(123))} // []CloudRouterChangeOperation | + cloudRouterChangeOperation := []openapiclient.CloudRouterChangeOperation{*openapiclient.NewCloudRouterChangeOperation(openapiclient.precisionTimeChangeOperation_op("replace"), "Path_example", interface{}(123))} // []CloudRouterChangeOperation | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/services/fabricv4/docs/Connection.md b/services/fabricv4/docs/Connection.md index ebb667c5..837f1732 100644 --- a/services/fabricv4/docs/Connection.md +++ b/services/fabricv4/docs/Connection.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | [**ConnectionType**](ConnectionType.md) | | **Href** | Pointer to **string** | Connection URI | [optional] [readonly] +**Type** | [**ConnectionType**](ConnectionType.md) | | **Uuid** | Pointer to **string** | Equinix-assigned connection identifier | [optional] **Name** | **string** | Customer-provided connection name | **Description** | Pointer to **string** | Customer-provided connection description | [optional] @@ -46,26 +46,6 @@ NewConnectionWithDefaults instantiates a new Connection 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 -### GetType - -`func (o *Connection) GetType() ConnectionType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *Connection) GetTypeOk() (*ConnectionType, 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 *Connection) SetType(v ConnectionType)` - -SetType sets Type field to given value. - - ### GetHref `func (o *Connection) GetHref() string` @@ -91,6 +71,26 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. +### GetType + +`func (o *Connection) GetType() ConnectionType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Connection) GetTypeOk() (*ConnectionType, 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 *Connection) SetType(v ConnectionType)` + +SetType sets Type field to given value. + + ### GetUuid `func (o *Connection) GetUuid() string` diff --git a/services/fabricv4/docs/ConnectionActionRequest.md b/services/fabricv4/docs/ConnectionActionRequest.md index 0181dd6a..690ae69f 100644 --- a/services/fabricv4/docs/ConnectionActionRequest.md +++ b/services/fabricv4/docs/ConnectionActionRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | [**Actions**](Actions.md) | | -**Description** | Pointer to **string** | Connection rejection reason datail | [optional] +**Description** | Pointer to **string** | Connection rejection reason detail | [optional] **Data** | Pointer to [**ConnectionAcceptanceData**](ConnectionAcceptanceData.md) | | [optional] ## Methods diff --git a/services/fabricv4/docs/ConnectionResponse.md b/services/fabricv4/docs/ConnectionResponse.md index bd3adc3b..5ffe8a30 100644 --- a/services/fabricv4/docs/ConnectionResponse.md +++ b/services/fabricv4/docs/ConnectionResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AdditionalInfo** | Pointer to [**[]ConnectionSideAdditionalInfo**](ConnectionSideAdditionalInfo.md) | Additional information | [optional] -**Data** | Pointer to [**[]BaseConnection**](BaseConnection.md) | Connection response data | [optional] +**Data** | Pointer to [**[]ValidateConnectionResponse**](ValidateConnectionResponse.md) | Connection response data | [optional] ## Methods @@ -53,20 +53,20 @@ HasAdditionalInfo returns a boolean if a field has been set. ### GetData -`func (o *ConnectionResponse) GetData() []BaseConnection` +`func (o *ConnectionResponse) GetData() []ValidateConnectionResponse` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *ConnectionResponse) GetDataOk() (*[]BaseConnection, bool)` +`func (o *ConnectionResponse) GetDataOk() (*[]ValidateConnectionResponse, 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 *ConnectionResponse) SetData(v []BaseConnection)` +`func (o *ConnectionResponse) SetData(v []ValidateConnectionResponse)` SetData sets Data field to given value. diff --git a/services/fabricv4/docs/ConnectionRouteEntryFilter.md b/services/fabricv4/docs/ConnectionRouteEntryFilter.md new file mode 100644 index 00000000..fdd9388a --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteEntryFilter.md @@ -0,0 +1,134 @@ +# ConnectionRouteEntryFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Property** | Pointer to **string** | Possible field names to use on filters: * `/type` - Route table entry type * `/state` - Route table entry state * `/prefix` - Route table entry prefix * `/nextHop` - Route table entry nextHop * `/_*` - all-category search | [optional] +**Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `~*` - case-insensitive like | [optional] +**Values** | Pointer to **[]string** | | [optional] +**Or** | Pointer to [**[]ConnectionRouteEntrySimpleExpression**](ConnectionRouteEntrySimpleExpression.md) | | [optional] + +## Methods + +### NewConnectionRouteEntryFilter + +`func NewConnectionRouteEntryFilter() *ConnectionRouteEntryFilter` + +NewConnectionRouteEntryFilter instantiates a new ConnectionRouteEntryFilter 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 + +### NewConnectionRouteEntryFilterWithDefaults + +`func NewConnectionRouteEntryFilterWithDefaults() *ConnectionRouteEntryFilter` + +NewConnectionRouteEntryFilterWithDefaults instantiates a new ConnectionRouteEntryFilter 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 + +### GetProperty + +`func (o *ConnectionRouteEntryFilter) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *ConnectionRouteEntryFilter) GetPropertyOk() (*string, 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 *ConnectionRouteEntryFilter) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *ConnectionRouteEntryFilter) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *ConnectionRouteEntryFilter) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *ConnectionRouteEntryFilter) GetOperatorOk() (*string, 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 *ConnectionRouteEntryFilter) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *ConnectionRouteEntryFilter) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *ConnectionRouteEntryFilter) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *ConnectionRouteEntryFilter) 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 *ConnectionRouteEntryFilter) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *ConnectionRouteEntryFilter) HasValues() bool` + +HasValues returns a boolean if a field has been set. + +### GetOr + +`func (o *ConnectionRouteEntryFilter) GetOr() []ConnectionRouteEntrySimpleExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *ConnectionRouteEntryFilter) GetOrOk() (*[]ConnectionRouteEntrySimpleExpression, 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 *ConnectionRouteEntryFilter) SetOr(v []ConnectionRouteEntrySimpleExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *ConnectionRouteEntryFilter) HasOr() bool` + +HasOr 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/ConnectionRouteEntryFilters.md b/services/fabricv4/docs/ConnectionRouteEntryFilters.md new file mode 100644 index 00000000..acc914ed --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteEntryFilters.md @@ -0,0 +1,56 @@ +# ConnectionRouteEntryFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**And** | Pointer to [**[]ConnectionRouteEntryFilter**](ConnectionRouteEntryFilter.md) | | [optional] + +## Methods + +### NewConnectionRouteEntryFilters + +`func NewConnectionRouteEntryFilters() *ConnectionRouteEntryFilters` + +NewConnectionRouteEntryFilters instantiates a new ConnectionRouteEntryFilters 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 + +### NewConnectionRouteEntryFiltersWithDefaults + +`func NewConnectionRouteEntryFiltersWithDefaults() *ConnectionRouteEntryFilters` + +NewConnectionRouteEntryFiltersWithDefaults instantiates a new ConnectionRouteEntryFilters 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 *ConnectionRouteEntryFilters) GetAnd() []ConnectionRouteEntryFilter` + +GetAnd returns the And field if non-nil, zero value otherwise. + +### GetAndOk + +`func (o *ConnectionRouteEntryFilters) GetAndOk() (*[]ConnectionRouteEntryFilter, 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 *ConnectionRouteEntryFilters) SetAnd(v []ConnectionRouteEntryFilter)` + +SetAnd sets And field to given value. + +### HasAnd + +`func (o *ConnectionRouteEntryFilters) HasAnd() bool` + +HasAnd 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/ConnectionRouteEntryOrFilter.md b/services/fabricv4/docs/ConnectionRouteEntryOrFilter.md new file mode 100644 index 00000000..e3398d98 --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteEntryOrFilter.md @@ -0,0 +1,56 @@ +# ConnectionRouteEntryOrFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Or** | Pointer to [**[]ConnectionRouteEntrySimpleExpression**](ConnectionRouteEntrySimpleExpression.md) | | [optional] + +## Methods + +### NewConnectionRouteEntryOrFilter + +`func NewConnectionRouteEntryOrFilter() *ConnectionRouteEntryOrFilter` + +NewConnectionRouteEntryOrFilter instantiates a new ConnectionRouteEntryOrFilter 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 + +### NewConnectionRouteEntryOrFilterWithDefaults + +`func NewConnectionRouteEntryOrFilterWithDefaults() *ConnectionRouteEntryOrFilter` + +NewConnectionRouteEntryOrFilterWithDefaults instantiates a new ConnectionRouteEntryOrFilter 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 + +### GetOr + +`func (o *ConnectionRouteEntryOrFilter) GetOr() []ConnectionRouteEntrySimpleExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *ConnectionRouteEntryOrFilter) GetOrOk() (*[]ConnectionRouteEntrySimpleExpression, 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 *ConnectionRouteEntryOrFilter) SetOr(v []ConnectionRouteEntrySimpleExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *ConnectionRouteEntryOrFilter) HasOr() bool` + +HasOr 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/ConnectionRouteEntrySimpleExpression.md b/services/fabricv4/docs/ConnectionRouteEntrySimpleExpression.md new file mode 100644 index 00000000..70d2b9e5 --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteEntrySimpleExpression.md @@ -0,0 +1,108 @@ +# ConnectionRouteEntrySimpleExpression + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Property** | Pointer to **string** | Possible field names to use on filters: * `/type` - Route table entry type * `/state` - Route table entry state * `/prefix` - Route table entry prefix * `/nextHop` - Route table entry nextHop * `/_*` - all-category search | [optional] +**Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `~*` - case-insensitive like | [optional] +**Values** | Pointer to **[]string** | | [optional] + +## Methods + +### NewConnectionRouteEntrySimpleExpression + +`func NewConnectionRouteEntrySimpleExpression() *ConnectionRouteEntrySimpleExpression` + +NewConnectionRouteEntrySimpleExpression instantiates a new ConnectionRouteEntrySimpleExpression 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 + +### NewConnectionRouteEntrySimpleExpressionWithDefaults + +`func NewConnectionRouteEntrySimpleExpressionWithDefaults() *ConnectionRouteEntrySimpleExpression` + +NewConnectionRouteEntrySimpleExpressionWithDefaults instantiates a new ConnectionRouteEntrySimpleExpression 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 + +### GetProperty + +`func (o *ConnectionRouteEntrySimpleExpression) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *ConnectionRouteEntrySimpleExpression) GetPropertyOk() (*string, 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 *ConnectionRouteEntrySimpleExpression) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *ConnectionRouteEntrySimpleExpression) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *ConnectionRouteEntrySimpleExpression) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *ConnectionRouteEntrySimpleExpression) GetOperatorOk() (*string, 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 *ConnectionRouteEntrySimpleExpression) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *ConnectionRouteEntrySimpleExpression) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *ConnectionRouteEntrySimpleExpression) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *ConnectionRouteEntrySimpleExpression) 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 *ConnectionRouteEntrySimpleExpression) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *ConnectionRouteEntrySimpleExpression) 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/ConnectionRouteEntrySortBy.md b/services/fabricv4/docs/ConnectionRouteEntrySortBy.md new file mode 100644 index 00000000..f9772baf --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteEntrySortBy.md @@ -0,0 +1,23 @@ +# ConnectionRouteEntrySortBy + +## Enum + + +* `CHANGE_LOG_CREATED_DATE_TIME` (value: `"/changeLog/createdDateTime"`) + +* `CHANGE_LOG_UPDATED_DATE_TIME` (value: `"/changeLog/updatedDateTime"`) + +* `MED` (value: `"/med"`) + +* `CONNECTION_NAME` (value: `"/connection/name"`) + +* `TYPE` (value: `"/type"`) + +* `PREFIX` (value: `"/prefix"`) + +* `NEXT_HOP` (value: `"/nextHop"`) + + +[[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/SubscriptionAssetType.md b/services/fabricv4/docs/ConnectionRouteEntrySortDirection.md similarity index 66% rename from services/fabricv4/docs/SubscriptionAssetType.md rename to services/fabricv4/docs/ConnectionRouteEntrySortDirection.md index cb3a28cd..71ef6633 100644 --- a/services/fabricv4/docs/SubscriptionAssetType.md +++ b/services/fabricv4/docs/ConnectionRouteEntrySortDirection.md @@ -1,11 +1,11 @@ -# SubscriptionAssetType +# ConnectionRouteEntrySortDirection ## Enum -* `XF_ROUTER` (value: `"XF_ROUTER"`) +* `DESC` (value: `"DESC"`) -* `IP_VC` (value: `"IP_VC"`) +* `ASC` (value: `"ASC"`) [[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/ConnectionRouteSearchRequest.md b/services/fabricv4/docs/ConnectionRouteSearchRequest.md new file mode 100644 index 00000000..ebd792c3 --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteSearchRequest.md @@ -0,0 +1,108 @@ +# ConnectionRouteSearchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filter** | Pointer to [**ConnectionRouteEntryFilters**](ConnectionRouteEntryFilters.md) | | [optional] +**Pagination** | Pointer to [**PaginationRequest**](PaginationRequest.md) | | [optional] +**Sort** | Pointer to [**[]ConnectionRouteSortCriteria**](ConnectionRouteSortCriteria.md) | | [optional] + +## Methods + +### NewConnectionRouteSearchRequest + +`func NewConnectionRouteSearchRequest() *ConnectionRouteSearchRequest` + +NewConnectionRouteSearchRequest instantiates a new ConnectionRouteSearchRequest 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 + +### NewConnectionRouteSearchRequestWithDefaults + +`func NewConnectionRouteSearchRequestWithDefaults() *ConnectionRouteSearchRequest` + +NewConnectionRouteSearchRequestWithDefaults instantiates a new ConnectionRouteSearchRequest 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 *ConnectionRouteSearchRequest) GetFilter() ConnectionRouteEntryFilters` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *ConnectionRouteSearchRequest) GetFilterOk() (*ConnectionRouteEntryFilters, 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 *ConnectionRouteSearchRequest) SetFilter(v ConnectionRouteEntryFilters)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *ConnectionRouteSearchRequest) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### GetPagination + +`func (o *ConnectionRouteSearchRequest) GetPagination() PaginationRequest` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ConnectionRouteSearchRequest) GetPaginationOk() (*PaginationRequest, 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 *ConnectionRouteSearchRequest) SetPagination(v PaginationRequest)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *ConnectionRouteSearchRequest) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetSort + +`func (o *ConnectionRouteSearchRequest) GetSort() []ConnectionRouteSortCriteria` + +GetSort returns the Sort field if non-nil, zero value otherwise. + +### GetSortOk + +`func (o *ConnectionRouteSearchRequest) GetSortOk() (*[]ConnectionRouteSortCriteria, bool)` + +GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSort + +`func (o *ConnectionRouteSearchRequest) SetSort(v []ConnectionRouteSortCriteria)` + +SetSort sets Sort field to given value. + +### HasSort + +`func (o *ConnectionRouteSearchRequest) HasSort() bool` + +HasSort 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/ConnectionRouteSortCriteria.md b/services/fabricv4/docs/ConnectionRouteSortCriteria.md new file mode 100644 index 00000000..41b78465 --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteSortCriteria.md @@ -0,0 +1,82 @@ +# ConnectionRouteSortCriteria + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Direction** | Pointer to [**ConnectionRouteEntrySortDirection**](ConnectionRouteEntrySortDirection.md) | | [optional] [default to CONNECTIONROUTEENTRYSORTDIRECTION_DESC] +**Property** | Pointer to [**ConnectionRouteEntrySortBy**](ConnectionRouteEntrySortBy.md) | | [optional] [default to CONNECTIONROUTEENTRYSORTBY_CHANGE_LOG_UPDATED_DATE_TIME] + +## Methods + +### NewConnectionRouteSortCriteria + +`func NewConnectionRouteSortCriteria() *ConnectionRouteSortCriteria` + +NewConnectionRouteSortCriteria instantiates a new ConnectionRouteSortCriteria 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 + +### NewConnectionRouteSortCriteriaWithDefaults + +`func NewConnectionRouteSortCriteriaWithDefaults() *ConnectionRouteSortCriteria` + +NewConnectionRouteSortCriteriaWithDefaults instantiates a new ConnectionRouteSortCriteria 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 + +### GetDirection + +`func (o *ConnectionRouteSortCriteria) GetDirection() ConnectionRouteEntrySortDirection` + +GetDirection returns the Direction field if non-nil, zero value otherwise. + +### GetDirectionOk + +`func (o *ConnectionRouteSortCriteria) GetDirectionOk() (*ConnectionRouteEntrySortDirection, bool)` + +GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirection + +`func (o *ConnectionRouteSortCriteria) SetDirection(v ConnectionRouteEntrySortDirection)` + +SetDirection sets Direction field to given value. + +### HasDirection + +`func (o *ConnectionRouteSortCriteria) HasDirection() bool` + +HasDirection returns a boolean if a field has been set. + +### GetProperty + +`func (o *ConnectionRouteSortCriteria) GetProperty() ConnectionRouteEntrySortBy` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *ConnectionRouteSortCriteria) GetPropertyOk() (*ConnectionRouteEntrySortBy, 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 *ConnectionRouteSortCriteria) SetProperty(v ConnectionRouteEntrySortBy)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *ConnectionRouteSortCriteria) HasProperty() bool` + +HasProperty 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/ConnectionRouteTableEntry.md b/services/fabricv4/docs/ConnectionRouteTableEntry.md new file mode 100644 index 00000000..dfdf4c88 --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteTableEntry.md @@ -0,0 +1,301 @@ +# ConnectionRouteTableEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | [**RouteTableEntryType**](RouteTableEntryType.md) | | +**ProtocolType** | Pointer to [**RouteTableEntryProtocolType**](RouteTableEntryProtocolType.md) | | [optional] +**State** | [**ConnectionRouteTableEntryState**](ConnectionRouteTableEntryState.md) | | +**Age** | Pointer to **string** | | [optional] +**Prefix** | Pointer to **string** | | [optional] +**NextHop** | Pointer to **string** | | [optional] +**MED** | Pointer to **int32** | | [optional] +**LocalPreference** | Pointer to **int32** | | [optional] +**AsPath** | Pointer to **[]string** | | [optional] +**Connection** | Pointer to [**ConnectionRouteTableEntryConnection**](ConnectionRouteTableEntryConnection.md) | | [optional] +**ChangeLog** | [**Changelog**](Changelog.md) | | + +## Methods + +### NewConnectionRouteTableEntry + +`func NewConnectionRouteTableEntry(type_ RouteTableEntryType, state ConnectionRouteTableEntryState, changeLog Changelog, ) *ConnectionRouteTableEntry` + +NewConnectionRouteTableEntry instantiates a new ConnectionRouteTableEntry 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 + +### NewConnectionRouteTableEntryWithDefaults + +`func NewConnectionRouteTableEntryWithDefaults() *ConnectionRouteTableEntry` + +NewConnectionRouteTableEntryWithDefaults instantiates a new ConnectionRouteTableEntry 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 + +### GetType + +`func (o *ConnectionRouteTableEntry) GetType() RouteTableEntryType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ConnectionRouteTableEntry) GetTypeOk() (*RouteTableEntryType, 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 *ConnectionRouteTableEntry) SetType(v RouteTableEntryType)` + +SetType sets Type field to given value. + + +### GetProtocolType + +`func (o *ConnectionRouteTableEntry) GetProtocolType() RouteTableEntryProtocolType` + +GetProtocolType returns the ProtocolType field if non-nil, zero value otherwise. + +### GetProtocolTypeOk + +`func (o *ConnectionRouteTableEntry) GetProtocolTypeOk() (*RouteTableEntryProtocolType, bool)` + +GetProtocolTypeOk returns a tuple with the ProtocolType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocolType + +`func (o *ConnectionRouteTableEntry) SetProtocolType(v RouteTableEntryProtocolType)` + +SetProtocolType sets ProtocolType field to given value. + +### HasProtocolType + +`func (o *ConnectionRouteTableEntry) HasProtocolType() bool` + +HasProtocolType returns a boolean if a field has been set. + +### GetState + +`func (o *ConnectionRouteTableEntry) GetState() ConnectionRouteTableEntryState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ConnectionRouteTableEntry) GetStateOk() (*ConnectionRouteTableEntryState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ConnectionRouteTableEntry) SetState(v ConnectionRouteTableEntryState)` + +SetState sets State field to given value. + + +### GetAge + +`func (o *ConnectionRouteTableEntry) GetAge() string` + +GetAge returns the Age field if non-nil, zero value otherwise. + +### GetAgeOk + +`func (o *ConnectionRouteTableEntry) GetAgeOk() (*string, bool)` + +GetAgeOk returns a tuple with the Age field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAge + +`func (o *ConnectionRouteTableEntry) SetAge(v string)` + +SetAge sets Age field to given value. + +### HasAge + +`func (o *ConnectionRouteTableEntry) HasAge() bool` + +HasAge returns a boolean if a field has been set. + +### GetPrefix + +`func (o *ConnectionRouteTableEntry) GetPrefix() string` + +GetPrefix returns the Prefix field if non-nil, zero value otherwise. + +### GetPrefixOk + +`func (o *ConnectionRouteTableEntry) GetPrefixOk() (*string, bool)` + +GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefix + +`func (o *ConnectionRouteTableEntry) SetPrefix(v string)` + +SetPrefix sets Prefix field to given value. + +### HasPrefix + +`func (o *ConnectionRouteTableEntry) HasPrefix() bool` + +HasPrefix returns a boolean if a field has been set. + +### GetNextHop + +`func (o *ConnectionRouteTableEntry) GetNextHop() string` + +GetNextHop returns the NextHop field if non-nil, zero value otherwise. + +### GetNextHopOk + +`func (o *ConnectionRouteTableEntry) GetNextHopOk() (*string, bool)` + +GetNextHopOk returns a tuple with the NextHop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextHop + +`func (o *ConnectionRouteTableEntry) SetNextHop(v string)` + +SetNextHop sets NextHop field to given value. + +### HasNextHop + +`func (o *ConnectionRouteTableEntry) HasNextHop() bool` + +HasNextHop returns a boolean if a field has been set. + +### GetMED + +`func (o *ConnectionRouteTableEntry) GetMED() int32` + +GetMED returns the MED field if non-nil, zero value otherwise. + +### GetMEDOk + +`func (o *ConnectionRouteTableEntry) GetMEDOk() (*int32, bool)` + +GetMEDOk returns a tuple with the MED field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMED + +`func (o *ConnectionRouteTableEntry) SetMED(v int32)` + +SetMED sets MED field to given value. + +### HasMED + +`func (o *ConnectionRouteTableEntry) HasMED() bool` + +HasMED returns a boolean if a field has been set. + +### GetLocalPreference + +`func (o *ConnectionRouteTableEntry) GetLocalPreference() int32` + +GetLocalPreference returns the LocalPreference field if non-nil, zero value otherwise. + +### GetLocalPreferenceOk + +`func (o *ConnectionRouteTableEntry) GetLocalPreferenceOk() (*int32, bool)` + +GetLocalPreferenceOk returns a tuple with the LocalPreference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalPreference + +`func (o *ConnectionRouteTableEntry) SetLocalPreference(v int32)` + +SetLocalPreference sets LocalPreference field to given value. + +### HasLocalPreference + +`func (o *ConnectionRouteTableEntry) HasLocalPreference() bool` + +HasLocalPreference returns a boolean if a field has been set. + +### GetAsPath + +`func (o *ConnectionRouteTableEntry) GetAsPath() []string` + +GetAsPath returns the AsPath field if non-nil, zero value otherwise. + +### GetAsPathOk + +`func (o *ConnectionRouteTableEntry) GetAsPathOk() (*[]string, bool)` + +GetAsPathOk returns a tuple with the AsPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsPath + +`func (o *ConnectionRouteTableEntry) SetAsPath(v []string)` + +SetAsPath sets AsPath field to given value. + +### HasAsPath + +`func (o *ConnectionRouteTableEntry) HasAsPath() bool` + +HasAsPath returns a boolean if a field has been set. + +### GetConnection + +`func (o *ConnectionRouteTableEntry) GetConnection() ConnectionRouteTableEntryConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *ConnectionRouteTableEntry) GetConnectionOk() (*ConnectionRouteTableEntryConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *ConnectionRouteTableEntry) SetConnection(v ConnectionRouteTableEntryConnection)` + +SetConnection sets Connection field to given value. + +### HasConnection + +`func (o *ConnectionRouteTableEntry) HasConnection() bool` + +HasConnection returns a boolean if a field has been set. + +### GetChangeLog + +`func (o *ConnectionRouteTableEntry) GetChangeLog() Changelog` + +GetChangeLog returns the ChangeLog field if non-nil, zero value otherwise. + +### GetChangeLogOk + +`func (o *ConnectionRouteTableEntry) GetChangeLogOk() (*Changelog, bool)` + +GetChangeLogOk returns a tuple with the ChangeLog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangeLog + +`func (o *ConnectionRouteTableEntry) SetChangeLog(v Changelog)` + +SetChangeLog sets ChangeLog field to given value. + + + +[[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/RouteTableEntryConnection.md b/services/fabricv4/docs/ConnectionRouteTableEntryConnection.md similarity index 57% rename from services/fabricv4/docs/RouteTableEntryConnection.md rename to services/fabricv4/docs/ConnectionRouteTableEntryConnection.md index dc0fd39e..cce87b46 100644 --- a/services/fabricv4/docs/RouteTableEntryConnection.md +++ b/services/fabricv4/docs/ConnectionRouteTableEntryConnection.md @@ -1,4 +1,4 @@ -# RouteTableEntryConnection +# ConnectionRouteTableEntryConnection ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewRouteTableEntryConnection +### NewConnectionRouteTableEntryConnection -`func NewRouteTableEntryConnection() *RouteTableEntryConnection` +`func NewConnectionRouteTableEntryConnection() *ConnectionRouteTableEntryConnection` -NewRouteTableEntryConnection instantiates a new RouteTableEntryConnection object +NewConnectionRouteTableEntryConnection instantiates a new ConnectionRouteTableEntryConnection 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 -### NewRouteTableEntryConnectionWithDefaults +### NewConnectionRouteTableEntryConnectionWithDefaults -`func NewRouteTableEntryConnectionWithDefaults() *RouteTableEntryConnection` +`func NewConnectionRouteTableEntryConnectionWithDefaults() *ConnectionRouteTableEntryConnection` -NewRouteTableEntryConnectionWithDefaults instantiates a new RouteTableEntryConnection object +NewConnectionRouteTableEntryConnectionWithDefaults instantiates a new ConnectionRouteTableEntryConnection 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 *RouteTableEntryConnection) GetUuid() string` +`func (o *ConnectionRouteTableEntryConnection) GetUuid() string` GetUuid returns the Uuid field if non-nil, zero value otherwise. ### GetUuidOk -`func (o *RouteTableEntryConnection) GetUuidOk() (*string, bool)` +`func (o *ConnectionRouteTableEntryConnection) 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 *RouteTableEntryConnection) SetUuid(v string)` +`func (o *ConnectionRouteTableEntryConnection) SetUuid(v string)` SetUuid sets Uuid field to given value. ### HasUuid -`func (o *RouteTableEntryConnection) HasUuid() bool` +`func (o *ConnectionRouteTableEntryConnection) HasUuid() bool` HasUuid returns a boolean if a field has been set. ### GetName -`func (o *RouteTableEntryConnection) GetName() string` +`func (o *ConnectionRouteTableEntryConnection) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *RouteTableEntryConnection) GetNameOk() (*string, bool)` +`func (o *ConnectionRouteTableEntryConnection) GetNameOk() (*string, bool)` GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetName -`func (o *RouteTableEntryConnection) SetName(v string)` +`func (o *ConnectionRouteTableEntryConnection) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *RouteTableEntryConnection) HasName() bool` +`func (o *ConnectionRouteTableEntryConnection) HasName() bool` HasName returns a boolean if a field has been set. diff --git a/services/fabricv4/docs/ConnectionRouteTableEntrySearchResponse.md b/services/fabricv4/docs/ConnectionRouteTableEntrySearchResponse.md new file mode 100644 index 00000000..4a7f188a --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteTableEntrySearchResponse.md @@ -0,0 +1,82 @@ +# ConnectionRouteTableEntrySearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Data** | Pointer to [**[]ConnectionRouteTableEntry**](ConnectionRouteTableEntry.md) | Data returned from the API call. | [optional] + +## Methods + +### NewConnectionRouteTableEntrySearchResponse + +`func NewConnectionRouteTableEntrySearchResponse() *ConnectionRouteTableEntrySearchResponse` + +NewConnectionRouteTableEntrySearchResponse instantiates a new ConnectionRouteTableEntrySearchResponse 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 + +### NewConnectionRouteTableEntrySearchResponseWithDefaults + +`func NewConnectionRouteTableEntrySearchResponseWithDefaults() *ConnectionRouteTableEntrySearchResponse` + +NewConnectionRouteTableEntrySearchResponseWithDefaults instantiates a new ConnectionRouteTableEntrySearchResponse 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 *ConnectionRouteTableEntrySearchResponse) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ConnectionRouteTableEntrySearchResponse) 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 *ConnectionRouteTableEntrySearchResponse) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *ConnectionRouteTableEntrySearchResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *ConnectionRouteTableEntrySearchResponse) GetData() []ConnectionRouteTableEntry` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ConnectionRouteTableEntrySearchResponse) GetDataOk() (*[]ConnectionRouteTableEntry, 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 *ConnectionRouteTableEntrySearchResponse) SetData(v []ConnectionRouteTableEntry)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ConnectionRouteTableEntrySearchResponse) 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/ConnectionRouteTableEntryState.md b/services/fabricv4/docs/ConnectionRouteTableEntryState.md new file mode 100644 index 00000000..58721d20 --- /dev/null +++ b/services/fabricv4/docs/ConnectionRouteTableEntryState.md @@ -0,0 +1,13 @@ +# ConnectionRouteTableEntryState + +## Enum + + +* `ACTIVE` (value: `"ACTIVE"`) + +* `INACTIVE` (value: `"INACTIVE"`) + + +[[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/GetAllStreamAssetResponse.md b/services/fabricv4/docs/GetAllStreamAssetResponse.md new file mode 100644 index 00000000..85b519a3 --- /dev/null +++ b/services/fabricv4/docs/GetAllStreamAssetResponse.md @@ -0,0 +1,82 @@ +# GetAllStreamAssetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Data** | Pointer to [**[]StreamAsset**](StreamAsset.md) | Data returned from the API call. | [optional] + +## Methods + +### NewGetAllStreamAssetResponse + +`func NewGetAllStreamAssetResponse() *GetAllStreamAssetResponse` + +NewGetAllStreamAssetResponse instantiates a new GetAllStreamAssetResponse 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 + +### NewGetAllStreamAssetResponseWithDefaults + +`func NewGetAllStreamAssetResponseWithDefaults() *GetAllStreamAssetResponse` + +NewGetAllStreamAssetResponseWithDefaults instantiates a new GetAllStreamAssetResponse 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 *GetAllStreamAssetResponse) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *GetAllStreamAssetResponse) 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 *GetAllStreamAssetResponse) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *GetAllStreamAssetResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *GetAllStreamAssetResponse) GetData() []StreamAsset` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GetAllStreamAssetResponse) GetDataOk() (*[]StreamAsset, 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 *GetAllStreamAssetResponse) SetData(v []StreamAsset)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GetAllStreamAssetResponse) 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/GetAllStreamResponse.md b/services/fabricv4/docs/GetAllStreamResponse.md new file mode 100644 index 00000000..202c9154 --- /dev/null +++ b/services/fabricv4/docs/GetAllStreamResponse.md @@ -0,0 +1,82 @@ +# GetAllStreamResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Data** | Pointer to [**[]Stream**](Stream.md) | Data returned from the API call. | [optional] + +## Methods + +### NewGetAllStreamResponse + +`func NewGetAllStreamResponse() *GetAllStreamResponse` + +NewGetAllStreamResponse instantiates a new GetAllStreamResponse 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 + +### NewGetAllStreamResponseWithDefaults + +`func NewGetAllStreamResponseWithDefaults() *GetAllStreamResponse` + +NewGetAllStreamResponseWithDefaults instantiates a new GetAllStreamResponse 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 *GetAllStreamResponse) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *GetAllStreamResponse) 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 *GetAllStreamResponse) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *GetAllStreamResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *GetAllStreamResponse) GetData() []Stream` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GetAllStreamResponse) GetDataOk() (*[]Stream, 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 *GetAllStreamResponse) SetData(v []Stream)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GetAllStreamResponse) 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/GetAllStreamSubscriptionResponse.md b/services/fabricv4/docs/GetAllStreamSubscriptionResponse.md new file mode 100644 index 00000000..bc99fe56 --- /dev/null +++ b/services/fabricv4/docs/GetAllStreamSubscriptionResponse.md @@ -0,0 +1,82 @@ +# GetAllStreamSubscriptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Data** | Pointer to [**[]StreamSubscription**](StreamSubscription.md) | Data returned from the API call. | [optional] + +## Methods + +### NewGetAllStreamSubscriptionResponse + +`func NewGetAllStreamSubscriptionResponse() *GetAllStreamSubscriptionResponse` + +NewGetAllStreamSubscriptionResponse instantiates a new GetAllStreamSubscriptionResponse 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 + +### NewGetAllStreamSubscriptionResponseWithDefaults + +`func NewGetAllStreamSubscriptionResponseWithDefaults() *GetAllStreamSubscriptionResponse` + +NewGetAllStreamSubscriptionResponseWithDefaults instantiates a new GetAllStreamSubscriptionResponse 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 *GetAllStreamSubscriptionResponse) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *GetAllStreamSubscriptionResponse) 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 *GetAllStreamSubscriptionResponse) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *GetAllStreamSubscriptionResponse) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetData + +`func (o *GetAllStreamSubscriptionResponse) GetData() []StreamSubscription` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GetAllStreamSubscriptionResponse) GetDataOk() (*[]StreamSubscription, 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 *GetAllStreamSubscriptionResponse) SetData(v []StreamSubscription)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GetAllStreamSubscriptionResponse) 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/GetSubscriptionsInStreamResponse.md b/services/fabricv4/docs/GetSubscriptionsInStreamResponse.md new file mode 100644 index 00000000..5cfa6955 --- /dev/null +++ b/services/fabricv4/docs/GetSubscriptionsInStreamResponse.md @@ -0,0 +1,82 @@ +# 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/Ipv4.md b/services/fabricv4/docs/Ipv4.md index 10a80bb6..5e6e7f67 100644 --- a/services/fabricv4/docs/Ipv4.md +++ b/services/fabricv4/docs/Ipv4.md @@ -4,16 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Primary** | Pointer to **string** | | [optional] -**Secondary** | Pointer to **string** | | [optional] -**NetworkMask** | Pointer to **string** | | [optional] -**DefaultGateway** | Pointer to **string** | | [optional] +**Primary** | **string** | Primary Timing Server IP Address | +**Secondary** | **string** | Secondary Timing Server IP Address | +**NetworkMask** | **string** | Network Mask | +**DefaultGateway** | Pointer to **string** | Gateway Interface IP address | [optional] ## Methods ### NewIpv4 -`func NewIpv4() *Ipv4` +`func NewIpv4(primary string, secondary string, networkMask string, ) *Ipv4` NewIpv4 instantiates a new Ipv4 object This constructor will assign default values to properties that have it defined, @@ -47,11 +47,6 @@ and a boolean to check if the value has been set. SetPrimary sets Primary field to given value. -### HasPrimary - -`func (o *Ipv4) HasPrimary() bool` - -HasPrimary returns a boolean if a field has been set. ### GetSecondary @@ -72,11 +67,6 @@ and a boolean to check if the value has been set. SetSecondary sets Secondary field to given value. -### HasSecondary - -`func (o *Ipv4) HasSecondary() bool` - -HasSecondary returns a boolean if a field has been set. ### GetNetworkMask @@ -97,11 +87,6 @@ and a boolean to check if the value has been set. SetNetworkMask sets NetworkMask field to given value. -### HasNetworkMask - -`func (o *Ipv4) HasNetworkMask() bool` - -HasNetworkMask returns a boolean if a field has been set. ### GetDefaultGateway diff --git a/services/fabricv4/docs/LinkProtocol.md b/services/fabricv4/docs/LinkProtocol.md deleted file mode 100644 index a312b762..00000000 --- a/services/fabricv4/docs/LinkProtocol.md +++ /dev/null @@ -1,427 +0,0 @@ -# LinkProtocol - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | [**LinkProtocolType**](LinkProtocolType.md) | | -**Ipv4** | Pointer to [**LinkProtocolIpv4Ipv6Config**](LinkProtocolIpv4Ipv6Config.md) | | [optional] -**Ipv6** | Pointer to [**LinkProtocolIpv4Ipv6Config**](LinkProtocolIpv4Ipv6Config.md) | | [optional] -**TagProtocolId** | Pointer to **string** | Tag protocol identifier | [optional] -**VlanTag** | **string** | VLAN tag | -**VlanTagMin** | Pointer to **int32** | VLAN tag Min value specified for DOT1Q connections | [optional] -**VlanTagMax** | Pointer to **int32** | VLAN tag Max value specified for DOT1Q connections | [optional] -**InnerTagProtocolId** | **int32** | Inner tag protocol identifier | -**OuterTagProtocolId** | **int32** | Outer tag protocol identifier | -**VlanCTag** | **int32** | Inner tag, i.e., C-VLAN tag | -**VlanSTag** | **int32** | Outer tag, i.e., S-VLAN tag | -**VlanCTagMin** | Pointer to **int32** | Outer tag Min value specified for QINQ connections | [optional] -**VlanCTagMax** | Pointer to **int32** | Outer tag Max value specified for QINQ connections | [optional] -**SubInterface** | Pointer to **int32** | Subinterface identifier | [optional] -**Vni** | **int32** | Virtual Network Identifier | -**Vnid** | **int32** | Virtual Network Identifier | -**Type5vni** | **int32** | Type 5 VNI identifier | - -## Methods - -### NewLinkProtocol - -`func NewLinkProtocol(type_ LinkProtocolType, vlanTag string, innerTagProtocolId int32, outerTagProtocolId int32, vlanCTag int32, vlanSTag int32, vni int32, vnid int32, type5vni int32, ) *LinkProtocol` - -NewLinkProtocol instantiates a new LinkProtocol 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 - -### NewLinkProtocolWithDefaults - -`func NewLinkProtocolWithDefaults() *LinkProtocol` - -NewLinkProtocolWithDefaults instantiates a new LinkProtocol 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 - -### GetType - -`func (o *LinkProtocol) GetType() LinkProtocolType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *LinkProtocol) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocol) SetType(v LinkProtocolType)` - -SetType sets Type field to given value. - - -### GetIpv4 - -`func (o *LinkProtocol) GetIpv4() LinkProtocolIpv4Ipv6Config` - -GetIpv4 returns the Ipv4 field if non-nil, zero value otherwise. - -### GetIpv4Ok - -`func (o *LinkProtocol) GetIpv4Ok() (*LinkProtocolIpv4Ipv6Config, bool)` - -GetIpv4Ok returns a tuple with the Ipv4 field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpv4 - -`func (o *LinkProtocol) SetIpv4(v LinkProtocolIpv4Ipv6Config)` - -SetIpv4 sets Ipv4 field to given value. - -### HasIpv4 - -`func (o *LinkProtocol) HasIpv4() bool` - -HasIpv4 returns a boolean if a field has been set. - -### GetIpv6 - -`func (o *LinkProtocol) GetIpv6() LinkProtocolIpv4Ipv6Config` - -GetIpv6 returns the Ipv6 field if non-nil, zero value otherwise. - -### GetIpv6Ok - -`func (o *LinkProtocol) GetIpv6Ok() (*LinkProtocolIpv4Ipv6Config, bool)` - -GetIpv6Ok returns a tuple with the Ipv6 field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpv6 - -`func (o *LinkProtocol) SetIpv6(v LinkProtocolIpv4Ipv6Config)` - -SetIpv6 sets Ipv6 field to given value. - -### HasIpv6 - -`func (o *LinkProtocol) HasIpv6() bool` - -HasIpv6 returns a boolean if a field has been set. - -### GetTagProtocolId - -`func (o *LinkProtocol) GetTagProtocolId() string` - -GetTagProtocolId returns the TagProtocolId field if non-nil, zero value otherwise. - -### GetTagProtocolIdOk - -`func (o *LinkProtocol) GetTagProtocolIdOk() (*string, bool)` - -GetTagProtocolIdOk returns a tuple with the TagProtocolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTagProtocolId - -`func (o *LinkProtocol) SetTagProtocolId(v string)` - -SetTagProtocolId sets TagProtocolId field to given value. - -### HasTagProtocolId - -`func (o *LinkProtocol) HasTagProtocolId() bool` - -HasTagProtocolId returns a boolean if a field has been set. - -### GetVlanTag - -`func (o *LinkProtocol) GetVlanTag() string` - -GetVlanTag returns the VlanTag field if non-nil, zero value otherwise. - -### GetVlanTagOk - -`func (o *LinkProtocol) GetVlanTagOk() (*string, bool)` - -GetVlanTagOk returns a tuple with the VlanTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanTag - -`func (o *LinkProtocol) SetVlanTag(v string)` - -SetVlanTag sets VlanTag field to given value. - - -### GetVlanTagMin - -`func (o *LinkProtocol) GetVlanTagMin() int32` - -GetVlanTagMin returns the VlanTagMin field if non-nil, zero value otherwise. - -### GetVlanTagMinOk - -`func (o *LinkProtocol) GetVlanTagMinOk() (*int32, bool)` - -GetVlanTagMinOk returns a tuple with the VlanTagMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanTagMin - -`func (o *LinkProtocol) SetVlanTagMin(v int32)` - -SetVlanTagMin sets VlanTagMin field to given value. - -### HasVlanTagMin - -`func (o *LinkProtocol) HasVlanTagMin() bool` - -HasVlanTagMin returns a boolean if a field has been set. - -### GetVlanTagMax - -`func (o *LinkProtocol) GetVlanTagMax() int32` - -GetVlanTagMax returns the VlanTagMax field if non-nil, zero value otherwise. - -### GetVlanTagMaxOk - -`func (o *LinkProtocol) GetVlanTagMaxOk() (*int32, bool)` - -GetVlanTagMaxOk returns a tuple with the VlanTagMax field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanTagMax - -`func (o *LinkProtocol) SetVlanTagMax(v int32)` - -SetVlanTagMax sets VlanTagMax field to given value. - -### HasVlanTagMax - -`func (o *LinkProtocol) HasVlanTagMax() bool` - -HasVlanTagMax returns a boolean if a field has been set. - -### GetInnerTagProtocolId - -`func (o *LinkProtocol) GetInnerTagProtocolId() int32` - -GetInnerTagProtocolId returns the InnerTagProtocolId field if non-nil, zero value otherwise. - -### GetInnerTagProtocolIdOk - -`func (o *LinkProtocol) GetInnerTagProtocolIdOk() (*int32, bool)` - -GetInnerTagProtocolIdOk returns a tuple with the InnerTagProtocolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInnerTagProtocolId - -`func (o *LinkProtocol) SetInnerTagProtocolId(v int32)` - -SetInnerTagProtocolId sets InnerTagProtocolId field to given value. - - -### GetOuterTagProtocolId - -`func (o *LinkProtocol) GetOuterTagProtocolId() int32` - -GetOuterTagProtocolId returns the OuterTagProtocolId field if non-nil, zero value otherwise. - -### GetOuterTagProtocolIdOk - -`func (o *LinkProtocol) GetOuterTagProtocolIdOk() (*int32, bool)` - -GetOuterTagProtocolIdOk returns a tuple with the OuterTagProtocolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterTagProtocolId - -`func (o *LinkProtocol) SetOuterTagProtocolId(v int32)` - -SetOuterTagProtocolId sets OuterTagProtocolId field to given value. - - -### GetVlanCTag - -`func (o *LinkProtocol) GetVlanCTag() int32` - -GetVlanCTag returns the VlanCTag field if non-nil, zero value otherwise. - -### GetVlanCTagOk - -`func (o *LinkProtocol) GetVlanCTagOk() (*int32, bool)` - -GetVlanCTagOk returns a tuple with the VlanCTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCTag - -`func (o *LinkProtocol) SetVlanCTag(v int32)` - -SetVlanCTag sets VlanCTag field to given value. - - -### GetVlanSTag - -`func (o *LinkProtocol) GetVlanSTag() int32` - -GetVlanSTag returns the VlanSTag field if non-nil, zero value otherwise. - -### GetVlanSTagOk - -`func (o *LinkProtocol) GetVlanSTagOk() (*int32, bool)` - -GetVlanSTagOk returns a tuple with the VlanSTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanSTag - -`func (o *LinkProtocol) SetVlanSTag(v int32)` - -SetVlanSTag sets VlanSTag field to given value. - - -### GetVlanCTagMin - -`func (o *LinkProtocol) GetVlanCTagMin() int32` - -GetVlanCTagMin returns the VlanCTagMin field if non-nil, zero value otherwise. - -### GetVlanCTagMinOk - -`func (o *LinkProtocol) GetVlanCTagMinOk() (*int32, bool)` - -GetVlanCTagMinOk returns a tuple with the VlanCTagMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCTagMin - -`func (o *LinkProtocol) SetVlanCTagMin(v int32)` - -SetVlanCTagMin sets VlanCTagMin field to given value. - -### HasVlanCTagMin - -`func (o *LinkProtocol) HasVlanCTagMin() bool` - -HasVlanCTagMin returns a boolean if a field has been set. - -### GetVlanCTagMax - -`func (o *LinkProtocol) GetVlanCTagMax() int32` - -GetVlanCTagMax returns the VlanCTagMax field if non-nil, zero value otherwise. - -### GetVlanCTagMaxOk - -`func (o *LinkProtocol) GetVlanCTagMaxOk() (*int32, bool)` - -GetVlanCTagMaxOk returns a tuple with the VlanCTagMax field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCTagMax - -`func (o *LinkProtocol) SetVlanCTagMax(v int32)` - -SetVlanCTagMax sets VlanCTagMax field to given value. - -### HasVlanCTagMax - -`func (o *LinkProtocol) HasVlanCTagMax() bool` - -HasVlanCTagMax returns a boolean if a field has been set. - -### GetSubInterface - -`func (o *LinkProtocol) GetSubInterface() int32` - -GetSubInterface returns the SubInterface field if non-nil, zero value otherwise. - -### GetSubInterfaceOk - -`func (o *LinkProtocol) GetSubInterfaceOk() (*int32, bool)` - -GetSubInterfaceOk returns a tuple with the SubInterface field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubInterface - -`func (o *LinkProtocol) SetSubInterface(v int32)` - -SetSubInterface sets SubInterface field to given value. - -### HasSubInterface - -`func (o *LinkProtocol) HasSubInterface() bool` - -HasSubInterface returns a boolean if a field has been set. - -### GetVni - -`func (o *LinkProtocol) GetVni() int32` - -GetVni returns the Vni field if non-nil, zero value otherwise. - -### GetVniOk - -`func (o *LinkProtocol) GetVniOk() (*int32, bool)` - -GetVniOk returns a tuple with the Vni field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVni - -`func (o *LinkProtocol) SetVni(v int32)` - -SetVni sets Vni field to given value. - - -### GetVnid - -`func (o *LinkProtocol) GetVnid() int32` - -GetVnid returns the Vnid field if non-nil, zero value otherwise. - -### GetVnidOk - -`func (o *LinkProtocol) GetVnidOk() (*int32, bool)` - -GetVnidOk returns a tuple with the Vnid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVnid - -`func (o *LinkProtocol) SetVnid(v int32)` - -SetVnid sets Vnid field to given value. - - -### GetType5vni - -`func (o *LinkProtocol) GetType5vni() int32` - -GetType5vni returns the Type5vni field if non-nil, zero value otherwise. - -### GetType5vniOk - -`func (o *LinkProtocol) GetType5vniOk() (*int32, bool)` - -GetType5vniOk returns a tuple with the Type5vni field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType5vni - -`func (o *LinkProtocol) SetType5vni(v int32)` - -SetType5vni sets Type5vni field to given value. - - - -[[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/LinkProtocolDot1q.md b/services/fabricv4/docs/LinkProtocolDot1q.md deleted file mode 100644 index 5af48497..00000000 --- a/services/fabricv4/docs/LinkProtocolDot1q.md +++ /dev/null @@ -1,155 +0,0 @@ -# LinkProtocolDot1q - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to [**LinkProtocolType**](LinkProtocolType.md) | | [optional] -**TagProtocolId** | Pointer to **string** | Tag protocol identifier | [optional] -**VlanTag** | **string** | VLAN tag | -**VlanTagMin** | Pointer to **int32** | VLAN tag Min value specified for DOT1Q connections | [optional] -**VlanTagMax** | Pointer to **int32** | VLAN tag Max value specified for DOT1Q connections | [optional] - -## Methods - -### NewLinkProtocolDot1q - -`func NewLinkProtocolDot1q(vlanTag string, ) *LinkProtocolDot1q` - -NewLinkProtocolDot1q instantiates a new LinkProtocolDot1q 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 - -### NewLinkProtocolDot1qWithDefaults - -`func NewLinkProtocolDot1qWithDefaults() *LinkProtocolDot1q` - -NewLinkProtocolDot1qWithDefaults instantiates a new LinkProtocolDot1q 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 - -### GetType - -`func (o *LinkProtocolDot1q) GetType() LinkProtocolType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *LinkProtocolDot1q) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolDot1q) SetType(v LinkProtocolType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *LinkProtocolDot1q) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetTagProtocolId - -`func (o *LinkProtocolDot1q) GetTagProtocolId() string` - -GetTagProtocolId returns the TagProtocolId field if non-nil, zero value otherwise. - -### GetTagProtocolIdOk - -`func (o *LinkProtocolDot1q) GetTagProtocolIdOk() (*string, bool)` - -GetTagProtocolIdOk returns a tuple with the TagProtocolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTagProtocolId - -`func (o *LinkProtocolDot1q) SetTagProtocolId(v string)` - -SetTagProtocolId sets TagProtocolId field to given value. - -### HasTagProtocolId - -`func (o *LinkProtocolDot1q) HasTagProtocolId() bool` - -HasTagProtocolId returns a boolean if a field has been set. - -### GetVlanTag - -`func (o *LinkProtocolDot1q) GetVlanTag() string` - -GetVlanTag returns the VlanTag field if non-nil, zero value otherwise. - -### GetVlanTagOk - -`func (o *LinkProtocolDot1q) GetVlanTagOk() (*string, bool)` - -GetVlanTagOk returns a tuple with the VlanTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanTag - -`func (o *LinkProtocolDot1q) SetVlanTag(v string)` - -SetVlanTag sets VlanTag field to given value. - - -### GetVlanTagMin - -`func (o *LinkProtocolDot1q) GetVlanTagMin() int32` - -GetVlanTagMin returns the VlanTagMin field if non-nil, zero value otherwise. - -### GetVlanTagMinOk - -`func (o *LinkProtocolDot1q) GetVlanTagMinOk() (*int32, bool)` - -GetVlanTagMinOk returns a tuple with the VlanTagMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanTagMin - -`func (o *LinkProtocolDot1q) SetVlanTagMin(v int32)` - -SetVlanTagMin sets VlanTagMin field to given value. - -### HasVlanTagMin - -`func (o *LinkProtocolDot1q) HasVlanTagMin() bool` - -HasVlanTagMin returns a boolean if a field has been set. - -### GetVlanTagMax - -`func (o *LinkProtocolDot1q) GetVlanTagMax() int32` - -GetVlanTagMax returns the VlanTagMax field if non-nil, zero value otherwise. - -### GetVlanTagMaxOk - -`func (o *LinkProtocolDot1q) GetVlanTagMaxOk() (*int32, bool)` - -GetVlanTagMaxOk returns a tuple with the VlanTagMax field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanTagMax - -`func (o *LinkProtocolDot1q) SetVlanTagMax(v int32)` - -SetVlanTagMax sets VlanTagMax field to given value. - -### HasVlanTagMax - -`func (o *LinkProtocolDot1q) HasVlanTagMax() bool` - -HasVlanTagMax 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/LinkProtocolEvpnVxlan.md b/services/fabricv4/docs/LinkProtocolEvpnVxlan.md deleted file mode 100644 index ebc40bc8..00000000 --- a/services/fabricv4/docs/LinkProtocolEvpnVxlan.md +++ /dev/null @@ -1,98 +0,0 @@ -# LinkProtocolEvpnVxlan - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to [**LinkProtocolType**](LinkProtocolType.md) | | [optional] -**Vnid** | **int32** | Virtual Network Identifier | -**Type5vni** | **int32** | Type 5 VNI identifier | - -## Methods - -### NewLinkProtocolEvpnVxlan - -`func NewLinkProtocolEvpnVxlan(vnid int32, type5vni int32, ) *LinkProtocolEvpnVxlan` - -NewLinkProtocolEvpnVxlan instantiates a new LinkProtocolEvpnVxlan 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 - -### NewLinkProtocolEvpnVxlanWithDefaults - -`func NewLinkProtocolEvpnVxlanWithDefaults() *LinkProtocolEvpnVxlan` - -NewLinkProtocolEvpnVxlanWithDefaults instantiates a new LinkProtocolEvpnVxlan 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 - -### GetType - -`func (o *LinkProtocolEvpnVxlan) GetType() LinkProtocolType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *LinkProtocolEvpnVxlan) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolEvpnVxlan) SetType(v LinkProtocolType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *LinkProtocolEvpnVxlan) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetVnid - -`func (o *LinkProtocolEvpnVxlan) GetVnid() int32` - -GetVnid returns the Vnid field if non-nil, zero value otherwise. - -### GetVnidOk - -`func (o *LinkProtocolEvpnVxlan) GetVnidOk() (*int32, bool)` - -GetVnidOk returns a tuple with the Vnid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVnid - -`func (o *LinkProtocolEvpnVxlan) SetVnid(v int32)` - -SetVnid sets Vnid field to given value. - - -### GetType5vni - -`func (o *LinkProtocolEvpnVxlan) GetType5vni() int32` - -GetType5vni returns the Type5vni field if non-nil, zero value otherwise. - -### GetType5vniOk - -`func (o *LinkProtocolEvpnVxlan) GetType5vniOk() (*int32, bool)` - -GetType5vniOk returns a tuple with the Type5vni field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType5vni - -`func (o *LinkProtocolEvpnVxlan) SetType5vni(v int32)` - -SetType5vni sets Type5vni field to given value. - - - -[[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/LinkProtocolIpv4Ipv6Config.md b/services/fabricv4/docs/LinkProtocolIpv4Ipv6Config.md deleted file mode 100644 index ab724fb4..00000000 --- a/services/fabricv4/docs/LinkProtocolIpv4Ipv6Config.md +++ /dev/null @@ -1,108 +0,0 @@ -# LinkProtocolIpv4Ipv6Config - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**LinkPrefix** | Pointer to **string** | Link subnet prefix | [optional] -**LocalIfaceIp** | Pointer to **string** | Prefix datatype when linkPrefix not specified | [optional] -**RemoteIfaceIp** | Pointer to **string** | Equinix-side link interface address | [optional] - -## Methods - -### NewLinkProtocolIpv4Ipv6Config - -`func NewLinkProtocolIpv4Ipv6Config() *LinkProtocolIpv4Ipv6Config` - -NewLinkProtocolIpv4Ipv6Config instantiates a new LinkProtocolIpv4Ipv6Config 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 - -### NewLinkProtocolIpv4Ipv6ConfigWithDefaults - -`func NewLinkProtocolIpv4Ipv6ConfigWithDefaults() *LinkProtocolIpv4Ipv6Config` - -NewLinkProtocolIpv4Ipv6ConfigWithDefaults instantiates a new LinkProtocolIpv4Ipv6Config 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 - -### GetLinkPrefix - -`func (o *LinkProtocolIpv4Ipv6Config) GetLinkPrefix() string` - -GetLinkPrefix returns the LinkPrefix field if non-nil, zero value otherwise. - -### GetLinkPrefixOk - -`func (o *LinkProtocolIpv4Ipv6Config) GetLinkPrefixOk() (*string, bool)` - -GetLinkPrefixOk returns a tuple with the LinkPrefix field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinkPrefix - -`func (o *LinkProtocolIpv4Ipv6Config) SetLinkPrefix(v string)` - -SetLinkPrefix sets LinkPrefix field to given value. - -### HasLinkPrefix - -`func (o *LinkProtocolIpv4Ipv6Config) HasLinkPrefix() bool` - -HasLinkPrefix returns a boolean if a field has been set. - -### GetLocalIfaceIp - -`func (o *LinkProtocolIpv4Ipv6Config) GetLocalIfaceIp() string` - -GetLocalIfaceIp returns the LocalIfaceIp field if non-nil, zero value otherwise. - -### GetLocalIfaceIpOk - -`func (o *LinkProtocolIpv4Ipv6Config) GetLocalIfaceIpOk() (*string, bool)` - -GetLocalIfaceIpOk returns a tuple with the LocalIfaceIp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocalIfaceIp - -`func (o *LinkProtocolIpv4Ipv6Config) SetLocalIfaceIp(v string)` - -SetLocalIfaceIp sets LocalIfaceIp field to given value. - -### HasLocalIfaceIp - -`func (o *LinkProtocolIpv4Ipv6Config) HasLocalIfaceIp() bool` - -HasLocalIfaceIp returns a boolean if a field has been set. - -### GetRemoteIfaceIp - -`func (o *LinkProtocolIpv4Ipv6Config) GetRemoteIfaceIp() string` - -GetRemoteIfaceIp returns the RemoteIfaceIp field if non-nil, zero value otherwise. - -### GetRemoteIfaceIpOk - -`func (o *LinkProtocolIpv4Ipv6Config) GetRemoteIfaceIpOk() (*string, bool)` - -GetRemoteIfaceIpOk returns a tuple with the RemoteIfaceIp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRemoteIfaceIp - -`func (o *LinkProtocolIpv4Ipv6Config) SetRemoteIfaceIp(v string)` - -SetRemoteIfaceIp sets RemoteIfaceIp field to given value. - -### HasRemoteIfaceIp - -`func (o *LinkProtocolIpv4Ipv6Config) HasRemoteIfaceIp() bool` - -HasRemoteIfaceIp 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/LinkProtocolQinq.md b/services/fabricv4/docs/LinkProtocolQinq.md deleted file mode 100644 index b1d7e993..00000000 --- a/services/fabricv4/docs/LinkProtocolQinq.md +++ /dev/null @@ -1,218 +0,0 @@ -# LinkProtocolQinq - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to [**LinkProtocolType**](LinkProtocolType.md) | | [optional] -**InnerTagProtocolId** | **int32** | Inner tag protocol identifier | -**OuterTagProtocolId** | **int32** | Outer tag protocol identifier | -**VlanCTag** | **int32** | Inner tag, i.e., C-VLAN tag | -**VlanSTag** | **int32** | Outer tag, i.e., S-VLAN tag | -**VlanCTagMin** | Pointer to **int32** | Outer tag Min value specified for QINQ connections | [optional] -**VlanCTagMax** | Pointer to **int32** | Outer tag Max value specified for QINQ connections | [optional] -**SubInterface** | Pointer to **int32** | Subinterface identifier | [optional] - -## Methods - -### NewLinkProtocolQinq - -`func NewLinkProtocolQinq(innerTagProtocolId int32, outerTagProtocolId int32, vlanCTag int32, vlanSTag int32, ) *LinkProtocolQinq` - -NewLinkProtocolQinq instantiates a new LinkProtocolQinq 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 - -### NewLinkProtocolQinqWithDefaults - -`func NewLinkProtocolQinqWithDefaults() *LinkProtocolQinq` - -NewLinkProtocolQinqWithDefaults instantiates a new LinkProtocolQinq 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 - -### GetType - -`func (o *LinkProtocolQinq) GetType() LinkProtocolType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *LinkProtocolQinq) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolQinq) SetType(v LinkProtocolType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *LinkProtocolQinq) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetInnerTagProtocolId - -`func (o *LinkProtocolQinq) GetInnerTagProtocolId() int32` - -GetInnerTagProtocolId returns the InnerTagProtocolId field if non-nil, zero value otherwise. - -### GetInnerTagProtocolIdOk - -`func (o *LinkProtocolQinq) GetInnerTagProtocolIdOk() (*int32, bool)` - -GetInnerTagProtocolIdOk returns a tuple with the InnerTagProtocolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInnerTagProtocolId - -`func (o *LinkProtocolQinq) SetInnerTagProtocolId(v int32)` - -SetInnerTagProtocolId sets InnerTagProtocolId field to given value. - - -### GetOuterTagProtocolId - -`func (o *LinkProtocolQinq) GetOuterTagProtocolId() int32` - -GetOuterTagProtocolId returns the OuterTagProtocolId field if non-nil, zero value otherwise. - -### GetOuterTagProtocolIdOk - -`func (o *LinkProtocolQinq) GetOuterTagProtocolIdOk() (*int32, bool)` - -GetOuterTagProtocolIdOk returns a tuple with the OuterTagProtocolId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterTagProtocolId - -`func (o *LinkProtocolQinq) SetOuterTagProtocolId(v int32)` - -SetOuterTagProtocolId sets OuterTagProtocolId field to given value. - - -### GetVlanCTag - -`func (o *LinkProtocolQinq) GetVlanCTag() int32` - -GetVlanCTag returns the VlanCTag field if non-nil, zero value otherwise. - -### GetVlanCTagOk - -`func (o *LinkProtocolQinq) GetVlanCTagOk() (*int32, bool)` - -GetVlanCTagOk returns a tuple with the VlanCTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCTag - -`func (o *LinkProtocolQinq) SetVlanCTag(v int32)` - -SetVlanCTag sets VlanCTag field to given value. - - -### GetVlanSTag - -`func (o *LinkProtocolQinq) GetVlanSTag() int32` - -GetVlanSTag returns the VlanSTag field if non-nil, zero value otherwise. - -### GetVlanSTagOk - -`func (o *LinkProtocolQinq) GetVlanSTagOk() (*int32, bool)` - -GetVlanSTagOk returns a tuple with the VlanSTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanSTag - -`func (o *LinkProtocolQinq) SetVlanSTag(v int32)` - -SetVlanSTag sets VlanSTag field to given value. - - -### GetVlanCTagMin - -`func (o *LinkProtocolQinq) GetVlanCTagMin() int32` - -GetVlanCTagMin returns the VlanCTagMin field if non-nil, zero value otherwise. - -### GetVlanCTagMinOk - -`func (o *LinkProtocolQinq) GetVlanCTagMinOk() (*int32, bool)` - -GetVlanCTagMinOk returns a tuple with the VlanCTagMin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCTagMin - -`func (o *LinkProtocolQinq) SetVlanCTagMin(v int32)` - -SetVlanCTagMin sets VlanCTagMin field to given value. - -### HasVlanCTagMin - -`func (o *LinkProtocolQinq) HasVlanCTagMin() bool` - -HasVlanCTagMin returns a boolean if a field has been set. - -### GetVlanCTagMax - -`func (o *LinkProtocolQinq) GetVlanCTagMax() int32` - -GetVlanCTagMax returns the VlanCTagMax field if non-nil, zero value otherwise. - -### GetVlanCTagMaxOk - -`func (o *LinkProtocolQinq) GetVlanCTagMaxOk() (*int32, bool)` - -GetVlanCTagMaxOk returns a tuple with the VlanCTagMax field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCTagMax - -`func (o *LinkProtocolQinq) SetVlanCTagMax(v int32)` - -SetVlanCTagMax sets VlanCTagMax field to given value. - -### HasVlanCTagMax - -`func (o *LinkProtocolQinq) HasVlanCTagMax() bool` - -HasVlanCTagMax returns a boolean if a field has been set. - -### GetSubInterface - -`func (o *LinkProtocolQinq) GetSubInterface() int32` - -GetSubInterface returns the SubInterface field if non-nil, zero value otherwise. - -### GetSubInterfaceOk - -`func (o *LinkProtocolQinq) GetSubInterfaceOk() (*int32, bool)` - -GetSubInterfaceOk returns a tuple with the SubInterface field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubInterface - -`func (o *LinkProtocolQinq) SetSubInterface(v int32)` - -SetSubInterface sets SubInterface field to given value. - -### HasSubInterface - -`func (o *LinkProtocolQinq) HasSubInterface() bool` - -HasSubInterface 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/LinkProtocolUntagged.md b/services/fabricv4/docs/LinkProtocolUntagged.md deleted file mode 100644 index 1cb4eb70..00000000 --- a/services/fabricv4/docs/LinkProtocolUntagged.md +++ /dev/null @@ -1,108 +0,0 @@ -# LinkProtocolUntagged - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to [**LinkProtocolType**](LinkProtocolType.md) | | [optional] -**Ipv4** | Pointer to [**LinkProtocolIpv4Ipv6Config**](LinkProtocolIpv4Ipv6Config.md) | | [optional] -**Ipv6** | Pointer to [**LinkProtocolIpv4Ipv6Config**](LinkProtocolIpv4Ipv6Config.md) | | [optional] - -## Methods - -### NewLinkProtocolUntagged - -`func NewLinkProtocolUntagged() *LinkProtocolUntagged` - -NewLinkProtocolUntagged instantiates a new LinkProtocolUntagged 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 - -### NewLinkProtocolUntaggedWithDefaults - -`func NewLinkProtocolUntaggedWithDefaults() *LinkProtocolUntagged` - -NewLinkProtocolUntaggedWithDefaults instantiates a new LinkProtocolUntagged 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 - -### GetType - -`func (o *LinkProtocolUntagged) GetType() LinkProtocolType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *LinkProtocolUntagged) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolUntagged) SetType(v LinkProtocolType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *LinkProtocolUntagged) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetIpv4 - -`func (o *LinkProtocolUntagged) GetIpv4() LinkProtocolIpv4Ipv6Config` - -GetIpv4 returns the Ipv4 field if non-nil, zero value otherwise. - -### GetIpv4Ok - -`func (o *LinkProtocolUntagged) GetIpv4Ok() (*LinkProtocolIpv4Ipv6Config, bool)` - -GetIpv4Ok returns a tuple with the Ipv4 field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpv4 - -`func (o *LinkProtocolUntagged) SetIpv4(v LinkProtocolIpv4Ipv6Config)` - -SetIpv4 sets Ipv4 field to given value. - -### HasIpv4 - -`func (o *LinkProtocolUntagged) HasIpv4() bool` - -HasIpv4 returns a boolean if a field has been set. - -### GetIpv6 - -`func (o *LinkProtocolUntagged) GetIpv6() LinkProtocolIpv4Ipv6Config` - -GetIpv6 returns the Ipv6 field if non-nil, zero value otherwise. - -### GetIpv6Ok - -`func (o *LinkProtocolUntagged) GetIpv6Ok() (*LinkProtocolIpv4Ipv6Config, bool)` - -GetIpv6Ok returns a tuple with the Ipv6 field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpv6 - -`func (o *LinkProtocolUntagged) SetIpv6(v LinkProtocolIpv4Ipv6Config)` - -SetIpv6 sets Ipv6 field to given value. - -### HasIpv6 - -`func (o *LinkProtocolUntagged) HasIpv6() bool` - -HasIpv6 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/Md5.md b/services/fabricv4/docs/Md5.md index 65a3e93a..bbf0f7fd 100644 --- a/services/fabricv4/docs/Md5.md +++ b/services/fabricv4/docs/Md5.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to [**Md5Type**](Md5Type.md) | | [optional] -**Id** | Pointer to **int32** | | [optional] -**Password** | Pointer to **string** | | [optional] +**KeyNumber** | Pointer to **int32** | The authentication Key ID. | [optional] +**Key** | Pointer to **string** | The plaintext authentication key. For ASCII type, the key must contain printable ASCII characters, range 10-20 characters. For HEX type, range should be 10-40 characters. | [optional] ## Methods @@ -52,55 +52,55 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. -### GetId +### GetKeyNumber -`func (o *Md5) GetId() int32` +`func (o *Md5) GetKeyNumber() int32` -GetId returns the Id field if non-nil, zero value otherwise. +GetKeyNumber returns the KeyNumber field if non-nil, zero value otherwise. -### GetIdOk +### GetKeyNumberOk -`func (o *Md5) GetIdOk() (*int32, bool)` +`func (o *Md5) GetKeyNumberOk() (*int32, bool)` -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +GetKeyNumberOk returns a tuple with the KeyNumber field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetId +### SetKeyNumber -`func (o *Md5) SetId(v int32)` +`func (o *Md5) SetKeyNumber(v int32)` -SetId sets Id field to given value. +SetKeyNumber sets KeyNumber field to given value. -### HasId +### HasKeyNumber -`func (o *Md5) HasId() bool` +`func (o *Md5) HasKeyNumber() bool` -HasId returns a boolean if a field has been set. +HasKeyNumber returns a boolean if a field has been set. -### GetPassword +### GetKey -`func (o *Md5) GetPassword() string` +`func (o *Md5) GetKey() string` -GetPassword returns the Password field if non-nil, zero value otherwise. +GetKey returns the Key field if non-nil, zero value otherwise. -### GetPasswordOk +### GetKeyOk -`func (o *Md5) GetPasswordOk() (*string, bool)` +`func (o *Md5) GetKeyOk() (*string, bool)` -GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPassword +### SetKey -`func (o *Md5) SetPassword(v string)` +`func (o *Md5) SetKey(v string)` -SetPassword sets Password field to given value. +SetKey sets Key field to given value. -### HasPassword +### HasKey -`func (o *Md5) HasPassword() bool` +`func (o *Md5) HasKey() bool` -HasPassword returns a boolean if a field has been set. +HasKey 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/NetworkChangeOperation.md b/services/fabricv4/docs/NetworkChangeOperation.md index b76c461b..ab191e8c 100644 --- a/services/fabricv4/docs/NetworkChangeOperation.md +++ b/services/fabricv4/docs/NetworkChangeOperation.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Op** | [**ServiceTokenChangeOperationOp**](ServiceTokenChangeOperationOp.md) | | +**Op** | [**PrecisionTimeChangeOperationOp**](PrecisionTimeChangeOperationOp.md) | | **Path** | **string** | path inside document leading to updated parameter | **Value** | **interface{}** | new value for updated parameter | @@ -12,7 +12,7 @@ Name | Type | Description | Notes ### NewNetworkChangeOperation -`func NewNetworkChangeOperation(op ServiceTokenChangeOperationOp, path string, value interface{}, ) *NetworkChangeOperation` +`func NewNetworkChangeOperation(op PrecisionTimeChangeOperationOp, path string, value interface{}, ) *NetworkChangeOperation` NewNetworkChangeOperation instantiates a new NetworkChangeOperation object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetOp -`func (o *NetworkChangeOperation) GetOp() ServiceTokenChangeOperationOp` +`func (o *NetworkChangeOperation) GetOp() PrecisionTimeChangeOperationOp` GetOp returns the Op field if non-nil, zero value otherwise. ### GetOpOk -`func (o *NetworkChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, bool)` +`func (o *NetworkChangeOperation) GetOpOk() (*PrecisionTimeChangeOperationOp, 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 *NetworkChangeOperation) SetOp(v ServiceTokenChangeOperationOp)` +`func (o *NetworkChangeOperation) SetOp(v PrecisionTimeChangeOperationOp)` SetOp sets Op field to given value. diff --git a/services/fabricv4/docs/NetworksApi.md b/services/fabricv4/docs/NetworksApi.md index 9d0f5d4c..d0fdcbf5 100644 --- a/services/fabricv4/docs/NetworksApi.md +++ b/services/fabricv4/docs/NetworksApi.md @@ -522,7 +522,7 @@ import ( func main() { networkId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Network UUID - networkChangeOperation := []openapiclient.NetworkChangeOperation{*openapiclient.NewNetworkChangeOperation(openapiclient.ServiceTokenChangeOperation_op("replace"), "/name", interface{}(123))} // []NetworkChangeOperation | + networkChangeOperation := []openapiclient.NetworkChangeOperation{*openapiclient.NewNetworkChangeOperation(openapiclient.precisionTimeChangeOperation_op("replace"), "/name", interface{}(123))} // []NetworkChangeOperation | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/services/fabricv4/docs/Operation.md b/services/fabricv4/docs/Operation.md new file mode 100644 index 00000000..cc6e9bf5 --- /dev/null +++ b/services/fabricv4/docs/Operation.md @@ -0,0 +1,82 @@ +# Operation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BgpIpv4RoutesCount** | Pointer to **int32** | IPV4 Route Count | [optional] +**BgpIpv6RoutesCount** | Pointer to **int32** | IPV6 Route Count | [optional] + +## Methods + +### NewOperation + +`func NewOperation() *Operation` + +NewOperation instantiates a new Operation 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 + +### NewOperationWithDefaults + +`func NewOperationWithDefaults() *Operation` + +NewOperationWithDefaults instantiates a new Operation 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 + +### GetBgpIpv4RoutesCount + +`func (o *Operation) GetBgpIpv4RoutesCount() int32` + +GetBgpIpv4RoutesCount returns the BgpIpv4RoutesCount field if non-nil, zero value otherwise. + +### GetBgpIpv4RoutesCountOk + +`func (o *Operation) GetBgpIpv4RoutesCountOk() (*int32, bool)` + +GetBgpIpv4RoutesCountOk returns a tuple with the BgpIpv4RoutesCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBgpIpv4RoutesCount + +`func (o *Operation) SetBgpIpv4RoutesCount(v int32)` + +SetBgpIpv4RoutesCount sets BgpIpv4RoutesCount field to given value. + +### HasBgpIpv4RoutesCount + +`func (o *Operation) HasBgpIpv4RoutesCount() bool` + +HasBgpIpv4RoutesCount returns a boolean if a field has been set. + +### GetBgpIpv6RoutesCount + +`func (o *Operation) GetBgpIpv6RoutesCount() int32` + +GetBgpIpv6RoutesCount returns the BgpIpv6RoutesCount field if non-nil, zero value otherwise. + +### GetBgpIpv6RoutesCountOk + +`func (o *Operation) GetBgpIpv6RoutesCountOk() (*int32, bool)` + +GetBgpIpv6RoutesCountOk returns a tuple with the BgpIpv6RoutesCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBgpIpv6RoutesCount + +`func (o *Operation) SetBgpIpv6RoutesCount(v int32)` + +SetBgpIpv6RoutesCount sets BgpIpv6RoutesCount field to given value. + +### HasBgpIpv6RoutesCount + +`func (o *Operation) HasBgpIpv6RoutesCount() bool` + +HasBgpIpv6RoutesCount 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/LinkProtocolVxlan.md b/services/fabricv4/docs/Package.md similarity index 50% rename from services/fabricv4/docs/LinkProtocolVxlan.md rename to services/fabricv4/docs/Package.md index c1950e6c..2431f21f 100644 --- a/services/fabricv4/docs/LinkProtocolVxlan.md +++ b/services/fabricv4/docs/Package.md @@ -1,75 +1,80 @@ -# LinkProtocolVxlan +# Package ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**LinkProtocolType**](LinkProtocolType.md) | | [optional] -**Vni** | **int32** | Virtual Network Identifier | +**Code** | Pointer to [**PackageCode**](PackageCode.md) | | [optional] +**Type** | Pointer to [**PackageType**](PackageType.md) | | [optional] ## Methods -### NewLinkProtocolVxlan +### NewPackage -`func NewLinkProtocolVxlan(vni int32, ) *LinkProtocolVxlan` +`func NewPackage() *Package` -NewLinkProtocolVxlan instantiates a new LinkProtocolVxlan object +NewPackage instantiates a new Package 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 -### NewLinkProtocolVxlanWithDefaults +### NewPackageWithDefaults -`func NewLinkProtocolVxlanWithDefaults() *LinkProtocolVxlan` +`func NewPackageWithDefaults() *Package` -NewLinkProtocolVxlanWithDefaults instantiates a new LinkProtocolVxlan object +NewPackageWithDefaults instantiates a new Package 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 -### GetType +### GetCode -`func (o *LinkProtocolVxlan) GetType() LinkProtocolType` +`func (o *Package) GetCode() PackageCode` -GetType returns the Type field if non-nil, zero value otherwise. +GetCode returns the Code field if non-nil, zero value otherwise. -### GetTypeOk +### GetCodeOk -`func (o *LinkProtocolVxlan) GetTypeOk() (*LinkProtocolType, bool)` +`func (o *Package) GetCodeOk() (*PackageCode, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetCode -`func (o *LinkProtocolVxlan) SetType(v LinkProtocolType)` +`func (o *Package) SetCode(v PackageCode)` -SetType sets Type field to given value. +SetCode sets Code field to given value. -### HasType +### HasCode -`func (o *LinkProtocolVxlan) HasType() bool` +`func (o *Package) HasCode() bool` -HasType returns a boolean if a field has been set. +HasCode returns a boolean if a field has been set. -### GetVni +### GetType -`func (o *LinkProtocolVxlan) GetVni() int32` +`func (o *Package) GetType() PackageType` -GetVni returns the Vni field if non-nil, zero value otherwise. +GetType returns the Type field if non-nil, zero value otherwise. -### GetVniOk +### GetTypeOk -`func (o *LinkProtocolVxlan) GetVniOk() (*int32, bool)` +`func (o *Package) GetTypeOk() (*PackageType, bool)` -GetVniOk returns a tuple with the Vni field if it's non-nil, zero value otherwise +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. -### SetVni +### SetType -`func (o *LinkProtocolVxlan) SetVni(v int32)` +`func (o *Package) SetType(v PackageType)` -SetVni sets Vni field to given value. +SetType sets Type field to given value. +### HasType + +`func (o *Package) 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/PackageCode.md b/services/fabricv4/docs/PackageCode.md new file mode 100644 index 00000000..b1502106 --- /dev/null +++ b/services/fabricv4/docs/PackageCode.md @@ -0,0 +1,15 @@ +# PackageCode + +## Enum + + +* `STANDARD` (value: `"STANDARD"`) + +* `UNLIMITED` (value: `"UNLIMITED"`) + +* `UNLIMITED_PLUS` (value: `"UNLIMITED_PLUS"`) + + +[[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/PortResponseServiceType.md b/services/fabricv4/docs/PackageType.md similarity index 89% rename from services/fabricv4/docs/PortResponseServiceType.md rename to services/fabricv4/docs/PackageType.md index 9af887fe..e2296344 100644 --- a/services/fabricv4/docs/PortResponseServiceType.md +++ b/services/fabricv4/docs/PackageType.md @@ -1,4 +1,4 @@ -# PortResponseServiceType +# PackageType ## Enum diff --git a/services/fabricv4/docs/PhysicalPort.md b/services/fabricv4/docs/PhysicalPort.md index d86394f9..bcb064cd 100644 --- a/services/fabricv4/docs/PhysicalPort.md +++ b/services/fabricv4/docs/PhysicalPort.md @@ -4,15 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Equinix assigned response attribute for an absolute URL that is the subject of the link's context. | [optional] [readonly] **Type** | Pointer to [**PhysicalPortType**](PhysicalPortType.md) | | [optional] **Id** | Pointer to **int32** | Equinix assigned response attribute for Physical Port Id | [optional] -**Href** | Pointer to **string** | Equinix assigned response attribute for an absolute URL that is the subject of the link's context. | [optional] [readonly] **State** | Pointer to [**PortState**](PortState.md) | | [optional] **Account** | Pointer to [**SimplifiedAccount**](SimplifiedAccount.md) | | [optional] **InterfaceSpeed** | Pointer to **int32** | Physical Port Speed in Mbps | [optional] **InterfaceType** | Pointer to **string** | Physical Port Interface Type | [optional] +**Uuid** | Pointer to **string** | Equinix assigned response attribute for physical port identifier | [optional] **Tether** | Pointer to [**PortTether**](PortTether.md) | | [optional] **DemarcationPoint** | Pointer to [**PortDemarcationPoint**](PortDemarcationPoint.md) | | [optional] +**Settings** | Pointer to [**PhysicalPortSettings**](PhysicalPortSettings.md) | | [optional] +**Interface** | Pointer to [**PortInterface**](PortInterface.md) | | [optional] **Notifications** | Pointer to [**[]PortNotification**](PortNotification.md) | Notification preferences | [optional] **AdditionalInfo** | Pointer to [**[]PortAdditionalInfo**](PortAdditionalInfo.md) | Physical Port additional information | [optional] **Order** | Pointer to [**PortOrder**](PortOrder.md) | | [optional] @@ -38,6 +41,31 @@ NewPhysicalPortWithDefaults instantiates a new PhysicalPort 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 *PhysicalPort) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *PhysicalPort) 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 *PhysicalPort) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *PhysicalPort) HasHref() bool` + +HasHref returns a boolean if a field has been set. + ### GetType `func (o *PhysicalPort) GetType() PhysicalPortType` @@ -88,31 +116,6 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. -### GetHref - -`func (o *PhysicalPort) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *PhysicalPort) 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 *PhysicalPort) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *PhysicalPort) HasHref() bool` - -HasHref returns a boolean if a field has been set. - ### GetState `func (o *PhysicalPort) GetState() PortState` @@ -213,6 +216,31 @@ SetInterfaceType sets InterfaceType field to given value. HasInterfaceType returns a boolean if a field has been set. +### GetUuid + +`func (o *PhysicalPort) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *PhysicalPort) 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 *PhysicalPort) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *PhysicalPort) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + ### GetTether `func (o *PhysicalPort) GetTether() PortTether` @@ -263,6 +291,56 @@ SetDemarcationPoint sets DemarcationPoint field to given value. HasDemarcationPoint returns a boolean if a field has been set. +### GetSettings + +`func (o *PhysicalPort) GetSettings() PhysicalPortSettings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *PhysicalPort) GetSettingsOk() (*PhysicalPortSettings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *PhysicalPort) SetSettings(v PhysicalPortSettings)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *PhysicalPort) HasSettings() bool` + +HasSettings returns a boolean if a field has been set. + +### GetInterface + +`func (o *PhysicalPort) GetInterface() PortInterface` + +GetInterface returns the Interface field if non-nil, zero value otherwise. + +### GetInterfaceOk + +`func (o *PhysicalPort) GetInterfaceOk() (*PortInterface, bool)` + +GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterface + +`func (o *PhysicalPort) SetInterface(v PortInterface)` + +SetInterface sets Interface field to given value. + +### HasInterface + +`func (o *PhysicalPort) HasInterface() bool` + +HasInterface returns a boolean if a field has been set. + ### GetNotifications `func (o *PhysicalPort) GetNotifications() []PortNotification` diff --git a/services/fabricv4/docs/PhysicalPortSettings.md b/services/fabricv4/docs/PhysicalPortSettings.md new file mode 100644 index 00000000..4c89a2e6 --- /dev/null +++ b/services/fabricv4/docs/PhysicalPortSettings.md @@ -0,0 +1,82 @@ +# PhysicalPortSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorMessage** | Pointer to **string** | | [optional] +**PackageType** | Pointer to **string** | | [optional] + +## Methods + +### NewPhysicalPortSettings + +`func NewPhysicalPortSettings() *PhysicalPortSettings` + +NewPhysicalPortSettings instantiates a new PhysicalPortSettings 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 + +### NewPhysicalPortSettingsWithDefaults + +`func NewPhysicalPortSettingsWithDefaults() *PhysicalPortSettings` + +NewPhysicalPortSettingsWithDefaults instantiates a new PhysicalPortSettings 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 + +### GetErrorMessage + +`func (o *PhysicalPortSettings) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *PhysicalPortSettings) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *PhysicalPortSettings) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *PhysicalPortSettings) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetPackageType + +`func (o *PhysicalPortSettings) GetPackageType() string` + +GetPackageType returns the PackageType field if non-nil, zero value otherwise. + +### GetPackageTypeOk + +`func (o *PhysicalPortSettings) GetPackageTypeOk() (*string, bool)` + +GetPackageTypeOk returns a tuple with the PackageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageType + +`func (o *PhysicalPortSettings) SetPackageType(v string)` + +SetPackageType sets PackageType field to given value. + +### HasPackageType + +`func (o *PhysicalPortSettings) HasPackageType() bool` + +HasPackageType 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/Port.md b/services/fabricv4/docs/Port.md index 55b50c65..c1f616ee 100644 --- a/services/fabricv4/docs/Port.md +++ b/services/fabricv4/docs/Port.md @@ -4,41 +4,41 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Account** | [**SimplifiedAccount**](SimplifiedAccount.md) | | -**Type** | [**PortType**](PortType.md) | | -**Id** | Pointer to **int32** | Equinix assigned response attribute for Port Id | [optional] **Href** | Pointer to **string** | Equinix assigned response attribute for an absolute URL that is the subject of the link's context. | [optional] [readonly] +**Type** | Pointer to [**PortType**](PortType.md) | | [optional] +**Id** | Pointer to **int32** | Equinix assigned response attribute for Port Id | [optional] **Uuid** | Pointer to **string** | Equinix assigned response attribute for port identifier | [optional] **Name** | Pointer to **string** | Equinix assigned response attribute for Port name | [optional] **Description** | Pointer to **string** | Equinix assigned response attribute for Port description | [optional] -**PhysicalPortsSpeed** | **int32** | Physical Ports Speed in Mbps | +**PhysicalPortsSpeed** | Pointer to **int32** | Physical Ports Speed in Mbps | [optional] **ConnectionsCount** | Pointer to **int32** | Equinix assigned response attribute for Connection count | [optional] -**PhysicalPortsType** | [**PortResponsePhysicalPortsType**](PortResponsePhysicalPortsType.md) | | +**PhysicalPortsType** | Pointer to [**PortPhysicalPortsType**](PortPhysicalPortsType.md) | | [optional] **PhysicalPortsCount** | Pointer to **int32** | | [optional] -**ConnectivitySourceType** | [**PortResponseConnectivitySourceType**](PortResponseConnectivitySourceType.md) | | -**BmmrType** | Pointer to [**PortResponseBmmrType**](PortResponseBmmrType.md) | | [optional] +**ConnectivitySourceType** | Pointer to [**PortConnectivitySourceType**](PortConnectivitySourceType.md) | | [optional] +**BmmrType** | Pointer to [**PortBmmrType**](PortBmmrType.md) | | [optional] **Project** | Pointer to [**Project**](Project.md) | | [optional] **State** | Pointer to [**PortState**](PortState.md) | | [optional] **Order** | Pointer to [**PortOrder**](PortOrder.md) | | [optional] -**CvpId** | Pointer to **string** | Equinix assigned response attribute for Unique ID for a virtual port. | [optional] **Operation** | Pointer to [**PortOperation**](PortOperation.md) | | [optional] -**Changelog** | Pointer to [**Changelog**](Changelog.md) | | [optional] -**ServiceType** | Pointer to [**PortResponseServiceType**](PortResponseServiceType.md) | | [optional] +**Account** | Pointer to [**SimplifiedAccount**](SimplifiedAccount.md) | | [optional] +**ChangeLog** | Pointer to [**Changelog**](Changelog.md) | | [optional] +**ServiceType** | Pointer to [**PortServiceType**](PortServiceType.md) | | [optional] **Bandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port bandwidth in Mbps | [optional] **AvailableBandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port available bandwidth in Mbps | [optional] **UsedBandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port used bandwidth in Mbps | [optional] -**Location** | [**SimplifiedLocation**](SimplifiedLocation.md) | | +**Location** | Pointer to [**SimplifiedLocation**](SimplifiedLocation.md) | | [optional] **Device** | Pointer to [**PortDevice**](PortDevice.md) | | [optional] **Interface** | Pointer to [**PortInterface**](PortInterface.md) | | [optional] **DemarcationPointIbx** | Pointer to **string** | A-side/Equinix ibx | [optional] **TetherIbx** | Pointer to **string** | z-side/Equinix ibx | [optional] **DemarcationPoint** | Pointer to [**PortDemarcationPoint**](PortDemarcationPoint.md) | | [optional] **Redundancy** | Pointer to [**PortRedundancy**](PortRedundancy.md) | | [optional] -**Encapsulation** | [**PortEncapsulation**](PortEncapsulation.md) | | +**Encapsulation** | Pointer to [**PortEncapsulation**](PortEncapsulation.md) | | [optional] **LagEnabled** | Pointer to **bool** | If LAG enabled | [optional] **Lag** | Pointer to [**PortLag**](PortLag.md) | | [optional] **Asn** | Pointer to **int32** | Port ASN | [optional] -**Settings** | [**PortSettings**](PortSettings.md) | | +**Package** | Pointer to [**Package**](Package.md) | | [optional] +**Settings** | Pointer to [**PortSettings**](PortSettings.md) | | [optional] **PhysicalPortQuantity** | Pointer to **int32** | Number of physical ports | [optional] **Notifications** | Pointer to [**[]PortNotification**](PortNotification.md) | Notification preferences | [optional] **AdditionalInfo** | Pointer to [**[]PortAdditionalInfo**](PortAdditionalInfo.md) | Port additional information | [optional] @@ -49,7 +49,7 @@ Name | Type | Description | Notes ### NewPort -`func NewPort(account SimplifiedAccount, type_ PortType, physicalPortsSpeed int32, physicalPortsType PortResponsePhysicalPortsType, connectivitySourceType PortResponseConnectivitySourceType, location SimplifiedLocation, encapsulation PortEncapsulation, settings PortSettings, ) *Port` +`func NewPort() *Port` NewPort instantiates a new Port object This constructor will assign default values to properties that have it defined, @@ -64,25 +64,30 @@ NewPortWithDefaults instantiates a new Port 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 -### GetAccount +### GetHref -`func (o *Port) GetAccount() SimplifiedAccount` +`func (o *Port) GetHref() string` -GetAccount returns the Account field if non-nil, zero value otherwise. +GetHref returns the Href field if non-nil, zero value otherwise. -### GetAccountOk +### GetHrefOk -`func (o *Port) GetAccountOk() (*SimplifiedAccount, bool)` +`func (o *Port) GetHrefOk() (*string, bool)` -GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +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. -### SetAccount +### SetHref -`func (o *Port) SetAccount(v SimplifiedAccount)` +`func (o *Port) SetHref(v string)` -SetAccount sets Account field to given value. +SetHref sets Href field to given value. + +### HasHref + +`func (o *Port) HasHref() bool` +HasHref returns a boolean if a field has been set. ### GetType @@ -103,6 +108,11 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. +### HasType + +`func (o *Port) HasType() bool` + +HasType returns a boolean if a field has been set. ### GetId @@ -129,31 +139,6 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. -### GetHref - -`func (o *Port) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *Port) 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 *Port) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *Port) HasHref() bool` - -HasHref returns a boolean if a field has been set. - ### GetUuid `func (o *Port) GetUuid() string` @@ -248,6 +233,11 @@ and a boolean to check if the value has been set. SetPhysicalPortsSpeed sets PhysicalPortsSpeed field to given value. +### HasPhysicalPortsSpeed + +`func (o *Port) HasPhysicalPortsSpeed() bool` + +HasPhysicalPortsSpeed returns a boolean if a field has been set. ### GetConnectionsCount @@ -276,23 +266,28 @@ HasConnectionsCount returns a boolean if a field has been set. ### GetPhysicalPortsType -`func (o *Port) GetPhysicalPortsType() PortResponsePhysicalPortsType` +`func (o *Port) GetPhysicalPortsType() PortPhysicalPortsType` GetPhysicalPortsType returns the PhysicalPortsType field if non-nil, zero value otherwise. ### GetPhysicalPortsTypeOk -`func (o *Port) GetPhysicalPortsTypeOk() (*PortResponsePhysicalPortsType, bool)` +`func (o *Port) 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 *Port) SetPhysicalPortsType(v PortResponsePhysicalPortsType)` +`func (o *Port) SetPhysicalPortsType(v PortPhysicalPortsType)` SetPhysicalPortsType sets PhysicalPortsType field to given value. +### HasPhysicalPortsType + +`func (o *Port) HasPhysicalPortsType() bool` + +HasPhysicalPortsType returns a boolean if a field has been set. ### GetPhysicalPortsCount @@ -321,40 +316,45 @@ HasPhysicalPortsCount returns a boolean if a field has been set. ### GetConnectivitySourceType -`func (o *Port) GetConnectivitySourceType() PortResponseConnectivitySourceType` +`func (o *Port) GetConnectivitySourceType() PortConnectivitySourceType` GetConnectivitySourceType returns the ConnectivitySourceType field if non-nil, zero value otherwise. ### GetConnectivitySourceTypeOk -`func (o *Port) GetConnectivitySourceTypeOk() (*PortResponseConnectivitySourceType, bool)` +`func (o *Port) GetConnectivitySourceTypeOk() (*PortConnectivitySourceType, bool)` GetConnectivitySourceTypeOk returns a tuple with the ConnectivitySourceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConnectivitySourceType -`func (o *Port) SetConnectivitySourceType(v PortResponseConnectivitySourceType)` +`func (o *Port) SetConnectivitySourceType(v PortConnectivitySourceType)` SetConnectivitySourceType sets ConnectivitySourceType field to given value. +### HasConnectivitySourceType + +`func (o *Port) HasConnectivitySourceType() bool` + +HasConnectivitySourceType returns a boolean if a field has been set. ### GetBmmrType -`func (o *Port) GetBmmrType() PortResponseBmmrType` +`func (o *Port) GetBmmrType() PortBmmrType` GetBmmrType returns the BmmrType field if non-nil, zero value otherwise. ### GetBmmrTypeOk -`func (o *Port) GetBmmrTypeOk() (*PortResponseBmmrType, bool)` +`func (o *Port) GetBmmrTypeOk() (*PortBmmrType, bool)` GetBmmrTypeOk returns a tuple with the BmmrType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBmmrType -`func (o *Port) SetBmmrType(v PortResponseBmmrType)` +`func (o *Port) SetBmmrType(v PortBmmrType)` SetBmmrType sets BmmrType field to given value. @@ -439,97 +439,97 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. -### GetCvpId +### GetOperation -`func (o *Port) GetCvpId() string` +`func (o *Port) GetOperation() PortOperation` -GetCvpId returns the CvpId field if non-nil, zero value otherwise. +GetOperation returns the Operation field if non-nil, zero value otherwise. -### GetCvpIdOk +### GetOperationOk -`func (o *Port) GetCvpIdOk() (*string, bool)` +`func (o *Port) GetOperationOk() (*PortOperation, bool)` -GetCvpIdOk returns a tuple with the CvpId field if it's non-nil, zero value otherwise +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCvpId +### SetOperation -`func (o *Port) SetCvpId(v string)` +`func (o *Port) SetOperation(v PortOperation)` -SetCvpId sets CvpId field to given value. +SetOperation sets Operation field to given value. -### HasCvpId +### HasOperation -`func (o *Port) HasCvpId() bool` +`func (o *Port) HasOperation() bool` -HasCvpId returns a boolean if a field has been set. +HasOperation returns a boolean if a field has been set. -### GetOperation +### GetAccount -`func (o *Port) GetOperation() PortOperation` +`func (o *Port) GetAccount() SimplifiedAccount` -GetOperation returns the Operation field if non-nil, zero value otherwise. +GetAccount returns the Account field if non-nil, zero value otherwise. -### GetOperationOk +### GetAccountOk -`func (o *Port) GetOperationOk() (*PortOperation, bool)` +`func (o *Port) GetAccountOk() (*SimplifiedAccount, bool)` -GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetOperation +### SetAccount -`func (o *Port) SetOperation(v PortOperation)` +`func (o *Port) SetAccount(v SimplifiedAccount)` -SetOperation sets Operation field to given value. +SetAccount sets Account field to given value. -### HasOperation +### HasAccount -`func (o *Port) HasOperation() bool` +`func (o *Port) HasAccount() bool` -HasOperation returns a boolean if a field has been set. +HasAccount returns a boolean if a field has been set. -### GetChangelog +### GetChangeLog -`func (o *Port) GetChangelog() Changelog` +`func (o *Port) GetChangeLog() Changelog` -GetChangelog returns the Changelog field if non-nil, zero value otherwise. +GetChangeLog returns the ChangeLog field if non-nil, zero value otherwise. -### GetChangelogOk +### GetChangeLogOk -`func (o *Port) GetChangelogOk() (*Changelog, bool)` +`func (o *Port) GetChangeLogOk() (*Changelog, bool)` -GetChangelogOk returns a tuple with the Changelog field if it's non-nil, zero value otherwise +GetChangeLogOk returns a tuple with the ChangeLog field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetChangelog +### SetChangeLog -`func (o *Port) SetChangelog(v Changelog)` +`func (o *Port) SetChangeLog(v Changelog)` -SetChangelog sets Changelog field to given value. +SetChangeLog sets ChangeLog field to given value. -### HasChangelog +### HasChangeLog -`func (o *Port) HasChangelog() bool` +`func (o *Port) HasChangeLog() bool` -HasChangelog returns a boolean if a field has been set. +HasChangeLog returns a boolean if a field has been set. ### GetServiceType -`func (o *Port) GetServiceType() PortResponseServiceType` +`func (o *Port) GetServiceType() PortServiceType` GetServiceType returns the ServiceType field if non-nil, zero value otherwise. ### GetServiceTypeOk -`func (o *Port) GetServiceTypeOk() (*PortResponseServiceType, bool)` +`func (o *Port) GetServiceTypeOk() (*PortServiceType, bool)` GetServiceTypeOk returns a tuple with the ServiceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceType -`func (o *Port) SetServiceType(v PortResponseServiceType)` +`func (o *Port) SetServiceType(v PortServiceType)` SetServiceType sets ServiceType field to given value. @@ -633,6 +633,11 @@ and a boolean to check if the value has been set. SetLocation sets Location field to given value. +### HasLocation + +`func (o *Port) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. ### GetDevice @@ -803,6 +808,11 @@ and a boolean to check if the value has been set. SetEncapsulation sets Encapsulation field to given value. +### HasEncapsulation + +`func (o *Port) HasEncapsulation() bool` + +HasEncapsulation returns a boolean if a field has been set. ### GetLagEnabled @@ -879,6 +889,31 @@ SetAsn sets Asn field to given value. HasAsn returns a boolean if a field has been set. +### GetPackage + +`func (o *Port) GetPackage() Package` + +GetPackage returns the Package field if non-nil, zero value otherwise. + +### GetPackageOk + +`func (o *Port) GetPackageOk() (*Package, bool)` + +GetPackageOk returns a tuple with the Package field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackage + +`func (o *Port) SetPackage(v Package)` + +SetPackage sets Package field to given value. + +### HasPackage + +`func (o *Port) HasPackage() bool` + +HasPackage returns a boolean if a field has been set. + ### GetSettings `func (o *Port) GetSettings() PortSettings` @@ -898,6 +933,11 @@ and a boolean to check if the value has been set. SetSettings sets Settings field to given value. +### HasSettings + +`func (o *Port) HasSettings() bool` + +HasSettings returns a boolean if a field has been set. ### GetPhysicalPortQuantity diff --git a/services/fabricv4/docs/PortResponseBmmrType.md b/services/fabricv4/docs/PortBmmrType.md similarity index 91% rename from services/fabricv4/docs/PortResponseBmmrType.md rename to services/fabricv4/docs/PortBmmrType.md index 23e7e343..2d7ea3e1 100644 --- a/services/fabricv4/docs/PortResponseBmmrType.md +++ b/services/fabricv4/docs/PortBmmrType.md @@ -1,4 +1,4 @@ -# PortResponseBmmrType +# PortBmmrType ## Enum diff --git a/services/fabricv4/docs/PortResponseConnectivitySourceType.md b/services/fabricv4/docs/PortConnectivitySourceType.md similarity index 87% rename from services/fabricv4/docs/PortResponseConnectivitySourceType.md rename to services/fabricv4/docs/PortConnectivitySourceType.md index fcccd29f..191108eb 100644 --- a/services/fabricv4/docs/PortResponseConnectivitySourceType.md +++ b/services/fabricv4/docs/PortConnectivitySourceType.md @@ -1,4 +1,4 @@ -# PortResponseConnectivitySourceType +# PortConnectivitySourceType ## Enum diff --git a/services/fabricv4/docs/PortInterface.md b/services/fabricv4/docs/PortInterface.md index 1f7b28cd..2b9b97cc 100644 --- a/services/fabricv4/docs/PortInterface.md +++ b/services/fabricv4/docs/PortInterface.md @@ -5,8 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **string** | Port interface type | [optional] -**IfIndex** | Pointer to **string** | Port interface index | [optional] -**Name** | Pointer to **string** | Port interface name | [optional] ## Methods @@ -52,56 +50,6 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. -### GetIfIndex - -`func (o *PortInterface) GetIfIndex() string` - -GetIfIndex returns the IfIndex field if non-nil, zero value otherwise. - -### GetIfIndexOk - -`func (o *PortInterface) GetIfIndexOk() (*string, bool)` - -GetIfIndexOk returns a tuple with the IfIndex field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIfIndex - -`func (o *PortInterface) SetIfIndex(v string)` - -SetIfIndex sets IfIndex field to given value. - -### HasIfIndex - -`func (o *PortInterface) HasIfIndex() bool` - -HasIfIndex returns a boolean if a field has been set. - -### GetName - -`func (o *PortInterface) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *PortInterface) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *PortInterface) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *PortInterface) HasName() bool` - -HasName 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/PortOperation.md b/services/fabricv4/docs/PortOperation.md index 07947036..b554118d 100644 --- a/services/fabricv4/docs/PortOperation.md +++ b/services/fabricv4/docs/PortOperation.md @@ -5,7 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **OperationalStatus** | Pointer to [**PortOperationOperationalStatus**](PortOperationOperationalStatus.md) | | [optional] -**ConnectionCount** | Pointer to **int32** | Total number of connections. | [optional] +**ConnectionCount** | Pointer to **int64** | Total number of connections. | [optional] +**EvplVCCount** | Pointer to **int64** | Total number of connections. | [optional] +**FgVCCount** | Pointer to **int64** | Total number of connections. | [optional] +**AccessVCCount** | Pointer to **int64** | Total number of connections. | [optional] **OpStatusChangedAt** | Pointer to **time.Time** | Date and time at which port availability changed. | [optional] ## Methods @@ -54,20 +57,20 @@ HasOperationalStatus returns a boolean if a field has been set. ### GetConnectionCount -`func (o *PortOperation) GetConnectionCount() int32` +`func (o *PortOperation) GetConnectionCount() int64` GetConnectionCount returns the ConnectionCount field if non-nil, zero value otherwise. ### GetConnectionCountOk -`func (o *PortOperation) GetConnectionCountOk() (*int32, bool)` +`func (o *PortOperation) GetConnectionCountOk() (*int64, bool)` GetConnectionCountOk returns a tuple with the ConnectionCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConnectionCount -`func (o *PortOperation) SetConnectionCount(v int32)` +`func (o *PortOperation) SetConnectionCount(v int64)` SetConnectionCount sets ConnectionCount field to given value. @@ -77,6 +80,81 @@ SetConnectionCount sets ConnectionCount field to given value. HasConnectionCount returns a boolean if a field has been set. +### GetEvplVCCount + +`func (o *PortOperation) GetEvplVCCount() int64` + +GetEvplVCCount returns the EvplVCCount field if non-nil, zero value otherwise. + +### GetEvplVCCountOk + +`func (o *PortOperation) GetEvplVCCountOk() (*int64, bool)` + +GetEvplVCCountOk returns a tuple with the EvplVCCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvplVCCount + +`func (o *PortOperation) SetEvplVCCount(v int64)` + +SetEvplVCCount sets EvplVCCount field to given value. + +### HasEvplVCCount + +`func (o *PortOperation) HasEvplVCCount() bool` + +HasEvplVCCount returns a boolean if a field has been set. + +### GetFgVCCount + +`func (o *PortOperation) GetFgVCCount() int64` + +GetFgVCCount returns the FgVCCount field if non-nil, zero value otherwise. + +### GetFgVCCountOk + +`func (o *PortOperation) GetFgVCCountOk() (*int64, bool)` + +GetFgVCCountOk returns a tuple with the FgVCCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFgVCCount + +`func (o *PortOperation) SetFgVCCount(v int64)` + +SetFgVCCount sets FgVCCount field to given value. + +### HasFgVCCount + +`func (o *PortOperation) HasFgVCCount() bool` + +HasFgVCCount returns a boolean if a field has been set. + +### GetAccessVCCount + +`func (o *PortOperation) GetAccessVCCount() int64` + +GetAccessVCCount returns the AccessVCCount field if non-nil, zero value otherwise. + +### GetAccessVCCountOk + +`func (o *PortOperation) GetAccessVCCountOk() (*int64, bool)` + +GetAccessVCCountOk returns a tuple with the AccessVCCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessVCCount + +`func (o *PortOperation) SetAccessVCCount(v int64)` + +SetAccessVCCount sets AccessVCCount field to given value. + +### HasAccessVCCount + +`func (o *PortOperation) HasAccessVCCount() bool` + +HasAccessVCCount returns a boolean if a field has been set. + ### GetOpStatusChangedAt `func (o *PortOperation) GetOpStatusChangedAt() time.Time` diff --git a/services/fabricv4/docs/PortOperationOperationalStatus.md b/services/fabricv4/docs/PortOperationOperationalStatus.md index 240d7502..0c737362 100644 --- a/services/fabricv4/docs/PortOperationOperationalStatus.md +++ b/services/fabricv4/docs/PortOperationOperationalStatus.md @@ -7,6 +7,8 @@ * `DOWN` (value: `"DOWN"`) +* `PARTIAL` (value: `"PARTIAL"`) + [[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/PortOrder.md b/services/fabricv4/docs/PortOrder.md index 615464ca..62070d89 100644 --- a/services/fabricv4/docs/PortOrder.md +++ b/services/fabricv4/docs/PortOrder.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **OrderId** | Pointer to **string** | Order Identification | [optional] **CustomerReferenceId** | Pointer to **string** | Customer order reference Id | [optional] **OrderNumber** | Pointer to **string** | Order Reference Number | [optional] -**Uuid** | Pointer to **string** | Equinix-assigned order identifier | [optional] +**Uuid** | Pointer to **string** | Equinix-assigned order identifier, this is a derived response atrribute | [optional] **Signature** | Pointer to [**PortOrderSignature**](PortOrderSignature.md) | | [optional] ## Methods diff --git a/services/fabricv4/docs/PortOrderPurchaseOrder.md b/services/fabricv4/docs/PortOrderPurchaseOrder.md index 88006ad8..f16cc6b9 100644 --- a/services/fabricv4/docs/PortOrderPurchaseOrder.md +++ b/services/fabricv4/docs/PortOrderPurchaseOrder.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **EndDate** | Pointer to **string** | | [optional] **AttachmentId** | Pointer to **string** | | [optional] **SelectionType** | Pointer to [**PortOrderPurchaseOrderSelectionType**](PortOrderPurchaseOrderSelectionType.md) | | [optional] +**Type** | Pointer to [**PortOrderPurchaseOrderType**](PortOrderPurchaseOrderType.md) | | [optional] ## Methods @@ -180,6 +181,31 @@ SetSelectionType sets SelectionType field to given value. HasSelectionType returns a boolean if a field has been set. +### GetType + +`func (o *PortOrderPurchaseOrder) GetType() PortOrderPurchaseOrderType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PortOrderPurchaseOrder) GetTypeOk() (*PortOrderPurchaseOrderType, 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 *PortOrderPurchaseOrder) SetType(v PortOrderPurchaseOrderType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PortOrderPurchaseOrder) 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/PortOrderPurchaseOrderType.md b/services/fabricv4/docs/PortOrderPurchaseOrderType.md new file mode 100644 index 00000000..2c2e9b8e --- /dev/null +++ b/services/fabricv4/docs/PortOrderPurchaseOrderType.md @@ -0,0 +1,17 @@ +# PortOrderPurchaseOrderType + +## Enum + + +* `EXEMPTION` (value: `"EXEMPTION"`) + +* `EXISTING` (value: `"EXISTING"`) + +* `NEW` (value: `"NEW"`) + +* `BLANKET` (value: `"BLANKET"`) + + +[[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/PortResponsePhysicalPortsType.md b/services/fabricv4/docs/PortPhysicalPortsType.md similarity index 92% rename from services/fabricv4/docs/PortResponsePhysicalPortsType.md rename to services/fabricv4/docs/PortPhysicalPortsType.md index c39f633e..d2fe7892 100644 --- a/services/fabricv4/docs/PortResponsePhysicalPortsType.md +++ b/services/fabricv4/docs/PortPhysicalPortsType.md @@ -1,4 +1,4 @@ -# PortResponsePhysicalPortsType +# PortPhysicalPortsType ## Enum diff --git a/services/fabricv4/docs/PortResponse.md b/services/fabricv4/docs/PortRequest.md similarity index 62% rename from services/fabricv4/docs/PortResponse.md rename to services/fabricv4/docs/PortRequest.md index 1506d869..340ec7e6 100644 --- a/services/fabricv4/docs/PortResponse.md +++ b/services/fabricv4/docs/PortRequest.md @@ -1,44 +1,44 @@ -# PortResponse +# PortRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PortType**](PortType.md) | | [optional] -**Id** | Pointer to **int32** | Equinix assigned response attribute for Port Id | [optional] **Href** | Pointer to **string** | Equinix assigned response attribute for an absolute URL that is the subject of the link's context. | [optional] [readonly] +**Type** | [**PortType**](PortType.md) | | +**Id** | Pointer to **int32** | Equinix assigned response attribute for Port Id | [optional] **Uuid** | Pointer to **string** | Equinix assigned response attribute for port identifier | [optional] **Name** | Pointer to **string** | Equinix assigned response attribute for Port name | [optional] **Description** | Pointer to **string** | Equinix assigned response attribute for Port description | [optional] -**PhysicalPortsSpeed** | Pointer to **int32** | Physical Ports Speed in Mbps | [optional] +**PhysicalPortsSpeed** | **int32** | Physical Ports Speed in Mbps | **ConnectionsCount** | Pointer to **int32** | Equinix assigned response attribute for Connection count | [optional] -**PhysicalPortsType** | Pointer to [**PortResponsePhysicalPortsType**](PortResponsePhysicalPortsType.md) | | [optional] +**PhysicalPortsType** | [**PortPhysicalPortsType**](PortPhysicalPortsType.md) | | **PhysicalPortsCount** | Pointer to **int32** | | [optional] -**ConnectivitySourceType** | Pointer to [**PortResponseConnectivitySourceType**](PortResponseConnectivitySourceType.md) | | [optional] -**BmmrType** | Pointer to [**PortResponseBmmrType**](PortResponseBmmrType.md) | | [optional] +**ConnectivitySourceType** | [**PortConnectivitySourceType**](PortConnectivitySourceType.md) | | +**BmmrType** | Pointer to [**PortBmmrType**](PortBmmrType.md) | | [optional] **Project** | Pointer to [**Project**](Project.md) | | [optional] **State** | Pointer to [**PortState**](PortState.md) | | [optional] **Order** | Pointer to [**PortOrder**](PortOrder.md) | | [optional] -**CvpId** | Pointer to **string** | Equinix assigned response attribute for Unique ID for a virtual port. | [optional] **Operation** | Pointer to [**PortOperation**](PortOperation.md) | | [optional] -**Account** | Pointer to [**SimplifiedAccountPortResponse**](SimplifiedAccountPortResponse.md) | | [optional] -**Changelog** | Pointer to [**Changelog**](Changelog.md) | | [optional] -**ServiceType** | Pointer to [**PortResponseServiceType**](PortResponseServiceType.md) | | [optional] +**Account** | [**SimplifiedAccount**](SimplifiedAccount.md) | | +**ChangeLog** | Pointer to [**Changelog**](Changelog.md) | | [optional] +**ServiceType** | Pointer to [**PortServiceType**](PortServiceType.md) | | [optional] **Bandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port bandwidth in Mbps | [optional] **AvailableBandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port available bandwidth in Mbps | [optional] **UsedBandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port used bandwidth in Mbps | [optional] -**Location** | Pointer to [**SimplifiedLocation**](SimplifiedLocation.md) | | [optional] +**Location** | [**SimplifiedLocation**](SimplifiedLocation.md) | | **Device** | Pointer to [**PortDevice**](PortDevice.md) | | [optional] **Interface** | Pointer to [**PortInterface**](PortInterface.md) | | [optional] **DemarcationPointIbx** | Pointer to **string** | A-side/Equinix ibx | [optional] **TetherIbx** | Pointer to **string** | z-side/Equinix ibx | [optional] **DemarcationPoint** | Pointer to [**PortDemarcationPoint**](PortDemarcationPoint.md) | | [optional] **Redundancy** | Pointer to [**PortRedundancy**](PortRedundancy.md) | | [optional] -**Encapsulation** | Pointer to [**PortEncapsulation**](PortEncapsulation.md) | | [optional] +**Encapsulation** | [**PortEncapsulation**](PortEncapsulation.md) | | **LagEnabled** | Pointer to **bool** | If LAG enabled | [optional] **Lag** | Pointer to [**PortLag**](PortLag.md) | | [optional] **Asn** | Pointer to **int32** | Port ASN | [optional] -**Settings** | Pointer to [**PortSettings**](PortSettings.md) | | [optional] +**Package** | Pointer to [**Package**](Package.md) | | [optional] +**Settings** | [**PortSettings**](PortSettings.md) | | **PhysicalPortQuantity** | Pointer to **int32** | Number of physical ports | [optional] **Notifications** | Pointer to [**[]PortNotification**](PortNotification.md) | Notification preferences | [optional] **AdditionalInfo** | Pointer to [**[]PortAdditionalInfo**](PortAdditionalInfo.md) | Port additional information | [optional] @@ -47,1020 +47,980 @@ Name | Type | Description | Notes ## Methods -### NewPortResponse +### NewPortRequest -`func NewPortResponse() *PortResponse` +`func NewPortRequest(type_ PortType, physicalPortsSpeed int32, physicalPortsType PortPhysicalPortsType, connectivitySourceType PortConnectivitySourceType, account SimplifiedAccount, location SimplifiedLocation, encapsulation PortEncapsulation, settings PortSettings, ) *PortRequest` -NewPortResponse instantiates a new PortResponse object +NewPortRequest instantiates a new PortRequest 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 -### NewPortResponseWithDefaults +### NewPortRequestWithDefaults -`func NewPortResponseWithDefaults() *PortResponse` +`func NewPortRequestWithDefaults() *PortRequest` -NewPortResponseWithDefaults instantiates a new PortResponse object +NewPortRequestWithDefaults instantiates a new PortRequest 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 *PortRequest) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *PortRequest) 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 *PortRequest) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *PortRequest) HasHref() bool` + +HasHref returns a boolean if a field has been set. + ### GetType -`func (o *PortResponse) GetType() PortType` +`func (o *PortRequest) GetType() PortType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PortResponse) GetTypeOk() (*PortType, bool)` +`func (o *PortRequest) GetTypeOk() (*PortType, 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 *PortResponse) SetType(v PortType)` +`func (o *PortRequest) SetType(v PortType)` SetType sets Type field to given value. -### HasType - -`func (o *PortResponse) HasType() bool` - -HasType returns a boolean if a field has been set. ### GetId -`func (o *PortResponse) GetId() int32` +`func (o *PortRequest) GetId() int32` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *PortResponse) GetIdOk() (*int32, bool)` +`func (o *PortRequest) GetIdOk() (*int32, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *PortResponse) SetId(v int32)` +`func (o *PortRequest) SetId(v int32)` SetId sets Id field to given value. ### HasId -`func (o *PortResponse) HasId() bool` +`func (o *PortRequest) HasId() bool` HasId returns a boolean if a field has been set. -### GetHref - -`func (o *PortResponse) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *PortResponse) 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 *PortResponse) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *PortResponse) HasHref() bool` - -HasHref returns a boolean if a field has been set. - ### GetUuid -`func (o *PortResponse) GetUuid() string` +`func (o *PortRequest) GetUuid() string` GetUuid returns the Uuid field if non-nil, zero value otherwise. ### GetUuidOk -`func (o *PortResponse) GetUuidOk() (*string, bool)` +`func (o *PortRequest) 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 *PortResponse) SetUuid(v string)` +`func (o *PortRequest) SetUuid(v string)` SetUuid sets Uuid field to given value. ### HasUuid -`func (o *PortResponse) HasUuid() bool` +`func (o *PortRequest) HasUuid() bool` HasUuid returns a boolean if a field has been set. ### GetName -`func (o *PortResponse) GetName() string` +`func (o *PortRequest) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *PortResponse) GetNameOk() (*string, bool)` +`func (o *PortRequest) GetNameOk() (*string, bool)` GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetName -`func (o *PortResponse) SetName(v string)` +`func (o *PortRequest) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *PortResponse) HasName() bool` +`func (o *PortRequest) HasName() bool` HasName returns a boolean if a field has been set. ### GetDescription -`func (o *PortResponse) GetDescription() string` +`func (o *PortRequest) GetDescription() string` GetDescription returns the Description field if non-nil, zero value otherwise. ### GetDescriptionOk -`func (o *PortResponse) GetDescriptionOk() (*string, bool)` +`func (o *PortRequest) GetDescriptionOk() (*string, bool)` GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDescription -`func (o *PortResponse) SetDescription(v string)` +`func (o *PortRequest) SetDescription(v string)` SetDescription sets Description field to given value. ### HasDescription -`func (o *PortResponse) HasDescription() bool` +`func (o *PortRequest) HasDescription() bool` HasDescription returns a boolean if a field has been set. ### GetPhysicalPortsSpeed -`func (o *PortResponse) GetPhysicalPortsSpeed() int32` +`func (o *PortRequest) GetPhysicalPortsSpeed() int32` GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field if non-nil, zero value otherwise. ### GetPhysicalPortsSpeedOk -`func (o *PortResponse) GetPhysicalPortsSpeedOk() (*int32, bool)` +`func (o *PortRequest) 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 *PortResponse) SetPhysicalPortsSpeed(v int32)` +`func (o *PortRequest) SetPhysicalPortsSpeed(v int32)` SetPhysicalPortsSpeed sets PhysicalPortsSpeed field to given value. -### HasPhysicalPortsSpeed - -`func (o *PortResponse) HasPhysicalPortsSpeed() bool` - -HasPhysicalPortsSpeed returns a boolean if a field has been set. ### GetConnectionsCount -`func (o *PortResponse) GetConnectionsCount() int32` +`func (o *PortRequest) GetConnectionsCount() int32` GetConnectionsCount returns the ConnectionsCount field if non-nil, zero value otherwise. ### GetConnectionsCountOk -`func (o *PortResponse) GetConnectionsCountOk() (*int32, bool)` +`func (o *PortRequest) GetConnectionsCountOk() (*int32, bool)` GetConnectionsCountOk returns a tuple with the ConnectionsCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConnectionsCount -`func (o *PortResponse) SetConnectionsCount(v int32)` +`func (o *PortRequest) SetConnectionsCount(v int32)` SetConnectionsCount sets ConnectionsCount field to given value. ### HasConnectionsCount -`func (o *PortResponse) HasConnectionsCount() bool` +`func (o *PortRequest) HasConnectionsCount() bool` HasConnectionsCount returns a boolean if a field has been set. ### GetPhysicalPortsType -`func (o *PortResponse) GetPhysicalPortsType() PortResponsePhysicalPortsType` +`func (o *PortRequest) GetPhysicalPortsType() PortPhysicalPortsType` GetPhysicalPortsType returns the PhysicalPortsType field if non-nil, zero value otherwise. ### GetPhysicalPortsTypeOk -`func (o *PortResponse) GetPhysicalPortsTypeOk() (*PortResponsePhysicalPortsType, bool)` +`func (o *PortRequest) 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 *PortResponse) SetPhysicalPortsType(v PortResponsePhysicalPortsType)` +`func (o *PortRequest) SetPhysicalPortsType(v PortPhysicalPortsType)` SetPhysicalPortsType sets PhysicalPortsType field to given value. -### HasPhysicalPortsType - -`func (o *PortResponse) HasPhysicalPortsType() bool` - -HasPhysicalPortsType returns a boolean if a field has been set. ### GetPhysicalPortsCount -`func (o *PortResponse) GetPhysicalPortsCount() int32` +`func (o *PortRequest) GetPhysicalPortsCount() int32` GetPhysicalPortsCount returns the PhysicalPortsCount field if non-nil, zero value otherwise. ### GetPhysicalPortsCountOk -`func (o *PortResponse) GetPhysicalPortsCountOk() (*int32, bool)` +`func (o *PortRequest) GetPhysicalPortsCountOk() (*int32, bool)` GetPhysicalPortsCountOk returns a tuple with the PhysicalPortsCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPhysicalPortsCount -`func (o *PortResponse) SetPhysicalPortsCount(v int32)` +`func (o *PortRequest) SetPhysicalPortsCount(v int32)` SetPhysicalPortsCount sets PhysicalPortsCount field to given value. ### HasPhysicalPortsCount -`func (o *PortResponse) HasPhysicalPortsCount() bool` +`func (o *PortRequest) HasPhysicalPortsCount() bool` HasPhysicalPortsCount returns a boolean if a field has been set. ### GetConnectivitySourceType -`func (o *PortResponse) GetConnectivitySourceType() PortResponseConnectivitySourceType` +`func (o *PortRequest) GetConnectivitySourceType() PortConnectivitySourceType` GetConnectivitySourceType returns the ConnectivitySourceType field if non-nil, zero value otherwise. ### GetConnectivitySourceTypeOk -`func (o *PortResponse) GetConnectivitySourceTypeOk() (*PortResponseConnectivitySourceType, bool)` +`func (o *PortRequest) GetConnectivitySourceTypeOk() (*PortConnectivitySourceType, bool)` GetConnectivitySourceTypeOk returns a tuple with the ConnectivitySourceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConnectivitySourceType -`func (o *PortResponse) SetConnectivitySourceType(v PortResponseConnectivitySourceType)` +`func (o *PortRequest) SetConnectivitySourceType(v PortConnectivitySourceType)` SetConnectivitySourceType sets ConnectivitySourceType field to given value. -### HasConnectivitySourceType - -`func (o *PortResponse) HasConnectivitySourceType() bool` - -HasConnectivitySourceType returns a boolean if a field has been set. ### GetBmmrType -`func (o *PortResponse) GetBmmrType() PortResponseBmmrType` +`func (o *PortRequest) GetBmmrType() PortBmmrType` GetBmmrType returns the BmmrType field if non-nil, zero value otherwise. ### GetBmmrTypeOk -`func (o *PortResponse) GetBmmrTypeOk() (*PortResponseBmmrType, bool)` +`func (o *PortRequest) GetBmmrTypeOk() (*PortBmmrType, bool)` GetBmmrTypeOk returns a tuple with the BmmrType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBmmrType -`func (o *PortResponse) SetBmmrType(v PortResponseBmmrType)` +`func (o *PortRequest) SetBmmrType(v PortBmmrType)` SetBmmrType sets BmmrType field to given value. ### HasBmmrType -`func (o *PortResponse) HasBmmrType() bool` +`func (o *PortRequest) HasBmmrType() bool` HasBmmrType returns a boolean if a field has been set. ### GetProject -`func (o *PortResponse) GetProject() Project` +`func (o *PortRequest) GetProject() Project` GetProject returns the Project field if non-nil, zero value otherwise. ### GetProjectOk -`func (o *PortResponse) GetProjectOk() (*Project, bool)` +`func (o *PortRequest) 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 *PortResponse) SetProject(v Project)` +`func (o *PortRequest) SetProject(v Project)` SetProject sets Project field to given value. ### HasProject -`func (o *PortResponse) HasProject() bool` +`func (o *PortRequest) HasProject() bool` HasProject returns a boolean if a field has been set. ### GetState -`func (o *PortResponse) GetState() PortState` +`func (o *PortRequest) GetState() PortState` GetState returns the State field if non-nil, zero value otherwise. ### GetStateOk -`func (o *PortResponse) GetStateOk() (*PortState, bool)` +`func (o *PortRequest) GetStateOk() (*PortState, bool)` GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetState -`func (o *PortResponse) SetState(v PortState)` +`func (o *PortRequest) SetState(v PortState)` SetState sets State field to given value. ### HasState -`func (o *PortResponse) HasState() bool` +`func (o *PortRequest) HasState() bool` HasState returns a boolean if a field has been set. ### GetOrder -`func (o *PortResponse) GetOrder() PortOrder` +`func (o *PortRequest) GetOrder() PortOrder` GetOrder returns the Order field if non-nil, zero value otherwise. ### GetOrderOk -`func (o *PortResponse) GetOrderOk() (*PortOrder, bool)` +`func (o *PortRequest) GetOrderOk() (*PortOrder, bool)` GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOrder -`func (o *PortResponse) SetOrder(v PortOrder)` +`func (o *PortRequest) SetOrder(v PortOrder)` SetOrder sets Order field to given value. ### HasOrder -`func (o *PortResponse) HasOrder() bool` +`func (o *PortRequest) HasOrder() bool` HasOrder returns a boolean if a field has been set. -### GetCvpId - -`func (o *PortResponse) GetCvpId() string` - -GetCvpId returns the CvpId field if non-nil, zero value otherwise. - -### GetCvpIdOk - -`func (o *PortResponse) GetCvpIdOk() (*string, bool)` - -GetCvpIdOk returns a tuple with the CvpId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCvpId - -`func (o *PortResponse) SetCvpId(v string)` - -SetCvpId sets CvpId field to given value. - -### HasCvpId - -`func (o *PortResponse) HasCvpId() bool` - -HasCvpId returns a boolean if a field has been set. - ### GetOperation -`func (o *PortResponse) GetOperation() PortOperation` +`func (o *PortRequest) GetOperation() PortOperation` GetOperation returns the Operation field if non-nil, zero value otherwise. ### GetOperationOk -`func (o *PortResponse) GetOperationOk() (*PortOperation, bool)` +`func (o *PortRequest) GetOperationOk() (*PortOperation, bool)` GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOperation -`func (o *PortResponse) SetOperation(v PortOperation)` +`func (o *PortRequest) SetOperation(v PortOperation)` SetOperation sets Operation field to given value. ### HasOperation -`func (o *PortResponse) HasOperation() bool` +`func (o *PortRequest) HasOperation() bool` HasOperation returns a boolean if a field has been set. ### GetAccount -`func (o *PortResponse) GetAccount() SimplifiedAccountPortResponse` +`func (o *PortRequest) GetAccount() SimplifiedAccount` GetAccount returns the Account field if non-nil, zero value otherwise. ### GetAccountOk -`func (o *PortResponse) GetAccountOk() (*SimplifiedAccountPortResponse, bool)` +`func (o *PortRequest) GetAccountOk() (*SimplifiedAccount, bool)` GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAccount -`func (o *PortResponse) SetAccount(v SimplifiedAccountPortResponse)` +`func (o *PortRequest) SetAccount(v SimplifiedAccount)` SetAccount sets Account field to given value. -### HasAccount -`func (o *PortResponse) HasAccount() bool` +### GetChangeLog -HasAccount returns a boolean if a field has been set. +`func (o *PortRequest) GetChangeLog() Changelog` -### GetChangelog +GetChangeLog returns the ChangeLog field if non-nil, zero value otherwise. -`func (o *PortResponse) GetChangelog() Changelog` +### GetChangeLogOk -GetChangelog returns the Changelog field if non-nil, zero value otherwise. +`func (o *PortRequest) GetChangeLogOk() (*Changelog, bool)` -### GetChangelogOk - -`func (o *PortResponse) GetChangelogOk() (*Changelog, bool)` - -GetChangelogOk returns a tuple with the Changelog field if it's non-nil, zero value otherwise +GetChangeLogOk returns a tuple with the ChangeLog field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetChangelog +### SetChangeLog -`func (o *PortResponse) SetChangelog(v Changelog)` +`func (o *PortRequest) SetChangeLog(v Changelog)` -SetChangelog sets Changelog field to given value. +SetChangeLog sets ChangeLog field to given value. -### HasChangelog +### HasChangeLog -`func (o *PortResponse) HasChangelog() bool` +`func (o *PortRequest) HasChangeLog() bool` -HasChangelog returns a boolean if a field has been set. +HasChangeLog returns a boolean if a field has been set. ### GetServiceType -`func (o *PortResponse) GetServiceType() PortResponseServiceType` +`func (o *PortRequest) GetServiceType() PortServiceType` GetServiceType returns the ServiceType field if non-nil, zero value otherwise. ### GetServiceTypeOk -`func (o *PortResponse) GetServiceTypeOk() (*PortResponseServiceType, bool)` +`func (o *PortRequest) GetServiceTypeOk() (*PortServiceType, bool)` GetServiceTypeOk returns a tuple with the ServiceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceType -`func (o *PortResponse) SetServiceType(v PortResponseServiceType)` +`func (o *PortRequest) SetServiceType(v PortServiceType)` SetServiceType sets ServiceType field to given value. ### HasServiceType -`func (o *PortResponse) HasServiceType() bool` +`func (o *PortRequest) HasServiceType() bool` HasServiceType returns a boolean if a field has been set. ### GetBandwidth -`func (o *PortResponse) GetBandwidth() int32` +`func (o *PortRequest) GetBandwidth() int32` GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. ### GetBandwidthOk -`func (o *PortResponse) GetBandwidthOk() (*int32, bool)` +`func (o *PortRequest) GetBandwidthOk() (*int32, bool)` GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBandwidth -`func (o *PortResponse) SetBandwidth(v int32)` +`func (o *PortRequest) SetBandwidth(v int32)` SetBandwidth sets Bandwidth field to given value. ### HasBandwidth -`func (o *PortResponse) HasBandwidth() bool` +`func (o *PortRequest) HasBandwidth() bool` HasBandwidth returns a boolean if a field has been set. ### GetAvailableBandwidth -`func (o *PortResponse) GetAvailableBandwidth() int32` +`func (o *PortRequest) GetAvailableBandwidth() int32` GetAvailableBandwidth returns the AvailableBandwidth field if non-nil, zero value otherwise. ### GetAvailableBandwidthOk -`func (o *PortResponse) GetAvailableBandwidthOk() (*int32, bool)` +`func (o *PortRequest) GetAvailableBandwidthOk() (*int32, bool)` GetAvailableBandwidthOk returns a tuple with the AvailableBandwidth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAvailableBandwidth -`func (o *PortResponse) SetAvailableBandwidth(v int32)` +`func (o *PortRequest) SetAvailableBandwidth(v int32)` SetAvailableBandwidth sets AvailableBandwidth field to given value. ### HasAvailableBandwidth -`func (o *PortResponse) HasAvailableBandwidth() bool` +`func (o *PortRequest) HasAvailableBandwidth() bool` HasAvailableBandwidth returns a boolean if a field has been set. ### GetUsedBandwidth -`func (o *PortResponse) GetUsedBandwidth() int32` +`func (o *PortRequest) GetUsedBandwidth() int32` GetUsedBandwidth returns the UsedBandwidth field if non-nil, zero value otherwise. ### GetUsedBandwidthOk -`func (o *PortResponse) GetUsedBandwidthOk() (*int32, bool)` +`func (o *PortRequest) GetUsedBandwidthOk() (*int32, bool)` GetUsedBandwidthOk returns a tuple with the UsedBandwidth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUsedBandwidth -`func (o *PortResponse) SetUsedBandwidth(v int32)` +`func (o *PortRequest) SetUsedBandwidth(v int32)` SetUsedBandwidth sets UsedBandwidth field to given value. ### HasUsedBandwidth -`func (o *PortResponse) HasUsedBandwidth() bool` +`func (o *PortRequest) HasUsedBandwidth() bool` HasUsedBandwidth returns a boolean if a field has been set. ### GetLocation -`func (o *PortResponse) GetLocation() SimplifiedLocation` +`func (o *PortRequest) GetLocation() SimplifiedLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PortResponse) GetLocationOk() (*SimplifiedLocation, bool)` +`func (o *PortRequest) GetLocationOk() (*SimplifiedLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PortResponse) SetLocation(v SimplifiedLocation)` +`func (o *PortRequest) SetLocation(v SimplifiedLocation)` SetLocation sets Location field to given value. -### HasLocation - -`func (o *PortResponse) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. ### GetDevice -`func (o *PortResponse) GetDevice() PortDevice` +`func (o *PortRequest) GetDevice() PortDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PortResponse) GetDeviceOk() (*PortDevice, bool)` +`func (o *PortRequest) GetDeviceOk() (*PortDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PortResponse) SetDevice(v PortDevice)` +`func (o *PortRequest) SetDevice(v PortDevice)` SetDevice sets Device field to given value. ### HasDevice -`func (o *PortResponse) HasDevice() bool` +`func (o *PortRequest) HasDevice() bool` HasDevice returns a boolean if a field has been set. ### GetInterface -`func (o *PortResponse) GetInterface() PortInterface` +`func (o *PortRequest) GetInterface() PortInterface` GetInterface returns the Interface field if non-nil, zero value otherwise. ### GetInterfaceOk -`func (o *PortResponse) GetInterfaceOk() (*PortInterface, bool)` +`func (o *PortRequest) GetInterfaceOk() (*PortInterface, bool)` GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterface -`func (o *PortResponse) SetInterface(v PortInterface)` +`func (o *PortRequest) SetInterface(v PortInterface)` SetInterface sets Interface field to given value. ### HasInterface -`func (o *PortResponse) HasInterface() bool` +`func (o *PortRequest) HasInterface() bool` HasInterface returns a boolean if a field has been set. ### GetDemarcationPointIbx -`func (o *PortResponse) GetDemarcationPointIbx() string` +`func (o *PortRequest) GetDemarcationPointIbx() string` GetDemarcationPointIbx returns the DemarcationPointIbx field if non-nil, zero value otherwise. ### GetDemarcationPointIbxOk -`func (o *PortResponse) GetDemarcationPointIbxOk() (*string, bool)` +`func (o *PortRequest) 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 *PortResponse) SetDemarcationPointIbx(v string)` +`func (o *PortRequest) SetDemarcationPointIbx(v string)` SetDemarcationPointIbx sets DemarcationPointIbx field to given value. ### HasDemarcationPointIbx -`func (o *PortResponse) HasDemarcationPointIbx() bool` +`func (o *PortRequest) HasDemarcationPointIbx() bool` HasDemarcationPointIbx returns a boolean if a field has been set. ### GetTetherIbx -`func (o *PortResponse) GetTetherIbx() string` +`func (o *PortRequest) GetTetherIbx() string` GetTetherIbx returns the TetherIbx field if non-nil, zero value otherwise. ### GetTetherIbxOk -`func (o *PortResponse) GetTetherIbxOk() (*string, bool)` +`func (o *PortRequest) 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 *PortResponse) SetTetherIbx(v string)` +`func (o *PortRequest) SetTetherIbx(v string)` SetTetherIbx sets TetherIbx field to given value. ### HasTetherIbx -`func (o *PortResponse) HasTetherIbx() bool` +`func (o *PortRequest) HasTetherIbx() bool` HasTetherIbx returns a boolean if a field has been set. ### GetDemarcationPoint -`func (o *PortResponse) GetDemarcationPoint() PortDemarcationPoint` +`func (o *PortRequest) GetDemarcationPoint() PortDemarcationPoint` GetDemarcationPoint returns the DemarcationPoint field if non-nil, zero value otherwise. ### GetDemarcationPointOk -`func (o *PortResponse) GetDemarcationPointOk() (*PortDemarcationPoint, bool)` +`func (o *PortRequest) GetDemarcationPointOk() (*PortDemarcationPoint, bool)` GetDemarcationPointOk returns a tuple with the DemarcationPoint field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDemarcationPoint -`func (o *PortResponse) SetDemarcationPoint(v PortDemarcationPoint)` +`func (o *PortRequest) SetDemarcationPoint(v PortDemarcationPoint)` SetDemarcationPoint sets DemarcationPoint field to given value. ### HasDemarcationPoint -`func (o *PortResponse) HasDemarcationPoint() bool` +`func (o *PortRequest) HasDemarcationPoint() bool` HasDemarcationPoint returns a boolean if a field has been set. ### GetRedundancy -`func (o *PortResponse) GetRedundancy() PortRedundancy` +`func (o *PortRequest) GetRedundancy() PortRedundancy` GetRedundancy returns the Redundancy field if non-nil, zero value otherwise. ### GetRedundancyOk -`func (o *PortResponse) GetRedundancyOk() (*PortRedundancy, bool)` +`func (o *PortRequest) GetRedundancyOk() (*PortRedundancy, 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 *PortResponse) SetRedundancy(v PortRedundancy)` +`func (o *PortRequest) SetRedundancy(v PortRedundancy)` SetRedundancy sets Redundancy field to given value. ### HasRedundancy -`func (o *PortResponse) HasRedundancy() bool` +`func (o *PortRequest) HasRedundancy() bool` HasRedundancy returns a boolean if a field has been set. ### GetEncapsulation -`func (o *PortResponse) GetEncapsulation() PortEncapsulation` +`func (o *PortRequest) GetEncapsulation() PortEncapsulation` GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. ### GetEncapsulationOk -`func (o *PortResponse) GetEncapsulationOk() (*PortEncapsulation, bool)` +`func (o *PortRequest) GetEncapsulationOk() (*PortEncapsulation, bool)` GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEncapsulation -`func (o *PortResponse) SetEncapsulation(v PortEncapsulation)` +`func (o *PortRequest) SetEncapsulation(v PortEncapsulation)` SetEncapsulation sets Encapsulation field to given value. -### HasEncapsulation - -`func (o *PortResponse) HasEncapsulation() bool` - -HasEncapsulation returns a boolean if a field has been set. ### GetLagEnabled -`func (o *PortResponse) GetLagEnabled() bool` +`func (o *PortRequest) GetLagEnabled() bool` GetLagEnabled returns the LagEnabled field if non-nil, zero value otherwise. ### GetLagEnabledOk -`func (o *PortResponse) GetLagEnabledOk() (*bool, bool)` +`func (o *PortRequest) 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 *PortResponse) SetLagEnabled(v bool)` +`func (o *PortRequest) SetLagEnabled(v bool)` SetLagEnabled sets LagEnabled field to given value. ### HasLagEnabled -`func (o *PortResponse) HasLagEnabled() bool` +`func (o *PortRequest) HasLagEnabled() bool` HasLagEnabled returns a boolean if a field has been set. ### GetLag -`func (o *PortResponse) GetLag() PortLag` +`func (o *PortRequest) GetLag() PortLag` GetLag returns the Lag field if non-nil, zero value otherwise. ### GetLagOk -`func (o *PortResponse) GetLagOk() (*PortLag, bool)` +`func (o *PortRequest) GetLagOk() (*PortLag, bool)` GetLagOk returns a tuple with the Lag field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLag -`func (o *PortResponse) SetLag(v PortLag)` +`func (o *PortRequest) SetLag(v PortLag)` SetLag sets Lag field to given value. ### HasLag -`func (o *PortResponse) HasLag() bool` +`func (o *PortRequest) HasLag() bool` HasLag returns a boolean if a field has been set. ### GetAsn -`func (o *PortResponse) GetAsn() int32` +`func (o *PortRequest) GetAsn() int32` GetAsn returns the Asn field if non-nil, zero value otherwise. ### GetAsnOk -`func (o *PortResponse) GetAsnOk() (*int32, bool)` +`func (o *PortRequest) GetAsnOk() (*int32, bool)` GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAsn -`func (o *PortResponse) SetAsn(v int32)` +`func (o *PortRequest) SetAsn(v int32)` SetAsn sets Asn field to given value. ### HasAsn -`func (o *PortResponse) HasAsn() bool` +`func (o *PortRequest) HasAsn() bool` HasAsn returns a boolean if a field has been set. +### GetPackage + +`func (o *PortRequest) GetPackage() Package` + +GetPackage returns the Package field if non-nil, zero value otherwise. + +### GetPackageOk + +`func (o *PortRequest) GetPackageOk() (*Package, bool)` + +GetPackageOk returns a tuple with the Package field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackage + +`func (o *PortRequest) SetPackage(v Package)` + +SetPackage sets Package field to given value. + +### HasPackage + +`func (o *PortRequest) HasPackage() bool` + +HasPackage returns a boolean if a field has been set. + ### GetSettings -`func (o *PortResponse) GetSettings() PortSettings` +`func (o *PortRequest) GetSettings() PortSettings` GetSettings returns the Settings field if non-nil, zero value otherwise. ### GetSettingsOk -`func (o *PortResponse) GetSettingsOk() (*PortSettings, bool)` +`func (o *PortRequest) GetSettingsOk() (*PortSettings, bool)` GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSettings -`func (o *PortResponse) SetSettings(v PortSettings)` +`func (o *PortRequest) SetSettings(v PortSettings)` SetSettings sets Settings field to given value. -### HasSettings - -`func (o *PortResponse) HasSettings() bool` - -HasSettings returns a boolean if a field has been set. ### GetPhysicalPortQuantity -`func (o *PortResponse) GetPhysicalPortQuantity() int32` +`func (o *PortRequest) GetPhysicalPortQuantity() int32` GetPhysicalPortQuantity returns the PhysicalPortQuantity field if non-nil, zero value otherwise. ### GetPhysicalPortQuantityOk -`func (o *PortResponse) GetPhysicalPortQuantityOk() (*int32, bool)` +`func (o *PortRequest) GetPhysicalPortQuantityOk() (*int32, bool)` GetPhysicalPortQuantityOk returns a tuple with the PhysicalPortQuantity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPhysicalPortQuantity -`func (o *PortResponse) SetPhysicalPortQuantity(v int32)` +`func (o *PortRequest) SetPhysicalPortQuantity(v int32)` SetPhysicalPortQuantity sets PhysicalPortQuantity field to given value. ### HasPhysicalPortQuantity -`func (o *PortResponse) HasPhysicalPortQuantity() bool` +`func (o *PortRequest) HasPhysicalPortQuantity() bool` HasPhysicalPortQuantity returns a boolean if a field has been set. ### GetNotifications -`func (o *PortResponse) GetNotifications() []PortNotification` +`func (o *PortRequest) GetNotifications() []PortNotification` GetNotifications returns the Notifications field if non-nil, zero value otherwise. ### GetNotificationsOk -`func (o *PortResponse) GetNotificationsOk() (*[]PortNotification, bool)` +`func (o *PortRequest) GetNotificationsOk() (*[]PortNotification, bool)` GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetNotifications -`func (o *PortResponse) SetNotifications(v []PortNotification)` +`func (o *PortRequest) SetNotifications(v []PortNotification)` SetNotifications sets Notifications field to given value. ### HasNotifications -`func (o *PortResponse) HasNotifications() bool` +`func (o *PortRequest) HasNotifications() bool` HasNotifications returns a boolean if a field has been set. ### GetAdditionalInfo -`func (o *PortResponse) GetAdditionalInfo() []PortAdditionalInfo` +`func (o *PortRequest) GetAdditionalInfo() []PortAdditionalInfo` GetAdditionalInfo returns the AdditionalInfo field if non-nil, zero value otherwise. ### GetAdditionalInfoOk -`func (o *PortResponse) GetAdditionalInfoOk() (*[]PortAdditionalInfo, bool)` +`func (o *PortRequest) GetAdditionalInfoOk() (*[]PortAdditionalInfo, bool)` GetAdditionalInfoOk returns a tuple with the AdditionalInfo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAdditionalInfo -`func (o *PortResponse) SetAdditionalInfo(v []PortAdditionalInfo)` +`func (o *PortRequest) SetAdditionalInfo(v []PortAdditionalInfo)` SetAdditionalInfo sets AdditionalInfo field to given value. ### HasAdditionalInfo -`func (o *PortResponse) HasAdditionalInfo() bool` +`func (o *PortRequest) HasAdditionalInfo() bool` HasAdditionalInfo returns a boolean if a field has been set. ### GetPhysicalPorts -`func (o *PortResponse) GetPhysicalPorts() []PhysicalPort` +`func (o *PortRequest) GetPhysicalPorts() []PhysicalPort` GetPhysicalPorts returns the PhysicalPorts field if non-nil, zero value otherwise. ### GetPhysicalPortsOk -`func (o *PortResponse) GetPhysicalPortsOk() (*[]PhysicalPort, bool)` +`func (o *PortRequest) GetPhysicalPortsOk() (*[]PhysicalPort, bool)` GetPhysicalPortsOk returns a tuple with the PhysicalPorts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPhysicalPorts -`func (o *PortResponse) SetPhysicalPorts(v []PhysicalPort)` +`func (o *PortRequest) SetPhysicalPorts(v []PhysicalPort)` SetPhysicalPorts sets PhysicalPorts field to given value. ### HasPhysicalPorts -`func (o *PortResponse) HasPhysicalPorts() bool` +`func (o *PortRequest) HasPhysicalPorts() bool` HasPhysicalPorts returns a boolean if a field has been set. ### GetLoas -`func (o *PortResponse) GetLoas() []PortLoa` +`func (o *PortRequest) GetLoas() []PortLoa` GetLoas returns the Loas field if non-nil, zero value otherwise. ### GetLoasOk -`func (o *PortResponse) GetLoasOk() (*[]PortLoa, bool)` +`func (o *PortRequest) GetLoasOk() (*[]PortLoa, bool)` GetLoasOk returns a tuple with the Loas field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLoas -`func (o *PortResponse) SetLoas(v []PortLoa)` +`func (o *PortRequest) SetLoas(v []PortLoa)` SetLoas sets Loas field to given value. ### HasLoas -`func (o *PortResponse) HasLoas() bool` +`func (o *PortRequest) HasLoas() bool` HasLoas returns a boolean if a field has been set. diff --git a/services/fabricv4/docs/PortServiceType.md b/services/fabricv4/docs/PortServiceType.md new file mode 100644 index 00000000..9a77bb44 --- /dev/null +++ b/services/fabricv4/docs/PortServiceType.md @@ -0,0 +1,13 @@ +# PortServiceType + +## Enum + + +* `EPL` (value: `"EPL"`) + +* `MSP` (value: `"MSP"`) + + +[[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/PortSettings.md b/services/fabricv4/docs/PortSettings.md index 16b8f0fd..42032f86 100644 --- a/services/fabricv4/docs/PortSettings.md +++ b/services/fabricv4/docs/PortSettings.md @@ -4,12 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Product** | Pointer to **string** | Product name | [optional] **Buyout** | Pointer to **bool** | | [optional] **ViewPortPermission** | Pointer to **bool** | | [optional] **PlaceVcOrderPermission** | Pointer to **bool** | | [optional] **Layer3Enabled** | Pointer to **bool** | | [optional] -**ProductCode** | Pointer to **string** | | [optional] **SharedPortType** | Pointer to **bool** | | [optional] **SharedPortProduct** | Pointer to [**PortSettingsSharedPortProduct**](PortSettingsSharedPortProduct.md) | | [optional] **PackageType** | Pointer to [**PortSettingsPackageType**](PortSettingsPackageType.md) | | [optional] @@ -33,31 +31,6 @@ NewPortSettingsWithDefaults instantiates a new PortSettings 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 -### GetProduct - -`func (o *PortSettings) GetProduct() string` - -GetProduct returns the Product field if non-nil, zero value otherwise. - -### GetProductOk - -`func (o *PortSettings) GetProductOk() (*string, bool)` - -GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProduct - -`func (o *PortSettings) SetProduct(v string)` - -SetProduct sets Product field to given value. - -### HasProduct - -`func (o *PortSettings) HasProduct() bool` - -HasProduct returns a boolean if a field has been set. - ### GetBuyout `func (o *PortSettings) GetBuyout() bool` @@ -158,31 +131,6 @@ SetLayer3Enabled sets Layer3Enabled field to given value. HasLayer3Enabled returns a boolean if a field has been set. -### GetProductCode - -`func (o *PortSettings) GetProductCode() string` - -GetProductCode returns the ProductCode field if non-nil, zero value otherwise. - -### GetProductCodeOk - -`func (o *PortSettings) GetProductCodeOk() (*string, bool)` - -GetProductCodeOk returns a tuple with the ProductCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProductCode - -`func (o *PortSettings) SetProductCode(v string)` - -SetProductCode sets ProductCode field to given value. - -### HasProductCode - -`func (o *PortSettings) HasProductCode() bool` - -HasProductCode returns a boolean if a field has been set. - ### GetSharedPortType `func (o *PortSettings) GetSharedPortType() bool` diff --git a/services/fabricv4/docs/PortSettingsPackageType.md b/services/fabricv4/docs/PortSettingsPackageType.md index cf068026..845915dc 100644 --- a/services/fabricv4/docs/PortSettingsPackageType.md +++ b/services/fabricv4/docs/PortSettingsPackageType.md @@ -5,11 +5,9 @@ * `STANDARD` (value: `"STANDARD"`) -* `UNTAGGED` (value: `"UNTAGGED"`) - * `UNLIMITED` (value: `"UNLIMITED"`) -* `UNLIMITED_PLUS` (value: `"UNLIMITED PLUS"`) +* `UNLIMITED_PLUS` (value: `"UNLIMITED_PLUS"`) [[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 4f2014ae..ed709e19 100644 --- a/services/fabricv4/docs/PortsApi.md +++ b/services/fabricv4/docs/PortsApi.md @@ -89,7 +89,7 @@ Name | Type | Description | Notes ## CreateBulkPort -> AllPortsResponse CreateBulkPort(ctx).BulkPort(bulkPort).Execute() +> BulkPort CreateBulkPort(ctx).BulkPortRequest(bulkPortRequest).Execute() Create Port @@ -108,16 +108,16 @@ import ( ) func main() { - bulkPort := *openapiclient.NewBulkPort() // BulkPort | + bulkPortRequest := *openapiclient.NewBulkPortRequest() // BulkPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PortsApi.CreateBulkPort(context.Background()).BulkPort(bulkPort).Execute() + resp, r, err := apiClient.PortsApi.CreateBulkPort(context.Background()).BulkPortRequest(bulkPortRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `PortsApi.CreateBulkPort``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateBulkPort`: AllPortsResponse + // response from `CreateBulkPort`: BulkPort fmt.Fprintf(os.Stdout, "Response from `PortsApi.CreateBulkPort`: %v\n", resp) } ``` @@ -133,11 +133,11 @@ Other parameters are passed through a pointer to a apiCreateBulkPortRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bulkPort** | [**BulkPort**](BulkPort.md) | | + **bulkPortRequest** | [**BulkPortRequest**](BulkPortRequest.md) | | ### Return type -[**AllPortsResponse**](AllPortsResponse.md) +[**BulkPort**](BulkPort.md) ### Authorization @@ -155,7 +155,7 @@ Name | Type | Description | Notes ## CreatePort -> PortResponse CreatePort(ctx).Port(port).Execute() +> Port CreatePort(ctx).PortRequest(portRequest).Execute() Create Port @@ -174,16 +174,16 @@ import ( ) func main() { - port := *openapiclient.NewPort(*openapiclient.NewSimplifiedAccount(), openapiclient.PortType("XF_PORT"), int32(123), openapiclient.PortResponse_physicalPortsType("1000BASE_LX"), openapiclient.PortResponse_connectivitySourceType("COLO"), *openapiclient.NewSimplifiedLocation(), *openapiclient.NewPortEncapsulation(), *openapiclient.NewPortSettings()) // Port | + portRequest := *openapiclient.NewPortRequest(openapiclient.PortType("XF_PORT"), int32(123), openapiclient.Port_physicalPortsType("1000BASE_LX"), openapiclient.Port_connectivitySourceType("COLO"), *openapiclient.NewSimplifiedAccount(), *openapiclient.NewSimplifiedLocation(), *openapiclient.NewPortEncapsulation(), *openapiclient.NewPortSettings()) // PortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PortsApi.CreatePort(context.Background()).Port(port).Execute() + resp, r, err := apiClient.PortsApi.CreatePort(context.Background()).PortRequest(portRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `PortsApi.CreatePort``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreatePort`: PortResponse + // response from `CreatePort`: Port fmt.Fprintf(os.Stdout, "Response from `PortsApi.CreatePort`: %v\n", resp) } ``` @@ -199,11 +199,11 @@ Other parameters are passed through a pointer to a apiCreatePortRequest struct v Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **port** | [**Port**](Port.md) | | + **portRequest** | [**PortRequest**](PortRequest.md) | | ### Return type -[**PortResponse**](PortResponse.md) +[**Port**](Port.md) ### Authorization @@ -291,7 +291,7 @@ Name | Type | Description | Notes ## GetPortByUuid -> PortResponse GetPortByUuid(ctx, portId).Execute() +> Port GetPortByUuid(ctx, portId).Execute() Get Port by uuid @@ -319,7 +319,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PortsApi.GetPortByUuid``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetPortByUuid`: PortResponse + // response from `GetPortByUuid`: Port fmt.Fprintf(os.Stdout, "Response from `PortsApi.GetPortByUuid`: %v\n", resp) } ``` @@ -343,7 +343,7 @@ Name | Type | Description | Notes ### Return type -[**PortResponse**](PortResponse.md) +[**Port**](Port.md) ### Authorization diff --git a/services/fabricv4/docs/PrecisionTimeApi.md b/services/fabricv4/docs/PrecisionTimeApi.md index 4594fde5..044d4807 100644 --- a/services/fabricv4/docs/PrecisionTimeApi.md +++ b/services/fabricv4/docs/PrecisionTimeApi.md @@ -5,19 +5,20 @@ All URIs are relative to *https://api.equinix.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateTimeServices**](PrecisionTimeApi.md#CreateTimeServices) | **Post** /fabric/v4/timeServices | Create Time Service -[**DeleteTimeServiceById**](PrecisionTimeApi.md#DeleteTimeServiceById) | **Delete** /fabric/v4/timeServices/{serviceId} | Delete time service -[**GetTimeServicesById**](PrecisionTimeApi.md#GetTimeServicesById) | **Get** /fabric/v4/timeServices/{serviceId} | Get Time Service +[**DeleteTimeServiceById**](PrecisionTimeApi.md#DeleteTimeServiceById) | **Delete** /fabric/v4/timeServices/{serviceId} | Delete by ID. +[**FulfillTimeServices**](PrecisionTimeApi.md#FulfillTimeServices) | **Put** /fabric/v4/timeServices/{serviceId} | Configure Service. +[**GetTimeServicesById**](PrecisionTimeApi.md#GetTimeServicesById) | **Get** /fabric/v4/timeServices/{serviceId} | Get Service By ID. [**GetTimeServicesConnectionsByServiceId**](PrecisionTimeApi.md#GetTimeServicesConnectionsByServiceId) | **Get** /fabric/v4/timeServices/{serviceId}/connections | Get Connection Links [**GetTimeServicesPackageByCode**](PrecisionTimeApi.md#GetTimeServicesPackageByCode) | **Get** /fabric/v4/timeServicePackages/{packageCode} | Get Package By Code [**GetTimeServicesPackages**](PrecisionTimeApi.md#GetTimeServicesPackages) | **Get** /fabric/v4/timeServicePackages | Get Packages [**SearchTimeServices**](PrecisionTimeApi.md#SearchTimeServices) | **Post** /fabric/v4/timeServices/search | Search Time Services -[**UpdateTimeServicesById**](PrecisionTimeApi.md#UpdateTimeServicesById) | **Patch** /fabric/v4/timeServices/{serviceId} | Patch time service +[**UpdateTimeServicesById**](PrecisionTimeApi.md#UpdateTimeServicesById) | **Patch** /fabric/v4/timeServices/{serviceId} | Update By ID. ## CreateTimeServices -> PrecisionTimeServiceCreateResponse CreateTimeServices(ctx).PrecisionTimeServiceRequest(precisionTimeServiceRequest).Execute() +> PrecisionTimeServiceResponse CreateTimeServices(ctx).PrecisionTimeServiceRequest(precisionTimeServiceRequest).Execute() Create Time Service @@ -36,7 +37,7 @@ import ( ) func main() { - precisionTimeServiceRequest := *openapiclient.NewPrecisionTimeServiceRequest(openapiclient.precisionTimeServiceRequest_type("NTP"), "Name_example", *openapiclient.NewPrecisionTimePackageRequest(openapiclient.getTimeServicesPackageByCode_packageCode_parameter("NTP_STANDARD")), []openapiclient.FabricConnectionUuid{*openapiclient.NewFabricConnectionUuid("Uuid_example")}, *openapiclient.NewIpv4()) // PrecisionTimeServiceRequest | + precisionTimeServiceRequest := *openapiclient.NewPrecisionTimeServiceRequest(openapiclient.precisionTimeServiceRequest_type("NTP"), "Name_example", *openapiclient.NewPrecisionTimePackageRequest(openapiclient.precisionTimePackageRequest_code("NTP_STANDARD")), []openapiclient.VirtualConnectionUuid{*openapiclient.NewVirtualConnectionUuid("Uuid_example")}, *openapiclient.NewIpv4("Primary_example", "Secondary_example", "NetworkMask_example")) // PrecisionTimeServiceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -45,7 +46,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PrecisionTimeApi.CreateTimeServices``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateTimeServices`: PrecisionTimeServiceCreateResponse + // response from `CreateTimeServices`: PrecisionTimeServiceResponse fmt.Fprintf(os.Stdout, "Response from `PrecisionTimeApi.CreateTimeServices`: %v\n", resp) } ``` @@ -65,7 +66,7 @@ Name | Type | Description | Notes ### Return type -[**PrecisionTimeServiceCreateResponse**](PrecisionTimeServiceCreateResponse.md) +[**PrecisionTimeServiceResponse**](PrecisionTimeServiceResponse.md) ### Authorization @@ -83,9 +84,9 @@ Name | Type | Description | Notes ## DeleteTimeServiceById -> PrecisionTimeServiceCreateResponse DeleteTimeServiceById(ctx, serviceId).Execute() +> PrecisionTimeServiceResponse DeleteTimeServiceById(ctx, serviceId).Execute() -Delete time service +Delete by ID. @@ -111,7 +112,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PrecisionTimeApi.DeleteTimeServiceById``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteTimeServiceById`: PrecisionTimeServiceCreateResponse + // response from `DeleteTimeServiceById`: PrecisionTimeServiceResponse fmt.Fprintf(os.Stdout, "Response from `PrecisionTimeApi.DeleteTimeServiceById`: %v\n", resp) } ``` @@ -135,7 +136,7 @@ Name | Type | Description | Notes ### Return type -[**PrecisionTimeServiceCreateResponse**](PrecisionTimeServiceCreateResponse.md) +[**PrecisionTimeServiceResponse**](PrecisionTimeServiceResponse.md) ### Authorization @@ -151,11 +152,83 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## FulfillTimeServices + +> PrecisionTimeServiceResponse FulfillTimeServices(ctx, serviceId).PrecisionTimeServiceRequest(precisionTimeServiceRequest).Execute() + +Configure Service. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + serviceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Service UUID + precisionTimeServiceRequest := *openapiclient.NewPrecisionTimeServiceRequest(openapiclient.precisionTimeServiceRequest_type("NTP"), "Name_example", *openapiclient.NewPrecisionTimePackageRequest(openapiclient.precisionTimePackageRequest_code("NTP_STANDARD")), []openapiclient.VirtualConnectionUuid{*openapiclient.NewVirtualConnectionUuid("Uuid_example")}, *openapiclient.NewIpv4("Primary_example", "Secondary_example", "NetworkMask_example")) // PrecisionTimeServiceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PrecisionTimeApi.FulfillTimeServices(context.Background(), serviceId).PrecisionTimeServiceRequest(precisionTimeServiceRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PrecisionTimeApi.FulfillTimeServices``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `FulfillTimeServices`: PrecisionTimeServiceResponse + fmt.Fprintf(os.Stdout, "Response from `PrecisionTimeApi.FulfillTimeServices`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | Service UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiFulfillTimeServicesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **precisionTimeServiceRequest** | [**PrecisionTimeServiceRequest**](PrecisionTimeServiceRequest.md) | | + +### Return type + +[**PrecisionTimeServiceResponse**](PrecisionTimeServiceResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + ## GetTimeServicesById -> PrecisionTimeServiceCreateResponse GetTimeServicesById(ctx, serviceId).Execute() +> PrecisionTimeServiceResponse GetTimeServicesById(ctx, serviceId).Execute() -Get Time Service +Get Service By ID. @@ -181,7 +254,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PrecisionTimeApi.GetTimeServicesById``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTimeServicesById`: PrecisionTimeServiceCreateResponse + // response from `GetTimeServicesById`: PrecisionTimeServiceResponse fmt.Fprintf(os.Stdout, "Response from `PrecisionTimeApi.GetTimeServicesById`: %v\n", resp) } ``` @@ -205,7 +278,7 @@ Name | Type | Description | Notes ### Return type -[**PrecisionTimeServiceCreateResponse**](PrecisionTimeServiceCreateResponse.md) +[**PrecisionTimeServiceResponse**](PrecisionTimeServiceResponse.md) ### Authorization @@ -490,9 +563,9 @@ Name | Type | Description | Notes ## UpdateTimeServicesById -> PrecisionTimeServiceCreateResponse UpdateTimeServicesById(ctx, serviceId).PrecisionTimeChangeOperation(precisionTimeChangeOperation).Execute() +> PrecisionTimeServiceResponse UpdateTimeServicesById(ctx, serviceId).PrecisionTimeChangeOperation(precisionTimeChangeOperation).Execute() -Patch time service +Update By ID. @@ -519,7 +592,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PrecisionTimeApi.UpdateTimeServicesById``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateTimeServicesById`: PrecisionTimeServiceCreateResponse + // response from `UpdateTimeServicesById`: PrecisionTimeServiceResponse fmt.Fprintf(os.Stdout, "Response from `PrecisionTimeApi.UpdateTimeServicesById`: %v\n", resp) } ``` @@ -544,7 +617,7 @@ Name | Type | Description | Notes ### Return type -[**PrecisionTimeServiceCreateResponse**](PrecisionTimeServiceCreateResponse.md) +[**PrecisionTimeServiceResponse**](PrecisionTimeServiceResponse.md) ### Authorization diff --git a/services/fabricv4/docs/PrecisionTimeChangeOperationOp.md b/services/fabricv4/docs/PrecisionTimeChangeOperationOp.md index 42594b73..3668a72b 100644 --- a/services/fabricv4/docs/PrecisionTimeChangeOperationOp.md +++ b/services/fabricv4/docs/PrecisionTimeChangeOperationOp.md @@ -5,6 +5,10 @@ * `REPLACE` (value: `"replace"`) +* `ADD` (value: `"add"`) + +* `REMOVE` (value: `"remove"`) + [[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/PrecisionTimeChangeOperationPath.md b/services/fabricv4/docs/PrecisionTimeChangeOperationPath.md index b0198a45..b7e8ae30 100644 --- a/services/fabricv4/docs/PrecisionTimeChangeOperationPath.md +++ b/services/fabricv4/docs/PrecisionTimeChangeOperationPath.md @@ -7,6 +7,12 @@ * `PACKAGE_CODE` (value: `"/package/code"`) +* `IPV4` (value: `"/ipv4"`) + +* `NTP_ADVANCED_CONFIGURATION` (value: `"/ntpAdvancedConfiguration"`) + +* `PTP_ADVANCED_CONFIGURATION` (value: `"/ptpAdvancedConfiguration"`) + [[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/PrecisionTimeOrder.md b/services/fabricv4/docs/PrecisionTimeOrder.md new file mode 100644 index 00000000..bcec333f --- /dev/null +++ b/services/fabricv4/docs/PrecisionTimeOrder.md @@ -0,0 +1,108 @@ +# PrecisionTimeOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PurchaseOrderNumber** | Pointer to **string** | Purchase order number | [optional] +**CustomerReferenceNumber** | Pointer to **string** | Customer reference number | [optional] +**OrderNumber** | Pointer to **string** | Order Reference Number | [optional] + +## Methods + +### NewPrecisionTimeOrder + +`func NewPrecisionTimeOrder() *PrecisionTimeOrder` + +NewPrecisionTimeOrder instantiates a new PrecisionTimeOrder 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 + +### NewPrecisionTimeOrderWithDefaults + +`func NewPrecisionTimeOrderWithDefaults() *PrecisionTimeOrder` + +NewPrecisionTimeOrderWithDefaults instantiates a new PrecisionTimeOrder 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 + +### GetPurchaseOrderNumber + +`func (o *PrecisionTimeOrder) GetPurchaseOrderNumber() string` + +GetPurchaseOrderNumber returns the PurchaseOrderNumber field if non-nil, zero value otherwise. + +### GetPurchaseOrderNumberOk + +`func (o *PrecisionTimeOrder) GetPurchaseOrderNumberOk() (*string, bool)` + +GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPurchaseOrderNumber + +`func (o *PrecisionTimeOrder) SetPurchaseOrderNumber(v string)` + +SetPurchaseOrderNumber sets PurchaseOrderNumber field to given value. + +### HasPurchaseOrderNumber + +`func (o *PrecisionTimeOrder) HasPurchaseOrderNumber() bool` + +HasPurchaseOrderNumber returns a boolean if a field has been set. + +### GetCustomerReferenceNumber + +`func (o *PrecisionTimeOrder) GetCustomerReferenceNumber() string` + +GetCustomerReferenceNumber returns the CustomerReferenceNumber field if non-nil, zero value otherwise. + +### GetCustomerReferenceNumberOk + +`func (o *PrecisionTimeOrder) GetCustomerReferenceNumberOk() (*string, bool)` + +GetCustomerReferenceNumberOk returns a tuple with the CustomerReferenceNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerReferenceNumber + +`func (o *PrecisionTimeOrder) SetCustomerReferenceNumber(v string)` + +SetCustomerReferenceNumber sets CustomerReferenceNumber field to given value. + +### HasCustomerReferenceNumber + +`func (o *PrecisionTimeOrder) HasCustomerReferenceNumber() bool` + +HasCustomerReferenceNumber returns a boolean if a field has been set. + +### GetOrderNumber + +`func (o *PrecisionTimeOrder) GetOrderNumber() string` + +GetOrderNumber returns the OrderNumber field if non-nil, zero value otherwise. + +### GetOrderNumberOk + +`func (o *PrecisionTimeOrder) GetOrderNumberOk() (*string, bool)` + +GetOrderNumberOk returns a tuple with the OrderNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderNumber + +`func (o *PrecisionTimeOrder) SetOrderNumber(v string)` + +SetOrderNumber sets OrderNumber field to given value. + +### HasOrderNumber + +`func (o *PrecisionTimeOrder) HasOrderNumber() bool` + +HasOrderNumber 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/PrecisionTimePackageRequest.md b/services/fabricv4/docs/PrecisionTimePackageRequest.md index b8eb833b..76dc0d68 100644 --- a/services/fabricv4/docs/PrecisionTimePackageRequest.md +++ b/services/fabricv4/docs/PrecisionTimePackageRequest.md @@ -4,14 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Href** | Pointer to **string** | | [optional] -**Code** | [**GetTimeServicesPackageByCodePackageCodeParameter**](GetTimeServicesPackageByCodePackageCodeParameter.md) | | +**Code** | [**PrecisionTimePackageRequestCode**](PrecisionTimePackageRequestCode.md) | | ## Methods ### NewPrecisionTimePackageRequest -`func NewPrecisionTimePackageRequest(code GetTimeServicesPackageByCodePackageCodeParameter, ) *PrecisionTimePackageRequest` +`func NewPrecisionTimePackageRequest(code PrecisionTimePackageRequestCode, ) *PrecisionTimePackageRequest` NewPrecisionTimePackageRequest instantiates a new PrecisionTimePackageRequest object This constructor will assign default values to properties that have it defined, @@ -26,47 +25,22 @@ NewPrecisionTimePackageRequestWithDefaults instantiates a new PrecisionTimePacka 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 *PrecisionTimePackageRequest) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *PrecisionTimePackageRequest) 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 *PrecisionTimePackageRequest) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *PrecisionTimePackageRequest) HasHref() bool` - -HasHref returns a boolean if a field has been set. - ### GetCode -`func (o *PrecisionTimePackageRequest) GetCode() GetTimeServicesPackageByCodePackageCodeParameter` +`func (o *PrecisionTimePackageRequest) GetCode() PrecisionTimePackageRequestCode` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *PrecisionTimePackageRequest) GetCodeOk() (*GetTimeServicesPackageByCodePackageCodeParameter, bool)` +`func (o *PrecisionTimePackageRequest) GetCodeOk() (*PrecisionTimePackageRequestCode, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *PrecisionTimePackageRequest) SetCode(v GetTimeServicesPackageByCodePackageCodeParameter)` +`func (o *PrecisionTimePackageRequest) SetCode(v PrecisionTimePackageRequestCode)` SetCode sets Code field to given value. diff --git a/services/fabricv4/docs/PrecisionTimePackageRequestCode.md b/services/fabricv4/docs/PrecisionTimePackageRequestCode.md new file mode 100644 index 00000000..8e8ca9ee --- /dev/null +++ b/services/fabricv4/docs/PrecisionTimePackageRequestCode.md @@ -0,0 +1,17 @@ +# PrecisionTimePackageRequestCode + +## Enum + + +* `NTP_STANDARD` (value: `"NTP_STANDARD"`) + +* `NTP_ENTERPRISE` (value: `"NTP_ENTERPRISE"`) + +* `PTP_STANDARD` (value: `"PTP_STANDARD"`) + +* `PTP_ENTERPRISE` (value: `"PTP_ENTERPRISE"`) + + +[[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/PrecisionTimePackageResponse.md b/services/fabricv4/docs/PrecisionTimePackageResponse.md index 106dfe79..456c1ae0 100644 --- a/services/fabricv4/docs/PrecisionTimePackageResponse.md +++ b/services/fabricv4/docs/PrecisionTimePackageResponse.md @@ -5,23 +5,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Href** | Pointer to **string** | | [optional] +**Type** | [**PrecisionTimePackageResponseType**](PrecisionTimePackageResponseType.md) | | **Code** | [**GetTimeServicesPackageByCodePackageCodeParameter**](GetTimeServicesPackageByCodePackageCodeParameter.md) | | -**Type** | Pointer to [**PrecisionTimePackageResponseType**](PrecisionTimePackageResponseType.md) | | [optional] -**Bandwidth** | Pointer to **int32** | | [optional] -**ClientsPerSecondMax** | Pointer to **int32** | | [optional] -**RedundancySupported** | Pointer to **bool** | | [optional] -**MultiSubnetSupported** | Pointer to **bool** | | [optional] -**AccuracyUnit** | Pointer to **string** | | [optional] -**AccuracySla** | Pointer to **int32** | | [optional] -**AccuracyAvgMin** | Pointer to **int32** | | [optional] -**AccuracyAvgMax** | Pointer to **int32** | | [optional] +**Bandwidth** | **int32** | Connection bandwidth in Mbps. | +**ClientsPerSecondMax** | Pointer to **int32** | Max. number of clients that can be synchronized per second at a packet rate of 1 per second. | [optional] +**RedundancySupported** | Pointer to **bool** | Is Redundant virtual connection supported for the package code. | [optional] +**MultiSubnetSupported** | Pointer to **bool** | Is Multiple subnet supported for the package code. | [optional] +**AccuracySlaUnit** | Pointer to **string** | Accuracy SLA unit. | [optional] +**AccuracySla** | Pointer to **int32** | Accuracy SLA for the package code, -1 value denotes the accuracySla is not published. | [optional] +**AccuracySlaMin** | Pointer to **int32** | Typical minimum Accuracy for the package code. | [optional] +**AccuracySlaMax** | Pointer to **int32** | Typical maximum Accuracy for the package code. | [optional] **Changelog** | Pointer to [**Changelog**](Changelog.md) | | [optional] ## Methods ### NewPrecisionTimePackageResponse -`func NewPrecisionTimePackageResponse(code GetTimeServicesPackageByCodePackageCodeParameter, ) *PrecisionTimePackageResponse` +`func NewPrecisionTimePackageResponse(type_ PrecisionTimePackageResponseType, code GetTimeServicesPackageByCodePackageCodeParameter, bandwidth int32, ) *PrecisionTimePackageResponse` NewPrecisionTimePackageResponse instantiates a new PrecisionTimePackageResponse object This constructor will assign default values to properties that have it defined, @@ -61,26 +61,6 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. -### GetCode - -`func (o *PrecisionTimePackageResponse) GetCode() GetTimeServicesPackageByCodePackageCodeParameter` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *PrecisionTimePackageResponse) GetCodeOk() (*GetTimeServicesPackageByCodePackageCodeParameter, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *PrecisionTimePackageResponse) SetCode(v GetTimeServicesPackageByCodePackageCodeParameter)` - -SetCode sets Code field to given value. - - ### GetType `func (o *PrecisionTimePackageResponse) GetType() PrecisionTimePackageResponseType` @@ -100,11 +80,26 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType -`func (o *PrecisionTimePackageResponse) HasType() bool` +### GetCode + +`func (o *PrecisionTimePackageResponse) GetCode() GetTimeServicesPackageByCodePackageCodeParameter` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PrecisionTimePackageResponse) GetCodeOk() (*GetTimeServicesPackageByCodePackageCodeParameter, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PrecisionTimePackageResponse) SetCode(v GetTimeServicesPackageByCodePackageCodeParameter)` + +SetCode sets Code field to given value. -HasType returns a boolean if a field has been set. ### GetBandwidth @@ -125,11 +120,6 @@ and a boolean to check if the value has been set. SetBandwidth sets Bandwidth field to given value. -### HasBandwidth - -`func (o *PrecisionTimePackageResponse) HasBandwidth() bool` - -HasBandwidth returns a boolean if a field has been set. ### GetClientsPerSecondMax @@ -206,30 +196,30 @@ SetMultiSubnetSupported sets MultiSubnetSupported field to given value. HasMultiSubnetSupported returns a boolean if a field has been set. -### GetAccuracyUnit +### GetAccuracySlaUnit -`func (o *PrecisionTimePackageResponse) GetAccuracyUnit() string` +`func (o *PrecisionTimePackageResponse) GetAccuracySlaUnit() string` -GetAccuracyUnit returns the AccuracyUnit field if non-nil, zero value otherwise. +GetAccuracySlaUnit returns the AccuracySlaUnit field if non-nil, zero value otherwise. -### GetAccuracyUnitOk +### GetAccuracySlaUnitOk -`func (o *PrecisionTimePackageResponse) GetAccuracyUnitOk() (*string, bool)` +`func (o *PrecisionTimePackageResponse) GetAccuracySlaUnitOk() (*string, bool)` -GetAccuracyUnitOk returns a tuple with the AccuracyUnit field if it's non-nil, zero value otherwise +GetAccuracySlaUnitOk returns a tuple with the AccuracySlaUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAccuracyUnit +### SetAccuracySlaUnit -`func (o *PrecisionTimePackageResponse) SetAccuracyUnit(v string)` +`func (o *PrecisionTimePackageResponse) SetAccuracySlaUnit(v string)` -SetAccuracyUnit sets AccuracyUnit field to given value. +SetAccuracySlaUnit sets AccuracySlaUnit field to given value. -### HasAccuracyUnit +### HasAccuracySlaUnit -`func (o *PrecisionTimePackageResponse) HasAccuracyUnit() bool` +`func (o *PrecisionTimePackageResponse) HasAccuracySlaUnit() bool` -HasAccuracyUnit returns a boolean if a field has been set. +HasAccuracySlaUnit returns a boolean if a field has been set. ### GetAccuracySla @@ -256,55 +246,55 @@ SetAccuracySla sets AccuracySla field to given value. HasAccuracySla returns a boolean if a field has been set. -### GetAccuracyAvgMin +### GetAccuracySlaMin -`func (o *PrecisionTimePackageResponse) GetAccuracyAvgMin() int32` +`func (o *PrecisionTimePackageResponse) GetAccuracySlaMin() int32` -GetAccuracyAvgMin returns the AccuracyAvgMin field if non-nil, zero value otherwise. +GetAccuracySlaMin returns the AccuracySlaMin field if non-nil, zero value otherwise. -### GetAccuracyAvgMinOk +### GetAccuracySlaMinOk -`func (o *PrecisionTimePackageResponse) GetAccuracyAvgMinOk() (*int32, bool)` +`func (o *PrecisionTimePackageResponse) GetAccuracySlaMinOk() (*int32, bool)` -GetAccuracyAvgMinOk returns a tuple with the AccuracyAvgMin field if it's non-nil, zero value otherwise +GetAccuracySlaMinOk returns a tuple with the AccuracySlaMin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAccuracyAvgMin +### SetAccuracySlaMin -`func (o *PrecisionTimePackageResponse) SetAccuracyAvgMin(v int32)` +`func (o *PrecisionTimePackageResponse) SetAccuracySlaMin(v int32)` -SetAccuracyAvgMin sets AccuracyAvgMin field to given value. +SetAccuracySlaMin sets AccuracySlaMin field to given value. -### HasAccuracyAvgMin +### HasAccuracySlaMin -`func (o *PrecisionTimePackageResponse) HasAccuracyAvgMin() bool` +`func (o *PrecisionTimePackageResponse) HasAccuracySlaMin() bool` -HasAccuracyAvgMin returns a boolean if a field has been set. +HasAccuracySlaMin returns a boolean if a field has been set. -### GetAccuracyAvgMax +### GetAccuracySlaMax -`func (o *PrecisionTimePackageResponse) GetAccuracyAvgMax() int32` +`func (o *PrecisionTimePackageResponse) GetAccuracySlaMax() int32` -GetAccuracyAvgMax returns the AccuracyAvgMax field if non-nil, zero value otherwise. +GetAccuracySlaMax returns the AccuracySlaMax field if non-nil, zero value otherwise. -### GetAccuracyAvgMaxOk +### GetAccuracySlaMaxOk -`func (o *PrecisionTimePackageResponse) GetAccuracyAvgMaxOk() (*int32, bool)` +`func (o *PrecisionTimePackageResponse) GetAccuracySlaMaxOk() (*int32, bool)` -GetAccuracyAvgMaxOk returns a tuple with the AccuracyAvgMax field if it's non-nil, zero value otherwise +GetAccuracySlaMaxOk returns a tuple with the AccuracySlaMax field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAccuracyAvgMax +### SetAccuracySlaMax -`func (o *PrecisionTimePackageResponse) SetAccuracyAvgMax(v int32)` +`func (o *PrecisionTimePackageResponse) SetAccuracySlaMax(v int32)` -SetAccuracyAvgMax sets AccuracyAvgMax field to given value. +SetAccuracySlaMax sets AccuracySlaMax field to given value. -### HasAccuracyAvgMax +### HasAccuracySlaMax -`func (o *PrecisionTimePackageResponse) HasAccuracyAvgMax() bool` +`func (o *PrecisionTimePackageResponse) HasAccuracySlaMax() bool` -HasAccuracyAvgMax returns a boolean if a field has been set. +HasAccuracySlaMax returns a boolean if a field has been set. ### GetChangelog diff --git a/services/fabricv4/docs/PrecisionTimeServiceCreateResponse.md b/services/fabricv4/docs/PrecisionTimeServiceCreateResponse.md deleted file mode 100644 index 75165c01..00000000 --- a/services/fabricv4/docs/PrecisionTimeServiceCreateResponse.md +++ /dev/null @@ -1,312 +0,0 @@ -# PrecisionTimeServiceCreateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | [**PrecisionTimeServiceCreateResponseType**](PrecisionTimeServiceCreateResponseType.md) | | -**Href** | **string** | | -**Uuid** | **string** | uuid of the ept service | -**Name** | Pointer to **string** | name of the ept service | [optional] -**Description** | Pointer to **string** | | [optional] -**State** | [**PrecisionTimeServiceCreateResponseState**](PrecisionTimeServiceCreateResponseState.md) | | -**Package** | [**PrecisionTimePackageResponse**](PrecisionTimePackageResponse.md) | | -**Connections** | Pointer to [**[]FabricConnectionUuid**](FabricConnectionUuid.md) | fabric l2 connections used for the ept service | [optional] -**Ipv4** | [**Ipv4**](Ipv4.md) | | -**Account** | Pointer to [**Account**](Account.md) | | [optional] -**AdvanceConfiguration** | Pointer to [**AdvanceConfiguration**](AdvanceConfiguration.md) | | [optional] -**Project** | Pointer to [**Project**](Project.md) | | [optional] - -## Methods - -### NewPrecisionTimeServiceCreateResponse - -`func NewPrecisionTimeServiceCreateResponse(type_ PrecisionTimeServiceCreateResponseType, href string, uuid string, state PrecisionTimeServiceCreateResponseState, package_ PrecisionTimePackageResponse, ipv4 Ipv4, ) *PrecisionTimeServiceCreateResponse` - -NewPrecisionTimeServiceCreateResponse instantiates a new PrecisionTimeServiceCreateResponse 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 - -### NewPrecisionTimeServiceCreateResponseWithDefaults - -`func NewPrecisionTimeServiceCreateResponseWithDefaults() *PrecisionTimeServiceCreateResponse` - -NewPrecisionTimeServiceCreateResponseWithDefaults instantiates a new PrecisionTimeServiceCreateResponse 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 - -### GetType - -`func (o *PrecisionTimeServiceCreateResponse) GetType() PrecisionTimeServiceCreateResponseType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *PrecisionTimeServiceCreateResponse) GetTypeOk() (*PrecisionTimeServiceCreateResponseType, 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 *PrecisionTimeServiceCreateResponse) SetType(v PrecisionTimeServiceCreateResponseType)` - -SetType sets Type field to given value. - - -### GetHref - -`func (o *PrecisionTimeServiceCreateResponse) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *PrecisionTimeServiceCreateResponse) 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 *PrecisionTimeServiceCreateResponse) SetHref(v string)` - -SetHref sets Href field to given value. - - -### GetUuid - -`func (o *PrecisionTimeServiceCreateResponse) GetUuid() string` - -GetUuid returns the Uuid field if non-nil, zero value otherwise. - -### GetUuidOk - -`func (o *PrecisionTimeServiceCreateResponse) 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 *PrecisionTimeServiceCreateResponse) SetUuid(v string)` - -SetUuid sets Uuid field to given value. - - -### GetName - -`func (o *PrecisionTimeServiceCreateResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *PrecisionTimeServiceCreateResponse) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *PrecisionTimeServiceCreateResponse) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *PrecisionTimeServiceCreateResponse) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetDescription - -`func (o *PrecisionTimeServiceCreateResponse) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *PrecisionTimeServiceCreateResponse) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *PrecisionTimeServiceCreateResponse) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *PrecisionTimeServiceCreateResponse) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetState - -`func (o *PrecisionTimeServiceCreateResponse) GetState() PrecisionTimeServiceCreateResponseState` - -GetState returns the State field if non-nil, zero value otherwise. - -### GetStateOk - -`func (o *PrecisionTimeServiceCreateResponse) GetStateOk() (*PrecisionTimeServiceCreateResponseState, bool)` - -GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetState - -`func (o *PrecisionTimeServiceCreateResponse) SetState(v PrecisionTimeServiceCreateResponseState)` - -SetState sets State field to given value. - - -### GetPackage - -`func (o *PrecisionTimeServiceCreateResponse) GetPackage() PrecisionTimePackageResponse` - -GetPackage returns the Package field if non-nil, zero value otherwise. - -### GetPackageOk - -`func (o *PrecisionTimeServiceCreateResponse) GetPackageOk() (*PrecisionTimePackageResponse, bool)` - -GetPackageOk returns a tuple with the Package field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPackage - -`func (o *PrecisionTimeServiceCreateResponse) SetPackage(v PrecisionTimePackageResponse)` - -SetPackage sets Package field to given value. - - -### GetConnections - -`func (o *PrecisionTimeServiceCreateResponse) GetConnections() []FabricConnectionUuid` - -GetConnections returns the Connections field if non-nil, zero value otherwise. - -### GetConnectionsOk - -`func (o *PrecisionTimeServiceCreateResponse) GetConnectionsOk() (*[]FabricConnectionUuid, bool)` - -GetConnectionsOk returns a tuple with the Connections field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConnections - -`func (o *PrecisionTimeServiceCreateResponse) SetConnections(v []FabricConnectionUuid)` - -SetConnections sets Connections field to given value. - -### HasConnections - -`func (o *PrecisionTimeServiceCreateResponse) HasConnections() bool` - -HasConnections returns a boolean if a field has been set. - -### GetIpv4 - -`func (o *PrecisionTimeServiceCreateResponse) GetIpv4() Ipv4` - -GetIpv4 returns the Ipv4 field if non-nil, zero value otherwise. - -### GetIpv4Ok - -`func (o *PrecisionTimeServiceCreateResponse) GetIpv4Ok() (*Ipv4, bool)` - -GetIpv4Ok returns a tuple with the Ipv4 field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpv4 - -`func (o *PrecisionTimeServiceCreateResponse) SetIpv4(v Ipv4)` - -SetIpv4 sets Ipv4 field to given value. - - -### GetAccount - -`func (o *PrecisionTimeServiceCreateResponse) GetAccount() Account` - -GetAccount returns the Account field if non-nil, zero value otherwise. - -### GetAccountOk - -`func (o *PrecisionTimeServiceCreateResponse) GetAccountOk() (*Account, bool)` - -GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccount - -`func (o *PrecisionTimeServiceCreateResponse) SetAccount(v Account)` - -SetAccount sets Account field to given value. - -### HasAccount - -`func (o *PrecisionTimeServiceCreateResponse) HasAccount() bool` - -HasAccount returns a boolean if a field has been set. - -### GetAdvanceConfiguration - -`func (o *PrecisionTimeServiceCreateResponse) GetAdvanceConfiguration() AdvanceConfiguration` - -GetAdvanceConfiguration returns the AdvanceConfiguration field if non-nil, zero value otherwise. - -### GetAdvanceConfigurationOk - -`func (o *PrecisionTimeServiceCreateResponse) GetAdvanceConfigurationOk() (*AdvanceConfiguration, bool)` - -GetAdvanceConfigurationOk returns a tuple with the AdvanceConfiguration field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdvanceConfiguration - -`func (o *PrecisionTimeServiceCreateResponse) SetAdvanceConfiguration(v AdvanceConfiguration)` - -SetAdvanceConfiguration sets AdvanceConfiguration field to given value. - -### HasAdvanceConfiguration - -`func (o *PrecisionTimeServiceCreateResponse) HasAdvanceConfiguration() bool` - -HasAdvanceConfiguration returns a boolean if a field has been set. - -### GetProject - -`func (o *PrecisionTimeServiceCreateResponse) GetProject() Project` - -GetProject returns the Project field if non-nil, zero value otherwise. - -### GetProjectOk - -`func (o *PrecisionTimeServiceCreateResponse) 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 *PrecisionTimeServiceCreateResponse) SetProject(v Project)` - -SetProject sets Project field to given value. - -### HasProject - -`func (o *PrecisionTimeServiceCreateResponse) HasProject() bool` - -HasProject 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/PrecisionTimeServiceRequest.md b/services/fabricv4/docs/PrecisionTimeServiceRequest.md index 55bb3531..dd077636 100644 --- a/services/fabricv4/docs/PrecisionTimeServiceRequest.md +++ b/services/fabricv4/docs/PrecisionTimeServiceRequest.md @@ -5,19 +5,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | [**PrecisionTimeServiceRequestType**](PrecisionTimeServiceRequestType.md) | | -**Name** | **string** | | -**Description** | Pointer to **string** | | [optional] +**Name** | **string** | Precision Time Service name. | **Package** | [**PrecisionTimePackageRequest**](PrecisionTimePackageRequest.md) | | -**Connections** | [**[]FabricConnectionUuid**](FabricConnectionUuid.md) | | +**Connections** | [**[]VirtualConnectionUuid**](VirtualConnectionUuid.md) | | **Ipv4** | [**Ipv4**](Ipv4.md) | | -**AdvanceConfiguration** | Pointer to [**AdvanceConfiguration**](AdvanceConfiguration.md) | | [optional] +**NtpAdvancedConfiguration** | Pointer to [**[]Md5**](Md5.md) | NTP Advanced configuration - MD5 Authentication. | [optional] +**PtpAdvancedConfiguration** | Pointer to [**PtpAdvanceConfiguration**](PtpAdvanceConfiguration.md) | | [optional] **Project** | Pointer to [**Project**](Project.md) | | [optional] +**Order** | Pointer to [**PrecisionTimeOrder**](PrecisionTimeOrder.md) | | [optional] ## Methods ### NewPrecisionTimeServiceRequest -`func NewPrecisionTimeServiceRequest(type_ PrecisionTimeServiceRequestType, name string, package_ PrecisionTimePackageRequest, connections []FabricConnectionUuid, ipv4 Ipv4, ) *PrecisionTimeServiceRequest` +`func NewPrecisionTimeServiceRequest(type_ PrecisionTimeServiceRequestType, name string, package_ PrecisionTimePackageRequest, connections []VirtualConnectionUuid, ipv4 Ipv4, ) *PrecisionTimeServiceRequest` NewPrecisionTimeServiceRequest instantiates a new PrecisionTimeServiceRequest object This constructor will assign default values to properties that have it defined, @@ -72,31 +73,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetDescription - -`func (o *PrecisionTimeServiceRequest) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *PrecisionTimeServiceRequest) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *PrecisionTimeServiceRequest) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *PrecisionTimeServiceRequest) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - ### GetPackage `func (o *PrecisionTimeServiceRequest) GetPackage() PrecisionTimePackageRequest` @@ -119,20 +95,20 @@ SetPackage sets Package field to given value. ### GetConnections -`func (o *PrecisionTimeServiceRequest) GetConnections() []FabricConnectionUuid` +`func (o *PrecisionTimeServiceRequest) GetConnections() []VirtualConnectionUuid` GetConnections returns the Connections field if non-nil, zero value otherwise. ### GetConnectionsOk -`func (o *PrecisionTimeServiceRequest) GetConnectionsOk() (*[]FabricConnectionUuid, bool)` +`func (o *PrecisionTimeServiceRequest) GetConnectionsOk() (*[]VirtualConnectionUuid, bool)` GetConnectionsOk returns a tuple with the Connections field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConnections -`func (o *PrecisionTimeServiceRequest) SetConnections(v []FabricConnectionUuid)` +`func (o *PrecisionTimeServiceRequest) SetConnections(v []VirtualConnectionUuid)` SetConnections sets Connections field to given value. @@ -157,30 +133,55 @@ and a boolean to check if the value has been set. SetIpv4 sets Ipv4 field to given value. -### GetAdvanceConfiguration +### GetNtpAdvancedConfiguration -`func (o *PrecisionTimeServiceRequest) GetAdvanceConfiguration() AdvanceConfiguration` +`func (o *PrecisionTimeServiceRequest) GetNtpAdvancedConfiguration() []Md5` -GetAdvanceConfiguration returns the AdvanceConfiguration field if non-nil, zero value otherwise. +GetNtpAdvancedConfiguration returns the NtpAdvancedConfiguration field if non-nil, zero value otherwise. -### GetAdvanceConfigurationOk +### GetNtpAdvancedConfigurationOk -`func (o *PrecisionTimeServiceRequest) GetAdvanceConfigurationOk() (*AdvanceConfiguration, bool)` +`func (o *PrecisionTimeServiceRequest) GetNtpAdvancedConfigurationOk() (*[]Md5, bool)` -GetAdvanceConfigurationOk returns a tuple with the AdvanceConfiguration field if it's non-nil, zero value otherwise +GetNtpAdvancedConfigurationOk returns a tuple with the NtpAdvancedConfiguration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAdvanceConfiguration +### SetNtpAdvancedConfiguration + +`func (o *PrecisionTimeServiceRequest) SetNtpAdvancedConfiguration(v []Md5)` + +SetNtpAdvancedConfiguration sets NtpAdvancedConfiguration field to given value. -`func (o *PrecisionTimeServiceRequest) SetAdvanceConfiguration(v AdvanceConfiguration)` +### HasNtpAdvancedConfiguration -SetAdvanceConfiguration sets AdvanceConfiguration field to given value. +`func (o *PrecisionTimeServiceRequest) HasNtpAdvancedConfiguration() bool` -### HasAdvanceConfiguration +HasNtpAdvancedConfiguration returns a boolean if a field has been set. -`func (o *PrecisionTimeServiceRequest) HasAdvanceConfiguration() bool` +### GetPtpAdvancedConfiguration -HasAdvanceConfiguration returns a boolean if a field has been set. +`func (o *PrecisionTimeServiceRequest) GetPtpAdvancedConfiguration() PtpAdvanceConfiguration` + +GetPtpAdvancedConfiguration returns the PtpAdvancedConfiguration field if non-nil, zero value otherwise. + +### GetPtpAdvancedConfigurationOk + +`func (o *PrecisionTimeServiceRequest) GetPtpAdvancedConfigurationOk() (*PtpAdvanceConfiguration, bool)` + +GetPtpAdvancedConfigurationOk returns a tuple with the PtpAdvancedConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPtpAdvancedConfiguration + +`func (o *PrecisionTimeServiceRequest) SetPtpAdvancedConfiguration(v PtpAdvanceConfiguration)` + +SetPtpAdvancedConfiguration sets PtpAdvancedConfiguration field to given value. + +### HasPtpAdvancedConfiguration + +`func (o *PrecisionTimeServiceRequest) HasPtpAdvancedConfiguration() bool` + +HasPtpAdvancedConfiguration returns a boolean if a field has been set. ### GetProject @@ -207,6 +208,31 @@ SetProject sets Project field to given value. HasProject returns a boolean if a field has been set. +### GetOrder + +`func (o *PrecisionTimeServiceRequest) GetOrder() PrecisionTimeOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PrecisionTimeServiceRequest) GetOrderOk() (*PrecisionTimeOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *PrecisionTimeServiceRequest) SetOrder(v PrecisionTimeOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *PrecisionTimeServiceRequest) HasOrder() bool` + +HasOrder 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/PrecisionTimeServiceResponse.md b/services/fabricv4/docs/PrecisionTimeServiceResponse.md index 8481ad5f..e4b81bb5 100644 --- a/services/fabricv4/docs/PrecisionTimeServiceResponse.md +++ b/services/fabricv4/docs/PrecisionTimeServiceResponse.md @@ -4,25 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | [**PrecisionTimeServiceCreateResponseType**](PrecisionTimeServiceCreateResponseType.md) | | -**Href** | **string** | | -**Uuid** | **string** | uuid of the ept service | -**Name** | Pointer to **string** | name of the ept service | [optional] -**Description** | Pointer to **string** | | [optional] -**State** | [**PrecisionTimeServiceCreateResponseState**](PrecisionTimeServiceCreateResponseState.md) | | +**Href** | **string** | Precision Time Service URI. | +**Type** | [**PrecisionTimeServiceResponseType**](PrecisionTimeServiceResponseType.md) | | +**Name** | Pointer to **string** | Precision Time Service Name. | [optional] +**Uuid** | **string** | Precision Time Service UUID. | +**State** | [**PrecisionTimeServiceResponseState**](PrecisionTimeServiceResponseState.md) | | **Package** | [**PrecisionTimePackageResponse**](PrecisionTimePackageResponse.md) | | -**Connections** | Pointer to [**[]FabricConnectionUuid**](FabricConnectionUuid.md) | fabric l2 connections used for the ept service | [optional] -**Order** | [**Order**](Order.md) | | -**Ipv4** | [**Ipv4**](Ipv4.md) | | -**AdvanceConfiguration** | Pointer to [**AdvanceConfiguration**](AdvanceConfiguration.md) | | [optional] +**Connections** | Pointer to [**[]VirtualConnectionTimeServiceResponse**](VirtualConnectionTimeServiceResponse.md) | Fabric Connections associated with Precision Time Service. | [optional] +**Ipv4** | Pointer to [**Ipv4**](Ipv4.md) | | [optional] +**NtpAdvancedConfiguration** | Pointer to [**[]Md5**](Md5.md) | NTP Advanced configuration - MD5 Authentication. | [optional] +**PtpAdvancedConfiguration** | Pointer to [**PtpAdvanceConfiguration**](PtpAdvanceConfiguration.md) | | [optional] **Project** | Pointer to [**Project**](Project.md) | | [optional] -**Account** | Pointer to [**Account**](Account.md) | | [optional] +**Account** | Pointer to [**SimplifiedAccount**](SimplifiedAccount.md) | | [optional] +**Order** | Pointer to [**PrecisionTimeOrder**](PrecisionTimeOrder.md) | | [optional] +**ChangeLog** | Pointer to [**Changelog**](Changelog.md) | | [optional] ## Methods ### NewPrecisionTimeServiceResponse -`func NewPrecisionTimeServiceResponse(type_ PrecisionTimeServiceCreateResponseType, href string, uuid string, state PrecisionTimeServiceCreateResponseState, package_ PrecisionTimePackageResponse, order Order, ipv4 Ipv4, ) *PrecisionTimeServiceResponse` +`func NewPrecisionTimeServiceResponse(href string, type_ PrecisionTimeServiceResponseType, uuid string, state PrecisionTimeServiceResponseState, package_ PrecisionTimePackageResponse, ) *PrecisionTimeServiceResponse` NewPrecisionTimeServiceResponse instantiates a new PrecisionTimeServiceResponse object This constructor will assign default values to properties that have it defined, @@ -37,26 +38,6 @@ NewPrecisionTimeServiceResponseWithDefaults instantiates a new PrecisionTimeServ 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 -### GetType - -`func (o *PrecisionTimeServiceResponse) GetType() PrecisionTimeServiceCreateResponseType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *PrecisionTimeServiceResponse) GetTypeOk() (*PrecisionTimeServiceCreateResponseType, 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 *PrecisionTimeServiceResponse) SetType(v PrecisionTimeServiceCreateResponseType)` - -SetType sets Type field to given value. - - ### GetHref `func (o *PrecisionTimeServiceResponse) GetHref() string` @@ -77,24 +58,24 @@ and a boolean to check if the value has been set. SetHref sets Href field to given value. -### GetUuid +### GetType -`func (o *PrecisionTimeServiceResponse) GetUuid() string` +`func (o *PrecisionTimeServiceResponse) GetType() PrecisionTimeServiceResponseType` -GetUuid returns the Uuid field if non-nil, zero value otherwise. +GetType returns the Type field if non-nil, zero value otherwise. -### GetUuidOk +### GetTypeOk -`func (o *PrecisionTimeServiceResponse) GetUuidOk() (*string, bool)` +`func (o *PrecisionTimeServiceResponse) GetTypeOk() (*PrecisionTimeServiceResponseType, bool)` -GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +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. -### SetUuid +### SetType -`func (o *PrecisionTimeServiceResponse) SetUuid(v string)` +`func (o *PrecisionTimeServiceResponse) SetType(v PrecisionTimeServiceResponseType)` -SetUuid sets Uuid field to given value. +SetType sets Type field to given value. ### GetName @@ -122,47 +103,42 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. -### GetDescription +### GetUuid -`func (o *PrecisionTimeServiceResponse) GetDescription() string` +`func (o *PrecisionTimeServiceResponse) GetUuid() string` -GetDescription returns the Description field if non-nil, zero value otherwise. +GetUuid returns the Uuid field if non-nil, zero value otherwise. -### GetDescriptionOk +### GetUuidOk -`func (o *PrecisionTimeServiceResponse) GetDescriptionOk() (*string, bool)` +`func (o *PrecisionTimeServiceResponse) GetUuidOk() (*string, bool)` -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +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. -### SetDescription - -`func (o *PrecisionTimeServiceResponse) SetDescription(v string)` - -SetDescription sets Description field to given value. +### SetUuid -### HasDescription +`func (o *PrecisionTimeServiceResponse) SetUuid(v string)` -`func (o *PrecisionTimeServiceResponse) HasDescription() bool` +SetUuid sets Uuid field to given value. -HasDescription returns a boolean if a field has been set. ### GetState -`func (o *PrecisionTimeServiceResponse) GetState() PrecisionTimeServiceCreateResponseState` +`func (o *PrecisionTimeServiceResponse) GetState() PrecisionTimeServiceResponseState` GetState returns the State field if non-nil, zero value otherwise. ### GetStateOk -`func (o *PrecisionTimeServiceResponse) GetStateOk() (*PrecisionTimeServiceCreateResponseState, bool)` +`func (o *PrecisionTimeServiceResponse) GetStateOk() (*PrecisionTimeServiceResponseState, bool)` GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetState -`func (o *PrecisionTimeServiceResponse) SetState(v PrecisionTimeServiceCreateResponseState)` +`func (o *PrecisionTimeServiceResponse) SetState(v PrecisionTimeServiceResponseState)` SetState sets State field to given value. @@ -189,20 +165,20 @@ SetPackage sets Package field to given value. ### GetConnections -`func (o *PrecisionTimeServiceResponse) GetConnections() []FabricConnectionUuid` +`func (o *PrecisionTimeServiceResponse) GetConnections() []VirtualConnectionTimeServiceResponse` GetConnections returns the Connections field if non-nil, zero value otherwise. ### GetConnectionsOk -`func (o *PrecisionTimeServiceResponse) GetConnectionsOk() (*[]FabricConnectionUuid, bool)` +`func (o *PrecisionTimeServiceResponse) GetConnectionsOk() (*[]VirtualConnectionTimeServiceResponse, bool)` GetConnectionsOk returns a tuple with the Connections field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConnections -`func (o *PrecisionTimeServiceResponse) SetConnections(v []FabricConnectionUuid)` +`func (o *PrecisionTimeServiceResponse) SetConnections(v []VirtualConnectionTimeServiceResponse)` SetConnections sets Connections field to given value. @@ -212,70 +188,80 @@ SetConnections sets Connections field to given value. HasConnections returns a boolean if a field has been set. -### GetOrder +### GetIpv4 -`func (o *PrecisionTimeServiceResponse) GetOrder() Order` +`func (o *PrecisionTimeServiceResponse) GetIpv4() Ipv4` -GetOrder returns the Order field if non-nil, zero value otherwise. +GetIpv4 returns the Ipv4 field if non-nil, zero value otherwise. -### GetOrderOk +### GetIpv4Ok -`func (o *PrecisionTimeServiceResponse) GetOrderOk() (*Order, bool)` +`func (o *PrecisionTimeServiceResponse) GetIpv4Ok() (*Ipv4, bool)` -GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +GetIpv4Ok returns a tuple with the Ipv4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetOrder +### SetIpv4 -`func (o *PrecisionTimeServiceResponse) SetOrder(v Order)` +`func (o *PrecisionTimeServiceResponse) SetIpv4(v Ipv4)` -SetOrder sets Order field to given value. +SetIpv4 sets Ipv4 field to given value. +### HasIpv4 -### GetIpv4 +`func (o *PrecisionTimeServiceResponse) HasIpv4() bool` -`func (o *PrecisionTimeServiceResponse) GetIpv4() Ipv4` +HasIpv4 returns a boolean if a field has been set. -GetIpv4 returns the Ipv4 field if non-nil, zero value otherwise. +### GetNtpAdvancedConfiguration -### GetIpv4Ok +`func (o *PrecisionTimeServiceResponse) GetNtpAdvancedConfiguration() []Md5` -`func (o *PrecisionTimeServiceResponse) GetIpv4Ok() (*Ipv4, bool)` +GetNtpAdvancedConfiguration returns the NtpAdvancedConfiguration field if non-nil, zero value otherwise. -GetIpv4Ok returns a tuple with the Ipv4 field if it's non-nil, zero value otherwise +### GetNtpAdvancedConfigurationOk + +`func (o *PrecisionTimeServiceResponse) GetNtpAdvancedConfigurationOk() (*[]Md5, bool)` + +GetNtpAdvancedConfigurationOk returns a tuple with the NtpAdvancedConfiguration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIpv4 +### SetNtpAdvancedConfiguration -`func (o *PrecisionTimeServiceResponse) SetIpv4(v Ipv4)` +`func (o *PrecisionTimeServiceResponse) SetNtpAdvancedConfiguration(v []Md5)` -SetIpv4 sets Ipv4 field to given value. +SetNtpAdvancedConfiguration sets NtpAdvancedConfiguration field to given value. +### HasNtpAdvancedConfiguration -### GetAdvanceConfiguration +`func (o *PrecisionTimeServiceResponse) HasNtpAdvancedConfiguration() bool` -`func (o *PrecisionTimeServiceResponse) GetAdvanceConfiguration() AdvanceConfiguration` +HasNtpAdvancedConfiguration returns a boolean if a field has been set. -GetAdvanceConfiguration returns the AdvanceConfiguration field if non-nil, zero value otherwise. +### GetPtpAdvancedConfiguration -### GetAdvanceConfigurationOk +`func (o *PrecisionTimeServiceResponse) GetPtpAdvancedConfiguration() PtpAdvanceConfiguration` -`func (o *PrecisionTimeServiceResponse) GetAdvanceConfigurationOk() (*AdvanceConfiguration, bool)` +GetPtpAdvancedConfiguration returns the PtpAdvancedConfiguration field if non-nil, zero value otherwise. -GetAdvanceConfigurationOk returns a tuple with the AdvanceConfiguration field if it's non-nil, zero value otherwise +### GetPtpAdvancedConfigurationOk + +`func (o *PrecisionTimeServiceResponse) GetPtpAdvancedConfigurationOk() (*PtpAdvanceConfiguration, bool)` + +GetPtpAdvancedConfigurationOk returns a tuple with the PtpAdvancedConfiguration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAdvanceConfiguration +### SetPtpAdvancedConfiguration -`func (o *PrecisionTimeServiceResponse) SetAdvanceConfiguration(v AdvanceConfiguration)` +`func (o *PrecisionTimeServiceResponse) SetPtpAdvancedConfiguration(v PtpAdvanceConfiguration)` -SetAdvanceConfiguration sets AdvanceConfiguration field to given value. +SetPtpAdvancedConfiguration sets PtpAdvancedConfiguration field to given value. -### HasAdvanceConfiguration +### HasPtpAdvancedConfiguration -`func (o *PrecisionTimeServiceResponse) HasAdvanceConfiguration() bool` +`func (o *PrecisionTimeServiceResponse) HasPtpAdvancedConfiguration() bool` -HasAdvanceConfiguration returns a boolean if a field has been set. +HasPtpAdvancedConfiguration returns a boolean if a field has been set. ### GetProject @@ -304,20 +290,20 @@ HasProject returns a boolean if a field has been set. ### GetAccount -`func (o *PrecisionTimeServiceResponse) GetAccount() Account` +`func (o *PrecisionTimeServiceResponse) GetAccount() SimplifiedAccount` GetAccount returns the Account field if non-nil, zero value otherwise. ### GetAccountOk -`func (o *PrecisionTimeServiceResponse) GetAccountOk() (*Account, bool)` +`func (o *PrecisionTimeServiceResponse) GetAccountOk() (*SimplifiedAccount, bool)` GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAccount -`func (o *PrecisionTimeServiceResponse) SetAccount(v Account)` +`func (o *PrecisionTimeServiceResponse) SetAccount(v SimplifiedAccount)` SetAccount sets Account field to given value. @@ -327,6 +313,56 @@ SetAccount sets Account field to given value. HasAccount returns a boolean if a field has been set. +### GetOrder + +`func (o *PrecisionTimeServiceResponse) GetOrder() PrecisionTimeOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PrecisionTimeServiceResponse) GetOrderOk() (*PrecisionTimeOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *PrecisionTimeServiceResponse) SetOrder(v PrecisionTimeOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *PrecisionTimeServiceResponse) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetChangeLog + +`func (o *PrecisionTimeServiceResponse) GetChangeLog() Changelog` + +GetChangeLog returns the ChangeLog field if non-nil, zero value otherwise. + +### GetChangeLogOk + +`func (o *PrecisionTimeServiceResponse) GetChangeLogOk() (*Changelog, bool)` + +GetChangeLogOk returns a tuple with the ChangeLog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangeLog + +`func (o *PrecisionTimeServiceResponse) SetChangeLog(v Changelog)` + +SetChangeLog sets ChangeLog field to given value. + +### HasChangeLog + +`func (o *PrecisionTimeServiceResponse) HasChangeLog() bool` + +HasChangeLog 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/PrecisionTimeServiceCreateResponseState.md b/services/fabricv4/docs/PrecisionTimeServiceResponseState.md similarity index 77% rename from services/fabricv4/docs/PrecisionTimeServiceCreateResponseState.md rename to services/fabricv4/docs/PrecisionTimeServiceResponseState.md index 3a0fcabf..a2d96e60 100644 --- a/services/fabricv4/docs/PrecisionTimeServiceCreateResponseState.md +++ b/services/fabricv4/docs/PrecisionTimeServiceResponseState.md @@ -1,27 +1,31 @@ -# PrecisionTimeServiceCreateResponseState +# PrecisionTimeServiceResponseState ## Enum -* `PROVISIONED` (value: `"PROVISIONED"`) +* `CANCELLED` (value: `"CANCELLED"`) -* `PROVISIONING` (value: `"PROVISIONING"`) +* `CONFIGURING` (value: `"CONFIGURING"`) -* `PROVISIONING_FAILED` (value: `"PROVISIONING_FAILED"`) +* `CONFIGURING_FAILED` (value: `"CONFIGURING_FAILED"`) -* `CONFIGURING` (value: `"CONFIGURING"`) +* `DRAFT` (value: `"DRAFT"`) -* `CANCELLED` (value: `"CANCELLED"`) +* `DEPROVISIONING` (value: `"DEPROVISIONING"`) * `DEPROVISIONING_FAILED` (value: `"DEPROVISIONING_FAILED"`) -* `PENDING_CONFIGURATION` (value: `"PENDING_CONFIGURATION"`) - * `DEPROVISIONED` (value: `"DEPROVISIONED"`) -* `CONFIGURING_FAILED` (value: `"CONFIGURING_FAILED"`) +* `PROVISIONED` (value: `"PROVISIONED"`) -* `DEPROVISIONING` (value: `"DEPROVISIONING"`) +* `PROVISIONING` (value: `"PROVISIONING"`) + +* `PROVISIONING_FAILED` (value: `"PROVISIONING_FAILED"`) + +* `REPROVISIONING` (value: `"REPROVISIONING"`) + +* `REPROVISIONING_FAILED` (value: `"REPROVISIONING_FAILED"`) [[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/PrecisionTimeServiceCreateResponseType.md b/services/fabricv4/docs/PrecisionTimeServiceResponseType.md similarity index 84% rename from services/fabricv4/docs/PrecisionTimeServiceCreateResponseType.md rename to services/fabricv4/docs/PrecisionTimeServiceResponseType.md index b797bc37..267fbdd7 100644 --- a/services/fabricv4/docs/PrecisionTimeServiceCreateResponseType.md +++ b/services/fabricv4/docs/PrecisionTimeServiceResponseType.md @@ -1,4 +1,4 @@ -# PrecisionTimeServiceCreateResponseType +# PrecisionTimeServiceResponseType ## Enum diff --git a/services/fabricv4/docs/Project.md b/services/fabricv4/docs/Project.md index 6115ca85..3645e973 100644 --- a/services/fabricv4/docs/Project.md +++ b/services/fabricv4/docs/Project.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ProjectId** | Pointer to **string** | Subscriber-assigned project ID | [optional] +**ProjectId** | **string** | Subscriber-assigned project ID | ## Methods ### NewProject -`func NewProject() *Project` +`func NewProject(projectId string, ) *Project` NewProject instantiates a new Project object This constructor will assign default values to properties that have it defined, @@ -44,11 +44,6 @@ and a boolean to check if the value has been set. SetProjectId sets ProjectId field to given value. -### HasProjectId - -`func (o *Project) HasProjectId() bool` - -HasProjectId 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/PtpAdvanceConfiguration.md b/services/fabricv4/docs/PtpAdvanceConfiguration.md index 8f677979..7b0f660e 100644 --- a/services/fabricv4/docs/PtpAdvanceConfiguration.md +++ b/services/fabricv4/docs/PtpAdvanceConfiguration.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TimeScale** | Pointer to [**PtpAdvanceConfigurationTimeScale**](PtpAdvanceConfigurationTimeScale.md) | | [optional] -**Domain** | Pointer to **int32** | | [optional] -**Priority1** | Pointer to **int32** | | [optional] -**Priority2** | Pointer to **int32** | | [optional] -**LogAnnounceInterval** | Pointer to **int32** | The mean time interval between Announce messages. A shorter interval makes ptp4l react faster to the changes in the master-slave hierarchy. The interval should be the same in the whole domain. It's specified as a power of two in seconds. The default is 1 (2 seconds). | [optional] -**LogSyncInterval** | Pointer to **int32** | The mean time interval between Sync messages. A shorter interval may improve accuracy of the local clock. It's specified as a power of two in seconds. The default is 0 (1 second). | [optional] -**LogDelayReqInterval** | Pointer to **int32** | | [optional] +**Domain** | Pointer to **int32** | The PTP domain value. | [optional] +**Priority1** | Pointer to **int32** | The priority1 value determines the best primary clock, Lower value indicates higher priority. | [optional] +**Priority2** | Pointer to **int32** | The priority2 value differentiates and prioritizes the primary clock to avoid confusion when priority1-value is the same for different primary clocks in a network. | [optional] +**LogAnnounceInterval** | Pointer to [**PtpAdvanceConfigurationLogAnnounceInterval**](PtpAdvanceConfigurationLogAnnounceInterval.md) | | [optional] +**LogSyncInterval** | Pointer to [**PtpAdvanceConfigurationLogSyncInterval**](PtpAdvanceConfigurationLogSyncInterval.md) | | [optional] +**LogDelayReqInterval** | Pointer to [**PtpAdvanceConfigurationLogDelayReqInterval**](PtpAdvanceConfigurationLogDelayReqInterval.md) | | [optional] **TransportMode** | Pointer to [**PtpAdvanceConfigurationTransportMode**](PtpAdvanceConfigurationTransportMode.md) | | [optional] **GrantTime** | Pointer to **int32** | Unicast Grant Time in seconds. For Multicast and Hybrid transport modes, grant time defaults to 300 seconds. For Unicast mode, grant time can be between 30 to 7200. | [optional] @@ -135,20 +135,20 @@ HasPriority2 returns a boolean if a field has been set. ### GetLogAnnounceInterval -`func (o *PtpAdvanceConfiguration) GetLogAnnounceInterval() int32` +`func (o *PtpAdvanceConfiguration) GetLogAnnounceInterval() PtpAdvanceConfigurationLogAnnounceInterval` GetLogAnnounceInterval returns the LogAnnounceInterval field if non-nil, zero value otherwise. ### GetLogAnnounceIntervalOk -`func (o *PtpAdvanceConfiguration) GetLogAnnounceIntervalOk() (*int32, bool)` +`func (o *PtpAdvanceConfiguration) GetLogAnnounceIntervalOk() (*PtpAdvanceConfigurationLogAnnounceInterval, bool)` GetLogAnnounceIntervalOk returns a tuple with the LogAnnounceInterval field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLogAnnounceInterval -`func (o *PtpAdvanceConfiguration) SetLogAnnounceInterval(v int32)` +`func (o *PtpAdvanceConfiguration) SetLogAnnounceInterval(v PtpAdvanceConfigurationLogAnnounceInterval)` SetLogAnnounceInterval sets LogAnnounceInterval field to given value. @@ -160,20 +160,20 @@ HasLogAnnounceInterval returns a boolean if a field has been set. ### GetLogSyncInterval -`func (o *PtpAdvanceConfiguration) GetLogSyncInterval() int32` +`func (o *PtpAdvanceConfiguration) GetLogSyncInterval() PtpAdvanceConfigurationLogSyncInterval` GetLogSyncInterval returns the LogSyncInterval field if non-nil, zero value otherwise. ### GetLogSyncIntervalOk -`func (o *PtpAdvanceConfiguration) GetLogSyncIntervalOk() (*int32, bool)` +`func (o *PtpAdvanceConfiguration) GetLogSyncIntervalOk() (*PtpAdvanceConfigurationLogSyncInterval, bool)` GetLogSyncIntervalOk returns a tuple with the LogSyncInterval field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLogSyncInterval -`func (o *PtpAdvanceConfiguration) SetLogSyncInterval(v int32)` +`func (o *PtpAdvanceConfiguration) SetLogSyncInterval(v PtpAdvanceConfigurationLogSyncInterval)` SetLogSyncInterval sets LogSyncInterval field to given value. @@ -185,20 +185,20 @@ HasLogSyncInterval returns a boolean if a field has been set. ### GetLogDelayReqInterval -`func (o *PtpAdvanceConfiguration) GetLogDelayReqInterval() int32` +`func (o *PtpAdvanceConfiguration) GetLogDelayReqInterval() PtpAdvanceConfigurationLogDelayReqInterval` GetLogDelayReqInterval returns the LogDelayReqInterval field if non-nil, zero value otherwise. ### GetLogDelayReqIntervalOk -`func (o *PtpAdvanceConfiguration) GetLogDelayReqIntervalOk() (*int32, bool)` +`func (o *PtpAdvanceConfiguration) GetLogDelayReqIntervalOk() (*PtpAdvanceConfigurationLogDelayReqInterval, bool)` GetLogDelayReqIntervalOk returns a tuple with the LogDelayReqInterval field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLogDelayReqInterval -`func (o *PtpAdvanceConfiguration) SetLogDelayReqInterval(v int32)` +`func (o *PtpAdvanceConfiguration) SetLogDelayReqInterval(v PtpAdvanceConfigurationLogDelayReqInterval)` SetLogDelayReqInterval sets LogDelayReqInterval field to given value. diff --git a/services/fabricv4/docs/PtpAdvanceConfigurationLogAnnounceInterval.md b/services/fabricv4/docs/PtpAdvanceConfigurationLogAnnounceInterval.md new file mode 100644 index 00000000..d33a6f44 --- /dev/null +++ b/services/fabricv4/docs/PtpAdvanceConfigurationLogAnnounceInterval.md @@ -0,0 +1,19 @@ +# PtpAdvanceConfigurationLogAnnounceInterval + +## Enum + + +* `_MINUS_3` (value: `-3`) + +* `_MINUS_2` (value: `-2`) + +* `_MINUS_1` (value: `-1`) + +* `_0` (value: `0`) + +* `_1` (value: `1`) + + +[[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/PtpAdvanceConfigurationLogDelayReqInterval.md b/services/fabricv4/docs/PtpAdvanceConfigurationLogDelayReqInterval.md new file mode 100644 index 00000000..27b6eca3 --- /dev/null +++ b/services/fabricv4/docs/PtpAdvanceConfigurationLogDelayReqInterval.md @@ -0,0 +1,23 @@ +# PtpAdvanceConfigurationLogDelayReqInterval + +## Enum + + +* `_MINUS_5` (value: `-5`) + +* `_MINUS_4` (value: `-4`) + +* `_MINUS_3` (value: `-3`) + +* `_MINUS_2` (value: `-2`) + +* `_MINUS_1` (value: `-1`) + +* `_0` (value: `0`) + +* `_1` (value: `1`) + + +[[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/PtpAdvanceConfigurationLogSyncInterval.md b/services/fabricv4/docs/PtpAdvanceConfigurationLogSyncInterval.md new file mode 100644 index 00000000..76830088 --- /dev/null +++ b/services/fabricv4/docs/PtpAdvanceConfigurationLogSyncInterval.md @@ -0,0 +1,23 @@ +# PtpAdvanceConfigurationLogSyncInterval + +## Enum + + +* `_MINUS_5` (value: `-5`) + +* `_MINUS_4` (value: `-4`) + +* `_MINUS_3` (value: `-3`) + +* `_MINUS_2` (value: `-2`) + +* `_MINUS_1` (value: `-1`) + +* `_0` (value: `0`) + +* `_1` (value: `1`) + + +[[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/PtpAdvanceConfigurationTransportMode.md b/services/fabricv4/docs/PtpAdvanceConfigurationTransportMode.md index 75b97dc2..0c22e1bd 100644 --- a/services/fabricv4/docs/PtpAdvanceConfigurationTransportMode.md +++ b/services/fabricv4/docs/PtpAdvanceConfigurationTransportMode.md @@ -3,11 +3,11 @@ ## Enum -* `MULTICAST` (value: `"Multicast"`) +* `MULTICAST` (value: `"MULTICAST"`) -* `UNICAST` (value: `"Unicast"`) +* `UNICAST` (value: `"UNICAST"`) -* `HYBRID` (value: `"Hybrid"`) +* `HYBRID` (value: `"HYBRID"`) [[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/RouteFiltersApi.md b/services/fabricv4/docs/RouteFiltersApi.md index ddc6d12f..b5fa2fed 100644 --- a/services/fabricv4/docs/RouteFiltersApi.md +++ b/services/fabricv4/docs/RouteFiltersApi.md @@ -115,7 +115,7 @@ import ( ) func main() { - routeFiltersBase := *openapiclient.NewRouteFiltersBase(openapiclient.ConnectionRouteFilterData_type("BGP_IPv4_PREFIX_FILTER"), "My-direct-route-1", *openapiclient.NewProject()) // RouteFiltersBase | + routeFiltersBase := *openapiclient.NewRouteFiltersBase(openapiclient.ConnectionRouteFilterData_type("BGP_IPv4_PREFIX_FILTER"), "My-direct-route-1", *openapiclient.NewProject("44f4c4f8-2f39-494e-838c-d8e640591be5")) // RouteFiltersBase | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/services/fabricv4/docs/RouteTableEntry.md b/services/fabricv4/docs/RouteTableEntry.md index 1ddba8be..aecd0442 100644 --- a/services/fabricv4/docs/RouteTableEntry.md +++ b/services/fabricv4/docs/RouteTableEntry.md @@ -10,10 +10,10 @@ Name | Type | Description | Notes **Age** | Pointer to **string** | | [optional] **Prefix** | Pointer to **string** | | [optional] **NextHop** | Pointer to **string** | | [optional] -**Metric** | Pointer to **int32** | | [optional] +**MED** | Pointer to **int32** | | [optional] **LocalPreference** | Pointer to **int32** | | [optional] -**AsPath** | Pointer to **[]int32** | | [optional] -**Connection** | Pointer to [**RouteTableEntryConnection**](RouteTableEntryConnection.md) | | [optional] +**AsPath** | Pointer to **[]string** | | [optional] +**Connection** | Pointer to [**ConnectionRouteTableEntryConnection**](ConnectionRouteTableEntryConnection.md) | | [optional] **ChangeLog** | [**Changelog**](Changelog.md) | | ## Methods @@ -175,30 +175,30 @@ SetNextHop sets NextHop field to given value. HasNextHop returns a boolean if a field has been set. -### GetMetric +### GetMED -`func (o *RouteTableEntry) GetMetric() int32` +`func (o *RouteTableEntry) GetMED() int32` -GetMetric returns the Metric field if non-nil, zero value otherwise. +GetMED returns the MED field if non-nil, zero value otherwise. -### GetMetricOk +### GetMEDOk -`func (o *RouteTableEntry) GetMetricOk() (*int32, bool)` +`func (o *RouteTableEntry) GetMEDOk() (*int32, bool)` -GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise +GetMEDOk returns a tuple with the MED field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMetric +### SetMED -`func (o *RouteTableEntry) SetMetric(v int32)` +`func (o *RouteTableEntry) SetMED(v int32)` -SetMetric sets Metric field to given value. +SetMED sets MED field to given value. -### HasMetric +### HasMED -`func (o *RouteTableEntry) HasMetric() bool` +`func (o *RouteTableEntry) HasMED() bool` -HasMetric returns a boolean if a field has been set. +HasMED returns a boolean if a field has been set. ### GetLocalPreference @@ -227,20 +227,20 @@ HasLocalPreference returns a boolean if a field has been set. ### GetAsPath -`func (o *RouteTableEntry) GetAsPath() []int32` +`func (o *RouteTableEntry) GetAsPath() []string` GetAsPath returns the AsPath field if non-nil, zero value otherwise. ### GetAsPathOk -`func (o *RouteTableEntry) GetAsPathOk() (*[]int32, bool)` +`func (o *RouteTableEntry) GetAsPathOk() (*[]string, bool)` GetAsPathOk returns a tuple with the AsPath field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAsPath -`func (o *RouteTableEntry) SetAsPath(v []int32)` +`func (o *RouteTableEntry) SetAsPath(v []string)` SetAsPath sets AsPath field to given value. @@ -252,20 +252,20 @@ HasAsPath returns a boolean if a field has been set. ### GetConnection -`func (o *RouteTableEntry) GetConnection() RouteTableEntryConnection` +`func (o *RouteTableEntry) GetConnection() ConnectionRouteTableEntryConnection` GetConnection returns the Connection field if non-nil, zero value otherwise. ### GetConnectionOk -`func (o *RouteTableEntry) GetConnectionOk() (*RouteTableEntryConnection, bool)` +`func (o *RouteTableEntry) GetConnectionOk() (*ConnectionRouteTableEntryConnection, bool)` GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConnection -`func (o *RouteTableEntry) SetConnection(v RouteTableEntryConnection)` +`func (o *RouteTableEntry) SetConnection(v ConnectionRouteTableEntryConnection)` SetConnection sets Connection field to given value. diff --git a/services/fabricv4/docs/RouterActionsConnection.md b/services/fabricv4/docs/RouterActionsConnection.md new file mode 100644 index 00000000..cc855675 --- /dev/null +++ b/services/fabricv4/docs/RouterActionsConnection.md @@ -0,0 +1,56 @@ +# RouterActionsConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | Connection UUID | [optional] + +## Methods + +### NewRouterActionsConnection + +`func NewRouterActionsConnection() *RouterActionsConnection` + +NewRouterActionsConnection instantiates a new RouterActionsConnection 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 + +### NewRouterActionsConnectionWithDefaults + +`func NewRouterActionsConnectionWithDefaults() *RouterActionsConnection` + +NewRouterActionsConnectionWithDefaults instantiates a new RouterActionsConnection 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 *RouterActionsConnection) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *RouterActionsConnection) 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 *RouterActionsConnection) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *RouterActionsConnection) 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/ServiceToken.md b/services/fabricv4/docs/ServiceToken.md index 99e4cfc1..54b1e27c 100644 --- a/services/fabricv4/docs/ServiceToken.md +++ b/services/fabricv4/docs/ServiceToken.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to [**ServiceTokenType**](ServiceTokenType.md) | | [optional] **Href** | Pointer to **string** | An absolute URL that is the subject of the link's context. | [optional] [readonly] -**Uuid** | **string** | Equinix-assigned service token identifier | +**Uuid** | Pointer to **string** | Equinix-assigned service token identifier | [optional] +**IssuerSide** | Pointer to [**ServiceTokenIssuerSide**](ServiceTokenIssuerSide.md) | | [optional] **Name** | Pointer to **string** | Customer-provided service token name | [optional] **Description** | Pointer to **string** | Customer-provided service token description | [optional] **ExpirationDateTime** | Pointer to **time.Time** | Expiration date and time of the service token. | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewServiceToken -`func NewServiceToken(uuid string, ) *ServiceToken` +`func NewServiceToken() *ServiceToken` NewServiceToken instantiates a new ServiceToken object This constructor will assign default values to properties that have it defined, @@ -105,6 +106,36 @@ and a boolean to check if the value has been set. SetUuid sets Uuid field to given value. +### HasUuid + +`func (o *ServiceToken) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetIssuerSide + +`func (o *ServiceToken) GetIssuerSide() ServiceTokenIssuerSide` + +GetIssuerSide returns the IssuerSide field if non-nil, zero value otherwise. + +### GetIssuerSideOk + +`func (o *ServiceToken) GetIssuerSideOk() (*ServiceTokenIssuerSide, bool)` + +GetIssuerSideOk returns a tuple with the IssuerSide field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerSide + +`func (o *ServiceToken) SetIssuerSide(v ServiceTokenIssuerSide)` + +SetIssuerSide sets IssuerSide field to given value. + +### HasIssuerSide + +`func (o *ServiceToken) HasIssuerSide() bool` + +HasIssuerSide returns a boolean if a field has been set. ### GetName diff --git a/services/fabricv4/docs/ServiceTokenChangeOperation.md b/services/fabricv4/docs/ServiceTokenChangeOperation.md index 727be1ac..e1ce092e 100644 --- a/services/fabricv4/docs/ServiceTokenChangeOperation.md +++ b/services/fabricv4/docs/ServiceTokenChangeOperation.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Op** | [**ServiceTokenChangeOperationOp**](ServiceTokenChangeOperationOp.md) | | +**Op** | [**PrecisionTimeChangeOperationOp**](PrecisionTimeChangeOperationOp.md) | | **Path** | **string** | path inside document leading to updated parameter | **Value** | **interface{}** | new value for updated parameter | @@ -12,7 +12,7 @@ Name | Type | Description | Notes ### NewServiceTokenChangeOperation -`func NewServiceTokenChangeOperation(op ServiceTokenChangeOperationOp, path string, value interface{}, ) *ServiceTokenChangeOperation` +`func NewServiceTokenChangeOperation(op PrecisionTimeChangeOperationOp, path string, value interface{}, ) *ServiceTokenChangeOperation` NewServiceTokenChangeOperation instantiates a new ServiceTokenChangeOperation object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetOp -`func (o *ServiceTokenChangeOperation) GetOp() ServiceTokenChangeOperationOp` +`func (o *ServiceTokenChangeOperation) GetOp() PrecisionTimeChangeOperationOp` GetOp returns the Op field if non-nil, zero value otherwise. ### GetOpOk -`func (o *ServiceTokenChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, bool)` +`func (o *ServiceTokenChangeOperation) GetOpOk() (*PrecisionTimeChangeOperationOp, 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 *ServiceTokenChangeOperation) SetOp(v ServiceTokenChangeOperationOp)` +`func (o *ServiceTokenChangeOperation) SetOp(v PrecisionTimeChangeOperationOp)` SetOp sets Op field to given value. diff --git a/services/fabricv4/docs/ServiceTokenConnection.md b/services/fabricv4/docs/ServiceTokenConnection.md index a6c9b1a8..290cb7b6 100644 --- a/services/fabricv4/docs/ServiceTokenConnection.md +++ b/services/fabricv4/docs/ServiceTokenConnection.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **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] +**AllowCustomBandwidth** | Pointer to **bool** | Allow custom bandwidth value | [optional] [default to false] **BandwidthLimit** | Pointer to **int32** | Connection bandwidth limit in Mbps | [optional] **SupportedBandwidths** | Pointer to **[]int32** | List of permitted bandwidths. | [optional] **ASide** | Pointer to [**ServiceTokenSide**](ServiceTokenSide.md) | | [optional] @@ -127,6 +128,31 @@ SetAllowRemoteConnection sets AllowRemoteConnection field to given value. HasAllowRemoteConnection returns a boolean if a field has been set. +### GetAllowCustomBandwidth + +`func (o *ServiceTokenConnection) GetAllowCustomBandwidth() bool` + +GetAllowCustomBandwidth returns the AllowCustomBandwidth field if non-nil, zero value otherwise. + +### GetAllowCustomBandwidthOk + +`func (o *ServiceTokenConnection) GetAllowCustomBandwidthOk() (*bool, bool)` + +GetAllowCustomBandwidthOk returns a tuple with the AllowCustomBandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowCustomBandwidth + +`func (o *ServiceTokenConnection) SetAllowCustomBandwidth(v bool)` + +SetAllowCustomBandwidth sets AllowCustomBandwidth field to given value. + +### HasAllowCustomBandwidth + +`func (o *ServiceTokenConnection) HasAllowCustomBandwidth() bool` + +HasAllowCustomBandwidth returns a boolean if a field has been set. + ### GetBandwidthLimit `func (o *ServiceTokenConnection) GetBandwidthLimit() int32` diff --git a/services/fabricv4/docs/ServiceTokenConnectionType.md b/services/fabricv4/docs/ServiceTokenConnectionType.md index 1daed9e1..aea257df 100644 --- a/services/fabricv4/docs/ServiceTokenConnectionType.md +++ b/services/fabricv4/docs/ServiceTokenConnectionType.md @@ -5,6 +5,12 @@ * `EVPL_VC` (value: `"EVPL_VC"`) +* `EVPLAN_VC` (value: `"EVPLAN_VC"`) + +* `EPLAN_VC` (value: `"EPLAN_VC"`) + +* `IPWAN_VC` (value: `"IPWAN_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/ServiceTokenIssuerSide.md b/services/fabricv4/docs/ServiceTokenIssuerSide.md new file mode 100644 index 00000000..7208ce16 --- /dev/null +++ b/services/fabricv4/docs/ServiceTokenIssuerSide.md @@ -0,0 +1,13 @@ +# ServiceTokenIssuerSide + +## Enum + + +* `ASIDE` (value: `"ASIDE"`) + +* `ZSIDE` (value: `"ZSIDE"`) + + +[[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/ServiceTokenType.md b/services/fabricv4/docs/ServiceTokenType.md index 9a881023..b85c06db 100644 --- a/services/fabricv4/docs/ServiceTokenType.md +++ b/services/fabricv4/docs/ServiceTokenType.md @@ -5,6 +5,8 @@ * `VC_TOKEN` (value: `"VC_TOKEN"`) +* `EPL_TOKEN` (value: `"EPL_TOKEN"`) + [[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/ServiceTokensApi.md b/services/fabricv4/docs/ServiceTokensApi.md index b183b324..8401958b 100644 --- a/services/fabricv4/docs/ServiceTokensApi.md +++ b/services/fabricv4/docs/ServiceTokensApi.md @@ -35,7 +35,7 @@ import ( ) func main() { - serviceToken := *openapiclient.NewServiceToken("Uuid_example") // ServiceToken | + serviceToken := *openapiclient.NewServiceToken() // ServiceToken | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -154,7 +154,7 @@ Name | Type | Description | Notes ## DeleteServiceTokenByUuid -> DeleteServiceTokenByUuid(ctx, serviceTokenId).Execute() +> ServiceToken DeleteServiceTokenByUuid(ctx, serviceTokenId).Execute() Delete Token by uuid @@ -177,11 +177,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ServiceTokensApi.DeleteServiceTokenByUuid(context.Background(), serviceTokenId).Execute() + resp, r, err := apiClient.ServiceTokensApi.DeleteServiceTokenByUuid(context.Background(), serviceTokenId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServiceTokensApi.DeleteServiceTokenByUuid``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `DeleteServiceTokenByUuid`: ServiceToken + fmt.Fprintf(os.Stdout, "Response from `ServiceTokensApi.DeleteServiceTokenByUuid`: %v\n", resp) } ``` @@ -204,7 +206,7 @@ Name | Type | Description | Notes ### Return type - (empty response body) +[**ServiceToken**](ServiceToken.md) ### Authorization @@ -360,7 +362,7 @@ Name | Type | Description | Notes ## SearchServiceTokens -> ServiceTokens SearchServiceTokens(ctx).ServiceTokenSearchRequest(serviceTokenSearchRequest).Execute() +> ServiceTokens SearchServiceTokens(ctx).ServiceTokenSearchRequest(serviceTokenSearchRequest).Offset(offset).Limit(limit).Execute() Search servicetokens @@ -380,10 +382,12 @@ import ( func main() { serviceTokenSearchRequest := *openapiclient.NewServiceTokenSearchRequest() // ServiceTokenSearchRequest | + offset := float32(8.14) // float32 | offset (optional) + limit := float32(8.14) // float32 | number of records to fetch (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ServiceTokensApi.SearchServiceTokens(context.Background()).ServiceTokenSearchRequest(serviceTokenSearchRequest).Execute() + resp, r, err := apiClient.ServiceTokensApi.SearchServiceTokens(context.Background()).ServiceTokenSearchRequest(serviceTokenSearchRequest).Offset(offset).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServiceTokensApi.SearchServiceTokens``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -405,6 +409,8 @@ Other parameters are passed through a pointer to a apiSearchServiceTokensRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **serviceTokenSearchRequest** | [**ServiceTokenSearchRequest**](ServiceTokenSearchRequest.md) | | + **offset** | **float32** | offset | + **limit** | **float32** | number of records to fetch | ### Return type @@ -446,7 +452,7 @@ import ( func main() { serviceTokenId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Service Token UUID - serviceTokenChangeOperation := []openapiclient.ServiceTokenChangeOperation{*openapiclient.NewServiceTokenChangeOperation(openapiclient.ServiceTokenChangeOperation_op("replace"), "/expirationDateTime", interface{}(123))} // []ServiceTokenChangeOperation | + serviceTokenChangeOperation := []openapiclient.ServiceTokenChangeOperation{*openapiclient.NewServiceTokenChangeOperation(openapiclient.precisionTimeChangeOperation_op("replace"), "/expirationDateTime", interface{}(123))} // []ServiceTokenChangeOperation | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/services/fabricv4/docs/SimplifiedAccountPortResponse.md b/services/fabricv4/docs/SimplifiedAccountPortResponse.md deleted file mode 100644 index a7475e87..00000000 --- a/services/fabricv4/docs/SimplifiedAccountPortResponse.md +++ /dev/null @@ -1,342 +0,0 @@ -# SimplifiedAccountPortResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountNumber** | Pointer to **string** | Account number | [optional] -**OrgId** | Pointer to **string** | Customer organization identifier | [optional] -**ResellerAccountNumber** | Pointer to **string** | Reseller account number | [optional] -**ResellerOrgId** | Pointer to **string** | Reseller customer organization identifier | [optional] -**AccountName** | Pointer to **string** | Account name | [optional] -**OrganizationName** | Pointer to **string** | Customer organization name | [optional] -**GlobalOrgId** | Pointer to **string** | Global organization identifier | [optional] -**GlobalOrganizationName** | Pointer to **string** | Global organization name | [optional] -**UcmId** | Pointer to **string** | Account ucmId | [optional] -**GlobalCustId** | Pointer to **string** | Account name | [optional] -**ResellerAccountName** | Pointer to **string** | Reseller account name | [optional] -**ResellerUcmId** | Pointer to **string** | Reseller account ucmId | [optional] - -## Methods - -### NewSimplifiedAccountPortResponse - -`func NewSimplifiedAccountPortResponse() *SimplifiedAccountPortResponse` - -NewSimplifiedAccountPortResponse instantiates a new SimplifiedAccountPortResponse 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 - -### NewSimplifiedAccountPortResponseWithDefaults - -`func NewSimplifiedAccountPortResponseWithDefaults() *SimplifiedAccountPortResponse` - -NewSimplifiedAccountPortResponseWithDefaults instantiates a new SimplifiedAccountPortResponse 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 - -### GetAccountNumber - -`func (o *SimplifiedAccountPortResponse) GetAccountNumber() string` - -GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. - -### GetAccountNumberOk - -`func (o *SimplifiedAccountPortResponse) GetAccountNumberOk() (*string, bool)` - -GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccountNumber - -`func (o *SimplifiedAccountPortResponse) SetAccountNumber(v string)` - -SetAccountNumber sets AccountNumber field to given value. - -### HasAccountNumber - -`func (o *SimplifiedAccountPortResponse) HasAccountNumber() bool` - -HasAccountNumber returns a boolean if a field has been set. - -### GetOrgId - -`func (o *SimplifiedAccountPortResponse) GetOrgId() string` - -GetOrgId returns the OrgId field if non-nil, zero value otherwise. - -### GetOrgIdOk - -`func (o *SimplifiedAccountPortResponse) GetOrgIdOk() (*string, bool)` - -GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrgId - -`func (o *SimplifiedAccountPortResponse) SetOrgId(v string)` - -SetOrgId sets OrgId field to given value. - -### HasOrgId - -`func (o *SimplifiedAccountPortResponse) HasOrgId() bool` - -HasOrgId returns a boolean if a field has been set. - -### GetResellerAccountNumber - -`func (o *SimplifiedAccountPortResponse) GetResellerAccountNumber() string` - -GetResellerAccountNumber returns the ResellerAccountNumber field if non-nil, zero value otherwise. - -### GetResellerAccountNumberOk - -`func (o *SimplifiedAccountPortResponse) GetResellerAccountNumberOk() (*string, bool)` - -GetResellerAccountNumberOk returns a tuple with the ResellerAccountNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResellerAccountNumber - -`func (o *SimplifiedAccountPortResponse) SetResellerAccountNumber(v string)` - -SetResellerAccountNumber sets ResellerAccountNumber field to given value. - -### HasResellerAccountNumber - -`func (o *SimplifiedAccountPortResponse) HasResellerAccountNumber() bool` - -HasResellerAccountNumber returns a boolean if a field has been set. - -### GetResellerOrgId - -`func (o *SimplifiedAccountPortResponse) GetResellerOrgId() string` - -GetResellerOrgId returns the ResellerOrgId field if non-nil, zero value otherwise. - -### GetResellerOrgIdOk - -`func (o *SimplifiedAccountPortResponse) GetResellerOrgIdOk() (*string, bool)` - -GetResellerOrgIdOk returns a tuple with the ResellerOrgId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResellerOrgId - -`func (o *SimplifiedAccountPortResponse) SetResellerOrgId(v string)` - -SetResellerOrgId sets ResellerOrgId field to given value. - -### HasResellerOrgId - -`func (o *SimplifiedAccountPortResponse) HasResellerOrgId() bool` - -HasResellerOrgId returns a boolean if a field has been set. - -### GetAccountName - -`func (o *SimplifiedAccountPortResponse) GetAccountName() string` - -GetAccountName returns the AccountName field if non-nil, zero value otherwise. - -### GetAccountNameOk - -`func (o *SimplifiedAccountPortResponse) GetAccountNameOk() (*string, bool)` - -GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccountName - -`func (o *SimplifiedAccountPortResponse) SetAccountName(v string)` - -SetAccountName sets AccountName field to given value. - -### HasAccountName - -`func (o *SimplifiedAccountPortResponse) HasAccountName() bool` - -HasAccountName returns a boolean if a field has been set. - -### GetOrganizationName - -`func (o *SimplifiedAccountPortResponse) GetOrganizationName() string` - -GetOrganizationName returns the OrganizationName field if non-nil, zero value otherwise. - -### GetOrganizationNameOk - -`func (o *SimplifiedAccountPortResponse) GetOrganizationNameOk() (*string, bool)` - -GetOrganizationNameOk returns a tuple with the OrganizationName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganizationName - -`func (o *SimplifiedAccountPortResponse) SetOrganizationName(v string)` - -SetOrganizationName sets OrganizationName field to given value. - -### HasOrganizationName - -`func (o *SimplifiedAccountPortResponse) HasOrganizationName() bool` - -HasOrganizationName returns a boolean if a field has been set. - -### GetGlobalOrgId - -`func (o *SimplifiedAccountPortResponse) GetGlobalOrgId() string` - -GetGlobalOrgId returns the GlobalOrgId field if non-nil, zero value otherwise. - -### GetGlobalOrgIdOk - -`func (o *SimplifiedAccountPortResponse) GetGlobalOrgIdOk() (*string, bool)` - -GetGlobalOrgIdOk returns a tuple with the GlobalOrgId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGlobalOrgId - -`func (o *SimplifiedAccountPortResponse) SetGlobalOrgId(v string)` - -SetGlobalOrgId sets GlobalOrgId field to given value. - -### HasGlobalOrgId - -`func (o *SimplifiedAccountPortResponse) HasGlobalOrgId() bool` - -HasGlobalOrgId returns a boolean if a field has been set. - -### GetGlobalOrganizationName - -`func (o *SimplifiedAccountPortResponse) GetGlobalOrganizationName() string` - -GetGlobalOrganizationName returns the GlobalOrganizationName field if non-nil, zero value otherwise. - -### GetGlobalOrganizationNameOk - -`func (o *SimplifiedAccountPortResponse) GetGlobalOrganizationNameOk() (*string, bool)` - -GetGlobalOrganizationNameOk returns a tuple with the GlobalOrganizationName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGlobalOrganizationName - -`func (o *SimplifiedAccountPortResponse) SetGlobalOrganizationName(v string)` - -SetGlobalOrganizationName sets GlobalOrganizationName field to given value. - -### HasGlobalOrganizationName - -`func (o *SimplifiedAccountPortResponse) HasGlobalOrganizationName() bool` - -HasGlobalOrganizationName returns a boolean if a field has been set. - -### GetUcmId - -`func (o *SimplifiedAccountPortResponse) GetUcmId() string` - -GetUcmId returns the UcmId field if non-nil, zero value otherwise. - -### GetUcmIdOk - -`func (o *SimplifiedAccountPortResponse) GetUcmIdOk() (*string, bool)` - -GetUcmIdOk returns a tuple with the UcmId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUcmId - -`func (o *SimplifiedAccountPortResponse) SetUcmId(v string)` - -SetUcmId sets UcmId field to given value. - -### HasUcmId - -`func (o *SimplifiedAccountPortResponse) HasUcmId() bool` - -HasUcmId returns a boolean if a field has been set. - -### GetGlobalCustId - -`func (o *SimplifiedAccountPortResponse) GetGlobalCustId() string` - -GetGlobalCustId returns the GlobalCustId field if non-nil, zero value otherwise. - -### GetGlobalCustIdOk - -`func (o *SimplifiedAccountPortResponse) GetGlobalCustIdOk() (*string, bool)` - -GetGlobalCustIdOk returns a tuple with the GlobalCustId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGlobalCustId - -`func (o *SimplifiedAccountPortResponse) SetGlobalCustId(v string)` - -SetGlobalCustId sets GlobalCustId field to given value. - -### HasGlobalCustId - -`func (o *SimplifiedAccountPortResponse) HasGlobalCustId() bool` - -HasGlobalCustId returns a boolean if a field has been set. - -### GetResellerAccountName - -`func (o *SimplifiedAccountPortResponse) GetResellerAccountName() string` - -GetResellerAccountName returns the ResellerAccountName field if non-nil, zero value otherwise. - -### GetResellerAccountNameOk - -`func (o *SimplifiedAccountPortResponse) GetResellerAccountNameOk() (*string, bool)` - -GetResellerAccountNameOk returns a tuple with the ResellerAccountName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResellerAccountName - -`func (o *SimplifiedAccountPortResponse) SetResellerAccountName(v string)` - -SetResellerAccountName sets ResellerAccountName field to given value. - -### HasResellerAccountName - -`func (o *SimplifiedAccountPortResponse) HasResellerAccountName() bool` - -HasResellerAccountName returns a boolean if a field has been set. - -### GetResellerUcmId - -`func (o *SimplifiedAccountPortResponse) GetResellerUcmId() string` - -GetResellerUcmId returns the ResellerUcmId field if non-nil, zero value otherwise. - -### GetResellerUcmIdOk - -`func (o *SimplifiedAccountPortResponse) GetResellerUcmIdOk() (*string, bool)` - -GetResellerUcmIdOk returns a tuple with the ResellerUcmId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResellerUcmId - -`func (o *SimplifiedAccountPortResponse) SetResellerUcmId(v string)` - -SetResellerUcmId sets ResellerUcmId field to given value. - -### HasResellerUcmId - -`func (o *SimplifiedAccountPortResponse) HasResellerUcmId() bool` - -HasResellerUcmId 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/SimplifiedMetadataEntity.md b/services/fabricv4/docs/SimplifiedMetadataEntity.md index 68496371..39af19a4 100644 --- a/services/fabricv4/docs/SimplifiedMetadataEntity.md +++ b/services/fabricv4/docs/SimplifiedMetadataEntity.md @@ -7,6 +7,13 @@ Name | Type | Description | Notes **Href** | Pointer to **string** | url to entity | [optional] **Uuid** | Pointer to **string** | Equinix assigned Identifier | [optional] **Type** | Pointer to **string** | Type of Port | [optional] +**CvpId** | Pointer to **int32** | Customer virtual port Id | [optional] +**Bandwidth** | Pointer to **float32** | Port Bandwidth | [optional] +**PortName** | Pointer to **string** | Port Name | [optional] +**EncapsulationProtocolType** | Pointer to **string** | Port Encapsulation | [optional] +**AccountName** | Pointer to **string** | Account Name | [optional] +**Priority** | Pointer to **string** | Port Priority | [optional] +**Location** | Pointer to [**SimplifiedLocation**](SimplifiedLocation.md) | | [optional] ## Methods @@ -102,6 +109,181 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetCvpId + +`func (o *SimplifiedMetadataEntity) GetCvpId() int32` + +GetCvpId returns the CvpId field if non-nil, zero value otherwise. + +### GetCvpIdOk + +`func (o *SimplifiedMetadataEntity) GetCvpIdOk() (*int32, bool)` + +GetCvpIdOk returns a tuple with the CvpId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvpId + +`func (o *SimplifiedMetadataEntity) SetCvpId(v int32)` + +SetCvpId sets CvpId field to given value. + +### HasCvpId + +`func (o *SimplifiedMetadataEntity) HasCvpId() bool` + +HasCvpId returns a boolean if a field has been set. + +### GetBandwidth + +`func (o *SimplifiedMetadataEntity) GetBandwidth() float32` + +GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. + +### GetBandwidthOk + +`func (o *SimplifiedMetadataEntity) GetBandwidthOk() (*float32, bool)` + +GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBandwidth + +`func (o *SimplifiedMetadataEntity) SetBandwidth(v float32)` + +SetBandwidth sets Bandwidth field to given value. + +### HasBandwidth + +`func (o *SimplifiedMetadataEntity) HasBandwidth() bool` + +HasBandwidth returns a boolean if a field has been set. + +### GetPortName + +`func (o *SimplifiedMetadataEntity) GetPortName() string` + +GetPortName returns the PortName field if non-nil, zero value otherwise. + +### GetPortNameOk + +`func (o *SimplifiedMetadataEntity) GetPortNameOk() (*string, bool)` + +GetPortNameOk returns a tuple with the PortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPortName + +`func (o *SimplifiedMetadataEntity) SetPortName(v string)` + +SetPortName sets PortName field to given value. + +### HasPortName + +`func (o *SimplifiedMetadataEntity) HasPortName() bool` + +HasPortName returns a boolean if a field has been set. + +### GetEncapsulationProtocolType + +`func (o *SimplifiedMetadataEntity) GetEncapsulationProtocolType() string` + +GetEncapsulationProtocolType returns the EncapsulationProtocolType field if non-nil, zero value otherwise. + +### GetEncapsulationProtocolTypeOk + +`func (o *SimplifiedMetadataEntity) GetEncapsulationProtocolTypeOk() (*string, bool)` + +GetEncapsulationProtocolTypeOk returns a tuple with the EncapsulationProtocolType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulationProtocolType + +`func (o *SimplifiedMetadataEntity) SetEncapsulationProtocolType(v string)` + +SetEncapsulationProtocolType sets EncapsulationProtocolType field to given value. + +### HasEncapsulationProtocolType + +`func (o *SimplifiedMetadataEntity) HasEncapsulationProtocolType() bool` + +HasEncapsulationProtocolType returns a boolean if a field has been set. + +### GetAccountName + +`func (o *SimplifiedMetadataEntity) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *SimplifiedMetadataEntity) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *SimplifiedMetadataEntity) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *SimplifiedMetadataEntity) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetPriority + +`func (o *SimplifiedMetadataEntity) GetPriority() string` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *SimplifiedMetadataEntity) GetPriorityOk() (*string, 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 *SimplifiedMetadataEntity) SetPriority(v string)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *SimplifiedMetadataEntity) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetLocation + +`func (o *SimplifiedMetadataEntity) GetLocation() SimplifiedLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SimplifiedMetadataEntity) GetLocationOk() (*SimplifiedLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *SimplifiedMetadataEntity) SetLocation(v SimplifiedLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SimplifiedMetadataEntity) HasLocation() bool` + +HasLocation 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/SimplifiedPort.md b/services/fabricv4/docs/SimplifiedPort.md index cc6d5be2..4f1f01d5 100644 --- a/services/fabricv4/docs/SimplifiedPort.md +++ b/services/fabricv4/docs/SimplifiedPort.md @@ -14,13 +14,12 @@ Name | Type | Description | Notes **ConnectionsCount** | Pointer to **int32** | Equinix assigned response attribute for Connection count | [optional] **Project** | Pointer to [**Project**](Project.md) | | [optional] **State** | Pointer to [**PortState**](PortState.md) | | [optional] -**CvpId** | Pointer to **string** | Equinix assigned response attribute for Unique ID for a virtual port. | [optional] **Operation** | Pointer to [**PortOperation**](PortOperation.md) | | [optional] **Account** | Pointer to [**SimplifiedAccount**](SimplifiedAccount.md) | | [optional] -**ServiceType** | Pointer to [**PortResponseServiceType**](PortResponseServiceType.md) | | [optional] -**Bandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port bandwidth in Mbps | [optional] -**AvailableBandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port available bandwidth in Mbps | [optional] -**UsedBandwidth** | Pointer to **int32** | Equinix assigned response attribute for Port used bandwidth in Mbps | [optional] +**ServiceType** | Pointer to [**PortServiceType**](PortServiceType.md) | | [optional] +**Bandwidth** | Pointer to **int64** | Equinix assigned response attribute for Port bandwidth in Mbps | [optional] +**AvailableBandwidth** | Pointer to **int64** | Equinix assigned response attribute for Port available bandwidth in Mbps | [optional] +**UsedBandwidth** | Pointer to **int64** | Equinix assigned response attribute for Port used bandwidth in Mbps | [optional] **Location** | Pointer to [**SimplifiedLocation**](SimplifiedLocation.md) | | [optional] **Device** | Pointer to [**PortDevice**](PortDevice.md) | | [optional] **Interface** | Pointer to [**PortInterface**](PortInterface.md) | | [optional] @@ -29,6 +28,7 @@ Name | Type | Description | Notes **Redundancy** | Pointer to [**PortRedundancy**](PortRedundancy.md) | | [optional] **Encapsulation** | Pointer to [**PortEncapsulation**](PortEncapsulation.md) | | [optional] **LagEnabled** | Pointer to **bool** | If LAG enabled | [optional] +**Package** | Pointer to [**Package**](Package.md) | | [optional] **Settings** | Pointer to [**PortSettings**](PortSettings.md) | | [optional] **PhysicalPortQuantity** | Pointer to **int32** | Number of physical ports | [optional] **AdditionalInfo** | Pointer to [**[]PortAdditionalInfo**](PortAdditionalInfo.md) | Port additional information | [optional] @@ -303,31 +303,6 @@ SetState sets State field to given value. HasState returns a boolean if a field has been set. -### GetCvpId - -`func (o *SimplifiedPort) GetCvpId() string` - -GetCvpId returns the CvpId field if non-nil, zero value otherwise. - -### GetCvpIdOk - -`func (o *SimplifiedPort) GetCvpIdOk() (*string, bool)` - -GetCvpIdOk returns a tuple with the CvpId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCvpId - -`func (o *SimplifiedPort) SetCvpId(v string)` - -SetCvpId sets CvpId field to given value. - -### HasCvpId - -`func (o *SimplifiedPort) HasCvpId() bool` - -HasCvpId returns a boolean if a field has been set. - ### GetOperation `func (o *SimplifiedPort) GetOperation() PortOperation` @@ -380,20 +355,20 @@ HasAccount returns a boolean if a field has been set. ### GetServiceType -`func (o *SimplifiedPort) GetServiceType() PortResponseServiceType` +`func (o *SimplifiedPort) GetServiceType() PortServiceType` GetServiceType returns the ServiceType field if non-nil, zero value otherwise. ### GetServiceTypeOk -`func (o *SimplifiedPort) GetServiceTypeOk() (*PortResponseServiceType, bool)` +`func (o *SimplifiedPort) GetServiceTypeOk() (*PortServiceType, bool)` GetServiceTypeOk returns a tuple with the ServiceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceType -`func (o *SimplifiedPort) SetServiceType(v PortResponseServiceType)` +`func (o *SimplifiedPort) SetServiceType(v PortServiceType)` SetServiceType sets ServiceType field to given value. @@ -405,20 +380,20 @@ HasServiceType returns a boolean if a field has been set. ### GetBandwidth -`func (o *SimplifiedPort) GetBandwidth() int32` +`func (o *SimplifiedPort) GetBandwidth() int64` GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. ### GetBandwidthOk -`func (o *SimplifiedPort) GetBandwidthOk() (*int32, bool)` +`func (o *SimplifiedPort) GetBandwidthOk() (*int64, bool)` GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBandwidth -`func (o *SimplifiedPort) SetBandwidth(v int32)` +`func (o *SimplifiedPort) SetBandwidth(v int64)` SetBandwidth sets Bandwidth field to given value. @@ -430,20 +405,20 @@ HasBandwidth returns a boolean if a field has been set. ### GetAvailableBandwidth -`func (o *SimplifiedPort) GetAvailableBandwidth() int32` +`func (o *SimplifiedPort) GetAvailableBandwidth() int64` GetAvailableBandwidth returns the AvailableBandwidth field if non-nil, zero value otherwise. ### GetAvailableBandwidthOk -`func (o *SimplifiedPort) GetAvailableBandwidthOk() (*int32, bool)` +`func (o *SimplifiedPort) GetAvailableBandwidthOk() (*int64, bool)` GetAvailableBandwidthOk returns a tuple with the AvailableBandwidth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAvailableBandwidth -`func (o *SimplifiedPort) SetAvailableBandwidth(v int32)` +`func (o *SimplifiedPort) SetAvailableBandwidth(v int64)` SetAvailableBandwidth sets AvailableBandwidth field to given value. @@ -455,20 +430,20 @@ HasAvailableBandwidth returns a boolean if a field has been set. ### GetUsedBandwidth -`func (o *SimplifiedPort) GetUsedBandwidth() int32` +`func (o *SimplifiedPort) GetUsedBandwidth() int64` GetUsedBandwidth returns the UsedBandwidth field if non-nil, zero value otherwise. ### GetUsedBandwidthOk -`func (o *SimplifiedPort) GetUsedBandwidthOk() (*int32, bool)` +`func (o *SimplifiedPort) GetUsedBandwidthOk() (*int64, bool)` GetUsedBandwidthOk returns a tuple with the UsedBandwidth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUsedBandwidth -`func (o *SimplifiedPort) SetUsedBandwidth(v int32)` +`func (o *SimplifiedPort) SetUsedBandwidth(v int64)` SetUsedBandwidth sets UsedBandwidth field to given value. @@ -678,6 +653,31 @@ SetLagEnabled sets LagEnabled field to given value. HasLagEnabled returns a boolean if a field has been set. +### GetPackage + +`func (o *SimplifiedPort) GetPackage() Package` + +GetPackage returns the Package field if non-nil, zero value otherwise. + +### GetPackageOk + +`func (o *SimplifiedPort) GetPackageOk() (*Package, bool)` + +GetPackageOk returns a tuple with the Package field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackage + +`func (o *SimplifiedPort) SetPackage(v Package)` + +SetPackage sets Package field to given value. + +### HasPackage + +`func (o *SimplifiedPort) HasPackage() bool` + +HasPackage returns a boolean if a field has been set. + ### GetSettings `func (o *SimplifiedPort) GetSettings() PortSettings` diff --git a/services/fabricv4/docs/SimplifiedTokenNetwork.md b/services/fabricv4/docs/SimplifiedTokenNetwork.md new file mode 100644 index 00000000..67b46e93 --- /dev/null +++ b/services/fabricv4/docs/SimplifiedTokenNetwork.md @@ -0,0 +1,186 @@ +# SimplifiedTokenNetwork + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | url to entity | [optional] +**Uuid** | Pointer to **string** | Network Identifier | [optional] +**Type** | Pointer to [**SimplifiedTokenNetworkType**](SimplifiedTokenNetworkType.md) | | [optional] +**Name** | Pointer to **string** | Network Name | [optional] +**Scope** | Pointer to [**SimplifiedTokenNetworkScope**](SimplifiedTokenNetworkScope.md) | | [optional] +**Location** | Pointer to [**SimplifiedLocation**](SimplifiedLocation.md) | | [optional] + +## Methods + +### NewSimplifiedTokenNetwork + +`func NewSimplifiedTokenNetwork() *SimplifiedTokenNetwork` + +NewSimplifiedTokenNetwork instantiates a new SimplifiedTokenNetwork 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 + +### NewSimplifiedTokenNetworkWithDefaults + +`func NewSimplifiedTokenNetworkWithDefaults() *SimplifiedTokenNetwork` + +NewSimplifiedTokenNetworkWithDefaults instantiates a new SimplifiedTokenNetwork 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 *SimplifiedTokenNetwork) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *SimplifiedTokenNetwork) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetUuid + +`func (o *SimplifiedTokenNetwork) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *SimplifiedTokenNetwork) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetType + +`func (o *SimplifiedTokenNetwork) GetType() SimplifiedTokenNetworkType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SimplifiedTokenNetwork) GetTypeOk() (*SimplifiedTokenNetworkType, 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 *SimplifiedTokenNetwork) SetType(v SimplifiedTokenNetworkType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SimplifiedTokenNetwork) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *SimplifiedTokenNetwork) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SimplifiedTokenNetwork) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SimplifiedTokenNetwork) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SimplifiedTokenNetwork) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetScope + +`func (o *SimplifiedTokenNetwork) GetScope() SimplifiedTokenNetworkScope` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *SimplifiedTokenNetwork) GetScopeOk() (*SimplifiedTokenNetworkScope, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *SimplifiedTokenNetwork) SetScope(v SimplifiedTokenNetworkScope)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *SimplifiedTokenNetwork) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### GetLocation + +`func (o *SimplifiedTokenNetwork) GetLocation() SimplifiedLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SimplifiedTokenNetwork) GetLocationOk() (*SimplifiedLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *SimplifiedTokenNetwork) SetLocation(v SimplifiedLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SimplifiedTokenNetwork) HasLocation() bool` + +HasLocation 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/ServiceTokenChangeOperationOp.md b/services/fabricv4/docs/SimplifiedTokenNetworkScope.md similarity index 58% rename from services/fabricv4/docs/ServiceTokenChangeOperationOp.md rename to services/fabricv4/docs/SimplifiedTokenNetworkScope.md index 6067b551..4868b950 100644 --- a/services/fabricv4/docs/ServiceTokenChangeOperationOp.md +++ b/services/fabricv4/docs/SimplifiedTokenNetworkScope.md @@ -1,13 +1,13 @@ -# ServiceTokenChangeOperationOp +# SimplifiedTokenNetworkScope ## Enum -* `REPLACE` (value: `"replace"`) +* `LOCAL` (value: `"LOCAL"`) -* `ADD` (value: `"add"`) +* `REGIONAL` (value: `"REGIONAL"`) -* `REMOVE` (value: `"remove"`) +* `GLOBAL` (value: `"GLOBAL"`) [[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/SimplifiedTokenNetworkType.md b/services/fabricv4/docs/SimplifiedTokenNetworkType.md new file mode 100644 index 00000000..fcd5bc36 --- /dev/null +++ b/services/fabricv4/docs/SimplifiedTokenNetworkType.md @@ -0,0 +1,15 @@ +# SimplifiedTokenNetworkType + +## Enum + + +* `EVPLAN` (value: `"EVPLAN"`) + +* `EPLAN` (value: `"EPLAN"`) + +* `IPWAN` (value: `"IPWAN"`) + + +[[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/SimplifiedVirtualDevice.md b/services/fabricv4/docs/SimplifiedVirtualDevice.md new file mode 100644 index 00000000..9e23fcb4 --- /dev/null +++ b/services/fabricv4/docs/SimplifiedVirtualDevice.md @@ -0,0 +1,160 @@ +# SimplifiedVirtualDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | url to entity | [optional] +**Uuid** | Pointer to **string** | Network Edge assigned Virtual Device Identifier | [optional] +**Type** | Pointer to [**SimplifiedVirtualDeviceType**](SimplifiedVirtualDeviceType.md) | | [optional] +**Name** | Pointer to **string** | Customer-assigned Virtual Device name | [optional] +**Cluster** | Pointer to **string** | Virtual Device Cluster Information | [optional] + +## Methods + +### NewSimplifiedVirtualDevice + +`func NewSimplifiedVirtualDevice() *SimplifiedVirtualDevice` + +NewSimplifiedVirtualDevice instantiates a new SimplifiedVirtualDevice 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 + +### NewSimplifiedVirtualDeviceWithDefaults + +`func NewSimplifiedVirtualDeviceWithDefaults() *SimplifiedVirtualDevice` + +NewSimplifiedVirtualDeviceWithDefaults instantiates a new SimplifiedVirtualDevice 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 *SimplifiedVirtualDevice) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *SimplifiedVirtualDevice) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetUuid + +`func (o *SimplifiedVirtualDevice) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *SimplifiedVirtualDevice) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetType + +`func (o *SimplifiedVirtualDevice) GetType() SimplifiedVirtualDeviceType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SimplifiedVirtualDevice) GetTypeOk() (*SimplifiedVirtualDeviceType, 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 *SimplifiedVirtualDevice) SetType(v SimplifiedVirtualDeviceType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SimplifiedVirtualDevice) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *SimplifiedVirtualDevice) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SimplifiedVirtualDevice) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SimplifiedVirtualDevice) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SimplifiedVirtualDevice) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCluster + +`func (o *SimplifiedVirtualDevice) GetCluster() string` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *SimplifiedVirtualDevice) GetClusterOk() (*string, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *SimplifiedVirtualDevice) SetCluster(v string)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *SimplifiedVirtualDevice) HasCluster() bool` + +HasCluster 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/SimplifiedVirtualDeviceType.md b/services/fabricv4/docs/SimplifiedVirtualDeviceType.md new file mode 100644 index 00000000..87d2c7b0 --- /dev/null +++ b/services/fabricv4/docs/SimplifiedVirtualDeviceType.md @@ -0,0 +1,11 @@ +# SimplifiedVirtualDeviceType + +## Enum + + +* `EDGE` (value: `"EDGE"`) + + +[[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/Stream.md b/services/fabricv4/docs/Stream.md new file mode 100644 index 00000000..eb57ec75 --- /dev/null +++ b/services/fabricv4/docs/Stream.md @@ -0,0 +1,316 @@ +# Stream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Stream URI | [optional] [readonly] +**Uuid** | Pointer to **string** | Equinix-assigned access point identifier | [optional] +**State** | Pointer to **string** | Stream provision state | [optional] +**AssetsCount** | Pointer to **int32** | Stream assets count | [optional] +**StreamSubscriptionsCount** | Pointer to **int32** | Stream subscriptions count | [optional] +**Changelog** | Pointer to [**Changelog**](Changelog.md) | | [optional] +**Type** | Pointer to [**StreamPostRequestType**](StreamPostRequestType.md) | | [optional] +**Name** | Pointer to **string** | Customer-provided stream name | [optional] +**Description** | Pointer to **string** | Customer-provided stream description | [optional] +**Project** | Pointer to [**Project**](Project.md) | | [optional] +**Enabled** | Pointer to **bool** | Stream enabled status | [optional] + +## Methods + +### NewStream + +`func NewStream() *Stream` + +NewStream instantiates a new Stream 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 + +### NewStreamWithDefaults + +`func NewStreamWithDefaults() *Stream` + +NewStreamWithDefaults instantiates a new Stream 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 *Stream) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Stream) 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 *Stream) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Stream) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetUuid + +`func (o *Stream) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *Stream) 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 *Stream) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *Stream) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetState + +`func (o *Stream) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *Stream) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *Stream) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *Stream) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetAssetsCount + +`func (o *Stream) GetAssetsCount() int32` + +GetAssetsCount returns the AssetsCount field if non-nil, zero value otherwise. + +### GetAssetsCountOk + +`func (o *Stream) GetAssetsCountOk() (*int32, bool)` + +GetAssetsCountOk returns a tuple with the AssetsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetsCount + +`func (o *Stream) SetAssetsCount(v int32)` + +SetAssetsCount sets AssetsCount field to given value. + +### HasAssetsCount + +`func (o *Stream) HasAssetsCount() bool` + +HasAssetsCount returns a boolean if a field has been set. + +### GetStreamSubscriptionsCount + +`func (o *Stream) GetStreamSubscriptionsCount() int32` + +GetStreamSubscriptionsCount returns the StreamSubscriptionsCount field if non-nil, zero value otherwise. + +### GetStreamSubscriptionsCountOk + +`func (o *Stream) GetStreamSubscriptionsCountOk() (*int32, bool)` + +GetStreamSubscriptionsCountOk returns a tuple with the StreamSubscriptionsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreamSubscriptionsCount + +`func (o *Stream) SetStreamSubscriptionsCount(v int32)` + +SetStreamSubscriptionsCount sets StreamSubscriptionsCount field to given value. + +### HasStreamSubscriptionsCount + +`func (o *Stream) HasStreamSubscriptionsCount() bool` + +HasStreamSubscriptionsCount returns a boolean if a field has been set. + +### GetChangelog + +`func (o *Stream) GetChangelog() Changelog` + +GetChangelog returns the Changelog field if non-nil, zero value otherwise. + +### GetChangelogOk + +`func (o *Stream) GetChangelogOk() (*Changelog, bool)` + +GetChangelogOk returns a tuple with the Changelog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangelog + +`func (o *Stream) SetChangelog(v Changelog)` + +SetChangelog sets Changelog field to given value. + +### HasChangelog + +`func (o *Stream) HasChangelog() bool` + +HasChangelog returns a boolean if a field has been set. + +### GetType + +`func (o *Stream) GetType() StreamPostRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Stream) GetTypeOk() (*StreamPostRequestType, 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 *Stream) SetType(v StreamPostRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Stream) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *Stream) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Stream) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Stream) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Stream) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *Stream) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Stream) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Stream) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Stream) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetProject + +`func (o *Stream) GetProject() Project` + +GetProject returns the Project field if non-nil, zero value otherwise. + +### GetProjectOk + +`func (o *Stream) 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 *Stream) SetProject(v Project)` + +SetProject sets Project field to given value. + +### HasProject + +`func (o *Stream) HasProject() bool` + +HasProject returns a boolean if a field has been set. + +### GetEnabled + +`func (o *Stream) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *Stream) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *Stream) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *Stream) HasEnabled() bool` + +HasEnabled 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/StreamAsset.md b/services/fabricv4/docs/StreamAsset.md new file mode 100644 index 00000000..1bbd3d0d --- /dev/null +++ b/services/fabricv4/docs/StreamAsset.md @@ -0,0 +1,134 @@ +# StreamAsset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Stream Asset URI | [optional] [readonly] +**Uuid** | Pointer to **string** | Equinix-assigned access point identifier | [optional] +**MetricsEnabled** | Pointer to **bool** | enable metric | [optional] +**AttachmentStatus** | Pointer to [**StreamAssetAttachmentStatus**](StreamAssetAttachmentStatus.md) | | [optional] + +## Methods + +### NewStreamAsset + +`func NewStreamAsset() *StreamAsset` + +NewStreamAsset instantiates a new StreamAsset 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 + +### NewStreamAssetWithDefaults + +`func NewStreamAssetWithDefaults() *StreamAsset` + +NewStreamAssetWithDefaults instantiates a new StreamAsset 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 *StreamAsset) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *StreamAsset) 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 *StreamAsset) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *StreamAsset) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetUuid + +`func (o *StreamAsset) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *StreamAsset) 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 *StreamAsset) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *StreamAsset) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetMetricsEnabled + +`func (o *StreamAsset) GetMetricsEnabled() bool` + +GetMetricsEnabled returns the MetricsEnabled field if non-nil, zero value otherwise. + +### GetMetricsEnabledOk + +`func (o *StreamAsset) GetMetricsEnabledOk() (*bool, bool)` + +GetMetricsEnabledOk returns a tuple with the MetricsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricsEnabled + +`func (o *StreamAsset) SetMetricsEnabled(v bool)` + +SetMetricsEnabled sets MetricsEnabled field to given value. + +### HasMetricsEnabled + +`func (o *StreamAsset) HasMetricsEnabled() bool` + +HasMetricsEnabled returns a boolean if a field has been set. + +### GetAttachmentStatus + +`func (o *StreamAsset) GetAttachmentStatus() StreamAssetAttachmentStatus` + +GetAttachmentStatus returns the AttachmentStatus field if non-nil, zero value otherwise. + +### GetAttachmentStatusOk + +`func (o *StreamAsset) GetAttachmentStatusOk() (*StreamAssetAttachmentStatus, bool)` + +GetAttachmentStatusOk returns a tuple with the AttachmentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachmentStatus + +`func (o *StreamAsset) SetAttachmentStatus(v StreamAssetAttachmentStatus)` + +SetAttachmentStatus sets AttachmentStatus field to given value. + +### HasAttachmentStatus + +`func (o *StreamAsset) HasAttachmentStatus() bool` + +HasAttachmentStatus 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/StreamAssetAttachmentStatus.md b/services/fabricv4/docs/StreamAssetAttachmentStatus.md new file mode 100644 index 00000000..67927bed --- /dev/null +++ b/services/fabricv4/docs/StreamAssetAttachmentStatus.md @@ -0,0 +1,19 @@ +# StreamAssetAttachmentStatus + +## Enum + + +* `ATTACHING` (value: `"ATTACHING"`) + +* `ATTACHED` (value: `"ATTACHED"`) + +* `DETACHED` (value: `"DETACHED"`) + +* `DETACHING` (value: `"DETACHING"`) + +* `FAILED` (value: `"FAILED"`) + + +[[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/StreamAssetFilter.md b/services/fabricv4/docs/StreamAssetFilter.md new file mode 100644 index 00000000..09aeb456 --- /dev/null +++ b/services/fabricv4/docs/StreamAssetFilter.md @@ -0,0 +1,134 @@ +# StreamAssetFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Property** | Pointer to **string** | Possible field names to use on filters: * `/uuid` - Asset uuid * `/streamUuid` - Stream uuid * `/projectId` - Asset projectId * `/_*` - all-category search | [optional] +**Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `ILIKE` - case-insensitive like | [optional] +**Values** | Pointer to **[]string** | | [optional] +**Or** | Pointer to [**[]StreamAssetSimpleExpression**](StreamAssetSimpleExpression.md) | | [optional] + +## Methods + +### NewStreamAssetFilter + +`func NewStreamAssetFilter() *StreamAssetFilter` + +NewStreamAssetFilter instantiates a new StreamAssetFilter 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 + +### NewStreamAssetFilterWithDefaults + +`func NewStreamAssetFilterWithDefaults() *StreamAssetFilter` + +NewStreamAssetFilterWithDefaults instantiates a new StreamAssetFilter 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 + +### GetProperty + +`func (o *StreamAssetFilter) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *StreamAssetFilter) GetPropertyOk() (*string, 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 *StreamAssetFilter) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *StreamAssetFilter) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *StreamAssetFilter) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *StreamAssetFilter) GetOperatorOk() (*string, 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 *StreamAssetFilter) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *StreamAssetFilter) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *StreamAssetFilter) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *StreamAssetFilter) 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 *StreamAssetFilter) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *StreamAssetFilter) HasValues() bool` + +HasValues returns a boolean if a field has been set. + +### GetOr + +`func (o *StreamAssetFilter) GetOr() []StreamAssetSimpleExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *StreamAssetFilter) GetOrOk() (*[]StreamAssetSimpleExpression, 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 *StreamAssetFilter) SetOr(v []StreamAssetSimpleExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *StreamAssetFilter) HasOr() bool` + +HasOr 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/StreamAssetFilters.md b/services/fabricv4/docs/StreamAssetFilters.md new file mode 100644 index 00000000..b43a8f25 --- /dev/null +++ b/services/fabricv4/docs/StreamAssetFilters.md @@ -0,0 +1,56 @@ +# StreamAssetFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**And** | Pointer to [**[]StreamAssetFilter**](StreamAssetFilter.md) | | [optional] + +## Methods + +### NewStreamAssetFilters + +`func NewStreamAssetFilters() *StreamAssetFilters` + +NewStreamAssetFilters instantiates a new StreamAssetFilters 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 + +### NewStreamAssetFiltersWithDefaults + +`func NewStreamAssetFiltersWithDefaults() *StreamAssetFilters` + +NewStreamAssetFiltersWithDefaults instantiates a new StreamAssetFilters 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 *StreamAssetFilters) GetAnd() []StreamAssetFilter` + +GetAnd returns the And field if non-nil, zero value otherwise. + +### GetAndOk + +`func (o *StreamAssetFilters) GetAndOk() (*[]StreamAssetFilter, 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 *StreamAssetFilters) SetAnd(v []StreamAssetFilter)` + +SetAnd sets And field to given value. + +### HasAnd + +`func (o *StreamAssetFilters) HasAnd() bool` + +HasAnd 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/StreamAssetOrFilter.md b/services/fabricv4/docs/StreamAssetOrFilter.md new file mode 100644 index 00000000..6a266f8d --- /dev/null +++ b/services/fabricv4/docs/StreamAssetOrFilter.md @@ -0,0 +1,56 @@ +# StreamAssetOrFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Or** | Pointer to [**[]StreamAssetSimpleExpression**](StreamAssetSimpleExpression.md) | | [optional] + +## Methods + +### NewStreamAssetOrFilter + +`func NewStreamAssetOrFilter() *StreamAssetOrFilter` + +NewStreamAssetOrFilter instantiates a new StreamAssetOrFilter 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 + +### NewStreamAssetOrFilterWithDefaults + +`func NewStreamAssetOrFilterWithDefaults() *StreamAssetOrFilter` + +NewStreamAssetOrFilterWithDefaults instantiates a new StreamAssetOrFilter 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 + +### GetOr + +`func (o *StreamAssetOrFilter) GetOr() []StreamAssetSimpleExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *StreamAssetOrFilter) GetOrOk() (*[]StreamAssetSimpleExpression, 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 *StreamAssetOrFilter) SetOr(v []StreamAssetSimpleExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *StreamAssetOrFilter) HasOr() bool` + +HasOr 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/StreamAssetPutRequest.md b/services/fabricv4/docs/StreamAssetPutRequest.md new file mode 100644 index 00000000..2d1342dd --- /dev/null +++ b/services/fabricv4/docs/StreamAssetPutRequest.md @@ -0,0 +1,56 @@ +# StreamAssetPutRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MetricsEnabled** | Pointer to **bool** | enable metric | [optional] + +## Methods + +### NewStreamAssetPutRequest + +`func NewStreamAssetPutRequest() *StreamAssetPutRequest` + +NewStreamAssetPutRequest instantiates a new StreamAssetPutRequest 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 + +### NewStreamAssetPutRequestWithDefaults + +`func NewStreamAssetPutRequestWithDefaults() *StreamAssetPutRequest` + +NewStreamAssetPutRequestWithDefaults instantiates a new StreamAssetPutRequest 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 + +### GetMetricsEnabled + +`func (o *StreamAssetPutRequest) GetMetricsEnabled() bool` + +GetMetricsEnabled returns the MetricsEnabled field if non-nil, zero value otherwise. + +### GetMetricsEnabledOk + +`func (o *StreamAssetPutRequest) GetMetricsEnabledOk() (*bool, bool)` + +GetMetricsEnabledOk returns a tuple with the MetricsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricsEnabled + +`func (o *StreamAssetPutRequest) SetMetricsEnabled(v bool)` + +SetMetricsEnabled sets MetricsEnabled field to given value. + +### HasMetricsEnabled + +`func (o *StreamAssetPutRequest) HasMetricsEnabled() bool` + +HasMetricsEnabled 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/StreamAssetSearchRequest.md b/services/fabricv4/docs/StreamAssetSearchRequest.md new file mode 100644 index 00000000..b8054693 --- /dev/null +++ b/services/fabricv4/docs/StreamAssetSearchRequest.md @@ -0,0 +1,108 @@ +# StreamAssetSearchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filter** | Pointer to [**StreamAssetFilters**](StreamAssetFilters.md) | | [optional] +**Pagination** | Pointer to [**PaginationRequest**](PaginationRequest.md) | | [optional] +**Sort** | Pointer to [**[]StreamAssetSortCriteria**](StreamAssetSortCriteria.md) | | [optional] + +## Methods + +### NewStreamAssetSearchRequest + +`func NewStreamAssetSearchRequest() *StreamAssetSearchRequest` + +NewStreamAssetSearchRequest instantiates a new StreamAssetSearchRequest 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 + +### NewStreamAssetSearchRequestWithDefaults + +`func NewStreamAssetSearchRequestWithDefaults() *StreamAssetSearchRequest` + +NewStreamAssetSearchRequestWithDefaults instantiates a new StreamAssetSearchRequest 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 *StreamAssetSearchRequest) GetFilter() StreamAssetFilters` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *StreamAssetSearchRequest) GetFilterOk() (*StreamAssetFilters, 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 *StreamAssetSearchRequest) SetFilter(v StreamAssetFilters)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *StreamAssetSearchRequest) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### GetPagination + +`func (o *StreamAssetSearchRequest) GetPagination() PaginationRequest` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *StreamAssetSearchRequest) GetPaginationOk() (*PaginationRequest, 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 *StreamAssetSearchRequest) SetPagination(v PaginationRequest)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *StreamAssetSearchRequest) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetSort + +`func (o *StreamAssetSearchRequest) GetSort() []StreamAssetSortCriteria` + +GetSort returns the Sort field if non-nil, zero value otherwise. + +### GetSortOk + +`func (o *StreamAssetSearchRequest) GetSortOk() (*[]StreamAssetSortCriteria, bool)` + +GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSort + +`func (o *StreamAssetSearchRequest) SetSort(v []StreamAssetSortCriteria)` + +SetSort sets Sort field to given value. + +### HasSort + +`func (o *StreamAssetSearchRequest) HasSort() bool` + +HasSort 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/StreamAssetSimpleExpression.md b/services/fabricv4/docs/StreamAssetSimpleExpression.md new file mode 100644 index 00000000..4966c386 --- /dev/null +++ b/services/fabricv4/docs/StreamAssetSimpleExpression.md @@ -0,0 +1,108 @@ +# StreamAssetSimpleExpression + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Property** | Pointer to **string** | Possible field names to use on filters: * `/uuid` - Asset uuid * `/streamUuid` - Stream uuid * `/projectId` - Asset projectId * `/_*` - all-category search | [optional] +**Operator** | Pointer to **string** | Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `ILIKE` - case-insensitive like | [optional] +**Values** | Pointer to **[]string** | | [optional] + +## Methods + +### NewStreamAssetSimpleExpression + +`func NewStreamAssetSimpleExpression() *StreamAssetSimpleExpression` + +NewStreamAssetSimpleExpression instantiates a new StreamAssetSimpleExpression 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 + +### NewStreamAssetSimpleExpressionWithDefaults + +`func NewStreamAssetSimpleExpressionWithDefaults() *StreamAssetSimpleExpression` + +NewStreamAssetSimpleExpressionWithDefaults instantiates a new StreamAssetSimpleExpression 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 + +### GetProperty + +`func (o *StreamAssetSimpleExpression) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *StreamAssetSimpleExpression) GetPropertyOk() (*string, 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 *StreamAssetSimpleExpression) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *StreamAssetSimpleExpression) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *StreamAssetSimpleExpression) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *StreamAssetSimpleExpression) GetOperatorOk() (*string, 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 *StreamAssetSimpleExpression) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *StreamAssetSimpleExpression) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *StreamAssetSimpleExpression) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *StreamAssetSimpleExpression) 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 *StreamAssetSimpleExpression) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *StreamAssetSimpleExpression) 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/StreamAssetSortBy.md b/services/fabricv4/docs/StreamAssetSortBy.md new file mode 100644 index 00000000..3d3ccac3 --- /dev/null +++ b/services/fabricv4/docs/StreamAssetSortBy.md @@ -0,0 +1,11 @@ +# StreamAssetSortBy + +## Enum + + +* `UUID` (value: `"/uuid"`) + + +[[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/StreamAssetSortCriteria.md b/services/fabricv4/docs/StreamAssetSortCriteria.md new file mode 100644 index 00000000..cab892dd --- /dev/null +++ b/services/fabricv4/docs/StreamAssetSortCriteria.md @@ -0,0 +1,82 @@ +# StreamAssetSortCriteria + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Direction** | Pointer to [**StreamAssetSortDirection**](StreamAssetSortDirection.md) | | [optional] [default to STREAMASSETSORTDIRECTION_DESC] +**Property** | Pointer to [**StreamAssetSortBy**](StreamAssetSortBy.md) | | [optional] [default to STREAMASSETSORTBY_UUID] + +## Methods + +### NewStreamAssetSortCriteria + +`func NewStreamAssetSortCriteria() *StreamAssetSortCriteria` + +NewStreamAssetSortCriteria instantiates a new StreamAssetSortCriteria 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 + +### NewStreamAssetSortCriteriaWithDefaults + +`func NewStreamAssetSortCriteriaWithDefaults() *StreamAssetSortCriteria` + +NewStreamAssetSortCriteriaWithDefaults instantiates a new StreamAssetSortCriteria 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 + +### GetDirection + +`func (o *StreamAssetSortCriteria) GetDirection() StreamAssetSortDirection` + +GetDirection returns the Direction field if non-nil, zero value otherwise. + +### GetDirectionOk + +`func (o *StreamAssetSortCriteria) GetDirectionOk() (*StreamAssetSortDirection, bool)` + +GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirection + +`func (o *StreamAssetSortCriteria) SetDirection(v StreamAssetSortDirection)` + +SetDirection sets Direction field to given value. + +### HasDirection + +`func (o *StreamAssetSortCriteria) HasDirection() bool` + +HasDirection returns a boolean if a field has been set. + +### GetProperty + +`func (o *StreamAssetSortCriteria) GetProperty() StreamAssetSortBy` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *StreamAssetSortCriteria) GetPropertyOk() (*StreamAssetSortBy, 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 *StreamAssetSortCriteria) SetProperty(v StreamAssetSortBy)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *StreamAssetSortCriteria) HasProperty() bool` + +HasProperty 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/StreamAssetSortDirection.md b/services/fabricv4/docs/StreamAssetSortDirection.md new file mode 100644 index 00000000..35cbf706 --- /dev/null +++ b/services/fabricv4/docs/StreamAssetSortDirection.md @@ -0,0 +1,13 @@ +# StreamAssetSortDirection + +## Enum + + +* `DESC` (value: `"DESC"`) + +* `ASC` (value: `"ASC"`) + + +[[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/StreamFilter.md b/services/fabricv4/docs/StreamFilter.md new file mode 100644 index 00000000..094eae98 --- /dev/null +++ b/services/fabricv4/docs/StreamFilter.md @@ -0,0 +1,134 @@ +# StreamFilter + +## Properties + +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] +**Or** | Pointer to [**[]StreamFilterSimpleExpression**](StreamFilterSimpleExpression.md) | | [optional] + +## Methods + +### NewStreamFilter + +`func NewStreamFilter() *StreamFilter` + +NewStreamFilter instantiates a new StreamFilter 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 + +### NewStreamFilterWithDefaults + +`func NewStreamFilterWithDefaults() *StreamFilter` + +NewStreamFilterWithDefaults instantiates a new StreamFilter 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 + +### GetProperty + +`func (o *StreamFilter) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *StreamFilter) GetPropertyOk() (*string, 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 *StreamFilter) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *StreamFilter) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *StreamFilter) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *StreamFilter) GetOperatorOk() (*string, 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 *StreamFilter) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *StreamFilter) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *StreamFilter) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *StreamFilter) 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 *StreamFilter) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *StreamFilter) HasValues() bool` + +HasValues returns a boolean if a field has been set. + +### GetOr + +`func (o *StreamFilter) GetOr() []StreamFilterSimpleExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *StreamFilter) GetOrOk() (*[]StreamFilterSimpleExpression, 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 *StreamFilter) SetOr(v []StreamFilterSimpleExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *StreamFilter) HasOr() bool` + +HasOr 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/StreamFilterOrFilter.md b/services/fabricv4/docs/StreamFilterOrFilter.md new file mode 100644 index 00000000..bd8f4db4 --- /dev/null +++ b/services/fabricv4/docs/StreamFilterOrFilter.md @@ -0,0 +1,56 @@ +# StreamFilterOrFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Or** | Pointer to [**[]StreamFilterSimpleExpression**](StreamFilterSimpleExpression.md) | | [optional] + +## Methods + +### NewStreamFilterOrFilter + +`func NewStreamFilterOrFilter() *StreamFilterOrFilter` + +NewStreamFilterOrFilter instantiates a new StreamFilterOrFilter 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 + +### NewStreamFilterOrFilterWithDefaults + +`func NewStreamFilterOrFilterWithDefaults() *StreamFilterOrFilter` + +NewStreamFilterOrFilterWithDefaults instantiates a new StreamFilterOrFilter 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 + +### GetOr + +`func (o *StreamFilterOrFilter) GetOr() []StreamFilterSimpleExpression` + +GetOr returns the Or field if non-nil, zero value otherwise. + +### GetOrOk + +`func (o *StreamFilterOrFilter) GetOrOk() (*[]StreamFilterSimpleExpression, 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 *StreamFilterOrFilter) SetOr(v []StreamFilterSimpleExpression)` + +SetOr sets Or field to given value. + +### HasOr + +`func (o *StreamFilterOrFilter) HasOr() bool` + +HasOr 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/StreamFilterSimpleExpression.md b/services/fabricv4/docs/StreamFilterSimpleExpression.md new file mode 100644 index 00000000..e426a2be --- /dev/null +++ b/services/fabricv4/docs/StreamFilterSimpleExpression.md @@ -0,0 +1,108 @@ +# StreamFilterSimpleExpression + +## Properties + +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] + +## Methods + +### NewStreamFilterSimpleExpression + +`func NewStreamFilterSimpleExpression() *StreamFilterSimpleExpression` + +NewStreamFilterSimpleExpression instantiates a new StreamFilterSimpleExpression 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 + +### NewStreamFilterSimpleExpressionWithDefaults + +`func NewStreamFilterSimpleExpressionWithDefaults() *StreamFilterSimpleExpression` + +NewStreamFilterSimpleExpressionWithDefaults instantiates a new StreamFilterSimpleExpression 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 + +### GetProperty + +`func (o *StreamFilterSimpleExpression) GetProperty() string` + +GetProperty returns the Property field if non-nil, zero value otherwise. + +### GetPropertyOk + +`func (o *StreamFilterSimpleExpression) GetPropertyOk() (*string, 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 *StreamFilterSimpleExpression) SetProperty(v string)` + +SetProperty sets Property field to given value. + +### HasProperty + +`func (o *StreamFilterSimpleExpression) HasProperty() bool` + +HasProperty returns a boolean if a field has been set. + +### GetOperator + +`func (o *StreamFilterSimpleExpression) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *StreamFilterSimpleExpression) GetOperatorOk() (*string, 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 *StreamFilterSimpleExpression) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *StreamFilterSimpleExpression) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValues + +`func (o *StreamFilterSimpleExpression) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *StreamFilterSimpleExpression) 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 *StreamFilterSimpleExpression) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *StreamFilterSimpleExpression) 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/StreamGetSubscriptions.md b/services/fabricv4/docs/StreamGetSubscriptions.md new file mode 100644 index 00000000..ad10f210 --- /dev/null +++ b/services/fabricv4/docs/StreamGetSubscriptions.md @@ -0,0 +1,108 @@ +# 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 new file mode 100644 index 00000000..21de7774 --- /dev/null +++ b/services/fabricv4/docs/StreamGetSubscriptionsType.md @@ -0,0 +1,11 @@ +# 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/StreamPostRequest.md b/services/fabricv4/docs/StreamPostRequest.md new file mode 100644 index 00000000..ddf367aa --- /dev/null +++ b/services/fabricv4/docs/StreamPostRequest.md @@ -0,0 +1,160 @@ +# StreamPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**StreamPostRequestType**](StreamPostRequestType.md) | | [optional] +**Name** | Pointer to **string** | Customer-provided stream name | [optional] +**Description** | Pointer to **string** | Customer-provided stream description | [optional] +**Project** | Pointer to [**Project**](Project.md) | | [optional] +**Enabled** | Pointer to **bool** | Stream enabled status | [optional] + +## Methods + +### NewStreamPostRequest + +`func NewStreamPostRequest() *StreamPostRequest` + +NewStreamPostRequest instantiates a new StreamPostRequest 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 + +### NewStreamPostRequestWithDefaults + +`func NewStreamPostRequestWithDefaults() *StreamPostRequest` + +NewStreamPostRequestWithDefaults instantiates a new StreamPostRequest 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 + +### GetType + +`func (o *StreamPostRequest) GetType() StreamPostRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StreamPostRequest) GetTypeOk() (*StreamPostRequestType, 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 *StreamPostRequest) SetType(v StreamPostRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *StreamPostRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *StreamPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *StreamPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *StreamPostRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *StreamPostRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *StreamPostRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *StreamPostRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *StreamPostRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *StreamPostRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetProject + +`func (o *StreamPostRequest) GetProject() Project` + +GetProject returns the Project field if non-nil, zero value otherwise. + +### GetProjectOk + +`func (o *StreamPostRequest) 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 *StreamPostRequest) SetProject(v Project)` + +SetProject sets Project field to given value. + +### HasProject + +`func (o *StreamPostRequest) HasProject() bool` + +HasProject returns a boolean if a field has been set. + +### GetEnabled + +`func (o *StreamPostRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *StreamPostRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *StreamPostRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *StreamPostRequest) HasEnabled() bool` + +HasEnabled 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/StreamPostRequestType.md b/services/fabricv4/docs/StreamPostRequestType.md new file mode 100644 index 00000000..3e30ed19 --- /dev/null +++ b/services/fabricv4/docs/StreamPostRequestType.md @@ -0,0 +1,11 @@ +# StreamPostRequestType + +## Enum + + +* `TELEMETRY_STREAM` (value: `"TELEMETRY_STREAM"`) + + +[[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/StreamPutRequest.md b/services/fabricv4/docs/StreamPutRequest.md new file mode 100644 index 00000000..c2c4c681 --- /dev/null +++ b/services/fabricv4/docs/StreamPutRequest.md @@ -0,0 +1,108 @@ +# StreamPutRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Customer-provided stream name | [optional] +**Description** | Pointer to **string** | Customer-provided stream description | [optional] +**Enabled** | Pointer to **bool** | stream state | [optional] + +## Methods + +### NewStreamPutRequest + +`func NewStreamPutRequest() *StreamPutRequest` + +NewStreamPutRequest instantiates a new StreamPutRequest 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 + +### NewStreamPutRequestWithDefaults + +`func NewStreamPutRequestWithDefaults() *StreamPutRequest` + +NewStreamPutRequestWithDefaults instantiates a new StreamPutRequest 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 + +### GetName + +`func (o *StreamPutRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *StreamPutRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *StreamPutRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *StreamPutRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *StreamPutRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *StreamPutRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *StreamPutRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *StreamPutRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEnabled + +`func (o *StreamPutRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *StreamPutRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *StreamPutRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *StreamPutRequest) HasEnabled() bool` + +HasEnabled 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/StreamSubscription.md b/services/fabricv4/docs/StreamSubscription.md new file mode 100644 index 00000000..37f780e0 --- /dev/null +++ b/services/fabricv4/docs/StreamSubscription.md @@ -0,0 +1,342 @@ +# StreamSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Stream Subscription URI | [optional] [readonly] +**Uuid** | Pointer to **string** | Equinix-assigned access point identifier | [optional] +**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] +**Sink** | Pointer to [**StreamSubscriptionSink**](StreamSubscriptionSink.md) | | [optional] +**Changelog** | Pointer to [**Changelog**](Changelog.md) | | [optional] + +## Methods + +### NewStreamSubscription + +`func NewStreamSubscription() *StreamSubscription` + +NewStreamSubscription instantiates a new StreamSubscription 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 + +### NewStreamSubscriptionWithDefaults + +`func NewStreamSubscriptionWithDefaults() *StreamSubscription` + +NewStreamSubscriptionWithDefaults instantiates a new StreamSubscription 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 *StreamSubscription) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *StreamSubscription) 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 *StreamSubscription) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *StreamSubscription) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetUuid + +`func (o *StreamSubscription) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *StreamSubscription) 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 *StreamSubscription) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *StreamSubscription) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetType + +`func (o *StreamSubscription) GetType() StreamSubscriptionType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StreamSubscription) GetTypeOk() (*StreamSubscriptionType, 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 *StreamSubscription) SetType(v StreamSubscriptionType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *StreamSubscription) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *StreamSubscription) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *StreamSubscription) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *StreamSubscription) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *StreamSubscription) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *StreamSubscription) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *StreamSubscription) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *StreamSubscription) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *StreamSubscription) HasDescription() bool` + +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` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *StreamSubscription) GetStateOk() (*StreamSubscriptionState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *StreamSubscription) SetState(v StreamSubscriptionState)` + +SetState sets State field to given value. + +### HasState + +`func (o *StreamSubscription) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetEnabled + +`func (o *StreamSubscription) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *StreamSubscription) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *StreamSubscription) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *StreamSubscription) HasEnabled() bool` + +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` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *StreamSubscription) GetFiltersOk() (*StreamSubscriptionFilter, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *StreamSubscription) SetFilters(v StreamSubscriptionFilter)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *StreamSubscription) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetSink + +`func (o *StreamSubscription) GetSink() StreamSubscriptionSink` + +GetSink returns the Sink field if non-nil, zero value otherwise. + +### GetSinkOk + +`func (o *StreamSubscription) GetSinkOk() (*StreamSubscriptionSink, bool)` + +GetSinkOk returns a tuple with the Sink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSink + +`func (o *StreamSubscription) SetSink(v StreamSubscriptionSink)` + +SetSink sets Sink field to given value. + +### HasSink + +`func (o *StreamSubscription) HasSink() bool` + +HasSink returns a boolean if a field has been set. + +### GetChangelog + +`func (o *StreamSubscription) GetChangelog() Changelog` + +GetChangelog returns the Changelog field if non-nil, zero value otherwise. + +### GetChangelogOk + +`func (o *StreamSubscription) GetChangelogOk() (*Changelog, bool)` + +GetChangelogOk returns a tuple with the Changelog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangelog + +`func (o *StreamSubscription) SetChangelog(v Changelog)` + +SetChangelog sets Changelog field to given value. + +### HasChangelog + +`func (o *StreamSubscription) HasChangelog() bool` + +HasChangelog 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/StreamSubscriptionFilter.md b/services/fabricv4/docs/StreamSubscriptionFilter.md new file mode 100644 index 00000000..9f28aabb --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionFilter.md @@ -0,0 +1,56 @@ +# StreamSubscriptionFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**And** | Pointer to [**[]StreamFilter**](StreamFilter.md) | | [optional] + +## Methods + +### NewStreamSubscriptionFilter + +`func NewStreamSubscriptionFilter() *StreamSubscriptionFilter` + +NewStreamSubscriptionFilter instantiates a new StreamSubscriptionFilter 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 + +### NewStreamSubscriptionFilterWithDefaults + +`func NewStreamSubscriptionFilterWithDefaults() *StreamSubscriptionFilter` + +NewStreamSubscriptionFilterWithDefaults instantiates a new StreamSubscriptionFilter 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 *StreamSubscriptionFilter) GetAnd() []StreamFilter` + +GetAnd returns the And field if non-nil, zero value otherwise. + +### GetAndOk + +`func (o *StreamSubscriptionFilter) GetAndOk() (*[]StreamFilter, 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 *StreamSubscriptionFilter) SetAnd(v []StreamFilter)` + +SetAnd sets And field to given value. + +### HasAnd + +`func (o *StreamSubscriptionFilter) HasAnd() bool` + +HasAnd 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/StreamSubscriptionPostRequest.md b/services/fabricv4/docs/StreamSubscriptionPostRequest.md new file mode 100644 index 00000000..ec22a623 --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionPostRequest.md @@ -0,0 +1,238 @@ +# StreamSubscriptionPostRequest + +## Properties + +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] +**Sink** | Pointer to [**StreamSubscriptionSink**](StreamSubscriptionSink.md) | | [optional] + +## Methods + +### NewStreamSubscriptionPostRequest + +`func NewStreamSubscriptionPostRequest() *StreamSubscriptionPostRequest` + +NewStreamSubscriptionPostRequest instantiates a new StreamSubscriptionPostRequest 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 + +### NewStreamSubscriptionPostRequestWithDefaults + +`func NewStreamSubscriptionPostRequestWithDefaults() *StreamSubscriptionPostRequest` + +NewStreamSubscriptionPostRequestWithDefaults instantiates a new StreamSubscriptionPostRequest 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 + +### GetType + +`func (o *StreamSubscriptionPostRequest) GetType() StreamSubscriptionPostRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StreamSubscriptionPostRequest) GetTypeOk() (*StreamSubscriptionPostRequestType, 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 *StreamSubscriptionPostRequest) SetType(v StreamSubscriptionPostRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *StreamSubscriptionPostRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetName + +`func (o *StreamSubscriptionPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *StreamSubscriptionPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *StreamSubscriptionPostRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *StreamSubscriptionPostRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *StreamSubscriptionPostRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *StreamSubscriptionPostRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *StreamSubscriptionPostRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *StreamSubscriptionPostRequest) HasDescription() bool` + +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` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *StreamSubscriptionPostRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *StreamSubscriptionPostRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *StreamSubscriptionPostRequest) HasEnabled() bool` + +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` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *StreamSubscriptionPostRequest) GetFiltersOk() (*StreamSubscriptionFilter, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *StreamSubscriptionPostRequest) SetFilters(v StreamSubscriptionFilter)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *StreamSubscriptionPostRequest) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetSink + +`func (o *StreamSubscriptionPostRequest) GetSink() StreamSubscriptionSink` + +GetSink returns the Sink field if non-nil, zero value otherwise. + +### GetSinkOk + +`func (o *StreamSubscriptionPostRequest) GetSinkOk() (*StreamSubscriptionSink, bool)` + +GetSinkOk returns a tuple with the Sink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSink + +`func (o *StreamSubscriptionPostRequest) SetSink(v StreamSubscriptionSink)` + +SetSink sets Sink field to given value. + +### HasSink + +`func (o *StreamSubscriptionPostRequest) HasSink() bool` + +HasSink 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/StreamSubscriptionPostRequestType.md b/services/fabricv4/docs/StreamSubscriptionPostRequestType.md new file mode 100644 index 00000000..0cbfcbd0 --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionPostRequestType.md @@ -0,0 +1,11 @@ +# StreamSubscriptionPostRequestType + +## 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/StreamSubscriptionPutRequest.md b/services/fabricv4/docs/StreamSubscriptionPutRequest.md new file mode 100644 index 00000000..133ba948 --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionPutRequest.md @@ -0,0 +1,186 @@ +# StreamSubscriptionPutRequest + +## Properties + +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] +**Sink** | Pointer to [**StreamSubscriptionSink**](StreamSubscriptionSink.md) | | [optional] + +## Methods + +### NewStreamSubscriptionPutRequest + +`func NewStreamSubscriptionPutRequest() *StreamSubscriptionPutRequest` + +NewStreamSubscriptionPutRequest instantiates a new StreamSubscriptionPutRequest 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 + +### NewStreamSubscriptionPutRequestWithDefaults + +`func NewStreamSubscriptionPutRequestWithDefaults() *StreamSubscriptionPutRequest` + +NewStreamSubscriptionPutRequestWithDefaults instantiates a new StreamSubscriptionPutRequest 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 + +### GetName + +`func (o *StreamSubscriptionPutRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *StreamSubscriptionPutRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *StreamSubscriptionPutRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *StreamSubscriptionPutRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *StreamSubscriptionPutRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *StreamSubscriptionPutRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *StreamSubscriptionPutRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *StreamSubscriptionPutRequest) HasDescription() bool` + +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` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *StreamSubscriptionPutRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *StreamSubscriptionPutRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *StreamSubscriptionPutRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetFilters + +`func (o *StreamSubscriptionPutRequest) GetFilters() StreamSubscriptionFilter` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *StreamSubscriptionPutRequest) GetFiltersOk() (*StreamSubscriptionFilter, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *StreamSubscriptionPutRequest) SetFilters(v StreamSubscriptionFilter)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *StreamSubscriptionPutRequest) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetSink + +`func (o *StreamSubscriptionPutRequest) GetSink() StreamSubscriptionSink` + +GetSink returns the Sink field if non-nil, zero value otherwise. + +### GetSinkOk + +`func (o *StreamSubscriptionPutRequest) GetSinkOk() (*StreamSubscriptionSink, bool)` + +GetSinkOk returns a tuple with the Sink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSink + +`func (o *StreamSubscriptionPutRequest) SetSink(v StreamSubscriptionSink)` + +SetSink sets Sink field to given value. + +### HasSink + +`func (o *StreamSubscriptionPutRequest) HasSink() bool` + +HasSink 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/StreamSubscriptionSink.md b/services/fabricv4/docs/StreamSubscriptionSink.md new file mode 100644 index 00000000..358b6977 --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionSink.md @@ -0,0 +1,212 @@ +# StreamSubscriptionSink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uri** | Pointer to **string** | any publicly reachable http endpoint | [optional] +**Type** | Pointer to [**StreamSubscriptionSinkType**](StreamSubscriptionSinkType.md) | | [optional] +**BatchEnabled** | Pointer to **bool** | batch mode on/off | [optional] +**BatchSizeMax** | Pointer to **int32** | maximum batch size | [optional] +**BatchWaitTimeMax** | Pointer to **int32** | maximum batch waiting time | [optional] +**Credential** | Pointer to [**StreamSubscriptionSinkCredential**](StreamSubscriptionSinkCredential.md) | | [optional] +**Settings** | Pointer to [**StreamSubscriptionSinkSetting**](StreamSubscriptionSinkSetting.md) | | [optional] + +## Methods + +### NewStreamSubscriptionSink + +`func NewStreamSubscriptionSink() *StreamSubscriptionSink` + +NewStreamSubscriptionSink instantiates a new StreamSubscriptionSink 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 + +### NewStreamSubscriptionSinkWithDefaults + +`func NewStreamSubscriptionSinkWithDefaults() *StreamSubscriptionSink` + +NewStreamSubscriptionSinkWithDefaults instantiates a new StreamSubscriptionSink 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 + +### GetUri + +`func (o *StreamSubscriptionSink) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *StreamSubscriptionSink) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *StreamSubscriptionSink) SetUri(v string)` + +SetUri sets Uri field to given value. + +### HasUri + +`func (o *StreamSubscriptionSink) HasUri() bool` + +HasUri returns a boolean if a field has been set. + +### GetType + +`func (o *StreamSubscriptionSink) GetType() StreamSubscriptionSinkType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StreamSubscriptionSink) GetTypeOk() (*StreamSubscriptionSinkType, 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 *StreamSubscriptionSink) SetType(v StreamSubscriptionSinkType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *StreamSubscriptionSink) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetBatchEnabled + +`func (o *StreamSubscriptionSink) GetBatchEnabled() bool` + +GetBatchEnabled returns the BatchEnabled field if non-nil, zero value otherwise. + +### GetBatchEnabledOk + +`func (o *StreamSubscriptionSink) GetBatchEnabledOk() (*bool, bool)` + +GetBatchEnabledOk returns a tuple with the BatchEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchEnabled + +`func (o *StreamSubscriptionSink) SetBatchEnabled(v bool)` + +SetBatchEnabled sets BatchEnabled field to given value. + +### HasBatchEnabled + +`func (o *StreamSubscriptionSink) HasBatchEnabled() bool` + +HasBatchEnabled returns a boolean if a field has been set. + +### GetBatchSizeMax + +`func (o *StreamSubscriptionSink) GetBatchSizeMax() int32` + +GetBatchSizeMax returns the BatchSizeMax field if non-nil, zero value otherwise. + +### GetBatchSizeMaxOk + +`func (o *StreamSubscriptionSink) GetBatchSizeMaxOk() (*int32, bool)` + +GetBatchSizeMaxOk returns a tuple with the BatchSizeMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchSizeMax + +`func (o *StreamSubscriptionSink) SetBatchSizeMax(v int32)` + +SetBatchSizeMax sets BatchSizeMax field to given value. + +### HasBatchSizeMax + +`func (o *StreamSubscriptionSink) HasBatchSizeMax() bool` + +HasBatchSizeMax returns a boolean if a field has been set. + +### GetBatchWaitTimeMax + +`func (o *StreamSubscriptionSink) GetBatchWaitTimeMax() int32` + +GetBatchWaitTimeMax returns the BatchWaitTimeMax field if non-nil, zero value otherwise. + +### GetBatchWaitTimeMaxOk + +`func (o *StreamSubscriptionSink) GetBatchWaitTimeMaxOk() (*int32, bool)` + +GetBatchWaitTimeMaxOk returns a tuple with the BatchWaitTimeMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchWaitTimeMax + +`func (o *StreamSubscriptionSink) SetBatchWaitTimeMax(v int32)` + +SetBatchWaitTimeMax sets BatchWaitTimeMax field to given value. + +### HasBatchWaitTimeMax + +`func (o *StreamSubscriptionSink) HasBatchWaitTimeMax() bool` + +HasBatchWaitTimeMax returns a boolean if a field has been set. + +### GetCredential + +`func (o *StreamSubscriptionSink) GetCredential() StreamSubscriptionSinkCredential` + +GetCredential returns the Credential field if non-nil, zero value otherwise. + +### GetCredentialOk + +`func (o *StreamSubscriptionSink) GetCredentialOk() (*StreamSubscriptionSinkCredential, bool)` + +GetCredentialOk returns a tuple with the Credential field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredential + +`func (o *StreamSubscriptionSink) SetCredential(v StreamSubscriptionSinkCredential)` + +SetCredential sets Credential field to given value. + +### HasCredential + +`func (o *StreamSubscriptionSink) HasCredential() bool` + +HasCredential returns a boolean if a field has been set. + +### GetSettings + +`func (o *StreamSubscriptionSink) GetSettings() StreamSubscriptionSinkSetting` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *StreamSubscriptionSink) GetSettingsOk() (*StreamSubscriptionSinkSetting, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *StreamSubscriptionSink) SetSettings(v StreamSubscriptionSinkSetting)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *StreamSubscriptionSink) HasSettings() bool` + +HasSettings 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 new file mode 100644 index 00000000..13101c6a --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionSinkCredential.md @@ -0,0 +1,134 @@ +# StreamSubscriptionSinkCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**StreamSubscriptionSinkCredentialType**](StreamSubscriptionSinkCredentialType.md) | | [optional] +**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] + +## Methods + +### NewStreamSubscriptionSinkCredential + +`func NewStreamSubscriptionSinkCredential() *StreamSubscriptionSinkCredential` + +NewStreamSubscriptionSinkCredential instantiates a new StreamSubscriptionSinkCredential 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 + +### NewStreamSubscriptionSinkCredentialWithDefaults + +`func NewStreamSubscriptionSinkCredentialWithDefaults() *StreamSubscriptionSinkCredential` + +NewStreamSubscriptionSinkCredentialWithDefaults instantiates a new StreamSubscriptionSinkCredential 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 + +### GetType + +`func (o *StreamSubscriptionSinkCredential) GetType() StreamSubscriptionSinkCredentialType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StreamSubscriptionSinkCredential) GetTypeOk() (*StreamSubscriptionSinkCredentialType, 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 *StreamSubscriptionSinkCredential) SetType(v StreamSubscriptionSinkCredentialType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *StreamSubscriptionSinkCredential) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetAccessToken + +`func (o *StreamSubscriptionSinkCredential) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *StreamSubscriptionSinkCredential) GetAccessTokenOk() (*string, bool)` + +GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessToken + +`func (o *StreamSubscriptionSinkCredential) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + +### HasAccessToken + +`func (o *StreamSubscriptionSinkCredential) HasAccessToken() bool` + +HasAccessToken returns a boolean if a field has been set. + +### GetIntegrationKey + +`func (o *StreamSubscriptionSinkCredential) GetIntegrationKey() string` + +GetIntegrationKey returns the IntegrationKey field if non-nil, zero value otherwise. + +### GetIntegrationKeyOk + +`func (o *StreamSubscriptionSinkCredential) GetIntegrationKeyOk() (*string, bool)` + +GetIntegrationKeyOk returns a tuple with the IntegrationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntegrationKey + +`func (o *StreamSubscriptionSinkCredential) SetIntegrationKey(v string)` + +SetIntegrationKey sets IntegrationKey field to given value. + +### HasIntegrationKey + +`func (o *StreamSubscriptionSinkCredential) HasIntegrationKey() bool` + +HasIntegrationKey returns a boolean if a field has been set. + +### GetApiKey + +`func (o *StreamSubscriptionSinkCredential) GetApiKey() string` + +GetApiKey returns the ApiKey field if non-nil, zero value otherwise. + +### GetApiKeyOk + +`func (o *StreamSubscriptionSinkCredential) GetApiKeyOk() (*string, bool)` + +GetApiKeyOk returns a tuple with the ApiKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKey + +`func (o *StreamSubscriptionSinkCredential) SetApiKey(v string)` + +SetApiKey sets ApiKey field to given value. + +### HasApiKey + +`func (o *StreamSubscriptionSinkCredential) HasApiKey() bool` + +HasApiKey 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 new file mode 100644 index 00000000..4137c36b --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionSinkCredentialType.md @@ -0,0 +1,15 @@ +# StreamSubscriptionSinkCredentialType + +## Enum + + +* `ACCESS_TOKEN` (value: `"ACCESS_TOKEN"`) + +* `INTEGRATION_KEY` (value: `"INTEGRATION_KEY"`) + +* `API_KEY` (value: `"API_KEY"`) + + +[[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 new file mode 100644 index 00000000..1d4f59bb --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionSinkSetting.md @@ -0,0 +1,134 @@ +# StreamSubscriptionSinkSetting + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventIndex** | Pointer to **string** | event index | [optional] +**MetricIndex** | Pointer to **string** | metric index | [optional] +**Source** | Pointer to **string** | source | [optional] +**ApplicationKey** | Pointer to **string** | Application key | [optional] + +## Methods + +### NewStreamSubscriptionSinkSetting + +`func NewStreamSubscriptionSinkSetting() *StreamSubscriptionSinkSetting` + +NewStreamSubscriptionSinkSetting instantiates a new StreamSubscriptionSinkSetting 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 + +### NewStreamSubscriptionSinkSettingWithDefaults + +`func NewStreamSubscriptionSinkSettingWithDefaults() *StreamSubscriptionSinkSetting` + +NewStreamSubscriptionSinkSettingWithDefaults instantiates a new StreamSubscriptionSinkSetting 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 + +### GetEventIndex + +`func (o *StreamSubscriptionSinkSetting) GetEventIndex() string` + +GetEventIndex returns the EventIndex field if non-nil, zero value otherwise. + +### GetEventIndexOk + +`func (o *StreamSubscriptionSinkSetting) GetEventIndexOk() (*string, bool)` + +GetEventIndexOk returns a tuple with the EventIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventIndex + +`func (o *StreamSubscriptionSinkSetting) SetEventIndex(v string)` + +SetEventIndex sets EventIndex field to given value. + +### HasEventIndex + +`func (o *StreamSubscriptionSinkSetting) HasEventIndex() bool` + +HasEventIndex returns a boolean if a field has been set. + +### GetMetricIndex + +`func (o *StreamSubscriptionSinkSetting) GetMetricIndex() string` + +GetMetricIndex returns the MetricIndex field if non-nil, zero value otherwise. + +### GetMetricIndexOk + +`func (o *StreamSubscriptionSinkSetting) GetMetricIndexOk() (*string, bool)` + +GetMetricIndexOk returns a tuple with the MetricIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricIndex + +`func (o *StreamSubscriptionSinkSetting) SetMetricIndex(v string)` + +SetMetricIndex sets MetricIndex field to given value. + +### HasMetricIndex + +`func (o *StreamSubscriptionSinkSetting) HasMetricIndex() bool` + +HasMetricIndex returns a boolean if a field has been set. + +### GetSource + +`func (o *StreamSubscriptionSinkSetting) GetSource() string` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *StreamSubscriptionSinkSetting) GetSourceOk() (*string, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *StreamSubscriptionSinkSetting) SetSource(v string)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *StreamSubscriptionSinkSetting) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetApplicationKey + +`func (o *StreamSubscriptionSinkSetting) GetApplicationKey() string` + +GetApplicationKey returns the ApplicationKey field if non-nil, zero value otherwise. + +### GetApplicationKeyOk + +`func (o *StreamSubscriptionSinkSetting) GetApplicationKeyOk() (*string, bool)` + +GetApplicationKeyOk returns a tuple with the ApplicationKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationKey + +`func (o *StreamSubscriptionSinkSetting) SetApplicationKey(v string)` + +SetApplicationKey sets ApplicationKey field to given value. + +### HasApplicationKey + +`func (o *StreamSubscriptionSinkSetting) HasApplicationKey() bool` + +HasApplicationKey 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/StreamSubscriptionSinkType.md b/services/fabricv4/docs/StreamSubscriptionSinkType.md new file mode 100644 index 00000000..685ed82b --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionSinkType.md @@ -0,0 +1,21 @@ +# StreamSubscriptionSinkType + +## Enum + + +* `DATADOG` (value: `"DATADOG"`) + +* `PAGERDUTY` (value: `"PAGERDUTY"`) + +* `SPLUNK_HEC` (value: `"SPLUNK_HEC"`) + +* `SLACK` (value: `"SLACK"`) + +* `TEAMS` (value: `"TEAMS"`) + +* `CUSTOM` (value: `"CUSTOM"`) + + +[[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/StreamSubscriptionState.md b/services/fabricv4/docs/StreamSubscriptionState.md new file mode 100644 index 00000000..a3923003 --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionState.md @@ -0,0 +1,19 @@ +# StreamSubscriptionState + +## Enum + + +* `PROVISIONING` (value: `"PROVISIONING"`) + +* `PROVISIONED` (value: `"PROVISIONED"`) + +* `DEPROVISIONING` (value: `"DEPROVISIONING"`) + +* `DEPROVISIONED` (value: `"DEPROVISIONED"`) + +* `FAILED` (value: `"FAILED"`) + + +[[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/StreamSubscriptionType.md b/services/fabricv4/docs/StreamSubscriptionType.md new file mode 100644 index 00000000..e9cc309a --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionType.md @@ -0,0 +1,11 @@ +# StreamSubscriptionType + +## 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/StreamSubscriptionsApi.md b/services/fabricv4/docs/StreamSubscriptionsApi.md new file mode 100644 index 00000000..460b0822 --- /dev/null +++ b/services/fabricv4/docs/StreamSubscriptionsApi.md @@ -0,0 +1,359 @@ +# \StreamSubscriptionsApi + +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 + +> StreamSubscription CreateStreamSubscriptions(ctx).StreamSubscriptionPostRequest(streamSubscriptionPostRequest).Execute() + +Create Subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + streamSubscriptionPostRequest := *openapiclient.NewStreamSubscriptionPostRequest() // StreamSubscriptionPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamSubscriptionsApi.CreateStreamSubscriptions(context.Background()).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) + } + // response from `CreateStreamSubscriptions`: StreamSubscription + fmt.Fprintf(os.Stdout, "Response from `StreamSubscriptionsApi.CreateStreamSubscriptions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateStreamSubscriptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **streamSubscriptionPostRequest** | [**StreamSubscriptionPostRequest**](StreamSubscriptionPostRequest.md) | | + +### Return type + +[**StreamSubscription**](StreamSubscription.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + +## DeleteStreamSubscriptionByUuid + +> StreamSubscription DeleteStreamSubscriptionByUuid(ctx, streamSubscriptionId).Execute() + +Delete Subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + streamSubscriptionId := "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() + 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) + } + // response from `DeleteStreamSubscriptionByUuid`: StreamSubscription + fmt.Fprintf(os.Stdout, "Response from `StreamSubscriptionsApi.DeleteStreamSubscriptionByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**streamSubscriptionId** | **string** | Stream Subscription UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteStreamSubscriptionByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**StreamSubscription**](StreamSubscription.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) + + +## GetStreamSubscriptionByUuid + +> StreamSubscription GetStreamSubscriptionByUuid(ctx, streamSubscriptionId).Execute() + +Get Subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + streamSubscriptionId := "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() + 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) + } + // response from `GetStreamSubscriptionByUuid`: StreamSubscription + fmt.Fprintf(os.Stdout, "Response from `StreamSubscriptionsApi.GetStreamSubscriptionByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**streamSubscriptionId** | **string** | Stream Subscription UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStreamSubscriptionByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**StreamSubscription**](StreamSubscription.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) + + +## GetStreamSubscriptions + +> GetAllStreamSubscriptionResponse GetStreamSubscriptions(ctx).Offset(offset).Limit(limit).Execute() + +Get Subscriptions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + 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() + 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) + } + // response from `GetStreamSubscriptions`: GetAllStreamSubscriptionResponse + fmt.Fprintf(os.Stdout, "Response from `StreamSubscriptionsApi.GetStreamSubscriptions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStreamSubscriptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **offset** | **int32** | offset | + **limit** | **int32** | number of records to fetch | + +### Return type + +[**GetAllStreamSubscriptionResponse**](GetAllStreamSubscriptionResponse.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) + + +## UpdateStreamSubscriptionByUuid + +> StreamSubscription UpdateStreamSubscriptionByUuid(ctx, streamSubscriptionId).StreamSubscriptionPutRequest(streamSubscriptionPutRequest).Execute() + +Update Subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + streamSubscriptionId := "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() + 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) + } + // response from `UpdateStreamSubscriptionByUuid`: StreamSubscription + fmt.Fprintf(os.Stdout, "Response from `StreamSubscriptionsApi.UpdateStreamSubscriptionByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**streamSubscriptionId** | **string** | Stream Subscription UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateStreamSubscriptionByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **streamSubscriptionPutRequest** | [**StreamSubscriptionPutRequest**](StreamSubscriptionPutRequest.md) | | + +### Return type + +[**StreamSubscription**](StreamSubscription.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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/StreamTarget.md b/services/fabricv4/docs/StreamTarget.md new file mode 100644 index 00000000..5bebc449 --- /dev/null +++ b/services/fabricv4/docs/StreamTarget.md @@ -0,0 +1,56 @@ +# 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 new file mode 100644 index 00000000..36a89087 --- /dev/null +++ b/services/fabricv4/docs/StreamsApi.md @@ -0,0 +1,738 @@ +# \StreamsApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateStreams**](StreamsApi.md#CreateStreams) | **Post** /fabric/v4/streams | Create Stream +[**DeleteStreamAssetByUuid**](StreamsApi.md#DeleteStreamAssetByUuid) | **Delete** /fabric/v4/streams/{streamId}/{asset}/{assetId} | Detach Asset +[**DeleteStreamByUuid**](StreamsApi.md#DeleteStreamByUuid) | **Delete** /fabric/v4/streams/{streamId} | Delete Stream +[**GetStreamAssetByUuid**](StreamsApi.md#GetStreamAssetByUuid) | **Get** /fabric/v4/streams/{streamId}/{asset}/{assetId} | Get Asset +[**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 + + + +## CreateStreams + +> Stream CreateStreams(ctx).StreamPostRequest(streamPostRequest).Execute() + +Create Stream + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + streamPostRequest := *openapiclient.NewStreamPostRequest() // StreamPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamsApi.CreateStreams(context.Background()).StreamPostRequest(streamPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.CreateStreams``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateStreams`: Stream + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.CreateStreams`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateStreamsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **streamPostRequest** | [**StreamPostRequest**](StreamPostRequest.md) | | + +### Return type + +[**Stream**](Stream.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + +## DeleteStreamAssetByUuid + +> StreamAsset DeleteStreamAssetByUuid(ctx, assetId, asset, streamId).Execute() + +Detach Asset + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + assetId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | asset UUID + asset := openapiclient.Asset("ports") // Asset | asset + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamsApi.DeleteStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.DeleteStreamAssetByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteStreamAssetByUuid`: StreamAsset + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.DeleteStreamAssetByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assetId** | **string** | asset UUID | +**asset** | [**Asset**](.md) | asset | +**streamId** | **string** | Stream UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteStreamAssetByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**StreamAsset**](StreamAsset.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) + + +## DeleteStreamByUuid + +> Stream DeleteStreamByUuid(ctx, streamId).Execute() + +Delete Stream + + + +### 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 + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamsApi.DeleteStreamByUuid(context.Background(), streamId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.DeleteStreamByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteStreamByUuid`: Stream + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.DeleteStreamByUuid`: %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 apiDeleteStreamByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Stream**](Stream.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) + + +## GetStreamAssetByUuid + +> StreamAsset GetStreamAssetByUuid(ctx, assetId, asset, streamId).Execute() + +Get Asset + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + assetId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | asset UUID + asset := openapiclient.Asset("ports") // Asset | asset + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamsApi.GetStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.GetStreamAssetByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStreamAssetByUuid`: StreamAsset + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.GetStreamAssetByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assetId** | **string** | asset UUID | +**asset** | [**Asset**](.md) | asset | +**streamId** | **string** | Stream UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStreamAssetByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**StreamAsset**](StreamAsset.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) + + +## GetStreamByUuid + +> Stream GetStreamByUuid(ctx, streamId).Execute() + +Get Stream + + + +### 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 + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamsApi.GetStreamByUuid(context.Background(), streamId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.GetStreamByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStreamByUuid`: Stream + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.GetStreamByUuid`: %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 apiGetStreamByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Stream**](Stream.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) + + +## GetStreams + +> GetAllStreamResponse GetStreams(ctx).Offset(offset).Limit(limit).Execute() + +Get Streams + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + 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.GetStreams(context.Background()).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.GetStreams``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStreams`: GetAllStreamResponse + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.GetStreams`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStreamsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **offset** | **int32** | offset | + **limit** | **int32** | number of records to fetch | + +### Return type + +[**GetAllStreamResponse**](GetAllStreamResponse.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) + + +## GetStreamsAssets + +> GetAllStreamAssetResponse GetStreamsAssets(ctx).StreamAssetSearchRequest(streamAssetSearchRequest).Offset(offset).Limit(limit).Execute() + +Get Assets + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + streamAssetSearchRequest := *openapiclient.NewStreamAssetSearchRequest() // StreamAssetSearchRequest | + 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.GetStreamsAssets(context.Background()).StreamAssetSearchRequest(streamAssetSearchRequest).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.GetStreamsAssets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStreamsAssets`: GetAllStreamAssetResponse + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.GetStreamsAssets`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStreamsAssetsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **streamAssetSearchRequest** | [**StreamAssetSearchRequest**](StreamAssetSearchRequest.md) | | + **offset** | **int32** | offset | + **limit** | **int32** | number of records to fetch | + +### Return type + +[**GetAllStreamAssetResponse**](GetAllStreamAssetResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + +## 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() + +Attach Asset + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" +) + +func main() { + assetId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | asset UUID + asset := openapiclient.Asset("ports") // Asset | asset + streamId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Stream UUID + streamAssetPutRequest := *openapiclient.NewStreamAssetPutRequest() // StreamAssetPutRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamsApi.UpdateStreamAssetByUuid(context.Background(), assetId, asset, streamId).StreamAssetPutRequest(streamAssetPutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.UpdateStreamAssetByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateStreamAssetByUuid`: StreamAsset + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.UpdateStreamAssetByUuid`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assetId** | **string** | asset UUID | +**asset** | [**Asset**](.md) | asset | +**streamId** | **string** | Stream UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateStreamAssetByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **streamAssetPutRequest** | [**StreamAssetPutRequest**](StreamAssetPutRequest.md) | | + +### Return type + +[**StreamAsset**](StreamAsset.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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) + + +## UpdateStreamByUuid + +> Stream UpdateStreamByUuid(ctx, streamId).StreamPutRequest(streamPutRequest).Execute() + +Update Stream + + + +### 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 + streamPutRequest := *openapiclient.NewStreamPutRequest() // StreamPutRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StreamsApi.UpdateStreamByUuid(context.Background(), streamId).StreamPutRequest(streamPutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StreamsApi.UpdateStreamByUuid``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateStreamByUuid`: Stream + fmt.Fprintf(os.Stdout, "Response from `StreamsApi.UpdateStreamByUuid`: %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 apiUpdateStreamByUuidRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **streamPutRequest** | [**StreamPutRequest**](StreamPutRequest.md) | | + +### Return type + +[**Stream**](Stream.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/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/SubscriptionAsset.md b/services/fabricv4/docs/SubscriptionAsset.md index 4624c89a..5cfa2575 100644 --- a/services/fabricv4/docs/SubscriptionAsset.md +++ b/services/fabricv4/docs/SubscriptionAsset.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**SubscriptionAssetType**](SubscriptionAssetType.md) | | [optional] +**Type** | Pointer to **string** | Type of the subscription asset ( XF_ROUTER ,IP_VC, IPWAN_VC ) | [optional] **Package** | Pointer to [**SubscriptionRouterPackageType**](SubscriptionRouterPackageType.md) | | [optional] -**Bandwidth** | Pointer to **int32** | | [optional] +**Bandwidth** | Pointer to **int32** | Bandwidth of the asset in Mbps | [optional] ## Methods @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *SubscriptionAsset) GetType() SubscriptionAssetType` +`func (o *SubscriptionAsset) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *SubscriptionAsset) GetTypeOk() (*SubscriptionAssetType, bool)` +`func (o *SubscriptionAsset) GetTypeOk() (*string, 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 *SubscriptionAsset) SetType(v SubscriptionAssetType)` +`func (o *SubscriptionAsset) SetType(v string)` SetType sets Type field to given value. diff --git a/services/fabricv4/docs/SubscriptionEntitlementResponse.md b/services/fabricv4/docs/SubscriptionEntitlementResponse.md index b18209d6..36549052 100644 --- a/services/fabricv4/docs/SubscriptionEntitlementResponse.md +++ b/services/fabricv4/docs/SubscriptionEntitlementResponse.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | Pointer to **string** | Subscription Entitlement Id | [optional] -**QuantityEntitled** | Pointer to **int32** | | [optional] -**QuantityConsumed** | Pointer to **int32** | | [optional] -**QuantityAvailable** | Pointer to **int32** | | [optional] +**QuantityEntitled** | Pointer to **int32** | Quantity entitled for the subscription | [optional] +**QuantityConsumed** | Pointer to **int32** | Quantity consumed from the entitlement | [optional] +**QuantityAvailable** | Pointer to **int32** | Quantity available from the entitlement | [optional] **Asset** | Pointer to [**SubscriptionAsset**](SubscriptionAsset.md) | | [optional] ## Methods diff --git a/services/fabricv4/docs/SubscriptionResponse.md b/services/fabricv4/docs/SubscriptionResponse.md index 2d98a368..78fa5109 100644 --- a/services/fabricv4/docs/SubscriptionResponse.md +++ b/services/fabricv4/docs/SubscriptionResponse.md @@ -4,23 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Href** | Pointer to **string** | | [optional] -**Uuid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**SubscriptionStatus**](SubscriptionStatus.md) | | [optional] -**Marketplace** | Pointer to [**SubscriptionResponseMarketplace**](SubscriptionResponseMarketplace.md) | | [optional] +**Href** | Pointer to **string** | Subscription URL | [optional] +**Uuid** | Pointer to **string** | Unique identifier of the Subscription | [optional] +**State** | [**SubscriptionState**](SubscriptionState.md) | | +**Marketplace** | [**SubscriptionResponseMarketplace**](SubscriptionResponseMarketplace.md) | | **OfferType** | Pointer to [**SubscriptionResponseOfferType**](SubscriptionResponseOfferType.md) | | [optional] -**IsAutoRenew** | Pointer to **bool** | | [optional] -**OfferId** | Pointer to **string** | | [optional] +**IsAutoRenew** | Pointer to **bool** | Is Auto Renewal Enabled | [optional] +**OfferId** | Pointer to **string** | Marketplace Offer Id | [optional] **Trial** | Pointer to [**SubscriptionTrial**](SubscriptionTrial.md) | | [optional] -**SubscriptionKey** | Pointer to **string** | | [optional] -**Entitlements** | Pointer to [**[]SubscriptionEntitlementResponse**](SubscriptionEntitlementResponse.md) | | [optional] +**SubscriptionKey** | Pointer to **string** | Subscription Key | [optional] +**Entitlements** | [**[]SubscriptionEntitlementResponse**](SubscriptionEntitlementResponse.md) | List of entitlements associated with the subscription | **Changelog** | Pointer to [**Changelog**](Changelog.md) | | [optional] ## Methods ### NewSubscriptionResponse -`func NewSubscriptionResponse() *SubscriptionResponse` +`func NewSubscriptionResponse(state SubscriptionState, marketplace SubscriptionResponseMarketplace, entitlements []SubscriptionEntitlementResponse, ) *SubscriptionResponse` NewSubscriptionResponse instantiates a new SubscriptionResponse object This constructor will assign default values to properties that have it defined, @@ -85,30 +85,25 @@ SetUuid sets Uuid field to given value. HasUuid returns a boolean if a field has been set. -### GetStatus +### GetState -`func (o *SubscriptionResponse) GetStatus() SubscriptionStatus` +`func (o *SubscriptionResponse) GetState() SubscriptionState` -GetStatus returns the Status field if non-nil, zero value otherwise. +GetState returns the State field if non-nil, zero value otherwise. -### GetStatusOk +### GetStateOk -`func (o *SubscriptionResponse) GetStatusOk() (*SubscriptionStatus, bool)` +`func (o *SubscriptionResponse) GetStateOk() (*SubscriptionState, bool)` -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetStatus +### SetState -`func (o *SubscriptionResponse) SetStatus(v SubscriptionStatus)` +`func (o *SubscriptionResponse) SetState(v SubscriptionState)` -SetStatus sets Status field to given value. +SetState sets State field to given value. -### HasStatus - -`func (o *SubscriptionResponse) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. ### GetMarketplace @@ -129,11 +124,6 @@ and a boolean to check if the value has been set. SetMarketplace sets Marketplace field to given value. -### HasMarketplace - -`func (o *SubscriptionResponse) HasMarketplace() bool` - -HasMarketplace returns a boolean if a field has been set. ### GetOfferType @@ -279,11 +269,6 @@ and a boolean to check if the value has been set. SetEntitlements sets Entitlements field to given value. -### HasEntitlements - -`func (o *SubscriptionResponse) HasEntitlements() bool` - -HasEntitlements returns a boolean if a field has been set. ### GetChangelog diff --git a/services/fabricv4/docs/SubscriptionStatus.md b/services/fabricv4/docs/SubscriptionState.md similarity index 93% rename from services/fabricv4/docs/SubscriptionStatus.md rename to services/fabricv4/docs/SubscriptionState.md index 1492dde7..af8f152a 100644 --- a/services/fabricv4/docs/SubscriptionStatus.md +++ b/services/fabricv4/docs/SubscriptionState.md @@ -1,4 +1,4 @@ -# SubscriptionStatus +# SubscriptionState ## Enum diff --git a/services/fabricv4/docs/SubscriptionTrial.md b/services/fabricv4/docs/SubscriptionTrial.md index d11b32bf..f1dc50b5 100644 --- a/services/fabricv4/docs/SubscriptionTrial.md +++ b/services/fabricv4/docs/SubscriptionTrial.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Enabled** | Pointer to **bool** | | [optional] -**ExpiryDateTime** | Pointer to **time.Time** | | [optional] +**Enabled** | Pointer to **bool** | Free Trial Enabled | [optional] +**ExpiryDateTime** | Pointer to **time.Time** | Free Trial Expiry Date | [optional] ## Methods diff --git a/services/fabricv4/docs/ValidateConnectionResponse.md b/services/fabricv4/docs/ValidateConnectionResponse.md new file mode 100644 index 00000000..f2681217 --- /dev/null +++ b/services/fabricv4/docs/ValidateConnectionResponse.md @@ -0,0 +1,160 @@ +# ValidateConnectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uuid** | Pointer to **string** | Equinix-assigned connection identifier | [optional] +**Bandwidth** | Pointer to **int32** | Connection bandwidth in Mbps | [optional] +**Redundancy** | Pointer to [**ConnectionRedundancy**](ConnectionRedundancy.md) | | [optional] +**ASide** | Pointer to [**ConnectionSide**](ConnectionSide.md) | | [optional] +**ZSide** | Pointer to [**ConnectionSide**](ConnectionSide.md) | | [optional] + +## Methods + +### NewValidateConnectionResponse + +`func NewValidateConnectionResponse() *ValidateConnectionResponse` + +NewValidateConnectionResponse instantiates a new ValidateConnectionResponse 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 + +### NewValidateConnectionResponseWithDefaults + +`func NewValidateConnectionResponseWithDefaults() *ValidateConnectionResponse` + +NewValidateConnectionResponseWithDefaults instantiates a new ValidateConnectionResponse 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 *ValidateConnectionResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *ValidateConnectionResponse) 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 *ValidateConnectionResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *ValidateConnectionResponse) HasUuid() bool` + +HasUuid returns a boolean if a field has been set. + +### GetBandwidth + +`func (o *ValidateConnectionResponse) GetBandwidth() int32` + +GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. + +### GetBandwidthOk + +`func (o *ValidateConnectionResponse) GetBandwidthOk() (*int32, bool)` + +GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBandwidth + +`func (o *ValidateConnectionResponse) SetBandwidth(v int32)` + +SetBandwidth sets Bandwidth field to given value. + +### HasBandwidth + +`func (o *ValidateConnectionResponse) HasBandwidth() bool` + +HasBandwidth returns a boolean if a field has been set. + +### GetRedundancy + +`func (o *ValidateConnectionResponse) GetRedundancy() ConnectionRedundancy` + +GetRedundancy returns the Redundancy field if non-nil, zero value otherwise. + +### GetRedundancyOk + +`func (o *ValidateConnectionResponse) GetRedundancyOk() (*ConnectionRedundancy, 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 *ValidateConnectionResponse) SetRedundancy(v ConnectionRedundancy)` + +SetRedundancy sets Redundancy field to given value. + +### HasRedundancy + +`func (o *ValidateConnectionResponse) HasRedundancy() bool` + +HasRedundancy returns a boolean if a field has been set. + +### GetASide + +`func (o *ValidateConnectionResponse) GetASide() ConnectionSide` + +GetASide returns the ASide field if non-nil, zero value otherwise. + +### GetASideOk + +`func (o *ValidateConnectionResponse) GetASideOk() (*ConnectionSide, bool)` + +GetASideOk returns a tuple with the ASide field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetASide + +`func (o *ValidateConnectionResponse) SetASide(v ConnectionSide)` + +SetASide sets ASide field to given value. + +### HasASide + +`func (o *ValidateConnectionResponse) HasASide() bool` + +HasASide returns a boolean if a field has been set. + +### GetZSide + +`func (o *ValidateConnectionResponse) GetZSide() ConnectionSide` + +GetZSide returns the ZSide field if non-nil, zero value otherwise. + +### GetZSideOk + +`func (o *ValidateConnectionResponse) GetZSideOk() (*ConnectionSide, bool)` + +GetZSideOk returns a tuple with the ZSide field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZSide + +`func (o *ValidateConnectionResponse) SetZSide(v ConnectionSide)` + +SetZSide sets ZSide field to given value. + +### HasZSide + +`func (o *ValidateConnectionResponse) HasZSide() bool` + +HasZSide 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/VirtualConnectionSide.md b/services/fabricv4/docs/VirtualConnectionSide.md new file mode 100644 index 00000000..31ff158f --- /dev/null +++ b/services/fabricv4/docs/VirtualConnectionSide.md @@ -0,0 +1,56 @@ +# VirtualConnectionSide + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessPoint** | Pointer to [**AccessPoint**](AccessPoint.md) | | [optional] + +## Methods + +### NewVirtualConnectionSide + +`func NewVirtualConnectionSide() *VirtualConnectionSide` + +NewVirtualConnectionSide instantiates a new VirtualConnectionSide 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 + +### NewVirtualConnectionSideWithDefaults + +`func NewVirtualConnectionSideWithDefaults() *VirtualConnectionSide` + +NewVirtualConnectionSideWithDefaults instantiates a new VirtualConnectionSide 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 + +### GetAccessPoint + +`func (o *VirtualConnectionSide) GetAccessPoint() AccessPoint` + +GetAccessPoint returns the AccessPoint field if non-nil, zero value otherwise. + +### GetAccessPointOk + +`func (o *VirtualConnectionSide) GetAccessPointOk() (*AccessPoint, bool)` + +GetAccessPointOk returns a tuple with the AccessPoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessPoint + +`func (o *VirtualConnectionSide) SetAccessPoint(v AccessPoint)` + +SetAccessPoint sets AccessPoint field to given value. + +### HasAccessPoint + +`func (o *VirtualConnectionSide) HasAccessPoint() bool` + +HasAccessPoint 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/VirtualConnectionTimeServiceResponse.md b/services/fabricv4/docs/VirtualConnectionTimeServiceResponse.md new file mode 100644 index 00000000..59c93c32 --- /dev/null +++ b/services/fabricv4/docs/VirtualConnectionTimeServiceResponse.md @@ -0,0 +1,145 @@ +# VirtualConnectionTimeServiceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | **string** | Connection URI | [readonly] +**Type** | **string** | Connection Type. | +**Uuid** | **string** | Connection UUID. | +**ASide** | Pointer to [**VirtualConnectionSide**](VirtualConnectionSide.md) | | [optional] +**ZSide** | Pointer to [**VirtualConnectionSide**](VirtualConnectionSide.md) | | [optional] + +## Methods + +### NewVirtualConnectionTimeServiceResponse + +`func NewVirtualConnectionTimeServiceResponse(href string, type_ string, uuid string, ) *VirtualConnectionTimeServiceResponse` + +NewVirtualConnectionTimeServiceResponse instantiates a new VirtualConnectionTimeServiceResponse 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 + +### NewVirtualConnectionTimeServiceResponseWithDefaults + +`func NewVirtualConnectionTimeServiceResponseWithDefaults() *VirtualConnectionTimeServiceResponse` + +NewVirtualConnectionTimeServiceResponseWithDefaults instantiates a new VirtualConnectionTimeServiceResponse 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 *VirtualConnectionTimeServiceResponse) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *VirtualConnectionTimeServiceResponse) 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 *VirtualConnectionTimeServiceResponse) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetType + +`func (o *VirtualConnectionTimeServiceResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *VirtualConnectionTimeServiceResponse) GetTypeOk() (*string, 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 *VirtualConnectionTimeServiceResponse) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUuid + +`func (o *VirtualConnectionTimeServiceResponse) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VirtualConnectionTimeServiceResponse) 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 *VirtualConnectionTimeServiceResponse) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + + +### GetASide + +`func (o *VirtualConnectionTimeServiceResponse) GetASide() VirtualConnectionSide` + +GetASide returns the ASide field if non-nil, zero value otherwise. + +### GetASideOk + +`func (o *VirtualConnectionTimeServiceResponse) GetASideOk() (*VirtualConnectionSide, bool)` + +GetASideOk returns a tuple with the ASide field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetASide + +`func (o *VirtualConnectionTimeServiceResponse) SetASide(v VirtualConnectionSide)` + +SetASide sets ASide field to given value. + +### HasASide + +`func (o *VirtualConnectionTimeServiceResponse) HasASide() bool` + +HasASide returns a boolean if a field has been set. + +### GetZSide + +`func (o *VirtualConnectionTimeServiceResponse) GetZSide() VirtualConnectionSide` + +GetZSide returns the ZSide field if non-nil, zero value otherwise. + +### GetZSideOk + +`func (o *VirtualConnectionTimeServiceResponse) GetZSideOk() (*VirtualConnectionSide, bool)` + +GetZSideOk returns a tuple with the ZSide field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZSide + +`func (o *VirtualConnectionTimeServiceResponse) SetZSide(v VirtualConnectionSide)` + +SetZSide sets ZSide field to given value. + +### HasZSide + +`func (o *VirtualConnectionTimeServiceResponse) HasZSide() bool` + +HasZSide 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/FabricConnectionUuid.md b/services/fabricv4/docs/VirtualConnectionUuid.md similarity index 58% rename from services/fabricv4/docs/FabricConnectionUuid.md rename to services/fabricv4/docs/VirtualConnectionUuid.md index d6ecef7d..33a986d4 100644 --- a/services/fabricv4/docs/FabricConnectionUuid.md +++ b/services/fabricv4/docs/VirtualConnectionUuid.md @@ -1,102 +1,102 @@ -# FabricConnectionUuid +# VirtualConnectionUuid ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Uuid** | **string** | uuid of the Fabric L2 connection | -**Href** | Pointer to **string** | the href for the L2 connection | [optional] -**Type** | Pointer to **string** | | [optional] +**Href** | Pointer to **string** | Connection URI | [optional] [readonly] +**Type** | Pointer to **string** | Connection Type | [optional] +**Uuid** | **string** | Connection UUID. | ## Methods -### NewFabricConnectionUuid +### NewVirtualConnectionUuid -`func NewFabricConnectionUuid(uuid string, ) *FabricConnectionUuid` +`func NewVirtualConnectionUuid(uuid string, ) *VirtualConnectionUuid` -NewFabricConnectionUuid instantiates a new FabricConnectionUuid object +NewVirtualConnectionUuid instantiates a new VirtualConnectionUuid 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 -### NewFabricConnectionUuidWithDefaults +### NewVirtualConnectionUuidWithDefaults -`func NewFabricConnectionUuidWithDefaults() *FabricConnectionUuid` +`func NewVirtualConnectionUuidWithDefaults() *VirtualConnectionUuid` -NewFabricConnectionUuidWithDefaults instantiates a new FabricConnectionUuid object +NewVirtualConnectionUuidWithDefaults instantiates a new VirtualConnectionUuid 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 *FabricConnectionUuid) GetUuid() string` - -GetUuid returns the Uuid field if non-nil, zero value otherwise. - -### GetUuidOk - -`func (o *FabricConnectionUuid) 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 *FabricConnectionUuid) SetUuid(v string)` - -SetUuid sets Uuid field to given value. - - ### GetHref -`func (o *FabricConnectionUuid) GetHref() string` +`func (o *VirtualConnectionUuid) GetHref() string` GetHref returns the Href field if non-nil, zero value otherwise. ### GetHrefOk -`func (o *FabricConnectionUuid) GetHrefOk() (*string, bool)` +`func (o *VirtualConnectionUuid) 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 *FabricConnectionUuid) SetHref(v string)` +`func (o *VirtualConnectionUuid) SetHref(v string)` SetHref sets Href field to given value. ### HasHref -`func (o *FabricConnectionUuid) HasHref() bool` +`func (o *VirtualConnectionUuid) HasHref() bool` HasHref returns a boolean if a field has been set. ### GetType -`func (o *FabricConnectionUuid) GetType() string` +`func (o *VirtualConnectionUuid) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *FabricConnectionUuid) GetTypeOk() (*string, bool)` +`func (o *VirtualConnectionUuid) GetTypeOk() (*string, 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 *FabricConnectionUuid) SetType(v string)` +`func (o *VirtualConnectionUuid) SetType(v string)` SetType sets Type field to given value. ### HasType -`func (o *FabricConnectionUuid) HasType() bool` +`func (o *VirtualConnectionUuid) HasType() bool` HasType returns a boolean if a field has been set. +### GetUuid + +`func (o *VirtualConnectionUuid) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VirtualConnectionUuid) 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 *VirtualConnectionUuid) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + + [[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/VirtualDeviceInterface.md b/services/fabricv4/docs/VirtualDeviceInterface.md new file mode 100644 index 00000000..df0caa99 --- /dev/null +++ b/services/fabricv4/docs/VirtualDeviceInterface.md @@ -0,0 +1,108 @@ +# VirtualDeviceInterface + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**VirtualDeviceInterfaceType**](VirtualDeviceInterfaceType.md) | | [optional] +**Id** | Pointer to **int32** | Network Edge assigned identifier | [optional] +**Uuid** | Pointer to **string** | Interface identifier | [optional] + +## Methods + +### NewVirtualDeviceInterface + +`func NewVirtualDeviceInterface() *VirtualDeviceInterface` + +NewVirtualDeviceInterface instantiates a new VirtualDeviceInterface 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 + +### NewVirtualDeviceInterfaceWithDefaults + +`func NewVirtualDeviceInterfaceWithDefaults() *VirtualDeviceInterface` + +NewVirtualDeviceInterfaceWithDefaults instantiates a new VirtualDeviceInterface 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 + +### GetType + +`func (o *VirtualDeviceInterface) GetType() VirtualDeviceInterfaceType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *VirtualDeviceInterface) GetTypeOk() (*VirtualDeviceInterfaceType, 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 *VirtualDeviceInterface) SetType(v VirtualDeviceInterfaceType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *VirtualDeviceInterface) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetId + +`func (o *VirtualDeviceInterface) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VirtualDeviceInterface) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *VirtualDeviceInterface) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *VirtualDeviceInterface) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUuid + +`func (o *VirtualDeviceInterface) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *VirtualDeviceInterface) 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 *VirtualDeviceInterface) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *VirtualDeviceInterface) 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/VirtualDeviceInterfaceType.md b/services/fabricv4/docs/VirtualDeviceInterfaceType.md new file mode 100644 index 00000000..dfb98375 --- /dev/null +++ b/services/fabricv4/docs/VirtualDeviceInterfaceType.md @@ -0,0 +1,11 @@ +# VirtualDeviceInterfaceType + +## Enum + + +* `NETWORK` (value: `"NETWORK"`) + + +[[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/model_access_point.go b/services/fabricv4/model_access_point.go index d6f9f67f..ffd9f037 100644 --- a/services/fabricv4/model_access_point.go +++ b/services/fabricv4/model_access_point.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_access_point_selector.go b/services/fabricv4/model_access_point_selector.go index 5053429f..a423d885 100644 --- a/services/fabricv4/model_access_point_selector.go +++ b/services/fabricv4/model_access_point_selector.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +18,10 @@ var _ MappedNullable = &AccessPointSelector{} type AccessPointSelector struct { Type *AccessPointSelectorType `json:"type,omitempty"` Port *SimplifiedMetadataEntity `json:"port,omitempty"` - LinkProtocol *LinkProtocol `json:"linkProtocol,omitempty"` + LinkProtocol *SimplifiedLinkProtocol `json:"linkProtocol,omitempty"` + VirtualDevice *SimplifiedVirtualDevice `json:"virtualDevice,omitempty"` + Interface *VirtualDeviceInterface `json:"interface,omitempty"` + Network *SimplifiedTokenNetwork `json:"network,omitempty"` AdditionalProperties map[string]interface{} } @@ -107,9 +109,9 @@ func (o *AccessPointSelector) SetPort(v SimplifiedMetadataEntity) { } // GetLinkProtocol returns the LinkProtocol field value if set, zero value otherwise. -func (o *AccessPointSelector) GetLinkProtocol() LinkProtocol { +func (o *AccessPointSelector) GetLinkProtocol() SimplifiedLinkProtocol { if o == nil || IsNil(o.LinkProtocol) { - var ret LinkProtocol + var ret SimplifiedLinkProtocol return ret } return *o.LinkProtocol @@ -117,7 +119,7 @@ func (o *AccessPointSelector) GetLinkProtocol() LinkProtocol { // GetLinkProtocolOk returns a tuple with the LinkProtocol field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AccessPointSelector) GetLinkProtocolOk() (*LinkProtocol, bool) { +func (o *AccessPointSelector) GetLinkProtocolOk() (*SimplifiedLinkProtocol, bool) { if o == nil || IsNil(o.LinkProtocol) { return nil, false } @@ -133,11 +135,107 @@ func (o *AccessPointSelector) HasLinkProtocol() bool { return false } -// SetLinkProtocol gets a reference to the given LinkProtocol and assigns it to the LinkProtocol field. -func (o *AccessPointSelector) SetLinkProtocol(v LinkProtocol) { +// SetLinkProtocol gets a reference to the given SimplifiedLinkProtocol and assigns it to the LinkProtocol field. +func (o *AccessPointSelector) SetLinkProtocol(v SimplifiedLinkProtocol) { o.LinkProtocol = &v } +// GetVirtualDevice returns the VirtualDevice field value if set, zero value otherwise. +func (o *AccessPointSelector) GetVirtualDevice() SimplifiedVirtualDevice { + if o == nil || IsNil(o.VirtualDevice) { + var ret SimplifiedVirtualDevice + return ret + } + return *o.VirtualDevice +} + +// GetVirtualDeviceOk returns a tuple with the VirtualDevice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessPointSelector) GetVirtualDeviceOk() (*SimplifiedVirtualDevice, bool) { + if o == nil || IsNil(o.VirtualDevice) { + return nil, false + } + return o.VirtualDevice, true +} + +// HasVirtualDevice returns a boolean if a field has been set. +func (o *AccessPointSelector) HasVirtualDevice() bool { + if o != nil && !IsNil(o.VirtualDevice) { + return true + } + + return false +} + +// SetVirtualDevice gets a reference to the given SimplifiedVirtualDevice and assigns it to the VirtualDevice field. +func (o *AccessPointSelector) SetVirtualDevice(v SimplifiedVirtualDevice) { + o.VirtualDevice = &v +} + +// GetInterface returns the Interface field value if set, zero value otherwise. +func (o *AccessPointSelector) GetInterface() VirtualDeviceInterface { + if o == nil || IsNil(o.Interface) { + var ret VirtualDeviceInterface + return ret + } + return *o.Interface +} + +// GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessPointSelector) GetInterfaceOk() (*VirtualDeviceInterface, bool) { + if o == nil || IsNil(o.Interface) { + return nil, false + } + return o.Interface, true +} + +// HasInterface returns a boolean if a field has been set. +func (o *AccessPointSelector) HasInterface() bool { + if o != nil && !IsNil(o.Interface) { + return true + } + + return false +} + +// SetInterface gets a reference to the given VirtualDeviceInterface and assigns it to the Interface field. +func (o *AccessPointSelector) SetInterface(v VirtualDeviceInterface) { + o.Interface = &v +} + +// GetNetwork returns the Network field value if set, zero value otherwise. +func (o *AccessPointSelector) GetNetwork() SimplifiedTokenNetwork { + if o == nil || IsNil(o.Network) { + var ret SimplifiedTokenNetwork + return ret + } + return *o.Network +} + +// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessPointSelector) GetNetworkOk() (*SimplifiedTokenNetwork, bool) { + if o == nil || IsNil(o.Network) { + return nil, false + } + return o.Network, true +} + +// HasNetwork returns a boolean if a field has been set. +func (o *AccessPointSelector) HasNetwork() bool { + if o != nil && !IsNil(o.Network) { + return true + } + + return false +} + +// SetNetwork gets a reference to the given SimplifiedTokenNetwork and assigns it to the Network field. +func (o *AccessPointSelector) SetNetwork(v SimplifiedTokenNetwork) { + o.Network = &v +} + func (o AccessPointSelector) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +255,15 @@ func (o AccessPointSelector) ToMap() (map[string]interface{}, error) { if !IsNil(o.LinkProtocol) { toSerialize["linkProtocol"] = o.LinkProtocol } + if !IsNil(o.VirtualDevice) { + toSerialize["virtualDevice"] = o.VirtualDevice + } + if !IsNil(o.Interface) { + toSerialize["interface"] = o.Interface + } + if !IsNil(o.Network) { + toSerialize["network"] = o.Network + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -182,6 +289,9 @@ func (o *AccessPointSelector) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "port") delete(additionalProperties, "linkProtocol") + delete(additionalProperties, "virtualDevice") + delete(additionalProperties, "interface") + delete(additionalProperties, "network") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_access_point_selector_type.go b/services/fabricv4/model_access_point_selector_type.go index ea8fd0d9..da07c051 100644 --- a/services/fabricv4/model_access_point_selector_type.go +++ b/services/fabricv4/model_access_point_selector_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,12 +17,16 @@ type AccessPointSelectorType string // List of AccessPointSelector_type const ( - ACCESSPOINTSELECTORTYPE_COLO AccessPointSelectorType = "COLO" + ACCESSPOINTSELECTORTYPE_COLO AccessPointSelectorType = "COLO" + ACCESSPOINTSELECTORTYPE_VD AccessPointSelectorType = "VD" + ACCESSPOINTSELECTORTYPE_NETWORK AccessPointSelectorType = "NETWORK" ) // All allowed values of AccessPointSelectorType enum var AllowedAccessPointSelectorTypeEnumValues = []AccessPointSelectorType{ "COLO", + "VD", + "NETWORK", } func (v *AccessPointSelectorType) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_access_point_type.go b/services/fabricv4/model_access_point_type.go index f9bf4ec3..be48c850 100644 --- a/services/fabricv4/model_access_point_type.go +++ b/services/fabricv4/model_access_point_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_account.go b/services/fabricv4/model_account.go deleted file mode 100644 index 8aeab9e5..00000000 --- a/services/fabricv4/model_account.go +++ /dev/null @@ -1,275 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// checks if the Account type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Account{} - -// Account Account model, includes account number and flag to indicate if this account is reseller -type Account struct { - AccountNumber int32 `json:"accountNumber"` - IsResellerAccount *bool `json:"isResellerAccount,omitempty"` - OrgId *string `json:"orgId,omitempty"` - GlobalOrgId *string `json:"globalOrgId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _Account Account - -// NewAccount instantiates a new Account 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 NewAccount(accountNumber int32) *Account { - this := Account{} - this.AccountNumber = accountNumber - return &this -} - -// NewAccountWithDefaults instantiates a new Account 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 NewAccountWithDefaults() *Account { - this := Account{} - return &this -} - -// GetAccountNumber returns the AccountNumber field value -func (o *Account) GetAccountNumber() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.AccountNumber -} - -// GetAccountNumberOk returns a tuple with the AccountNumber field value -// and a boolean to check if the value has been set. -func (o *Account) GetAccountNumberOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.AccountNumber, true -} - -// SetAccountNumber sets field value -func (o *Account) SetAccountNumber(v int32) { - o.AccountNumber = v -} - -// GetIsResellerAccount returns the IsResellerAccount field value if set, zero value otherwise. -func (o *Account) GetIsResellerAccount() bool { - if o == nil || IsNil(o.IsResellerAccount) { - var ret bool - return ret - } - return *o.IsResellerAccount -} - -// GetIsResellerAccountOk returns a tuple with the IsResellerAccount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Account) GetIsResellerAccountOk() (*bool, bool) { - if o == nil || IsNil(o.IsResellerAccount) { - return nil, false - } - return o.IsResellerAccount, true -} - -// HasIsResellerAccount returns a boolean if a field has been set. -func (o *Account) HasIsResellerAccount() bool { - if o != nil && !IsNil(o.IsResellerAccount) { - return true - } - - return false -} - -// SetIsResellerAccount gets a reference to the given bool and assigns it to the IsResellerAccount field. -func (o *Account) SetIsResellerAccount(v bool) { - o.IsResellerAccount = &v -} - -// GetOrgId returns the OrgId field value if set, zero value otherwise. -func (o *Account) GetOrgId() string { - if o == nil || IsNil(o.OrgId) { - var ret string - return ret - } - return *o.OrgId -} - -// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Account) GetOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.OrgId) { - return nil, false - } - return o.OrgId, true -} - -// HasOrgId returns a boolean if a field has been set. -func (o *Account) HasOrgId() bool { - if o != nil && !IsNil(o.OrgId) { - return true - } - - return false -} - -// SetOrgId gets a reference to the given string and assigns it to the OrgId field. -func (o *Account) SetOrgId(v string) { - o.OrgId = &v -} - -// GetGlobalOrgId returns the GlobalOrgId field value if set, zero value otherwise. -func (o *Account) GetGlobalOrgId() string { - if o == nil || IsNil(o.GlobalOrgId) { - var ret string - return ret - } - return *o.GlobalOrgId -} - -// GetGlobalOrgIdOk returns a tuple with the GlobalOrgId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Account) GetGlobalOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.GlobalOrgId) { - return nil, false - } - return o.GlobalOrgId, true -} - -// HasGlobalOrgId returns a boolean if a field has been set. -func (o *Account) HasGlobalOrgId() bool { - if o != nil && !IsNil(o.GlobalOrgId) { - return true - } - - return false -} - -// SetGlobalOrgId gets a reference to the given string and assigns it to the GlobalOrgId field. -func (o *Account) SetGlobalOrgId(v string) { - o.GlobalOrgId = &v -} - -func (o Account) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Account) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["accountNumber"] = o.AccountNumber - if !IsNil(o.IsResellerAccount) { - toSerialize["isResellerAccount"] = o.IsResellerAccount - } - if !IsNil(o.OrgId) { - toSerialize["orgId"] = o.OrgId - } - if !IsNil(o.GlobalOrgId) { - toSerialize["globalOrgId"] = o.GlobalOrgId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *Account) 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{ - "accountNumber", - } - - 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) - } - } - - varAccount := _Account{} - - err = json.Unmarshal(data, &varAccount) - - if err != nil { - return err - } - - *o = Account(varAccount) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "accountNumber") - delete(additionalProperties, "isResellerAccount") - delete(additionalProperties, "orgId") - delete(additionalProperties, "globalOrgId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAccount struct { - value *Account - isSet bool -} - -func (v NullableAccount) Get() *Account { - return v.value -} - -func (v *NullableAccount) Set(val *Account) { - v.value = val - v.isSet = true -} - -func (v NullableAccount) IsSet() bool { - return v.isSet -} - -func (v *NullableAccount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccount(val *Account) *NullableAccount { - return &NullableAccount{value: val, isSet: true} -} - -func (v NullableAccount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_actions.go b/services/fabricv4/model_actions.go index db78041f..0097b0dd 100644 --- a/services/fabricv4/model_actions.go +++ b/services/fabricv4/model_actions.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_add_operation.go b/services/fabricv4/model_add_operation.go index 609c7981..fbce011b 100644 --- a/services/fabricv4/model_add_operation.go +++ b/services/fabricv4/model_add_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_advance_configuration.go b/services/fabricv4/model_advance_configuration.go deleted file mode 100644 index 651aef04..00000000 --- a/services/fabricv4/model_advance_configuration.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the AdvanceConfiguration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AdvanceConfiguration{} - -// AdvanceConfiguration Advance Configuration for NTP/PTP -type AdvanceConfiguration struct { - Ntp []Md5 `json:"ntp,omitempty"` - Ptp *PtpAdvanceConfiguration `json:"ptp,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _AdvanceConfiguration AdvanceConfiguration - -// NewAdvanceConfiguration instantiates a new AdvanceConfiguration 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 NewAdvanceConfiguration() *AdvanceConfiguration { - this := AdvanceConfiguration{} - return &this -} - -// NewAdvanceConfigurationWithDefaults instantiates a new AdvanceConfiguration 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 NewAdvanceConfigurationWithDefaults() *AdvanceConfiguration { - this := AdvanceConfiguration{} - return &this -} - -// GetNtp returns the Ntp field value if set, zero value otherwise. -func (o *AdvanceConfiguration) GetNtp() []Md5 { - if o == nil || IsNil(o.Ntp) { - var ret []Md5 - return ret - } - return o.Ntp -} - -// GetNtpOk returns a tuple with the Ntp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AdvanceConfiguration) GetNtpOk() ([]Md5, bool) { - if o == nil || IsNil(o.Ntp) { - return nil, false - } - return o.Ntp, true -} - -// HasNtp returns a boolean if a field has been set. -func (o *AdvanceConfiguration) HasNtp() bool { - if o != nil && !IsNil(o.Ntp) { - return true - } - - return false -} - -// SetNtp gets a reference to the given []Md5 and assigns it to the Ntp field. -func (o *AdvanceConfiguration) SetNtp(v []Md5) { - o.Ntp = v -} - -// GetPtp returns the Ptp field value if set, zero value otherwise. -func (o *AdvanceConfiguration) GetPtp() PtpAdvanceConfiguration { - if o == nil || IsNil(o.Ptp) { - var ret PtpAdvanceConfiguration - return ret - } - return *o.Ptp -} - -// GetPtpOk returns a tuple with the Ptp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AdvanceConfiguration) GetPtpOk() (*PtpAdvanceConfiguration, bool) { - if o == nil || IsNil(o.Ptp) { - return nil, false - } - return o.Ptp, true -} - -// HasPtp returns a boolean if a field has been set. -func (o *AdvanceConfiguration) HasPtp() bool { - if o != nil && !IsNil(o.Ptp) { - return true - } - - return false -} - -// SetPtp gets a reference to the given PtpAdvanceConfiguration and assigns it to the Ptp field. -func (o *AdvanceConfiguration) SetPtp(v PtpAdvanceConfiguration) { - o.Ptp = &v -} - -func (o AdvanceConfiguration) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AdvanceConfiguration) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Ntp) { - toSerialize["ntp"] = o.Ntp - } - if !IsNil(o.Ptp) { - toSerialize["ptp"] = o.Ptp - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AdvanceConfiguration) UnmarshalJSON(data []byte) (err error) { - varAdvanceConfiguration := _AdvanceConfiguration{} - - err = json.Unmarshal(data, &varAdvanceConfiguration) - - if err != nil { - return err - } - - *o = AdvanceConfiguration(varAdvanceConfiguration) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "ntp") - delete(additionalProperties, "ptp") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAdvanceConfiguration struct { - value *AdvanceConfiguration - isSet bool -} - -func (v NullableAdvanceConfiguration) Get() *AdvanceConfiguration { - return v.value -} - -func (v *NullableAdvanceConfiguration) Set(val *AdvanceConfiguration) { - v.value = val - v.isSet = true -} - -func (v NullableAdvanceConfiguration) IsSet() bool { - return v.isSet -} - -func (v *NullableAdvanceConfiguration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAdvanceConfiguration(val *AdvanceConfiguration) *NullableAdvanceConfiguration { - return &NullableAdvanceConfiguration{value: val, isSet: true} -} - -func (v NullableAdvanceConfiguration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAdvanceConfiguration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_all_physical_ports_response.go b/services/fabricv4/model_all_physical_ports_response.go index 650a2d34..0155f105 100644 --- a/services/fabricv4/model_all_physical_ports_response.go +++ b/services/fabricv4/model_all_physical_ports_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_all_ports_response.go b/services/fabricv4/model_all_ports_response.go index b812b382..c782bff6 100644 --- a/services/fabricv4/model_all_ports_response.go +++ b/services/fabricv4/model_all_ports_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +18,7 @@ var _ MappedNullable = &AllPortsResponse{} type AllPortsResponse struct { Pagination *Pagination `json:"pagination,omitempty"` // GET All User Port Across Fabric Metros - Data []PortResponse `json:"data,omitempty"` + Data []Port `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,9 +74,9 @@ func (o *AllPortsResponse) SetPagination(v Pagination) { } // GetData returns the Data field value if set, zero value otherwise. -func (o *AllPortsResponse) GetData() []PortResponse { +func (o *AllPortsResponse) GetData() []Port { if o == nil || IsNil(o.Data) { - var ret []PortResponse + var ret []Port return ret } return o.Data @@ -85,7 +84,7 @@ func (o *AllPortsResponse) GetData() []PortResponse { // 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 *AllPortsResponse) GetDataOk() ([]PortResponse, bool) { +func (o *AllPortsResponse) GetDataOk() ([]Port, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -101,8 +100,8 @@ func (o *AllPortsResponse) HasData() bool { return false } -// SetData gets a reference to the given []PortResponse and assigns it to the Data field. -func (o *AllPortsResponse) SetData(v []PortResponse) { +// SetData gets a reference to the given []Port and assigns it to the Data field. +func (o *AllPortsResponse) SetData(v []Port) { o.Data = v } diff --git a/services/fabricv4/model_api_config.go b/services/fabricv4/model_api_config.go index 4befc2f6..c770474a 100644 --- a/services/fabricv4/model_api_config.go +++ b/services/fabricv4/model_api_config.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_api_services.go b/services/fabricv4/model_api_services.go index 56c2ca58..ddb45f63 100644 --- a/services/fabricv4/model_api_services.go +++ b/services/fabricv4/model_api_services.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_asset.go b/services/fabricv4/model_asset.go new file mode 100644 index 00000000..827e4fe4 --- /dev/null +++ b/services/fabricv4/model_asset.go @@ -0,0 +1,111 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// Asset the model 'Asset' +type Asset string + +// List of Asset +const ( + ASSET_PORTS Asset = "ports" + ASSET_CONNECTIONS Asset = "connections" + ASSET_ROUTERS Asset = "routers" + ASSET_METROS Asset = "metros" +) + +// All allowed values of Asset enum +var AllowedAssetEnumValues = []Asset{ + "ports", + "connections", + "routers", + "metros", +} + +func (v *Asset) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Asset(value) + for _, existing := range AllowedAssetEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Asset", value) +} + +// NewAssetFromValue returns a pointer to a valid Asset +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAssetFromValue(v string) (*Asset, error) { + ev := Asset(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Asset: valid values are %v", v, AllowedAssetEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Asset) IsValid() bool { + for _, existing := range AllowedAssetEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Asset value +func (v Asset) Ptr() *Asset { + return &v +} + +type NullableAsset struct { + value *Asset + isSet bool +} + +func (v NullableAsset) Get() *Asset { + return v.value +} + +func (v *NullableAsset) Set(val *Asset) { + v.value = val + v.isSet = true +} + +func (v NullableAsset) IsSet() bool { + return v.isSet +} + +func (v *NullableAsset) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAsset(val *Asset) *NullableAsset { + return &NullableAsset{value: val, isSet: true} +} + +func (v NullableAsset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAsset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_authentication_key.go b/services/fabricv4/model_authentication_key.go index 7b33cc4d..e2164a57 100644 --- a/services/fabricv4/model_authentication_key.go +++ b/services/fabricv4/model_authentication_key.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bandwidth_utilization.go b/services/fabricv4/model_bandwidth_utilization.go index d39052ca..89db0f18 100644 --- a/services/fabricv4/model_bandwidth_utilization.go +++ b/services/fabricv4/model_bandwidth_utilization.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bandwidth_utilization_unit.go b/services/fabricv4/model_bandwidth_utilization_unit.go index 4243f591..535734f5 100644 --- a/services/fabricv4/model_bandwidth_utilization_unit.go +++ b/services/fabricv4/model_bandwidth_utilization_unit.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_base_connection.go b/services/fabricv4/model_base_connection.go deleted file mode 100644 index 91e5814d..00000000 --- a/services/fabricv4/model_base_connection.go +++ /dev/null @@ -1,936 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the BaseConnection type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BaseConnection{} - -// BaseConnection Connection base specification -type BaseConnection struct { - Type *ConnectionType `json:"type,omitempty"` - // Connection URI - Href *string `json:"href,omitempty"` - // Equinix-assigned connection identifier - Uuid *string `json:"uuid,omitempty"` - // Customer-provided connection name - Name *string `json:"name,omitempty"` - // Customer-provided connection description - Description *string `json:"description,omitempty"` - State *ConnectionState `json:"state,omitempty"` - Change *Change `json:"change,omitempty"` - Operation *ConnectionOperation `json:"operation,omitempty"` - Order *Order `json:"order,omitempty"` - // Preferences for notifications on connection configuration or status changes - Notifications []SimplifiedNotification `json:"notifications,omitempty"` - Account *SimplifiedAccount `json:"account,omitempty"` - ChangeLog *Changelog `json:"changeLog,omitempty"` - // Connection bandwidth in Mbps - Bandwidth *int32 `json:"bandwidth,omitempty"` - GeoScope *GeoScopeType `json:"geoScope,omitempty"` - Redundancy *ConnectionRedundancy `json:"redundancy,omitempty"` - // Connection property derived from access point locations - IsRemote *bool `json:"isRemote,omitempty"` - Direction *ConnectionDirection `json:"direction,omitempty"` - ASide *ConnectionSide `json:"aSide,omitempty"` - ZSide *ConnectionSide `json:"zSide,omitempty"` - MarketplaceSubscription *MarketplaceSubscription `json:"marketplaceSubscription,omitempty"` - // Connection additional information - AdditionalInfo []ConnectionSideAdditionalInfo `json:"additionalInfo,omitempty"` - Project *Project `json:"project,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _BaseConnection BaseConnection - -// NewBaseConnection instantiates a new BaseConnection 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 NewBaseConnection() *BaseConnection { - this := BaseConnection{} - return &this -} - -// NewBaseConnectionWithDefaults instantiates a new BaseConnection 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 NewBaseConnectionWithDefaults() *BaseConnection { - this := BaseConnection{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *BaseConnection) GetType() ConnectionType { - if o == nil || IsNil(o.Type) { - var ret ConnectionType - 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 *BaseConnection) GetTypeOk() (*ConnectionType, 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 *BaseConnection) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given ConnectionType and assigns it to the Type field. -func (o *BaseConnection) SetType(v ConnectionType) { - o.Type = &v -} - -// GetHref returns the Href field value if set, zero value otherwise. -func (o *BaseConnection) 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 *BaseConnection) 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 *BaseConnection) 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 *BaseConnection) SetHref(v string) { - o.Href = &v -} - -// GetUuid returns the Uuid field value if set, zero value otherwise. -func (o *BaseConnection) 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 *BaseConnection) 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 *BaseConnection) 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 *BaseConnection) SetUuid(v string) { - o.Uuid = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *BaseConnection) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *BaseConnection) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *BaseConnection) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *BaseConnection) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *BaseConnection) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *BaseConnection) SetDescription(v string) { - o.Description = &v -} - -// GetState returns the State field value if set, zero value otherwise. -func (o *BaseConnection) GetState() ConnectionState { - if o == nil || IsNil(o.State) { - var ret ConnectionState - return ret - } - return *o.State -} - -// GetStateOk returns a tuple with the State field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetStateOk() (*ConnectionState, bool) { - if o == nil || IsNil(o.State) { - return nil, false - } - return o.State, true -} - -// HasState returns a boolean if a field has been set. -func (o *BaseConnection) HasState() bool { - if o != nil && !IsNil(o.State) { - return true - } - - return false -} - -// SetState gets a reference to the given ConnectionState and assigns it to the State field. -func (o *BaseConnection) SetState(v ConnectionState) { - o.State = &v -} - -// GetChange returns the Change field value if set, zero value otherwise. -func (o *BaseConnection) GetChange() Change { - if o == nil || IsNil(o.Change) { - var ret Change - return ret - } - return *o.Change -} - -// GetChangeOk returns a tuple with the Change field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetChangeOk() (*Change, bool) { - if o == nil || IsNil(o.Change) { - return nil, false - } - return o.Change, true -} - -// HasChange returns a boolean if a field has been set. -func (o *BaseConnection) HasChange() bool { - if o != nil && !IsNil(o.Change) { - return true - } - - return false -} - -// SetChange gets a reference to the given Change and assigns it to the Change field. -func (o *BaseConnection) SetChange(v Change) { - o.Change = &v -} - -// GetOperation returns the Operation field value if set, zero value otherwise. -func (o *BaseConnection) GetOperation() ConnectionOperation { - if o == nil || IsNil(o.Operation) { - var ret ConnectionOperation - return ret - } - return *o.Operation -} - -// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetOperationOk() (*ConnectionOperation, bool) { - if o == nil || IsNil(o.Operation) { - return nil, false - } - return o.Operation, true -} - -// HasOperation returns a boolean if a field has been set. -func (o *BaseConnection) HasOperation() bool { - if o != nil && !IsNil(o.Operation) { - return true - } - - return false -} - -// SetOperation gets a reference to the given ConnectionOperation and assigns it to the Operation field. -func (o *BaseConnection) SetOperation(v ConnectionOperation) { - o.Operation = &v -} - -// GetOrder returns the Order field value if set, zero value otherwise. -func (o *BaseConnection) GetOrder() Order { - if o == nil || IsNil(o.Order) { - var ret Order - return ret - } - return *o.Order -} - -// GetOrderOk returns a tuple with the Order field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetOrderOk() (*Order, bool) { - if o == nil || IsNil(o.Order) { - return nil, false - } - return o.Order, true -} - -// HasOrder returns a boolean if a field has been set. -func (o *BaseConnection) HasOrder() bool { - if o != nil && !IsNil(o.Order) { - return true - } - - return false -} - -// SetOrder gets a reference to the given Order and assigns it to the Order field. -func (o *BaseConnection) SetOrder(v Order) { - o.Order = &v -} - -// GetNotifications returns the Notifications field value if set, zero value otherwise. -func (o *BaseConnection) GetNotifications() []SimplifiedNotification { - if o == nil || IsNil(o.Notifications) { - var ret []SimplifiedNotification - return ret - } - return o.Notifications -} - -// GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetNotificationsOk() ([]SimplifiedNotification, bool) { - if o == nil || IsNil(o.Notifications) { - return nil, false - } - return o.Notifications, true -} - -// HasNotifications returns a boolean if a field has been set. -func (o *BaseConnection) HasNotifications() bool { - if o != nil && !IsNil(o.Notifications) { - return true - } - - return false -} - -// SetNotifications gets a reference to the given []SimplifiedNotification and assigns it to the Notifications field. -func (o *BaseConnection) SetNotifications(v []SimplifiedNotification) { - o.Notifications = v -} - -// GetAccount returns the Account field value if set, zero value otherwise. -func (o *BaseConnection) GetAccount() SimplifiedAccount { - if o == nil || IsNil(o.Account) { - var ret SimplifiedAccount - return ret - } - return *o.Account -} - -// GetAccountOk returns a tuple with the Account field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetAccountOk() (*SimplifiedAccount, bool) { - if o == nil || IsNil(o.Account) { - return nil, false - } - return o.Account, true -} - -// HasAccount returns a boolean if a field has been set. -func (o *BaseConnection) HasAccount() bool { - if o != nil && !IsNil(o.Account) { - return true - } - - return false -} - -// SetAccount gets a reference to the given SimplifiedAccount and assigns it to the Account field. -func (o *BaseConnection) SetAccount(v SimplifiedAccount) { - o.Account = &v -} - -// GetChangeLog returns the ChangeLog field value if set, zero value otherwise. -func (o *BaseConnection) GetChangeLog() Changelog { - if o == nil || IsNil(o.ChangeLog) { - var ret Changelog - return ret - } - return *o.ChangeLog -} - -// GetChangeLogOk returns a tuple with the ChangeLog field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetChangeLogOk() (*Changelog, bool) { - if o == nil || IsNil(o.ChangeLog) { - return nil, false - } - return o.ChangeLog, true -} - -// HasChangeLog returns a boolean if a field has been set. -func (o *BaseConnection) HasChangeLog() bool { - if o != nil && !IsNil(o.ChangeLog) { - return true - } - - return false -} - -// SetChangeLog gets a reference to the given Changelog and assigns it to the ChangeLog field. -func (o *BaseConnection) SetChangeLog(v Changelog) { - o.ChangeLog = &v -} - -// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. -func (o *BaseConnection) GetBandwidth() int32 { - if o == nil || IsNil(o.Bandwidth) { - var ret int32 - return ret - } - return *o.Bandwidth -} - -// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetBandwidthOk() (*int32, bool) { - if o == nil || IsNil(o.Bandwidth) { - return nil, false - } - return o.Bandwidth, true -} - -// HasBandwidth returns a boolean if a field has been set. -func (o *BaseConnection) HasBandwidth() bool { - if o != nil && !IsNil(o.Bandwidth) { - return true - } - - return false -} - -// SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. -func (o *BaseConnection) SetBandwidth(v int32) { - o.Bandwidth = &v -} - -// GetGeoScope returns the GeoScope field value if set, zero value otherwise. -func (o *BaseConnection) GetGeoScope() GeoScopeType { - if o == nil || IsNil(o.GeoScope) { - var ret GeoScopeType - return ret - } - return *o.GeoScope -} - -// GetGeoScopeOk returns a tuple with the GeoScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetGeoScopeOk() (*GeoScopeType, bool) { - if o == nil || IsNil(o.GeoScope) { - return nil, false - } - return o.GeoScope, true -} - -// HasGeoScope returns a boolean if a field has been set. -func (o *BaseConnection) HasGeoScope() bool { - if o != nil && !IsNil(o.GeoScope) { - return true - } - - return false -} - -// SetGeoScope gets a reference to the given GeoScopeType and assigns it to the GeoScope field. -func (o *BaseConnection) SetGeoScope(v GeoScopeType) { - o.GeoScope = &v -} - -// GetRedundancy returns the Redundancy field value if set, zero value otherwise. -func (o *BaseConnection) GetRedundancy() ConnectionRedundancy { - if o == nil || IsNil(o.Redundancy) { - var ret ConnectionRedundancy - 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 *BaseConnection) GetRedundancyOk() (*ConnectionRedundancy, 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 *BaseConnection) HasRedundancy() bool { - if o != nil && !IsNil(o.Redundancy) { - return true - } - - return false -} - -// SetRedundancy gets a reference to the given ConnectionRedundancy and assigns it to the Redundancy field. -func (o *BaseConnection) SetRedundancy(v ConnectionRedundancy) { - o.Redundancy = &v -} - -// GetIsRemote returns the IsRemote field value if set, zero value otherwise. -func (o *BaseConnection) GetIsRemote() bool { - if o == nil || IsNil(o.IsRemote) { - var ret bool - return ret - } - return *o.IsRemote -} - -// GetIsRemoteOk returns a tuple with the IsRemote field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetIsRemoteOk() (*bool, bool) { - if o == nil || IsNil(o.IsRemote) { - return nil, false - } - return o.IsRemote, true -} - -// HasIsRemote returns a boolean if a field has been set. -func (o *BaseConnection) HasIsRemote() bool { - if o != nil && !IsNil(o.IsRemote) { - return true - } - - return false -} - -// SetIsRemote gets a reference to the given bool and assigns it to the IsRemote field. -func (o *BaseConnection) SetIsRemote(v bool) { - o.IsRemote = &v -} - -// GetDirection returns the Direction field value if set, zero value otherwise. -func (o *BaseConnection) GetDirection() ConnectionDirection { - if o == nil || IsNil(o.Direction) { - var ret ConnectionDirection - return ret - } - return *o.Direction -} - -// GetDirectionOk returns a tuple with the Direction field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetDirectionOk() (*ConnectionDirection, bool) { - if o == nil || IsNil(o.Direction) { - return nil, false - } - return o.Direction, true -} - -// HasDirection returns a boolean if a field has been set. -func (o *BaseConnection) HasDirection() bool { - if o != nil && !IsNil(o.Direction) { - return true - } - - return false -} - -// SetDirection gets a reference to the given ConnectionDirection and assigns it to the Direction field. -func (o *BaseConnection) SetDirection(v ConnectionDirection) { - o.Direction = &v -} - -// GetASide returns the ASide field value if set, zero value otherwise. -func (o *BaseConnection) GetASide() ConnectionSide { - if o == nil || IsNil(o.ASide) { - var ret ConnectionSide - return ret - } - return *o.ASide -} - -// GetASideOk returns a tuple with the ASide field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetASideOk() (*ConnectionSide, bool) { - if o == nil || IsNil(o.ASide) { - return nil, false - } - return o.ASide, true -} - -// HasASide returns a boolean if a field has been set. -func (o *BaseConnection) HasASide() bool { - if o != nil && !IsNil(o.ASide) { - return true - } - - return false -} - -// SetASide gets a reference to the given ConnectionSide and assigns it to the ASide field. -func (o *BaseConnection) SetASide(v ConnectionSide) { - o.ASide = &v -} - -// GetZSide returns the ZSide field value if set, zero value otherwise. -func (o *BaseConnection) GetZSide() ConnectionSide { - if o == nil || IsNil(o.ZSide) { - var ret ConnectionSide - return ret - } - return *o.ZSide -} - -// GetZSideOk returns a tuple with the ZSide field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetZSideOk() (*ConnectionSide, bool) { - if o == nil || IsNil(o.ZSide) { - return nil, false - } - return o.ZSide, true -} - -// HasZSide returns a boolean if a field has been set. -func (o *BaseConnection) HasZSide() bool { - if o != nil && !IsNil(o.ZSide) { - return true - } - - return false -} - -// SetZSide gets a reference to the given ConnectionSide and assigns it to the ZSide field. -func (o *BaseConnection) SetZSide(v ConnectionSide) { - o.ZSide = &v -} - -// GetMarketplaceSubscription returns the MarketplaceSubscription field value if set, zero value otherwise. -func (o *BaseConnection) GetMarketplaceSubscription() MarketplaceSubscription { - if o == nil || IsNil(o.MarketplaceSubscription) { - var ret MarketplaceSubscription - return ret - } - return *o.MarketplaceSubscription -} - -// GetMarketplaceSubscriptionOk returns a tuple with the MarketplaceSubscription field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetMarketplaceSubscriptionOk() (*MarketplaceSubscription, bool) { - if o == nil || IsNil(o.MarketplaceSubscription) { - return nil, false - } - return o.MarketplaceSubscription, true -} - -// HasMarketplaceSubscription returns a boolean if a field has been set. -func (o *BaseConnection) HasMarketplaceSubscription() bool { - if o != nil && !IsNil(o.MarketplaceSubscription) { - return true - } - - return false -} - -// SetMarketplaceSubscription gets a reference to the given MarketplaceSubscription and assigns it to the MarketplaceSubscription field. -func (o *BaseConnection) SetMarketplaceSubscription(v MarketplaceSubscription) { - o.MarketplaceSubscription = &v -} - -// GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise. -func (o *BaseConnection) GetAdditionalInfo() []ConnectionSideAdditionalInfo { - if o == nil || IsNil(o.AdditionalInfo) { - var ret []ConnectionSideAdditionalInfo - return ret - } - return o.AdditionalInfo -} - -// GetAdditionalInfoOk returns a tuple with the AdditionalInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BaseConnection) GetAdditionalInfoOk() ([]ConnectionSideAdditionalInfo, bool) { - if o == nil || IsNil(o.AdditionalInfo) { - return nil, false - } - return o.AdditionalInfo, true -} - -// HasAdditionalInfo returns a boolean if a field has been set. -func (o *BaseConnection) HasAdditionalInfo() bool { - if o != nil && !IsNil(o.AdditionalInfo) { - return true - } - - return false -} - -// SetAdditionalInfo gets a reference to the given []ConnectionSideAdditionalInfo and assigns it to the AdditionalInfo field. -func (o *BaseConnection) SetAdditionalInfo(v []ConnectionSideAdditionalInfo) { - o.AdditionalInfo = v -} - -// GetProject returns the Project field value if set, zero value otherwise. -func (o *BaseConnection) 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 *BaseConnection) 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 *BaseConnection) 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 *BaseConnection) SetProject(v Project) { - o.Project = &v -} - -func (o BaseConnection) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o BaseConnection) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Href) { - toSerialize["href"] = o.Href - } - if !IsNil(o.Uuid) { - toSerialize["uuid"] = o.Uuid - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } - if !IsNil(o.State) { - toSerialize["state"] = o.State - } - if !IsNil(o.Change) { - toSerialize["change"] = o.Change - } - if !IsNil(o.Operation) { - toSerialize["operation"] = o.Operation - } - if !IsNil(o.Order) { - toSerialize["order"] = o.Order - } - if !IsNil(o.Notifications) { - toSerialize["notifications"] = o.Notifications - } - if !IsNil(o.Account) { - toSerialize["account"] = o.Account - } - if !IsNil(o.ChangeLog) { - toSerialize["changeLog"] = o.ChangeLog - } - if !IsNil(o.Bandwidth) { - toSerialize["bandwidth"] = o.Bandwidth - } - if !IsNil(o.GeoScope) { - toSerialize["geoScope"] = o.GeoScope - } - if !IsNil(o.Redundancy) { - toSerialize["redundancy"] = o.Redundancy - } - if !IsNil(o.IsRemote) { - toSerialize["isRemote"] = o.IsRemote - } - if !IsNil(o.Direction) { - toSerialize["direction"] = o.Direction - } - if !IsNil(o.ASide) { - toSerialize["aSide"] = o.ASide - } - if !IsNil(o.ZSide) { - toSerialize["zSide"] = o.ZSide - } - if !IsNil(o.MarketplaceSubscription) { - toSerialize["marketplaceSubscription"] = o.MarketplaceSubscription - } - if !IsNil(o.AdditionalInfo) { - toSerialize["additionalInfo"] = o.AdditionalInfo - } - if !IsNil(o.Project) { - toSerialize["project"] = o.Project - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *BaseConnection) UnmarshalJSON(data []byte) (err error) { - varBaseConnection := _BaseConnection{} - - err = json.Unmarshal(data, &varBaseConnection) - - if err != nil { - return err - } - - *o = BaseConnection(varBaseConnection) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "href") - delete(additionalProperties, "uuid") - delete(additionalProperties, "name") - delete(additionalProperties, "description") - delete(additionalProperties, "state") - delete(additionalProperties, "change") - delete(additionalProperties, "operation") - delete(additionalProperties, "order") - delete(additionalProperties, "notifications") - delete(additionalProperties, "account") - delete(additionalProperties, "changeLog") - delete(additionalProperties, "bandwidth") - delete(additionalProperties, "geoScope") - delete(additionalProperties, "redundancy") - delete(additionalProperties, "isRemote") - delete(additionalProperties, "direction") - delete(additionalProperties, "aSide") - delete(additionalProperties, "zSide") - delete(additionalProperties, "marketplaceSubscription") - delete(additionalProperties, "additionalInfo") - delete(additionalProperties, "project") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableBaseConnection struct { - value *BaseConnection - isSet bool -} - -func (v NullableBaseConnection) Get() *BaseConnection { - return v.value -} - -func (v *NullableBaseConnection) Set(val *BaseConnection) { - v.value = val - v.isSet = true -} - -func (v NullableBaseConnection) IsSet() bool { - return v.isSet -} - -func (v *NullableBaseConnection) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBaseConnection(val *BaseConnection) *NullableBaseConnection { - return &NullableBaseConnection{value: val, isSet: true} -} - -func (v NullableBaseConnection) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBaseConnection) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_bgp_action_data.go b/services/fabricv4/model_bgp_action_data.go index eda9b41f..08082c78 100644 --- a/services/fabricv4/model_bgp_action_data.go +++ b/services/fabricv4/model_bgp_action_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bgp_action_request.go b/services/fabricv4/model_bgp_action_request.go index 6826019e..ae42bdbe 100644 --- a/services/fabricv4/model_bgp_action_request.go +++ b/services/fabricv4/model_bgp_action_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bgp_action_states.go b/services/fabricv4/model_bgp_action_states.go index c606d25d..48fbad43 100644 --- a/services/fabricv4/model_bgp_action_states.go +++ b/services/fabricv4/model_bgp_action_states.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bgp_actions.go b/services/fabricv4/model_bgp_actions.go index d92bfd5c..50428179 100644 --- a/services/fabricv4/model_bgp_actions.go +++ b/services/fabricv4/model_bgp_actions.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bgp_actions_bulk_data.go b/services/fabricv4/model_bgp_actions_bulk_data.go index c0145f20..e44f6616 100644 --- a/services/fabricv4/model_bgp_actions_bulk_data.go +++ b/services/fabricv4/model_bgp_actions_bulk_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bgp_connection_ipv4.go b/services/fabricv4/model_bgp_connection_ipv4.go index a340bcd0..37cf6609 100644 --- a/services/fabricv4/model_bgp_connection_ipv4.go +++ b/services/fabricv4/model_bgp_connection_ipv4.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,10 +25,12 @@ type BGPConnectionIpv4 struct { Enabled bool `json:"enabled"` // AS path prepend count OutboundASPrependCount *int64 `json:"outboundASPrependCount,omitempty"` - // inbound Multi Exit Discriminator attribute + // Inbound Multi Exit Discriminator attribute InboundMED *int64 `json:"inboundMED,omitempty"` - // inbound Multi Exit Discriminator attribute - OutboundMED *int64 `json:"outboundMED,omitempty"` + // Outbound Multi Exit Discriminator attribute + OutboundMED *int64 `json:"outboundMED,omitempty"` + // Maximum learnt prefixes limit + RoutesMax *int64 `json:"routesMax,omitempty"` Operation *BGPConnectionOperation `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } @@ -231,6 +232,38 @@ func (o *BGPConnectionIpv4) SetOutboundMED(v int64) { o.OutboundMED = &v } +// GetRoutesMax returns the RoutesMax field value if set, zero value otherwise. +func (o *BGPConnectionIpv4) GetRoutesMax() int64 { + if o == nil || IsNil(o.RoutesMax) { + var ret int64 + return ret + } + return *o.RoutesMax +} + +// GetRoutesMaxOk returns a tuple with the RoutesMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BGPConnectionIpv4) GetRoutesMaxOk() (*int64, bool) { + if o == nil || IsNil(o.RoutesMax) { + return nil, false + } + return o.RoutesMax, true +} + +// HasRoutesMax returns a boolean if a field has been set. +func (o *BGPConnectionIpv4) HasRoutesMax() bool { + if o != nil && !IsNil(o.RoutesMax) { + return true + } + + return false +} + +// SetRoutesMax gets a reference to the given int64 and assigns it to the RoutesMax field. +func (o *BGPConnectionIpv4) SetRoutesMax(v int64) { + o.RoutesMax = &v +} + // GetOperation returns the Operation field value if set, zero value otherwise. func (o *BGPConnectionIpv4) GetOperation() BGPConnectionOperation { if o == nil || IsNil(o.Operation) { @@ -287,6 +320,9 @@ func (o BGPConnectionIpv4) ToMap() (map[string]interface{}, error) { if !IsNil(o.OutboundMED) { toSerialize["outboundMED"] = o.OutboundMED } + if !IsNil(o.RoutesMax) { + toSerialize["routesMax"] = o.RoutesMax + } if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } @@ -340,6 +376,7 @@ func (o *BGPConnectionIpv4) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outboundASPrependCount") delete(additionalProperties, "inboundMED") delete(additionalProperties, "outboundMED") + delete(additionalProperties, "routesMax") delete(additionalProperties, "operation") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_bgp_connection_ipv6.go b/services/fabricv4/model_bgp_connection_ipv6.go index c46a0895..3a67298c 100644 --- a/services/fabricv4/model_bgp_connection_ipv6.go +++ b/services/fabricv4/model_bgp_connection_ipv6.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,10 +25,12 @@ type BGPConnectionIpv6 struct { Enabled bool `json:"enabled"` // AS path prepend count OutboundASPrependCount *int64 `json:"outboundASPrependCount,omitempty"` - // inbound Multi Exit Discriminator attribute + // Inbound Multi Exit Discriminator attribute InboundMED *int64 `json:"inboundMED,omitempty"` - // inbound Multi Exit Discriminator attribute - OutboundMED *int64 `json:"outboundMED,omitempty"` + // Outbound Multi Exit Discriminator attribute + OutboundMED *int64 `json:"outboundMED,omitempty"` + // Maximum learnt prefixes limit + RoutesMax *int64 `json:"routesMax,omitempty"` Operation *BGPConnectionOperation `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } @@ -231,6 +232,38 @@ func (o *BGPConnectionIpv6) SetOutboundMED(v int64) { o.OutboundMED = &v } +// GetRoutesMax returns the RoutesMax field value if set, zero value otherwise. +func (o *BGPConnectionIpv6) GetRoutesMax() int64 { + if o == nil || IsNil(o.RoutesMax) { + var ret int64 + return ret + } + return *o.RoutesMax +} + +// GetRoutesMaxOk returns a tuple with the RoutesMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BGPConnectionIpv6) GetRoutesMaxOk() (*int64, bool) { + if o == nil || IsNil(o.RoutesMax) { + return nil, false + } + return o.RoutesMax, true +} + +// HasRoutesMax returns a boolean if a field has been set. +func (o *BGPConnectionIpv6) HasRoutesMax() bool { + if o != nil && !IsNil(o.RoutesMax) { + return true + } + + return false +} + +// SetRoutesMax gets a reference to the given int64 and assigns it to the RoutesMax field. +func (o *BGPConnectionIpv6) SetRoutesMax(v int64) { + o.RoutesMax = &v +} + // GetOperation returns the Operation field value if set, zero value otherwise. func (o *BGPConnectionIpv6) GetOperation() BGPConnectionOperation { if o == nil || IsNil(o.Operation) { @@ -287,6 +320,9 @@ func (o BGPConnectionIpv6) ToMap() (map[string]interface{}, error) { if !IsNil(o.OutboundMED) { toSerialize["outboundMED"] = o.OutboundMED } + if !IsNil(o.RoutesMax) { + toSerialize["routesMax"] = o.RoutesMax + } if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } @@ -340,6 +376,7 @@ func (o *BGPConnectionIpv6) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outboundASPrependCount") delete(additionalProperties, "inboundMED") delete(additionalProperties, "outboundMED") + delete(additionalProperties, "routesMax") delete(additionalProperties, "operation") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_bgp_connection_operation.go b/services/fabricv4/model_bgp_connection_operation.go index 69f18762..64a3abc9 100644 --- a/services/fabricv4/model_bgp_connection_operation.go +++ b/services/fabricv4/model_bgp_connection_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bgp_connection_operation_operational_status.go b/services/fabricv4/model_bgp_connection_operation_operational_status.go index f151bf9b..dd4d3d31 100644 --- a/services/fabricv4/model_bgp_connection_operation_operational_status.go +++ b/services/fabricv4/model_bgp_connection_operation_operational_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bulk_physical_port.go b/services/fabricv4/model_bulk_physical_port.go index 24c96b6f..363c092c 100644 --- a/services/fabricv4/model_bulk_physical_port.go +++ b/services/fabricv4/model_bulk_physical_port.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_bulk_port.go b/services/fabricv4/model_bulk_port.go index 782dc75d..3840598d 100644 --- a/services/fabricv4/model_bulk_port.go +++ b/services/fabricv4/model_bulk_port.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,8 +14,9 @@ import ( // checks if the BulkPort type satisfies the MappedNullable interface at compile time var _ MappedNullable = &BulkPort{} -// BulkPort Create bulk port request +// BulkPort Bulk Port specification type BulkPort struct { + // Ports that are part of BulkPort Data []Port `json:"data,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/fabricv4/model_bulk_port_request.go b/services/fabricv4/model_bulk_port_request.go new file mode 100644 index 00000000..f41a467a --- /dev/null +++ b/services/fabricv4/model_bulk_port_request.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 BulkPortRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BulkPortRequest{} + +// BulkPortRequest Create bulk port request +type BulkPortRequest struct { + Data []PortRequest `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BulkPortRequest BulkPortRequest + +// NewBulkPortRequest instantiates a new BulkPortRequest 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 NewBulkPortRequest() *BulkPortRequest { + this := BulkPortRequest{} + return &this +} + +// NewBulkPortRequestWithDefaults instantiates a new BulkPortRequest 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 NewBulkPortRequestWithDefaults() *BulkPortRequest { + this := BulkPortRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BulkPortRequest) GetData() []PortRequest { + if o == nil || IsNil(o.Data) { + var ret []PortRequest + 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 *BulkPortRequest) GetDataOk() ([]PortRequest, 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 *BulkPortRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []PortRequest and assigns it to the Data field. +func (o *BulkPortRequest) SetData(v []PortRequest) { + o.Data = v +} + +func (o BulkPortRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BulkPortRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BulkPortRequest) UnmarshalJSON(data []byte) (err error) { + varBulkPortRequest := _BulkPortRequest{} + + err = json.Unmarshal(data, &varBulkPortRequest) + + if err != nil { + return err + } + + *o = BulkPortRequest(varBulkPortRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBulkPortRequest struct { + value *BulkPortRequest + isSet bool +} + +func (v NullableBulkPortRequest) Get() *BulkPortRequest { + return v.value +} + +func (v *NullableBulkPortRequest) Set(val *BulkPortRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBulkPortRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBulkPortRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBulkPortRequest(val *BulkPortRequest) *NullableBulkPortRequest { + return &NullableBulkPortRequest{value: val, isSet: true} +} + +func (v NullableBulkPortRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBulkPortRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_change.go b/services/fabricv4/model_change.go index 1bce5eed..ff066d4d 100644 --- a/services/fabricv4/model_change.go +++ b/services/fabricv4/model_change.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_change_status.go b/services/fabricv4/model_change_status.go index 6430bcbf..ca4cedd6 100644 --- a/services/fabricv4/model_change_status.go +++ b/services/fabricv4/model_change_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_change_type.go b/services/fabricv4/model_change_type.go index 52dfa146..ea16646a 100644 --- a/services/fabricv4/model_change_type.go +++ b/services/fabricv4/model_change_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_changelog.go b/services/fabricv4/model_changelog.go index 156a86f4..f5593737 100644 --- a/services/fabricv4/model_changelog.go +++ b/services/fabricv4/model_changelog.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router.go b/services/fabricv4/model_cloud_router.go index bd82b6be..cd506f67 100644 --- a/services/fabricv4/model_cloud_router.go +++ b/services/fabricv4/model_cloud_router.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_access_point_state.go b/services/fabricv4/model_cloud_router_access_point_state.go index 00de4077..44b3f290 100644 --- a/services/fabricv4/model_cloud_router_access_point_state.go +++ b/services/fabricv4/model_cloud_router_access_point_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +21,7 @@ const ( CLOUDROUTERACCESSPOINTSTATE_PROVISIONING CloudRouterAccessPointState = "PROVISIONING" CLOUDROUTERACCESSPOINTSTATE_DEPROVISIONING CloudRouterAccessPointState = "DEPROVISIONING" CLOUDROUTERACCESSPOINTSTATE_DEPROVISIONED CloudRouterAccessPointState = "DEPROVISIONED" - CLOUDROUTERACCESSPOINTSTATE_LOCKED CloudRouterAccessPointState = "LOCKED" + CLOUDROUTERACCESSPOINTSTATE_REPROVISIONING CloudRouterAccessPointState = "REPROVISIONING" CLOUDROUTERACCESSPOINTSTATE_NOT_PROVISIONED CloudRouterAccessPointState = "NOT_PROVISIONED" CLOUDROUTERACCESSPOINTSTATE_NOT_DEPROVISIONED CloudRouterAccessPointState = "NOT_DEPROVISIONED" ) @@ -33,7 +32,7 @@ var AllowedCloudRouterAccessPointStateEnumValues = []CloudRouterAccessPointState "PROVISIONING", "DEPROVISIONING", "DEPROVISIONED", - "LOCKED", + "REPROVISIONING", "NOT_PROVISIONED", "NOT_DEPROVISIONED", } diff --git a/services/fabricv4/model_cloud_router_action_request.go b/services/fabricv4/model_cloud_router_action_request.go index c118ec65..eb8533e0 100644 --- a/services/fabricv4/model_cloud_router_action_request.go +++ b/services/fabricv4/model_cloud_router_action_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,7 +17,8 @@ var _ MappedNullable = &CloudRouterActionRequest{} // CloudRouterActionRequest Cloud Router action request type CloudRouterActionRequest struct { - Type CloudRouterActionType `json:"type"` + Type CloudRouterActionType `json:"type"` + Connection *RouterActionsConnection `json:"connection,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,6 +66,38 @@ func (o *CloudRouterActionRequest) SetType(v CloudRouterActionType) { o.Type = v } +// GetConnection returns the Connection field value if set, zero value otherwise. +func (o *CloudRouterActionRequest) GetConnection() RouterActionsConnection { + if o == nil || IsNil(o.Connection) { + var ret RouterActionsConnection + return ret + } + return *o.Connection +} + +// GetConnectionOk returns a tuple with the Connection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRouterActionRequest) GetConnectionOk() (*RouterActionsConnection, bool) { + if o == nil || IsNil(o.Connection) { + return nil, false + } + return o.Connection, true +} + +// HasConnection returns a boolean if a field has been set. +func (o *CloudRouterActionRequest) HasConnection() bool { + if o != nil && !IsNil(o.Connection) { + return true + } + + return false +} + +// SetConnection gets a reference to the given RouterActionsConnection and assigns it to the Connection field. +func (o *CloudRouterActionRequest) SetConnection(v RouterActionsConnection) { + o.Connection = &v +} + func (o CloudRouterActionRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -77,6 +109,9 @@ func (o CloudRouterActionRequest) MarshalJSON() ([]byte, error) { func (o CloudRouterActionRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type + if !IsNil(o.Connection) { + toSerialize["connection"] = o.Connection + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -121,6 +156,7 @@ func (o *CloudRouterActionRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") + delete(additionalProperties, "connection") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_cloud_router_action_response.go b/services/fabricv4/model_cloud_router_action_response.go index 2f44712f..1d072531 100644 --- a/services/fabricv4/model_cloud_router_action_response.go +++ b/services/fabricv4/model_cloud_router_action_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,11 +17,14 @@ var _ MappedNullable = &CloudRouterActionResponse{} // CloudRouterActionResponse Cloud Router actions response object type CloudRouterActionResponse struct { - Type CloudRouterActionType `json:"type"` - Uuid string `json:"uuid"` - Description *string `json:"description,omitempty"` - State CloudRouterActionState `json:"state"` - ChangeLog Changelog `json:"changeLog"` + Type CloudRouterActionType `json:"type"` + Uuid string `json:"uuid"` + Description *string `json:"description,omitempty"` + State CloudRouterActionState `json:"state"` + ChangeLog Changelog `json:"changeLog"` + Href *string `json:"href,omitempty"` + Connection *RouterActionsConnection `json:"connection,omitempty"` + Operation *Operation `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } @@ -177,6 +179,102 @@ func (o *CloudRouterActionResponse) SetChangeLog(v Changelog) { o.ChangeLog = v } +// GetHref returns the Href field value if set, zero value otherwise. +func (o *CloudRouterActionResponse) 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 *CloudRouterActionResponse) 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 *CloudRouterActionResponse) 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 *CloudRouterActionResponse) SetHref(v string) { + o.Href = &v +} + +// GetConnection returns the Connection field value if set, zero value otherwise. +func (o *CloudRouterActionResponse) GetConnection() RouterActionsConnection { + if o == nil || IsNil(o.Connection) { + var ret RouterActionsConnection + return ret + } + return *o.Connection +} + +// GetConnectionOk returns a tuple with the Connection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRouterActionResponse) GetConnectionOk() (*RouterActionsConnection, bool) { + if o == nil || IsNil(o.Connection) { + return nil, false + } + return o.Connection, true +} + +// HasConnection returns a boolean if a field has been set. +func (o *CloudRouterActionResponse) HasConnection() bool { + if o != nil && !IsNil(o.Connection) { + return true + } + + return false +} + +// SetConnection gets a reference to the given RouterActionsConnection and assigns it to the Connection field. +func (o *CloudRouterActionResponse) SetConnection(v RouterActionsConnection) { + o.Connection = &v +} + +// GetOperation returns the Operation field value if set, zero value otherwise. +func (o *CloudRouterActionResponse) GetOperation() Operation { + if o == nil || IsNil(o.Operation) { + var ret Operation + return ret + } + return *o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRouterActionResponse) GetOperationOk() (*Operation, bool) { + if o == nil || IsNil(o.Operation) { + return nil, false + } + return o.Operation, true +} + +// HasOperation returns a boolean if a field has been set. +func (o *CloudRouterActionResponse) HasOperation() bool { + if o != nil && !IsNil(o.Operation) { + return true + } + + return false +} + +// SetOperation gets a reference to the given Operation and assigns it to the Operation field. +func (o *CloudRouterActionResponse) SetOperation(v Operation) { + o.Operation = &v +} + func (o CloudRouterActionResponse) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -194,6 +292,15 @@ func (o CloudRouterActionResponse) ToMap() (map[string]interface{}, error) { } toSerialize["state"] = o.State toSerialize["changeLog"] = o.ChangeLog + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + if !IsNil(o.Connection) { + toSerialize["connection"] = o.Connection + } + if !IsNil(o.Operation) { + toSerialize["operation"] = o.Operation + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -245,6 +352,9 @@ func (o *CloudRouterActionResponse) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "description") delete(additionalProperties, "state") delete(additionalProperties, "changeLog") + delete(additionalProperties, "href") + delete(additionalProperties, "connection") + delete(additionalProperties, "operation") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_cloud_router_action_state.go b/services/fabricv4/model_cloud_router_action_state.go index 38e1de69..3f367b69 100644 --- a/services/fabricv4/model_cloud_router_action_state.go +++ b/services/fabricv4/model_cloud_router_action_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,14 +17,14 @@ type CloudRouterActionState string // List of CloudRouterActionState const ( - CLOUDROUTERACTIONSTATE_DONE CloudRouterActionState = "DONE" - CLOUDROUTERACTIONSTATE_FAILED CloudRouterActionState = "FAILED" - CLOUDROUTERACTIONSTATE_PENDING CloudRouterActionState = "PENDING" + CLOUDROUTERACTIONSTATE_SUCCEEDED CloudRouterActionState = "SUCCEEDED" + CLOUDROUTERACTIONSTATE_FAILED CloudRouterActionState = "FAILED" + CLOUDROUTERACTIONSTATE_PENDING CloudRouterActionState = "PENDING" ) // All allowed values of CloudRouterActionState enum var AllowedCloudRouterActionStateEnumValues = []CloudRouterActionState{ - "DONE", + "SUCCEEDED", "FAILED", "PENDING", } diff --git a/services/fabricv4/model_cloud_router_action_type.go b/services/fabricv4/model_cloud_router_action_type.go index 07a453c2..a948790f 100644 --- a/services/fabricv4/model_cloud_router_action_type.go +++ b/services/fabricv4/model_cloud_router_action_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,14 +17,18 @@ type CloudRouterActionType string // List of CloudRouterActionType const ( - CLOUDROUTERACTIONTYPE_BGP_SESSION_STATUS_UPDATE CloudRouterActionType = "BGP_SESSION_STATUS_UPDATE" - CLOUDROUTERACTIONTYPE_ROUTE_TABLE_ENTRY_UPDATE CloudRouterActionType = "ROUTE_TABLE_ENTRY_UPDATE" + CLOUDROUTERACTIONTYPE_BGP_SESSION_STATUS_UPDATE CloudRouterActionType = "BGP_SESSION_STATUS_UPDATE" + CLOUDROUTERACTIONTYPE_ROUTE_TABLE_ENTRY_UPDATE CloudRouterActionType = "ROUTE_TABLE_ENTRY_UPDATE" + CLOUDROUTERACTIONTYPE_RECEIVED_ROUTE_ENTRY_UPDATE CloudRouterActionType = "RECEIVED_ROUTE_ENTRY_UPDATE" + CLOUDROUTERACTIONTYPE_ADVERTISED_ROUTE_ENTRY_UPDATE CloudRouterActionType = "ADVERTISED_ROUTE_ENTRY_UPDATE" ) // All allowed values of CloudRouterActionType enum var AllowedCloudRouterActionTypeEnumValues = []CloudRouterActionType{ "BGP_SESSION_STATUS_UPDATE", "ROUTE_TABLE_ENTRY_UPDATE", + "RECEIVED_ROUTE_ENTRY_UPDATE", + "ADVERTISED_ROUTE_ENTRY_UPDATE", } func (v *CloudRouterActionType) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_cloud_router_actions_search_expression.go b/services/fabricv4/model_cloud_router_actions_search_expression.go new file mode 100644 index 00000000..942108fc --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_expression.go @@ -0,0 +1,226 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the CloudRouterActionsSearchExpression type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CloudRouterActionsSearchExpression{} + +// CloudRouterActionsSearchExpression struct for CloudRouterActionsSearchExpression +type CloudRouterActionsSearchExpression struct { + // Possible field names to use on filters: * `/type` - type of update * `/state` - action state * `/connection/uuid` - connection uuid associated * `/_*` - all-category search + Property *string `json:"property,omitempty"` + // Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `~*` - case-insensitive like + Operator *string `json:"operator,omitempty"` + Values []string `json:"values,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CloudRouterActionsSearchExpression CloudRouterActionsSearchExpression + +// NewCloudRouterActionsSearchExpression instantiates a new CloudRouterActionsSearchExpression 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 NewCloudRouterActionsSearchExpression() *CloudRouterActionsSearchExpression { + this := CloudRouterActionsSearchExpression{} + return &this +} + +// NewCloudRouterActionsSearchExpressionWithDefaults instantiates a new CloudRouterActionsSearchExpression 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 NewCloudRouterActionsSearchExpressionWithDefaults() *CloudRouterActionsSearchExpression { + this := CloudRouterActionsSearchExpression{} + return &this +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchExpression) GetProperty() string { + if o == nil || IsNil(o.Property) { + var ret string + 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 *CloudRouterActionsSearchExpression) GetPropertyOk() (*string, 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 *CloudRouterActionsSearchExpression) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given string and assigns it to the Property field. +func (o *CloudRouterActionsSearchExpression) SetProperty(v string) { + o.Property = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchExpression) GetOperator() string { + if o == nil || IsNil(o.Operator) { + var ret string + 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 *CloudRouterActionsSearchExpression) GetOperatorOk() (*string, 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 *CloudRouterActionsSearchExpression) HasOperator() bool { + if o != nil && !IsNil(o.Operator) { + return true + } + + return false +} + +// SetOperator gets a reference to the given string and assigns it to the Operator field. +func (o *CloudRouterActionsSearchExpression) SetOperator(v string) { + o.Operator = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchExpression) 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 *CloudRouterActionsSearchExpression) 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 *CloudRouterActionsSearchExpression) 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 *CloudRouterActionsSearchExpression) SetValues(v []string) { + o.Values = v +} + +func (o CloudRouterActionsSearchExpression) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CloudRouterActionsSearchExpression) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + 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 *CloudRouterActionsSearchExpression) UnmarshalJSON(data []byte) (err error) { + varCloudRouterActionsSearchExpression := _CloudRouterActionsSearchExpression{} + + err = json.Unmarshal(data, &varCloudRouterActionsSearchExpression) + + if err != nil { + return err + } + + *o = CloudRouterActionsSearchExpression(varCloudRouterActionsSearchExpression) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "property") + delete(additionalProperties, "operator") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCloudRouterActionsSearchExpression struct { + value *CloudRouterActionsSearchExpression + isSet bool +} + +func (v NullableCloudRouterActionsSearchExpression) Get() *CloudRouterActionsSearchExpression { + return v.value +} + +func (v *NullableCloudRouterActionsSearchExpression) Set(val *CloudRouterActionsSearchExpression) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchExpression) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchExpression) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchExpression(val *CloudRouterActionsSearchExpression) *NullableCloudRouterActionsSearchExpression { + return &NullableCloudRouterActionsSearchExpression{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchExpression) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchExpression) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_filter.go b/services/fabricv4/model_cloud_router_actions_search_filter.go new file mode 100644 index 00000000..ddd6cbf4 --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_filter.go @@ -0,0 +1,100 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// CloudRouterActionsSearchFilter struct for CloudRouterActionsSearchFilter +type CloudRouterActionsSearchFilter struct { + CloudRouterActionsSearchExpression *CloudRouterActionsSearchExpression + CloudRouterActionsSearchOrFilter *CloudRouterActionsSearchOrFilter +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *CloudRouterActionsSearchFilter) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into CloudRouterActionsSearchExpression + err = json.Unmarshal(data, &dst.CloudRouterActionsSearchExpression) + if err == nil { + jsonCloudRouterActionsSearchExpression, _ := json.Marshal(dst.CloudRouterActionsSearchExpression) + if string(jsonCloudRouterActionsSearchExpression) == "{}" { // empty struct + dst.CloudRouterActionsSearchExpression = nil + } else { + return nil // data stored in dst.CloudRouterActionsSearchExpression, return on the first match + } + } else { + dst.CloudRouterActionsSearchExpression = nil + } + + // try to unmarshal JSON data into CloudRouterActionsSearchOrFilter + err = json.Unmarshal(data, &dst.CloudRouterActionsSearchOrFilter) + if err == nil { + jsonCloudRouterActionsSearchOrFilter, _ := json.Marshal(dst.CloudRouterActionsSearchOrFilter) + if string(jsonCloudRouterActionsSearchOrFilter) == "{}" { // empty struct + dst.CloudRouterActionsSearchOrFilter = nil + } else { + return nil // data stored in dst.CloudRouterActionsSearchOrFilter, return on the first match + } + } else { + dst.CloudRouterActionsSearchOrFilter = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(CloudRouterActionsSearchFilter)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *CloudRouterActionsSearchFilter) MarshalJSON() ([]byte, error) { + if src.CloudRouterActionsSearchExpression != nil { + return json.Marshal(&src.CloudRouterActionsSearchExpression) + } + + if src.CloudRouterActionsSearchOrFilter != nil { + return json.Marshal(&src.CloudRouterActionsSearchOrFilter) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableCloudRouterActionsSearchFilter struct { + value *CloudRouterActionsSearchFilter + isSet bool +} + +func (v NullableCloudRouterActionsSearchFilter) Get() *CloudRouterActionsSearchFilter { + return v.value +} + +func (v *NullableCloudRouterActionsSearchFilter) Set(val *CloudRouterActionsSearchFilter) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchFilter(val *CloudRouterActionsSearchFilter) *NullableCloudRouterActionsSearchFilter { + return &NullableCloudRouterActionsSearchFilter{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_filters.go b/services/fabricv4/model_cloud_router_actions_search_filters.go new file mode 100644 index 00000000..42d4fd5c --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_filters.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 CloudRouterActionsSearchFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CloudRouterActionsSearchFilters{} + +// CloudRouterActionsSearchFilters struct for CloudRouterActionsSearchFilters +type CloudRouterActionsSearchFilters struct { + And []CloudRouterActionsSearchFilter `json:"and,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CloudRouterActionsSearchFilters CloudRouterActionsSearchFilters + +// NewCloudRouterActionsSearchFilters instantiates a new CloudRouterActionsSearchFilters 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 NewCloudRouterActionsSearchFilters() *CloudRouterActionsSearchFilters { + this := CloudRouterActionsSearchFilters{} + return &this +} + +// NewCloudRouterActionsSearchFiltersWithDefaults instantiates a new CloudRouterActionsSearchFilters 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 NewCloudRouterActionsSearchFiltersWithDefaults() *CloudRouterActionsSearchFilters { + this := CloudRouterActionsSearchFilters{} + return &this +} + +// GetAnd returns the And field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchFilters) GetAnd() []CloudRouterActionsSearchFilter { + if o == nil || IsNil(o.And) { + var ret []CloudRouterActionsSearchFilter + 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 *CloudRouterActionsSearchFilters) GetAndOk() ([]CloudRouterActionsSearchFilter, 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 *CloudRouterActionsSearchFilters) HasAnd() bool { + if o != nil && !IsNil(o.And) { + return true + } + + return false +} + +// SetAnd gets a reference to the given []CloudRouterActionsSearchFilter and assigns it to the And field. +func (o *CloudRouterActionsSearchFilters) SetAnd(v []CloudRouterActionsSearchFilter) { + o.And = v +} + +func (o CloudRouterActionsSearchFilters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CloudRouterActionsSearchFilters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.And) { + toSerialize["and"] = o.And + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CloudRouterActionsSearchFilters) UnmarshalJSON(data []byte) (err error) { + varCloudRouterActionsSearchFilters := _CloudRouterActionsSearchFilters{} + + err = json.Unmarshal(data, &varCloudRouterActionsSearchFilters) + + if err != nil { + return err + } + + *o = CloudRouterActionsSearchFilters(varCloudRouterActionsSearchFilters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "and") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCloudRouterActionsSearchFilters struct { + value *CloudRouterActionsSearchFilters + isSet bool +} + +func (v NullableCloudRouterActionsSearchFilters) Get() *CloudRouterActionsSearchFilters { + return v.value +} + +func (v *NullableCloudRouterActionsSearchFilters) Set(val *CloudRouterActionsSearchFilters) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchFilters(val *CloudRouterActionsSearchFilters) *NullableCloudRouterActionsSearchFilters { + return &NullableCloudRouterActionsSearchFilters{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_or_filter.go b/services/fabricv4/model_cloud_router_actions_search_or_filter.go new file mode 100644 index 00000000..9c172559 --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_or_filter.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 CloudRouterActionsSearchOrFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CloudRouterActionsSearchOrFilter{} + +// CloudRouterActionsSearchOrFilter struct for CloudRouterActionsSearchOrFilter +type CloudRouterActionsSearchOrFilter struct { + Or []CloudRouterActionsSearchExpression `json:"or,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CloudRouterActionsSearchOrFilter CloudRouterActionsSearchOrFilter + +// NewCloudRouterActionsSearchOrFilter instantiates a new CloudRouterActionsSearchOrFilter 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 NewCloudRouterActionsSearchOrFilter() *CloudRouterActionsSearchOrFilter { + this := CloudRouterActionsSearchOrFilter{} + return &this +} + +// NewCloudRouterActionsSearchOrFilterWithDefaults instantiates a new CloudRouterActionsSearchOrFilter 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 NewCloudRouterActionsSearchOrFilterWithDefaults() *CloudRouterActionsSearchOrFilter { + this := CloudRouterActionsSearchOrFilter{} + return &this +} + +// GetOr returns the Or field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchOrFilter) GetOr() []CloudRouterActionsSearchExpression { + if o == nil || IsNil(o.Or) { + var ret []CloudRouterActionsSearchExpression + 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 *CloudRouterActionsSearchOrFilter) GetOrOk() ([]CloudRouterActionsSearchExpression, 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 *CloudRouterActionsSearchOrFilter) HasOr() bool { + if o != nil && !IsNil(o.Or) { + return true + } + + return false +} + +// SetOr gets a reference to the given []CloudRouterActionsSearchExpression and assigns it to the Or field. +func (o *CloudRouterActionsSearchOrFilter) SetOr(v []CloudRouterActionsSearchExpression) { + o.Or = v +} + +func (o CloudRouterActionsSearchOrFilter) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CloudRouterActionsSearchOrFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Or) { + toSerialize["or"] = o.Or + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CloudRouterActionsSearchOrFilter) UnmarshalJSON(data []byte) (err error) { + varCloudRouterActionsSearchOrFilter := _CloudRouterActionsSearchOrFilter{} + + err = json.Unmarshal(data, &varCloudRouterActionsSearchOrFilter) + + if err != nil { + return err + } + + *o = CloudRouterActionsSearchOrFilter(varCloudRouterActionsSearchOrFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "or") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCloudRouterActionsSearchOrFilter struct { + value *CloudRouterActionsSearchOrFilter + isSet bool +} + +func (v NullableCloudRouterActionsSearchOrFilter) Get() *CloudRouterActionsSearchOrFilter { + return v.value +} + +func (v *NullableCloudRouterActionsSearchOrFilter) Set(val *CloudRouterActionsSearchOrFilter) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchOrFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchOrFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchOrFilter(val *CloudRouterActionsSearchOrFilter) *NullableCloudRouterActionsSearchOrFilter { + return &NullableCloudRouterActionsSearchOrFilter{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchOrFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchOrFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_request.go b/services/fabricv4/model_cloud_router_actions_search_request.go new file mode 100644 index 00000000..ae3d35ca --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_request.go @@ -0,0 +1,224 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the CloudRouterActionsSearchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CloudRouterActionsSearchRequest{} + +// CloudRouterActionsSearchRequest Search requests containing criteria +type CloudRouterActionsSearchRequest struct { + Filter *CloudRouterActionsSearchFilters `json:"filter,omitempty"` + Pagination *PaginationRequest `json:"pagination,omitempty"` + Sort []CloudRouterActionsSearchSortCriteria `json:"sort,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CloudRouterActionsSearchRequest CloudRouterActionsSearchRequest + +// NewCloudRouterActionsSearchRequest instantiates a new CloudRouterActionsSearchRequest 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 NewCloudRouterActionsSearchRequest() *CloudRouterActionsSearchRequest { + this := CloudRouterActionsSearchRequest{} + return &this +} + +// NewCloudRouterActionsSearchRequestWithDefaults instantiates a new CloudRouterActionsSearchRequest 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 NewCloudRouterActionsSearchRequestWithDefaults() *CloudRouterActionsSearchRequest { + this := CloudRouterActionsSearchRequest{} + return &this +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchRequest) GetFilter() CloudRouterActionsSearchFilters { + if o == nil || IsNil(o.Filter) { + var ret CloudRouterActionsSearchFilters + 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 *CloudRouterActionsSearchRequest) GetFilterOk() (*CloudRouterActionsSearchFilters, 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 *CloudRouterActionsSearchRequest) HasFilter() bool { + if o != nil && !IsNil(o.Filter) { + return true + } + + return false +} + +// SetFilter gets a reference to the given CloudRouterActionsSearchFilters and assigns it to the Filter field. +func (o *CloudRouterActionsSearchRequest) SetFilter(v CloudRouterActionsSearchFilters) { + o.Filter = &v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchRequest) GetPagination() PaginationRequest { + if o == nil || IsNil(o.Pagination) { + var ret PaginationRequest + 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 *CloudRouterActionsSearchRequest) GetPaginationOk() (*PaginationRequest, 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 *CloudRouterActionsSearchRequest) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationRequest and assigns it to the Pagination field. +func (o *CloudRouterActionsSearchRequest) SetPagination(v PaginationRequest) { + o.Pagination = &v +} + +// GetSort returns the Sort field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchRequest) GetSort() []CloudRouterActionsSearchSortCriteria { + if o == nil || IsNil(o.Sort) { + var ret []CloudRouterActionsSearchSortCriteria + return ret + } + return o.Sort +} + +// GetSortOk returns a tuple with the Sort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRouterActionsSearchRequest) GetSortOk() ([]CloudRouterActionsSearchSortCriteria, bool) { + if o == nil || IsNil(o.Sort) { + return nil, false + } + return o.Sort, true +} + +// HasSort returns a boolean if a field has been set. +func (o *CloudRouterActionsSearchRequest) HasSort() bool { + if o != nil && !IsNil(o.Sort) { + return true + } + + return false +} + +// SetSort gets a reference to the given []CloudRouterActionsSearchSortCriteria and assigns it to the Sort field. +func (o *CloudRouterActionsSearchRequest) SetSort(v []CloudRouterActionsSearchSortCriteria) { + o.Sort = v +} + +func (o CloudRouterActionsSearchRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CloudRouterActionsSearchRequest) 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 + } + if !IsNil(o.Sort) { + toSerialize["sort"] = o.Sort + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CloudRouterActionsSearchRequest) UnmarshalJSON(data []byte) (err error) { + varCloudRouterActionsSearchRequest := _CloudRouterActionsSearchRequest{} + + err = json.Unmarshal(data, &varCloudRouterActionsSearchRequest) + + if err != nil { + return err + } + + *o = CloudRouterActionsSearchRequest(varCloudRouterActionsSearchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "filter") + delete(additionalProperties, "pagination") + delete(additionalProperties, "sort") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCloudRouterActionsSearchRequest struct { + value *CloudRouterActionsSearchRequest + isSet bool +} + +func (v NullableCloudRouterActionsSearchRequest) Get() *CloudRouterActionsSearchRequest { + return v.value +} + +func (v *NullableCloudRouterActionsSearchRequest) Set(val *CloudRouterActionsSearchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchRequest(val *CloudRouterActionsSearchRequest) *NullableCloudRouterActionsSearchRequest { + return &NullableCloudRouterActionsSearchRequest{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_response.go b/services/fabricv4/model_cloud_router_actions_search_response.go new file mode 100644 index 00000000..697e5003 --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_response.go @@ -0,0 +1,188 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the CloudRouterActionsSearchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CloudRouterActionsSearchResponse{} + +// CloudRouterActionsSearchResponse struct for CloudRouterActionsSearchResponse +type CloudRouterActionsSearchResponse struct { + Pagination *Pagination `json:"pagination,omitempty"` + // Data returned from the API call. + Data []CloudRouterActionResponse `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CloudRouterActionsSearchResponse CloudRouterActionsSearchResponse + +// NewCloudRouterActionsSearchResponse instantiates a new CloudRouterActionsSearchResponse 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 NewCloudRouterActionsSearchResponse() *CloudRouterActionsSearchResponse { + this := CloudRouterActionsSearchResponse{} + return &this +} + +// NewCloudRouterActionsSearchResponseWithDefaults instantiates a new CloudRouterActionsSearchResponse 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 NewCloudRouterActionsSearchResponseWithDefaults() *CloudRouterActionsSearchResponse { + this := CloudRouterActionsSearchResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchResponse) 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 *CloudRouterActionsSearchResponse) 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 *CloudRouterActionsSearchResponse) 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 *CloudRouterActionsSearchResponse) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchResponse) GetData() []CloudRouterActionResponse { + if o == nil || IsNil(o.Data) { + var ret []CloudRouterActionResponse + 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 *CloudRouterActionsSearchResponse) GetDataOk() ([]CloudRouterActionResponse, 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 *CloudRouterActionsSearchResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []CloudRouterActionResponse and assigns it to the Data field. +func (o *CloudRouterActionsSearchResponse) SetData(v []CloudRouterActionResponse) { + o.Data = v +} + +func (o CloudRouterActionsSearchResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CloudRouterActionsSearchResponse) 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 *CloudRouterActionsSearchResponse) UnmarshalJSON(data []byte) (err error) { + varCloudRouterActionsSearchResponse := _CloudRouterActionsSearchResponse{} + + err = json.Unmarshal(data, &varCloudRouterActionsSearchResponse) + + if err != nil { + return err + } + + *o = CloudRouterActionsSearchResponse(varCloudRouterActionsSearchResponse) + + 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 NullableCloudRouterActionsSearchResponse struct { + value *CloudRouterActionsSearchResponse + isSet bool +} + +func (v NullableCloudRouterActionsSearchResponse) Get() *CloudRouterActionsSearchResponse { + return v.value +} + +func (v *NullableCloudRouterActionsSearchResponse) Set(val *CloudRouterActionsSearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchResponse(val *CloudRouterActionsSearchResponse) *NullableCloudRouterActionsSearchResponse { + return &NullableCloudRouterActionsSearchResponse{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_sort_by.go b/services/fabricv4/model_cloud_router_actions_search_sort_by.go new file mode 100644 index 00000000..0f6141b5 --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_sort_by.go @@ -0,0 +1,111 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// CloudRouterActionsSearchSortBy Possible field names to use on sorting +type CloudRouterActionsSearchSortBy string + +// List of CloudRouterActionsSearchSortBy +const ( + CLOUDROUTERACTIONSSEARCHSORTBY_CHANGE_LOG_CREATED_DATE_TIME CloudRouterActionsSearchSortBy = "/changeLog/createdDateTime" + CLOUDROUTERACTIONSSEARCHSORTBY_CHANGE_LOG_UPDATED_DATE_TIME CloudRouterActionsSearchSortBy = "/changeLog/updatedDateTime" + CLOUDROUTERACTIONSSEARCHSORTBY_CONNECTION_NAME CloudRouterActionsSearchSortBy = "/connection/name" + CLOUDROUTERACTIONSSEARCHSORTBY_TYPE CloudRouterActionsSearchSortBy = "/type" +) + +// All allowed values of CloudRouterActionsSearchSortBy enum +var AllowedCloudRouterActionsSearchSortByEnumValues = []CloudRouterActionsSearchSortBy{ + "/changeLog/createdDateTime", + "/changeLog/updatedDateTime", + "/connection/name", + "/type", +} + +func (v *CloudRouterActionsSearchSortBy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CloudRouterActionsSearchSortBy(value) + for _, existing := range AllowedCloudRouterActionsSearchSortByEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CloudRouterActionsSearchSortBy", value) +} + +// NewCloudRouterActionsSearchSortByFromValue returns a pointer to a valid CloudRouterActionsSearchSortBy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCloudRouterActionsSearchSortByFromValue(v string) (*CloudRouterActionsSearchSortBy, error) { + ev := CloudRouterActionsSearchSortBy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CloudRouterActionsSearchSortBy: valid values are %v", v, AllowedCloudRouterActionsSearchSortByEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CloudRouterActionsSearchSortBy) IsValid() bool { + for _, existing := range AllowedCloudRouterActionsSearchSortByEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CloudRouterActionsSearchSortBy value +func (v CloudRouterActionsSearchSortBy) Ptr() *CloudRouterActionsSearchSortBy { + return &v +} + +type NullableCloudRouterActionsSearchSortBy struct { + value *CloudRouterActionsSearchSortBy + isSet bool +} + +func (v NullableCloudRouterActionsSearchSortBy) Get() *CloudRouterActionsSearchSortBy { + return v.value +} + +func (v *NullableCloudRouterActionsSearchSortBy) Set(val *CloudRouterActionsSearchSortBy) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchSortBy) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchSortBy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchSortBy(val *CloudRouterActionsSearchSortBy) *NullableCloudRouterActionsSearchSortBy { + return &NullableCloudRouterActionsSearchSortBy{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchSortBy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchSortBy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_sort_criteria.go b/services/fabricv4/model_cloud_router_actions_search_sort_criteria.go new file mode 100644 index 00000000..221a532b --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_sort_criteria.go @@ -0,0 +1,195 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the CloudRouterActionsSearchSortCriteria type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CloudRouterActionsSearchSortCriteria{} + +// CloudRouterActionsSearchSortCriteria struct for CloudRouterActionsSearchSortCriteria +type CloudRouterActionsSearchSortCriteria struct { + Direction *CloudRouterActionsSearchSortDirection `json:"direction,omitempty"` + Property *CloudRouterActionsSearchSortBy `json:"property,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CloudRouterActionsSearchSortCriteria CloudRouterActionsSearchSortCriteria + +// NewCloudRouterActionsSearchSortCriteria instantiates a new CloudRouterActionsSearchSortCriteria 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 NewCloudRouterActionsSearchSortCriteria() *CloudRouterActionsSearchSortCriteria { + this := CloudRouterActionsSearchSortCriteria{} + var direction CloudRouterActionsSearchSortDirection = CLOUDROUTERACTIONSSEARCHSORTDIRECTION_DESC + this.Direction = &direction + var property CloudRouterActionsSearchSortBy = CLOUDROUTERACTIONSSEARCHSORTBY_CHANGE_LOG_UPDATED_DATE_TIME + this.Property = &property + return &this +} + +// NewCloudRouterActionsSearchSortCriteriaWithDefaults instantiates a new CloudRouterActionsSearchSortCriteria 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 NewCloudRouterActionsSearchSortCriteriaWithDefaults() *CloudRouterActionsSearchSortCriteria { + this := CloudRouterActionsSearchSortCriteria{} + var direction CloudRouterActionsSearchSortDirection = CLOUDROUTERACTIONSSEARCHSORTDIRECTION_DESC + this.Direction = &direction + var property CloudRouterActionsSearchSortBy = CLOUDROUTERACTIONSSEARCHSORTBY_CHANGE_LOG_UPDATED_DATE_TIME + this.Property = &property + return &this +} + +// GetDirection returns the Direction field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchSortCriteria) GetDirection() CloudRouterActionsSearchSortDirection { + if o == nil || IsNil(o.Direction) { + var ret CloudRouterActionsSearchSortDirection + return ret + } + return *o.Direction +} + +// GetDirectionOk returns a tuple with the Direction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRouterActionsSearchSortCriteria) GetDirectionOk() (*CloudRouterActionsSearchSortDirection, bool) { + if o == nil || IsNil(o.Direction) { + return nil, false + } + return o.Direction, true +} + +// HasDirection returns a boolean if a field has been set. +func (o *CloudRouterActionsSearchSortCriteria) HasDirection() bool { + if o != nil && !IsNil(o.Direction) { + return true + } + + return false +} + +// SetDirection gets a reference to the given CloudRouterActionsSearchSortDirection and assigns it to the Direction field. +func (o *CloudRouterActionsSearchSortCriteria) SetDirection(v CloudRouterActionsSearchSortDirection) { + o.Direction = &v +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *CloudRouterActionsSearchSortCriteria) GetProperty() CloudRouterActionsSearchSortBy { + if o == nil || IsNil(o.Property) { + var ret CloudRouterActionsSearchSortBy + 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 *CloudRouterActionsSearchSortCriteria) GetPropertyOk() (*CloudRouterActionsSearchSortBy, 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 *CloudRouterActionsSearchSortCriteria) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given CloudRouterActionsSearchSortBy and assigns it to the Property field. +func (o *CloudRouterActionsSearchSortCriteria) SetProperty(v CloudRouterActionsSearchSortBy) { + o.Property = &v +} + +func (o CloudRouterActionsSearchSortCriteria) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CloudRouterActionsSearchSortCriteria) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Direction) { + toSerialize["direction"] = o.Direction + } + if !IsNil(o.Property) { + toSerialize["property"] = o.Property + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CloudRouterActionsSearchSortCriteria) UnmarshalJSON(data []byte) (err error) { + varCloudRouterActionsSearchSortCriteria := _CloudRouterActionsSearchSortCriteria{} + + err = json.Unmarshal(data, &varCloudRouterActionsSearchSortCriteria) + + if err != nil { + return err + } + + *o = CloudRouterActionsSearchSortCriteria(varCloudRouterActionsSearchSortCriteria) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "direction") + delete(additionalProperties, "property") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCloudRouterActionsSearchSortCriteria struct { + value *CloudRouterActionsSearchSortCriteria + isSet bool +} + +func (v NullableCloudRouterActionsSearchSortCriteria) Get() *CloudRouterActionsSearchSortCriteria { + return v.value +} + +func (v *NullableCloudRouterActionsSearchSortCriteria) Set(val *CloudRouterActionsSearchSortCriteria) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchSortCriteria) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchSortCriteria) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchSortCriteria(val *CloudRouterActionsSearchSortCriteria) *NullableCloudRouterActionsSearchSortCriteria { + return &NullableCloudRouterActionsSearchSortCriteria{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchSortCriteria) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchSortCriteria) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_actions_search_sort_direction.go b/services/fabricv4/model_cloud_router_actions_search_sort_direction.go new file mode 100644 index 00000000..bfd4d274 --- /dev/null +++ b/services/fabricv4/model_cloud_router_actions_search_sort_direction.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// CloudRouterActionsSearchSortDirection Sorting direction +type CloudRouterActionsSearchSortDirection string + +// List of CloudRouterActionsSearchSortDirection +const ( + CLOUDROUTERACTIONSSEARCHSORTDIRECTION_DESC CloudRouterActionsSearchSortDirection = "DESC" + CLOUDROUTERACTIONSSEARCHSORTDIRECTION_ASC CloudRouterActionsSearchSortDirection = "ASC" +) + +// All allowed values of CloudRouterActionsSearchSortDirection enum +var AllowedCloudRouterActionsSearchSortDirectionEnumValues = []CloudRouterActionsSearchSortDirection{ + "DESC", + "ASC", +} + +func (v *CloudRouterActionsSearchSortDirection) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CloudRouterActionsSearchSortDirection(value) + for _, existing := range AllowedCloudRouterActionsSearchSortDirectionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CloudRouterActionsSearchSortDirection", value) +} + +// NewCloudRouterActionsSearchSortDirectionFromValue returns a pointer to a valid CloudRouterActionsSearchSortDirection +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCloudRouterActionsSearchSortDirectionFromValue(v string) (*CloudRouterActionsSearchSortDirection, error) { + ev := CloudRouterActionsSearchSortDirection(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CloudRouterActionsSearchSortDirection: valid values are %v", v, AllowedCloudRouterActionsSearchSortDirectionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CloudRouterActionsSearchSortDirection) IsValid() bool { + for _, existing := range AllowedCloudRouterActionsSearchSortDirectionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CloudRouterActionsSearchSortDirection value +func (v CloudRouterActionsSearchSortDirection) Ptr() *CloudRouterActionsSearchSortDirection { + return &v +} + +type NullableCloudRouterActionsSearchSortDirection struct { + value *CloudRouterActionsSearchSortDirection + isSet bool +} + +func (v NullableCloudRouterActionsSearchSortDirection) Get() *CloudRouterActionsSearchSortDirection { + return v.value +} + +func (v *NullableCloudRouterActionsSearchSortDirection) Set(val *CloudRouterActionsSearchSortDirection) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRouterActionsSearchSortDirection) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRouterActionsSearchSortDirection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRouterActionsSearchSortDirection(val *CloudRouterActionsSearchSortDirection) *NullableCloudRouterActionsSearchSortDirection { + return &NullableCloudRouterActionsSearchSortDirection{value: val, isSet: true} +} + +func (v NullableCloudRouterActionsSearchSortDirection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRouterActionsSearchSortDirection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_cloud_router_change.go b/services/fabricv4/model_cloud_router_change.go index e1835131..2a2693e0 100644 --- a/services/fabricv4/model_cloud_router_change.go +++ b/services/fabricv4/model_cloud_router_change.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_change_operation.go b/services/fabricv4/model_cloud_router_change_operation.go index f1db6eee..0a88d183 100644 --- a/services/fabricv4/model_cloud_router_change_operation.go +++ b/services/fabricv4/model_cloud_router_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,7 +17,7 @@ var _ MappedNullable = &CloudRouterChangeOperation{} // CloudRouterChangeOperation Fabric Cloud Router change operation data type CloudRouterChangeOperation struct { - Op ServiceTokenChangeOperationOp `json:"op"` + Op PrecisionTimeChangeOperationOp `json:"op"` // path inside document leading to updated parameter Path string `json:"path"` // new value for updated parameter @@ -32,7 +31,7 @@ type _CloudRouterChangeOperation CloudRouterChangeOperation // 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 NewCloudRouterChangeOperation(op ServiceTokenChangeOperationOp, path string, value interface{}) *CloudRouterChangeOperation { +func NewCloudRouterChangeOperation(op PrecisionTimeChangeOperationOp, path string, value interface{}) *CloudRouterChangeOperation { this := CloudRouterChangeOperation{} this.Op = op this.Path = path @@ -49,9 +48,9 @@ func NewCloudRouterChangeOperationWithDefaults() *CloudRouterChangeOperation { } // GetOp returns the Op field value -func (o *CloudRouterChangeOperation) GetOp() ServiceTokenChangeOperationOp { +func (o *CloudRouterChangeOperation) GetOp() PrecisionTimeChangeOperationOp { if o == nil { - var ret ServiceTokenChangeOperationOp + var ret PrecisionTimeChangeOperationOp return ret } @@ -60,7 +59,7 @@ func (o *CloudRouterChangeOperation) GetOp() ServiceTokenChangeOperationOp { // GetOpOk returns a tuple with the Op field value // and a boolean to check if the value has been set. -func (o *CloudRouterChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, bool) { +func (o *CloudRouterChangeOperation) GetOpOk() (*PrecisionTimeChangeOperationOp, bool) { if o == nil { return nil, false } @@ -68,7 +67,7 @@ func (o *CloudRouterChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, } // SetOp sets field value -func (o *CloudRouterChangeOperation) SetOp(v ServiceTokenChangeOperationOp) { +func (o *CloudRouterChangeOperation) SetOp(v PrecisionTimeChangeOperationOp) { o.Op = v } diff --git a/services/fabricv4/model_cloud_router_change_status.go b/services/fabricv4/model_cloud_router_change_status.go index 904678be..65be3c4f 100644 --- a/services/fabricv4/model_cloud_router_change_status.go +++ b/services/fabricv4/model_cloud_router_change_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_change_type.go b/services/fabricv4/model_cloud_router_change_type.go index e3295a33..e55a05b7 100644 --- a/services/fabricv4/model_cloud_router_change_type.go +++ b/services/fabricv4/model_cloud_router_change_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_filter.go b/services/fabricv4/model_cloud_router_filter.go index 6c90694b..46694079 100644 --- a/services/fabricv4/model_cloud_router_filter.go +++ b/services/fabricv4/model_cloud_router_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_filters.go b/services/fabricv4/model_cloud_router_filters.go index c320b120..afc08859 100644 --- a/services/fabricv4/model_cloud_router_filters.go +++ b/services/fabricv4/model_cloud_router_filters.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_or_filter.go b/services/fabricv4/model_cloud_router_or_filter.go index 7452db27..80811ff0 100644 --- a/services/fabricv4/model_cloud_router_or_filter.go +++ b/services/fabricv4/model_cloud_router_or_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_package.go b/services/fabricv4/model_cloud_router_package.go index 4260c21a..a5ecf9ee 100644 --- a/services/fabricv4/model_cloud_router_package.go +++ b/services/fabricv4/model_cloud_router_package.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_package_nat_type.go b/services/fabricv4/model_cloud_router_package_nat_type.go index e52bbe40..73a2c437 100644 --- a/services/fabricv4/model_cloud_router_package_nat_type.go +++ b/services/fabricv4/model_cloud_router_package_nat_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_package_type.go b/services/fabricv4/model_cloud_router_package_type.go index adf60357..766eedda 100644 --- a/services/fabricv4/model_cloud_router_package_type.go +++ b/services/fabricv4/model_cloud_router_package_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_post_request.go b/services/fabricv4/model_cloud_router_post_request.go index d6883f01..fbda396e 100644 --- a/services/fabricv4/model_cloud_router_post_request.go +++ b/services/fabricv4/model_cloud_router_post_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_post_request_package.go b/services/fabricv4/model_cloud_router_post_request_package.go index 2bbde624..a66aa06c 100644 --- a/services/fabricv4/model_cloud_router_post_request_package.go +++ b/services/fabricv4/model_cloud_router_post_request_package.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_post_request_package_code.go b/services/fabricv4/model_cloud_router_post_request_package_code.go index e58caaa3..30b7de2a 100644 --- a/services/fabricv4/model_cloud_router_post_request_package_code.go +++ b/services/fabricv4/model_cloud_router_post_request_package_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_post_request_package_type.go b/services/fabricv4/model_cloud_router_post_request_package_type.go index 085e0b18..662fa332 100644 --- a/services/fabricv4/model_cloud_router_post_request_package_type.go +++ b/services/fabricv4/model_cloud_router_post_request_package_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_post_request_type.go b/services/fabricv4/model_cloud_router_post_request_type.go index 1b3b061f..e835ec9c 100644 --- a/services/fabricv4/model_cloud_router_post_request_type.go +++ b/services/fabricv4/model_cloud_router_post_request_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_search_request.go b/services/fabricv4/model_cloud_router_search_request.go index 18e3a791..5d9bb79a 100644 --- a/services/fabricv4/model_cloud_router_search_request.go +++ b/services/fabricv4/model_cloud_router_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_simple_expression.go b/services/fabricv4/model_cloud_router_simple_expression.go index 49483352..2b3b16f7 100644 --- a/services/fabricv4/model_cloud_router_simple_expression.go +++ b/services/fabricv4/model_cloud_router_simple_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_sort_by.go b/services/fabricv4/model_cloud_router_sort_by.go index 353f9d33..24a494a7 100644 --- a/services/fabricv4/model_cloud_router_sort_by.go +++ b/services/fabricv4/model_cloud_router_sort_by.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_sort_criteria.go b/services/fabricv4/model_cloud_router_sort_criteria.go index 85fe9783..051db1f3 100644 --- a/services/fabricv4/model_cloud_router_sort_criteria.go +++ b/services/fabricv4/model_cloud_router_sort_criteria.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_cloud_router_sort_direction.go b/services/fabricv4/model_cloud_router_sort_direction.go index 609d7c43..30789926 100644 --- a/services/fabricv4/model_cloud_router_sort_direction.go +++ b/services/fabricv4/model_cloud_router_sort_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_code.go b/services/fabricv4/model_code.go index bb5afcd4..d1fe5549 100644 --- a/services/fabricv4/model_code.go +++ b/services/fabricv4/model_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connected_metro.go b/services/fabricv4/model_connected_metro.go index 491cfef1..61b17b50 100644 --- a/services/fabricv4/model_connected_metro.go +++ b/services/fabricv4/model_connected_metro.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection.go b/services/fabricv4/model_connection.go index ce5e7835..5b3e20df 100644 --- a/services/fabricv4/model_connection.go +++ b/services/fabricv4/model_connection.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,9 +17,9 @@ var _ MappedNullable = &Connection{} // Connection Connection specification type Connection struct { - Type ConnectionType `json:"type"` // Connection URI - Href *string `json:"href,omitempty"` + Href *string `json:"href,omitempty"` + Type ConnectionType `json:"type"` // Equinix-assigned connection identifier Uuid *string `json:"uuid,omitempty"` // Customer-provided connection name @@ -75,30 +74,6 @@ func NewConnectionWithDefaults() *Connection { return &this } -// GetType returns the Type field value -func (o *Connection) GetType() ConnectionType { - if o == nil { - var ret ConnectionType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *Connection) GetTypeOk() (*ConnectionType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *Connection) SetType(v ConnectionType) { - o.Type = v -} - // GetHref returns the Href field value if set, zero value otherwise. func (o *Connection) GetHref() string { if o == nil || IsNil(o.Href) { @@ -131,6 +106,30 @@ func (o *Connection) SetHref(v string) { o.Href = &v } +// GetType returns the Type field value +func (o *Connection) GetType() ConnectionType { + if o == nil { + var ret ConnectionType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Connection) GetTypeOk() (*ConnectionType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Connection) SetType(v ConnectionType) { + o.Type = v +} + // GetUuid returns the Uuid field value if set, zero value otherwise. func (o *Connection) GetUuid() string { if o == nil || IsNil(o.Uuid) { @@ -749,10 +748,10 @@ func (o Connection) MarshalJSON() ([]byte, error) { func (o Connection) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type if !IsNil(o.Href) { toSerialize["href"] = o.Href } + toSerialize["type"] = o.Type if !IsNil(o.Uuid) { toSerialize["uuid"] = o.Uuid } @@ -852,8 +851,8 @@ func (o *Connection) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") delete(additionalProperties, "href") + delete(additionalProperties, "type") delete(additionalProperties, "uuid") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/services/fabricv4/model_connection_acceptance_data.go b/services/fabricv4/model_connection_acceptance_data.go index 20a98651..14c2b31f 100644 --- a/services/fabricv4/model_connection_acceptance_data.go +++ b/services/fabricv4/model_connection_acceptance_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_action.go b/services/fabricv4/model_connection_action.go index 3ab3d0e3..6dde3fca 100644 --- a/services/fabricv4/model_connection_action.go +++ b/services/fabricv4/model_connection_action.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_action_request.go b/services/fabricv4/model_connection_action_request.go index 631188ec..e83b3eb9 100644 --- a/services/fabricv4/model_connection_action_request.go +++ b/services/fabricv4/model_connection_action_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +18,7 @@ var _ MappedNullable = &ConnectionActionRequest{} // ConnectionActionRequest Connection action request type ConnectionActionRequest struct { Type Actions `json:"type"` - // Connection rejection reason datail + // Connection rejection reason detail Description *string `json:"description,omitempty"` Data *ConnectionAcceptanceData `json:"data,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/fabricv4/model_connection_change_operation.go b/services/fabricv4/model_connection_change_operation.go index 7d606aab..cc8e1a19 100644 --- a/services/fabricv4/model_connection_change_operation.go +++ b/services/fabricv4/model_connection_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_company_profile.go b/services/fabricv4/model_connection_company_profile.go index afc264e9..f997ae87 100644 --- a/services/fabricv4/model_connection_company_profile.go +++ b/services/fabricv4/model_connection_company_profile.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_direction.go b/services/fabricv4/model_connection_direction.go index bcc2373a..ae878ca6 100644 --- a/services/fabricv4/model_connection_direction.go +++ b/services/fabricv4/model_connection_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_invitation.go b/services/fabricv4/model_connection_invitation.go index 8c530215..6aa76674 100644 --- a/services/fabricv4/model_connection_invitation.go +++ b/services/fabricv4/model_connection_invitation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_link.go b/services/fabricv4/model_connection_link.go index 752524d3..48005198 100644 --- a/services/fabricv4/model_connection_link.go +++ b/services/fabricv4/model_connection_link.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_link_type.go b/services/fabricv4/model_connection_link_type.go index f8b3fff5..87f60e7f 100644 --- a/services/fabricv4/model_connection_link_type.go +++ b/services/fabricv4/model_connection_link_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_operation.go b/services/fabricv4/model_connection_operation.go index b687b45c..1b1b17ed 100644 --- a/services/fabricv4/model_connection_operation.go +++ b/services/fabricv4/model_connection_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_operation_operational_status.go b/services/fabricv4/model_connection_operation_operational_status.go index 92bb93d8..3d7762f8 100644 --- a/services/fabricv4/model_connection_operation_operational_status.go +++ b/services/fabricv4/model_connection_operation_operational_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_post_request.go b/services/fabricv4/model_connection_post_request.go index ffb63ff2..98a8d2f7 100644 --- a/services/fabricv4/model_connection_post_request.go +++ b/services/fabricv4/model_connection_post_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_priority.go b/services/fabricv4/model_connection_priority.go index 3f9fe9af..bed55a26 100644 --- a/services/fabricv4/model_connection_priority.go +++ b/services/fabricv4/model_connection_priority.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_redundancy.go b/services/fabricv4/model_connection_redundancy.go index 48a68c11..f4573db8 100644 --- a/services/fabricv4/model_connection_redundancy.go +++ b/services/fabricv4/model_connection_redundancy.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_response.go b/services/fabricv4/model_connection_response.go index c628e3d0..3fd8f9b3 100644 --- a/services/fabricv4/model_connection_response.go +++ b/services/fabricv4/model_connection_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +19,7 @@ type ConnectionResponse struct { // Additional information AdditionalInfo []ConnectionSideAdditionalInfo `json:"additionalInfo,omitempty"` // Connection response data - Data []BaseConnection `json:"data,omitempty"` + Data []ValidateConnectionResponse `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,9 +75,9 @@ func (o *ConnectionResponse) SetAdditionalInfo(v []ConnectionSideAdditionalInfo) } // GetData returns the Data field value if set, zero value otherwise. -func (o *ConnectionResponse) GetData() []BaseConnection { +func (o *ConnectionResponse) GetData() []ValidateConnectionResponse { if o == nil || IsNil(o.Data) { - var ret []BaseConnection + var ret []ValidateConnectionResponse return ret } return o.Data @@ -86,7 +85,7 @@ func (o *ConnectionResponse) GetData() []BaseConnection { // 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 *ConnectionResponse) GetDataOk() ([]BaseConnection, bool) { +func (o *ConnectionResponse) GetDataOk() ([]ValidateConnectionResponse, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -102,8 +101,8 @@ func (o *ConnectionResponse) HasData() bool { return false } -// SetData gets a reference to the given []BaseConnection and assigns it to the Data field. -func (o *ConnectionResponse) SetData(v []BaseConnection) { +// SetData gets a reference to the given []ValidateConnectionResponse and assigns it to the Data field. +func (o *ConnectionResponse) SetData(v []ValidateConnectionResponse) { o.Data = v } diff --git a/services/fabricv4/model_connection_route_entry_filter.go b/services/fabricv4/model_connection_route_entry_filter.go new file mode 100644 index 00000000..433633a3 --- /dev/null +++ b/services/fabricv4/model_connection_route_entry_filter.go @@ -0,0 +1,100 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// ConnectionRouteEntryFilter struct for ConnectionRouteEntryFilter +type ConnectionRouteEntryFilter struct { + ConnectionRouteEntryOrFilter *ConnectionRouteEntryOrFilter + ConnectionRouteEntrySimpleExpression *ConnectionRouteEntrySimpleExpression +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *ConnectionRouteEntryFilter) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into ConnectionRouteEntryOrFilter + err = json.Unmarshal(data, &dst.ConnectionRouteEntryOrFilter) + if err == nil { + jsonConnectionRouteEntryOrFilter, _ := json.Marshal(dst.ConnectionRouteEntryOrFilter) + if string(jsonConnectionRouteEntryOrFilter) == "{}" { // empty struct + dst.ConnectionRouteEntryOrFilter = nil + } else { + return nil // data stored in dst.ConnectionRouteEntryOrFilter, return on the first match + } + } else { + dst.ConnectionRouteEntryOrFilter = nil + } + + // try to unmarshal JSON data into ConnectionRouteEntrySimpleExpression + err = json.Unmarshal(data, &dst.ConnectionRouteEntrySimpleExpression) + if err == nil { + jsonConnectionRouteEntrySimpleExpression, _ := json.Marshal(dst.ConnectionRouteEntrySimpleExpression) + if string(jsonConnectionRouteEntrySimpleExpression) == "{}" { // empty struct + dst.ConnectionRouteEntrySimpleExpression = nil + } else { + return nil // data stored in dst.ConnectionRouteEntrySimpleExpression, return on the first match + } + } else { + dst.ConnectionRouteEntrySimpleExpression = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(ConnectionRouteEntryFilter)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *ConnectionRouteEntryFilter) MarshalJSON() ([]byte, error) { + if src.ConnectionRouteEntryOrFilter != nil { + return json.Marshal(&src.ConnectionRouteEntryOrFilter) + } + + if src.ConnectionRouteEntrySimpleExpression != nil { + return json.Marshal(&src.ConnectionRouteEntrySimpleExpression) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableConnectionRouteEntryFilter struct { + value *ConnectionRouteEntryFilter + isSet bool +} + +func (v NullableConnectionRouteEntryFilter) Get() *ConnectionRouteEntryFilter { + return v.value +} + +func (v *NullableConnectionRouteEntryFilter) Set(val *ConnectionRouteEntryFilter) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteEntryFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteEntryFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteEntryFilter(val *ConnectionRouteEntryFilter) *NullableConnectionRouteEntryFilter { + return &NullableConnectionRouteEntryFilter{value: val, isSet: true} +} + +func (v NullableConnectionRouteEntryFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteEntryFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_entry_filters.go b/services/fabricv4/model_connection_route_entry_filters.go new file mode 100644 index 00000000..0eaf12d9 --- /dev/null +++ b/services/fabricv4/model_connection_route_entry_filters.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 ConnectionRouteEntryFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteEntryFilters{} + +// ConnectionRouteEntryFilters struct for ConnectionRouteEntryFilters +type ConnectionRouteEntryFilters struct { + And []ConnectionRouteEntryFilter `json:"and,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionRouteEntryFilters ConnectionRouteEntryFilters + +// NewConnectionRouteEntryFilters instantiates a new ConnectionRouteEntryFilters 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 NewConnectionRouteEntryFilters() *ConnectionRouteEntryFilters { + this := ConnectionRouteEntryFilters{} + return &this +} + +// NewConnectionRouteEntryFiltersWithDefaults instantiates a new ConnectionRouteEntryFilters 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 NewConnectionRouteEntryFiltersWithDefaults() *ConnectionRouteEntryFilters { + this := ConnectionRouteEntryFilters{} + return &this +} + +// GetAnd returns the And field value if set, zero value otherwise. +func (o *ConnectionRouteEntryFilters) GetAnd() []ConnectionRouteEntryFilter { + if o == nil || IsNil(o.And) { + var ret []ConnectionRouteEntryFilter + 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 *ConnectionRouteEntryFilters) GetAndOk() ([]ConnectionRouteEntryFilter, 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 *ConnectionRouteEntryFilters) HasAnd() bool { + if o != nil && !IsNil(o.And) { + return true + } + + return false +} + +// SetAnd gets a reference to the given []ConnectionRouteEntryFilter and assigns it to the And field. +func (o *ConnectionRouteEntryFilters) SetAnd(v []ConnectionRouteEntryFilter) { + o.And = v +} + +func (o ConnectionRouteEntryFilters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionRouteEntryFilters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.And) { + toSerialize["and"] = o.And + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectionRouteEntryFilters) UnmarshalJSON(data []byte) (err error) { + varConnectionRouteEntryFilters := _ConnectionRouteEntryFilters{} + + err = json.Unmarshal(data, &varConnectionRouteEntryFilters) + + if err != nil { + return err + } + + *o = ConnectionRouteEntryFilters(varConnectionRouteEntryFilters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "and") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectionRouteEntryFilters struct { + value *ConnectionRouteEntryFilters + isSet bool +} + +func (v NullableConnectionRouteEntryFilters) Get() *ConnectionRouteEntryFilters { + return v.value +} + +func (v *NullableConnectionRouteEntryFilters) Set(val *ConnectionRouteEntryFilters) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteEntryFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteEntryFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteEntryFilters(val *ConnectionRouteEntryFilters) *NullableConnectionRouteEntryFilters { + return &NullableConnectionRouteEntryFilters{value: val, isSet: true} +} + +func (v NullableConnectionRouteEntryFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteEntryFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_entry_or_filter.go b/services/fabricv4/model_connection_route_entry_or_filter.go new file mode 100644 index 00000000..214947d1 --- /dev/null +++ b/services/fabricv4/model_connection_route_entry_or_filter.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 ConnectionRouteEntryOrFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteEntryOrFilter{} + +// ConnectionRouteEntryOrFilter struct for ConnectionRouteEntryOrFilter +type ConnectionRouteEntryOrFilter struct { + Or []ConnectionRouteEntrySimpleExpression `json:"or,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionRouteEntryOrFilter ConnectionRouteEntryOrFilter + +// NewConnectionRouteEntryOrFilter instantiates a new ConnectionRouteEntryOrFilter 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 NewConnectionRouteEntryOrFilter() *ConnectionRouteEntryOrFilter { + this := ConnectionRouteEntryOrFilter{} + return &this +} + +// NewConnectionRouteEntryOrFilterWithDefaults instantiates a new ConnectionRouteEntryOrFilter 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 NewConnectionRouteEntryOrFilterWithDefaults() *ConnectionRouteEntryOrFilter { + this := ConnectionRouteEntryOrFilter{} + return &this +} + +// GetOr returns the Or field value if set, zero value otherwise. +func (o *ConnectionRouteEntryOrFilter) GetOr() []ConnectionRouteEntrySimpleExpression { + if o == nil || IsNil(o.Or) { + var ret []ConnectionRouteEntrySimpleExpression + 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 *ConnectionRouteEntryOrFilter) GetOrOk() ([]ConnectionRouteEntrySimpleExpression, 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 *ConnectionRouteEntryOrFilter) HasOr() bool { + if o != nil && !IsNil(o.Or) { + return true + } + + return false +} + +// SetOr gets a reference to the given []ConnectionRouteEntrySimpleExpression and assigns it to the Or field. +func (o *ConnectionRouteEntryOrFilter) SetOr(v []ConnectionRouteEntrySimpleExpression) { + o.Or = v +} + +func (o ConnectionRouteEntryOrFilter) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionRouteEntryOrFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Or) { + toSerialize["or"] = o.Or + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectionRouteEntryOrFilter) UnmarshalJSON(data []byte) (err error) { + varConnectionRouteEntryOrFilter := _ConnectionRouteEntryOrFilter{} + + err = json.Unmarshal(data, &varConnectionRouteEntryOrFilter) + + if err != nil { + return err + } + + *o = ConnectionRouteEntryOrFilter(varConnectionRouteEntryOrFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "or") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectionRouteEntryOrFilter struct { + value *ConnectionRouteEntryOrFilter + isSet bool +} + +func (v NullableConnectionRouteEntryOrFilter) Get() *ConnectionRouteEntryOrFilter { + return v.value +} + +func (v *NullableConnectionRouteEntryOrFilter) Set(val *ConnectionRouteEntryOrFilter) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteEntryOrFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteEntryOrFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteEntryOrFilter(val *ConnectionRouteEntryOrFilter) *NullableConnectionRouteEntryOrFilter { + return &NullableConnectionRouteEntryOrFilter{value: val, isSet: true} +} + +func (v NullableConnectionRouteEntryOrFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteEntryOrFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_entry_simple_expression.go b/services/fabricv4/model_connection_route_entry_simple_expression.go new file mode 100644 index 00000000..aa4fdf94 --- /dev/null +++ b/services/fabricv4/model_connection_route_entry_simple_expression.go @@ -0,0 +1,226 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the ConnectionRouteEntrySimpleExpression type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteEntrySimpleExpression{} + +// ConnectionRouteEntrySimpleExpression struct for ConnectionRouteEntrySimpleExpression +type ConnectionRouteEntrySimpleExpression struct { + // Possible field names to use on filters: * `/type` - Route table entry type * `/state` - Route table entry state * `/prefix` - Route table entry prefix * `/nextHop` - Route table entry nextHop * `/_*` - all-category search + Property *string `json:"property,omitempty"` + // Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `~*` - case-insensitive like + Operator *string `json:"operator,omitempty"` + Values []string `json:"values,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionRouteEntrySimpleExpression ConnectionRouteEntrySimpleExpression + +// NewConnectionRouteEntrySimpleExpression instantiates a new ConnectionRouteEntrySimpleExpression 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 NewConnectionRouteEntrySimpleExpression() *ConnectionRouteEntrySimpleExpression { + this := ConnectionRouteEntrySimpleExpression{} + return &this +} + +// NewConnectionRouteEntrySimpleExpressionWithDefaults instantiates a new ConnectionRouteEntrySimpleExpression 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 NewConnectionRouteEntrySimpleExpressionWithDefaults() *ConnectionRouteEntrySimpleExpression { + this := ConnectionRouteEntrySimpleExpression{} + return &this +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *ConnectionRouteEntrySimpleExpression) GetProperty() string { + if o == nil || IsNil(o.Property) { + var ret string + 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 *ConnectionRouteEntrySimpleExpression) GetPropertyOk() (*string, 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 *ConnectionRouteEntrySimpleExpression) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given string and assigns it to the Property field. +func (o *ConnectionRouteEntrySimpleExpression) SetProperty(v string) { + o.Property = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *ConnectionRouteEntrySimpleExpression) GetOperator() string { + if o == nil || IsNil(o.Operator) { + var ret string + 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 *ConnectionRouteEntrySimpleExpression) GetOperatorOk() (*string, 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 *ConnectionRouteEntrySimpleExpression) HasOperator() bool { + if o != nil && !IsNil(o.Operator) { + return true + } + + return false +} + +// SetOperator gets a reference to the given string and assigns it to the Operator field. +func (o *ConnectionRouteEntrySimpleExpression) SetOperator(v string) { + o.Operator = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *ConnectionRouteEntrySimpleExpression) 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 *ConnectionRouteEntrySimpleExpression) 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 *ConnectionRouteEntrySimpleExpression) 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 *ConnectionRouteEntrySimpleExpression) SetValues(v []string) { + o.Values = v +} + +func (o ConnectionRouteEntrySimpleExpression) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionRouteEntrySimpleExpression) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + 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 *ConnectionRouteEntrySimpleExpression) UnmarshalJSON(data []byte) (err error) { + varConnectionRouteEntrySimpleExpression := _ConnectionRouteEntrySimpleExpression{} + + err = json.Unmarshal(data, &varConnectionRouteEntrySimpleExpression) + + if err != nil { + return err + } + + *o = ConnectionRouteEntrySimpleExpression(varConnectionRouteEntrySimpleExpression) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "property") + delete(additionalProperties, "operator") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectionRouteEntrySimpleExpression struct { + value *ConnectionRouteEntrySimpleExpression + isSet bool +} + +func (v NullableConnectionRouteEntrySimpleExpression) Get() *ConnectionRouteEntrySimpleExpression { + return v.value +} + +func (v *NullableConnectionRouteEntrySimpleExpression) Set(val *ConnectionRouteEntrySimpleExpression) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteEntrySimpleExpression) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteEntrySimpleExpression) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteEntrySimpleExpression(val *ConnectionRouteEntrySimpleExpression) *NullableConnectionRouteEntrySimpleExpression { + return &NullableConnectionRouteEntrySimpleExpression{value: val, isSet: true} +} + +func (v NullableConnectionRouteEntrySimpleExpression) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteEntrySimpleExpression) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_entry_sort_by.go b/services/fabricv4/model_connection_route_entry_sort_by.go new file mode 100644 index 00000000..d6ef832b --- /dev/null +++ b/services/fabricv4/model_connection_route_entry_sort_by.go @@ -0,0 +1,117 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// ConnectionRouteEntrySortBy Possible field names to use on sorting +type ConnectionRouteEntrySortBy string + +// List of ConnectionRouteEntrySortBy +const ( + CONNECTIONROUTEENTRYSORTBY_CHANGE_LOG_CREATED_DATE_TIME ConnectionRouteEntrySortBy = "/changeLog/createdDateTime" + CONNECTIONROUTEENTRYSORTBY_CHANGE_LOG_UPDATED_DATE_TIME ConnectionRouteEntrySortBy = "/changeLog/updatedDateTime" + CONNECTIONROUTEENTRYSORTBY_MED ConnectionRouteEntrySortBy = "/med" + CONNECTIONROUTEENTRYSORTBY_CONNECTION_NAME ConnectionRouteEntrySortBy = "/connection/name" + CONNECTIONROUTEENTRYSORTBY_TYPE ConnectionRouteEntrySortBy = "/type" + CONNECTIONROUTEENTRYSORTBY_PREFIX ConnectionRouteEntrySortBy = "/prefix" + CONNECTIONROUTEENTRYSORTBY_NEXT_HOP ConnectionRouteEntrySortBy = "/nextHop" +) + +// All allowed values of ConnectionRouteEntrySortBy enum +var AllowedConnectionRouteEntrySortByEnumValues = []ConnectionRouteEntrySortBy{ + "/changeLog/createdDateTime", + "/changeLog/updatedDateTime", + "/med", + "/connection/name", + "/type", + "/prefix", + "/nextHop", +} + +func (v *ConnectionRouteEntrySortBy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectionRouteEntrySortBy(value) + for _, existing := range AllowedConnectionRouteEntrySortByEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectionRouteEntrySortBy", value) +} + +// NewConnectionRouteEntrySortByFromValue returns a pointer to a valid ConnectionRouteEntrySortBy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectionRouteEntrySortByFromValue(v string) (*ConnectionRouteEntrySortBy, error) { + ev := ConnectionRouteEntrySortBy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectionRouteEntrySortBy: valid values are %v", v, AllowedConnectionRouteEntrySortByEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectionRouteEntrySortBy) IsValid() bool { + for _, existing := range AllowedConnectionRouteEntrySortByEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectionRouteEntrySortBy value +func (v ConnectionRouteEntrySortBy) Ptr() *ConnectionRouteEntrySortBy { + return &v +} + +type NullableConnectionRouteEntrySortBy struct { + value *ConnectionRouteEntrySortBy + isSet bool +} + +func (v NullableConnectionRouteEntrySortBy) Get() *ConnectionRouteEntrySortBy { + return v.value +} + +func (v *NullableConnectionRouteEntrySortBy) Set(val *ConnectionRouteEntrySortBy) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteEntrySortBy) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteEntrySortBy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteEntrySortBy(val *ConnectionRouteEntrySortBy) *NullableConnectionRouteEntrySortBy { + return &NullableConnectionRouteEntrySortBy{value: val, isSet: true} +} + +func (v NullableConnectionRouteEntrySortBy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteEntrySortBy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_entry_sort_direction.go b/services/fabricv4/model_connection_route_entry_sort_direction.go new file mode 100644 index 00000000..4f4d133e --- /dev/null +++ b/services/fabricv4/model_connection_route_entry_sort_direction.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// ConnectionRouteEntrySortDirection Sorting direction +type ConnectionRouteEntrySortDirection string + +// List of ConnectionRouteEntrySortDirection +const ( + CONNECTIONROUTEENTRYSORTDIRECTION_DESC ConnectionRouteEntrySortDirection = "DESC" + CONNECTIONROUTEENTRYSORTDIRECTION_ASC ConnectionRouteEntrySortDirection = "ASC" +) + +// All allowed values of ConnectionRouteEntrySortDirection enum +var AllowedConnectionRouteEntrySortDirectionEnumValues = []ConnectionRouteEntrySortDirection{ + "DESC", + "ASC", +} + +func (v *ConnectionRouteEntrySortDirection) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectionRouteEntrySortDirection(value) + for _, existing := range AllowedConnectionRouteEntrySortDirectionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectionRouteEntrySortDirection", value) +} + +// NewConnectionRouteEntrySortDirectionFromValue returns a pointer to a valid ConnectionRouteEntrySortDirection +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectionRouteEntrySortDirectionFromValue(v string) (*ConnectionRouteEntrySortDirection, error) { + ev := ConnectionRouteEntrySortDirection(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectionRouteEntrySortDirection: valid values are %v", v, AllowedConnectionRouteEntrySortDirectionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectionRouteEntrySortDirection) IsValid() bool { + for _, existing := range AllowedConnectionRouteEntrySortDirectionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectionRouteEntrySortDirection value +func (v ConnectionRouteEntrySortDirection) Ptr() *ConnectionRouteEntrySortDirection { + return &v +} + +type NullableConnectionRouteEntrySortDirection struct { + value *ConnectionRouteEntrySortDirection + isSet bool +} + +func (v NullableConnectionRouteEntrySortDirection) Get() *ConnectionRouteEntrySortDirection { + return v.value +} + +func (v *NullableConnectionRouteEntrySortDirection) Set(val *ConnectionRouteEntrySortDirection) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteEntrySortDirection) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteEntrySortDirection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteEntrySortDirection(val *ConnectionRouteEntrySortDirection) *NullableConnectionRouteEntrySortDirection { + return &NullableConnectionRouteEntrySortDirection{value: val, isSet: true} +} + +func (v NullableConnectionRouteEntrySortDirection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteEntrySortDirection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_filter_data.go b/services/fabricv4/model_connection_route_filter_data.go index 6c62f5be..0cff4c84 100644 --- a/services/fabricv4/model_connection_route_filter_data.go +++ b/services/fabricv4/model_connection_route_filter_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_route_filter_data_attachment_status.go b/services/fabricv4/model_connection_route_filter_data_attachment_status.go index 490ab2a1..c6112c2c 100644 --- a/services/fabricv4/model_connection_route_filter_data_attachment_status.go +++ b/services/fabricv4/model_connection_route_filter_data_attachment_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_route_filter_data_direction.go b/services/fabricv4/model_connection_route_filter_data_direction.go index a667a433..e285de47 100644 --- a/services/fabricv4/model_connection_route_filter_data_direction.go +++ b/services/fabricv4/model_connection_route_filter_data_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_route_filter_data_type.go b/services/fabricv4/model_connection_route_filter_data_type.go index a9bd8c8b..ed2ce40c 100644 --- a/services/fabricv4/model_connection_route_filter_data_type.go +++ b/services/fabricv4/model_connection_route_filter_data_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_route_filters_base.go b/services/fabricv4/model_connection_route_filters_base.go index 5b002c9d..67080bb9 100644 --- a/services/fabricv4/model_connection_route_filters_base.go +++ b/services/fabricv4/model_connection_route_filters_base.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_route_filters_base_direction.go b/services/fabricv4/model_connection_route_filters_base_direction.go index 198e7596..ba20d626 100644 --- a/services/fabricv4/model_connection_route_filters_base_direction.go +++ b/services/fabricv4/model_connection_route_filters_base_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_route_search_request.go b/services/fabricv4/model_connection_route_search_request.go new file mode 100644 index 00000000..aac0950a --- /dev/null +++ b/services/fabricv4/model_connection_route_search_request.go @@ -0,0 +1,224 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the ConnectionRouteSearchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteSearchRequest{} + +// ConnectionRouteSearchRequest Search requests containing criteria +type ConnectionRouteSearchRequest struct { + Filter *ConnectionRouteEntryFilters `json:"filter,omitempty"` + Pagination *PaginationRequest `json:"pagination,omitempty"` + Sort []ConnectionRouteSortCriteria `json:"sort,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionRouteSearchRequest ConnectionRouteSearchRequest + +// NewConnectionRouteSearchRequest instantiates a new ConnectionRouteSearchRequest 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 NewConnectionRouteSearchRequest() *ConnectionRouteSearchRequest { + this := ConnectionRouteSearchRequest{} + return &this +} + +// NewConnectionRouteSearchRequestWithDefaults instantiates a new ConnectionRouteSearchRequest 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 NewConnectionRouteSearchRequestWithDefaults() *ConnectionRouteSearchRequest { + this := ConnectionRouteSearchRequest{} + return &this +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *ConnectionRouteSearchRequest) GetFilter() ConnectionRouteEntryFilters { + if o == nil || IsNil(o.Filter) { + var ret ConnectionRouteEntryFilters + 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 *ConnectionRouteSearchRequest) GetFilterOk() (*ConnectionRouteEntryFilters, 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 *ConnectionRouteSearchRequest) HasFilter() bool { + if o != nil && !IsNil(o.Filter) { + return true + } + + return false +} + +// SetFilter gets a reference to the given ConnectionRouteEntryFilters and assigns it to the Filter field. +func (o *ConnectionRouteSearchRequest) SetFilter(v ConnectionRouteEntryFilters) { + o.Filter = &v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *ConnectionRouteSearchRequest) GetPagination() PaginationRequest { + if o == nil || IsNil(o.Pagination) { + var ret PaginationRequest + 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 *ConnectionRouteSearchRequest) GetPaginationOk() (*PaginationRequest, 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 *ConnectionRouteSearchRequest) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationRequest and assigns it to the Pagination field. +func (o *ConnectionRouteSearchRequest) SetPagination(v PaginationRequest) { + o.Pagination = &v +} + +// GetSort returns the Sort field value if set, zero value otherwise. +func (o *ConnectionRouteSearchRequest) GetSort() []ConnectionRouteSortCriteria { + if o == nil || IsNil(o.Sort) { + var ret []ConnectionRouteSortCriteria + return ret + } + return o.Sort +} + +// GetSortOk returns a tuple with the Sort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteSearchRequest) GetSortOk() ([]ConnectionRouteSortCriteria, bool) { + if o == nil || IsNil(o.Sort) { + return nil, false + } + return o.Sort, true +} + +// HasSort returns a boolean if a field has been set. +func (o *ConnectionRouteSearchRequest) HasSort() bool { + if o != nil && !IsNil(o.Sort) { + return true + } + + return false +} + +// SetSort gets a reference to the given []ConnectionRouteSortCriteria and assigns it to the Sort field. +func (o *ConnectionRouteSearchRequest) SetSort(v []ConnectionRouteSortCriteria) { + o.Sort = v +} + +func (o ConnectionRouteSearchRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionRouteSearchRequest) 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 + } + if !IsNil(o.Sort) { + toSerialize["sort"] = o.Sort + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectionRouteSearchRequest) UnmarshalJSON(data []byte) (err error) { + varConnectionRouteSearchRequest := _ConnectionRouteSearchRequest{} + + err = json.Unmarshal(data, &varConnectionRouteSearchRequest) + + if err != nil { + return err + } + + *o = ConnectionRouteSearchRequest(varConnectionRouteSearchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "filter") + delete(additionalProperties, "pagination") + delete(additionalProperties, "sort") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectionRouteSearchRequest struct { + value *ConnectionRouteSearchRequest + isSet bool +} + +func (v NullableConnectionRouteSearchRequest) Get() *ConnectionRouteSearchRequest { + return v.value +} + +func (v *NullableConnectionRouteSearchRequest) Set(val *ConnectionRouteSearchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteSearchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteSearchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteSearchRequest(val *ConnectionRouteSearchRequest) *NullableConnectionRouteSearchRequest { + return &NullableConnectionRouteSearchRequest{value: val, isSet: true} +} + +func (v NullableConnectionRouteSearchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteSearchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_sort_criteria.go b/services/fabricv4/model_connection_route_sort_criteria.go new file mode 100644 index 00000000..fb144ec2 --- /dev/null +++ b/services/fabricv4/model_connection_route_sort_criteria.go @@ -0,0 +1,195 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the ConnectionRouteSortCriteria type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteSortCriteria{} + +// ConnectionRouteSortCriteria struct for ConnectionRouteSortCriteria +type ConnectionRouteSortCriteria struct { + Direction *ConnectionRouteEntrySortDirection `json:"direction,omitempty"` + Property *ConnectionRouteEntrySortBy `json:"property,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionRouteSortCriteria ConnectionRouteSortCriteria + +// NewConnectionRouteSortCriteria instantiates a new ConnectionRouteSortCriteria 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 NewConnectionRouteSortCriteria() *ConnectionRouteSortCriteria { + this := ConnectionRouteSortCriteria{} + var direction ConnectionRouteEntrySortDirection = CONNECTIONROUTEENTRYSORTDIRECTION_DESC + this.Direction = &direction + var property ConnectionRouteEntrySortBy = CONNECTIONROUTEENTRYSORTBY_CHANGE_LOG_UPDATED_DATE_TIME + this.Property = &property + return &this +} + +// NewConnectionRouteSortCriteriaWithDefaults instantiates a new ConnectionRouteSortCriteria 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 NewConnectionRouteSortCriteriaWithDefaults() *ConnectionRouteSortCriteria { + this := ConnectionRouteSortCriteria{} + var direction ConnectionRouteEntrySortDirection = CONNECTIONROUTEENTRYSORTDIRECTION_DESC + this.Direction = &direction + var property ConnectionRouteEntrySortBy = CONNECTIONROUTEENTRYSORTBY_CHANGE_LOG_UPDATED_DATE_TIME + this.Property = &property + return &this +} + +// GetDirection returns the Direction field value if set, zero value otherwise. +func (o *ConnectionRouteSortCriteria) GetDirection() ConnectionRouteEntrySortDirection { + if o == nil || IsNil(o.Direction) { + var ret ConnectionRouteEntrySortDirection + return ret + } + return *o.Direction +} + +// GetDirectionOk returns a tuple with the Direction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteSortCriteria) GetDirectionOk() (*ConnectionRouteEntrySortDirection, bool) { + if o == nil || IsNil(o.Direction) { + return nil, false + } + return o.Direction, true +} + +// HasDirection returns a boolean if a field has been set. +func (o *ConnectionRouteSortCriteria) HasDirection() bool { + if o != nil && !IsNil(o.Direction) { + return true + } + + return false +} + +// SetDirection gets a reference to the given ConnectionRouteEntrySortDirection and assigns it to the Direction field. +func (o *ConnectionRouteSortCriteria) SetDirection(v ConnectionRouteEntrySortDirection) { + o.Direction = &v +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *ConnectionRouteSortCriteria) GetProperty() ConnectionRouteEntrySortBy { + if o == nil || IsNil(o.Property) { + var ret ConnectionRouteEntrySortBy + 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 *ConnectionRouteSortCriteria) GetPropertyOk() (*ConnectionRouteEntrySortBy, 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 *ConnectionRouteSortCriteria) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given ConnectionRouteEntrySortBy and assigns it to the Property field. +func (o *ConnectionRouteSortCriteria) SetProperty(v ConnectionRouteEntrySortBy) { + o.Property = &v +} + +func (o ConnectionRouteSortCriteria) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionRouteSortCriteria) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Direction) { + toSerialize["direction"] = o.Direction + } + if !IsNil(o.Property) { + toSerialize["property"] = o.Property + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectionRouteSortCriteria) UnmarshalJSON(data []byte) (err error) { + varConnectionRouteSortCriteria := _ConnectionRouteSortCriteria{} + + err = json.Unmarshal(data, &varConnectionRouteSortCriteria) + + if err != nil { + return err + } + + *o = ConnectionRouteSortCriteria(varConnectionRouteSortCriteria) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "direction") + delete(additionalProperties, "property") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectionRouteSortCriteria struct { + value *ConnectionRouteSortCriteria + isSet bool +} + +func (v NullableConnectionRouteSortCriteria) Get() *ConnectionRouteSortCriteria { + return v.value +} + +func (v *NullableConnectionRouteSortCriteria) Set(val *ConnectionRouteSortCriteria) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteSortCriteria) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteSortCriteria) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteSortCriteria(val *ConnectionRouteSortCriteria) *NullableConnectionRouteSortCriteria { + return &NullableConnectionRouteSortCriteria{value: val, isSet: true} +} + +func (v NullableConnectionRouteSortCriteria) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteSortCriteria) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_table_entry.go b/services/fabricv4/model_connection_route_table_entry.go new file mode 100644 index 00000000..6a7b9092 --- /dev/null +++ b/services/fabricv4/model_connection_route_table_entry.go @@ -0,0 +1,517 @@ +/* +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 ConnectionRouteTableEntry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteTableEntry{} + +// ConnectionRouteTableEntry Adv/Rec Route table entry object +type ConnectionRouteTableEntry struct { + Type RouteTableEntryType `json:"type"` + ProtocolType *RouteTableEntryProtocolType `json:"protocolType,omitempty"` + State ConnectionRouteTableEntryState `json:"state"` + Age *string `json:"age,omitempty"` + Prefix *string `json:"prefix,omitempty"` + NextHop *string `json:"nextHop,omitempty"` + MED *int32 `json:"MED,omitempty"` + LocalPreference *int32 `json:"localPreference,omitempty"` + AsPath []string `json:"asPath,omitempty"` + Connection *ConnectionRouteTableEntryConnection `json:"connection,omitempty"` + ChangeLog Changelog `json:"changeLog"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionRouteTableEntry ConnectionRouteTableEntry + +// NewConnectionRouteTableEntry instantiates a new ConnectionRouteTableEntry 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 NewConnectionRouteTableEntry(type_ RouteTableEntryType, state ConnectionRouteTableEntryState, changeLog Changelog) *ConnectionRouteTableEntry { + this := ConnectionRouteTableEntry{} + this.Type = type_ + this.State = state + this.ChangeLog = changeLog + return &this +} + +// NewConnectionRouteTableEntryWithDefaults instantiates a new ConnectionRouteTableEntry 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 NewConnectionRouteTableEntryWithDefaults() *ConnectionRouteTableEntry { + this := ConnectionRouteTableEntry{} + return &this +} + +// GetType returns the Type field value +func (o *ConnectionRouteTableEntry) GetType() RouteTableEntryType { + if o == nil { + var ret RouteTableEntryType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetTypeOk() (*RouteTableEntryType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ConnectionRouteTableEntry) SetType(v RouteTableEntryType) { + o.Type = v +} + +// GetProtocolType returns the ProtocolType field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetProtocolType() RouteTableEntryProtocolType { + if o == nil || IsNil(o.ProtocolType) { + var ret RouteTableEntryProtocolType + return ret + } + return *o.ProtocolType +} + +// GetProtocolTypeOk returns a tuple with the ProtocolType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetProtocolTypeOk() (*RouteTableEntryProtocolType, bool) { + if o == nil || IsNil(o.ProtocolType) { + return nil, false + } + return o.ProtocolType, true +} + +// HasProtocolType returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasProtocolType() bool { + if o != nil && !IsNil(o.ProtocolType) { + return true + } + + return false +} + +// SetProtocolType gets a reference to the given RouteTableEntryProtocolType and assigns it to the ProtocolType field. +func (o *ConnectionRouteTableEntry) SetProtocolType(v RouteTableEntryProtocolType) { + o.ProtocolType = &v +} + +// GetState returns the State field value +func (o *ConnectionRouteTableEntry) GetState() ConnectionRouteTableEntryState { + if o == nil { + var ret ConnectionRouteTableEntryState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetStateOk() (*ConnectionRouteTableEntryState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *ConnectionRouteTableEntry) SetState(v ConnectionRouteTableEntryState) { + o.State = v +} + +// GetAge returns the Age field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetAge() string { + if o == nil || IsNil(o.Age) { + var ret string + return ret + } + return *o.Age +} + +// GetAgeOk returns a tuple with the Age field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetAgeOk() (*string, bool) { + if o == nil || IsNil(o.Age) { + return nil, false + } + return o.Age, true +} + +// HasAge returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasAge() bool { + if o != nil && !IsNil(o.Age) { + return true + } + + return false +} + +// SetAge gets a reference to the given string and assigns it to the Age field. +func (o *ConnectionRouteTableEntry) SetAge(v string) { + o.Age = &v +} + +// GetPrefix returns the Prefix field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetPrefix() string { + if o == nil || IsNil(o.Prefix) { + var ret string + return ret + } + return *o.Prefix +} + +// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetPrefixOk() (*string, bool) { + if o == nil || IsNil(o.Prefix) { + return nil, false + } + return o.Prefix, true +} + +// HasPrefix returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasPrefix() bool { + if o != nil && !IsNil(o.Prefix) { + return true + } + + return false +} + +// SetPrefix gets a reference to the given string and assigns it to the Prefix field. +func (o *ConnectionRouteTableEntry) SetPrefix(v string) { + o.Prefix = &v +} + +// GetNextHop returns the NextHop field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetNextHop() string { + if o == nil || IsNil(o.NextHop) { + var ret string + return ret + } + return *o.NextHop +} + +// GetNextHopOk returns a tuple with the NextHop field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetNextHopOk() (*string, bool) { + if o == nil || IsNil(o.NextHop) { + return nil, false + } + return o.NextHop, true +} + +// HasNextHop returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasNextHop() bool { + if o != nil && !IsNil(o.NextHop) { + return true + } + + return false +} + +// SetNextHop gets a reference to the given string and assigns it to the NextHop field. +func (o *ConnectionRouteTableEntry) SetNextHop(v string) { + o.NextHop = &v +} + +// GetMED returns the MED field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetMED() int32 { + if o == nil || IsNil(o.MED) { + var ret int32 + return ret + } + return *o.MED +} + +// GetMEDOk returns a tuple with the MED field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetMEDOk() (*int32, bool) { + if o == nil || IsNil(o.MED) { + return nil, false + } + return o.MED, true +} + +// HasMED returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasMED() bool { + if o != nil && !IsNil(o.MED) { + return true + } + + return false +} + +// SetMED gets a reference to the given int32 and assigns it to the MED field. +func (o *ConnectionRouteTableEntry) SetMED(v int32) { + o.MED = &v +} + +// GetLocalPreference returns the LocalPreference field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetLocalPreference() int32 { + if o == nil || IsNil(o.LocalPreference) { + var ret int32 + return ret + } + return *o.LocalPreference +} + +// GetLocalPreferenceOk returns a tuple with the LocalPreference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetLocalPreferenceOk() (*int32, bool) { + if o == nil || IsNil(o.LocalPreference) { + return nil, false + } + return o.LocalPreference, true +} + +// HasLocalPreference returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasLocalPreference() bool { + if o != nil && !IsNil(o.LocalPreference) { + return true + } + + return false +} + +// SetLocalPreference gets a reference to the given int32 and assigns it to the LocalPreference field. +func (o *ConnectionRouteTableEntry) SetLocalPreference(v int32) { + o.LocalPreference = &v +} + +// GetAsPath returns the AsPath field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetAsPath() []string { + if o == nil || IsNil(o.AsPath) { + var ret []string + return ret + } + return o.AsPath +} + +// GetAsPathOk returns a tuple with the AsPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetAsPathOk() ([]string, bool) { + if o == nil || IsNil(o.AsPath) { + return nil, false + } + return o.AsPath, true +} + +// HasAsPath returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasAsPath() bool { + if o != nil && !IsNil(o.AsPath) { + return true + } + + return false +} + +// SetAsPath gets a reference to the given []string and assigns it to the AsPath field. +func (o *ConnectionRouteTableEntry) SetAsPath(v []string) { + o.AsPath = v +} + +// GetConnection returns the Connection field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntry) GetConnection() ConnectionRouteTableEntryConnection { + if o == nil || IsNil(o.Connection) { + var ret ConnectionRouteTableEntryConnection + return ret + } + return *o.Connection +} + +// GetConnectionOk returns a tuple with the Connection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetConnectionOk() (*ConnectionRouteTableEntryConnection, bool) { + if o == nil || IsNil(o.Connection) { + return nil, false + } + return o.Connection, true +} + +// HasConnection returns a boolean if a field has been set. +func (o *ConnectionRouteTableEntry) HasConnection() bool { + if o != nil && !IsNil(o.Connection) { + return true + } + + return false +} + +// SetConnection gets a reference to the given ConnectionRouteTableEntryConnection and assigns it to the Connection field. +func (o *ConnectionRouteTableEntry) SetConnection(v ConnectionRouteTableEntryConnection) { + o.Connection = &v +} + +// GetChangeLog returns the ChangeLog field value +func (o *ConnectionRouteTableEntry) GetChangeLog() Changelog { + if o == nil { + var ret Changelog + return ret + } + + return o.ChangeLog +} + +// GetChangeLogOk returns a tuple with the ChangeLog field value +// and a boolean to check if the value has been set. +func (o *ConnectionRouteTableEntry) GetChangeLogOk() (*Changelog, bool) { + if o == nil { + return nil, false + } + return &o.ChangeLog, true +} + +// SetChangeLog sets field value +func (o *ConnectionRouteTableEntry) SetChangeLog(v Changelog) { + o.ChangeLog = v +} + +func (o ConnectionRouteTableEntry) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionRouteTableEntry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + if !IsNil(o.ProtocolType) { + toSerialize["protocolType"] = o.ProtocolType + } + toSerialize["state"] = o.State + if !IsNil(o.Age) { + toSerialize["age"] = o.Age + } + if !IsNil(o.Prefix) { + toSerialize["prefix"] = o.Prefix + } + if !IsNil(o.NextHop) { + toSerialize["nextHop"] = o.NextHop + } + if !IsNil(o.MED) { + toSerialize["MED"] = o.MED + } + if !IsNil(o.LocalPreference) { + toSerialize["localPreference"] = o.LocalPreference + } + if !IsNil(o.AsPath) { + toSerialize["asPath"] = o.AsPath + } + if !IsNil(o.Connection) { + toSerialize["connection"] = o.Connection + } + toSerialize["changeLog"] = o.ChangeLog + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConnectionRouteTableEntry) 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", + "state", + "changeLog", + } + + 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) + } + } + + varConnectionRouteTableEntry := _ConnectionRouteTableEntry{} + + err = json.Unmarshal(data, &varConnectionRouteTableEntry) + + if err != nil { + return err + } + + *o = ConnectionRouteTableEntry(varConnectionRouteTableEntry) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "protocolType") + delete(additionalProperties, "state") + delete(additionalProperties, "age") + delete(additionalProperties, "prefix") + delete(additionalProperties, "nextHop") + delete(additionalProperties, "MED") + delete(additionalProperties, "localPreference") + delete(additionalProperties, "asPath") + delete(additionalProperties, "connection") + delete(additionalProperties, "changeLog") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConnectionRouteTableEntry struct { + value *ConnectionRouteTableEntry + isSet bool +} + +func (v NullableConnectionRouteTableEntry) Get() *ConnectionRouteTableEntry { + return v.value +} + +func (v *NullableConnectionRouteTableEntry) Set(val *ConnectionRouteTableEntry) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteTableEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteTableEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteTableEntry(val *ConnectionRouteTableEntry) *NullableConnectionRouteTableEntry { + return &NullableConnectionRouteTableEntry{value: val, isSet: true} +} + +func (v NullableConnectionRouteTableEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteTableEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_route_table_entry_connection.go b/services/fabricv4/model_connection_route_table_entry_connection.go similarity index 50% rename from services/fabricv4/model_route_table_entry_connection.go rename to services/fabricv4/model_connection_route_table_entry_connection.go index b02bb634..0d97bc30 100644 --- a/services/fabricv4/model_route_table_entry_connection.go +++ b/services/fabricv4/model_connection_route_table_entry_connection.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,37 +11,37 @@ import ( "encoding/json" ) -// checks if the RouteTableEntryConnection type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RouteTableEntryConnection{} +// checks if the ConnectionRouteTableEntryConnection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteTableEntryConnection{} -// RouteTableEntryConnection struct for RouteTableEntryConnection -type RouteTableEntryConnection struct { +// ConnectionRouteTableEntryConnection struct for ConnectionRouteTableEntryConnection +type ConnectionRouteTableEntryConnection struct { Uuid *string `json:"uuid,omitempty"` Name *string `json:"name,omitempty"` AdditionalProperties map[string]interface{} } -type _RouteTableEntryConnection RouteTableEntryConnection +type _ConnectionRouteTableEntryConnection ConnectionRouteTableEntryConnection -// NewRouteTableEntryConnection instantiates a new RouteTableEntryConnection object +// NewConnectionRouteTableEntryConnection instantiates a new ConnectionRouteTableEntryConnection 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 NewRouteTableEntryConnection() *RouteTableEntryConnection { - this := RouteTableEntryConnection{} +func NewConnectionRouteTableEntryConnection() *ConnectionRouteTableEntryConnection { + this := ConnectionRouteTableEntryConnection{} return &this } -// NewRouteTableEntryConnectionWithDefaults instantiates a new RouteTableEntryConnection object +// NewConnectionRouteTableEntryConnectionWithDefaults instantiates a new ConnectionRouteTableEntryConnection 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 NewRouteTableEntryConnectionWithDefaults() *RouteTableEntryConnection { - this := RouteTableEntryConnection{} +func NewConnectionRouteTableEntryConnectionWithDefaults() *ConnectionRouteTableEntryConnection { + this := ConnectionRouteTableEntryConnection{} return &this } // GetUuid returns the Uuid field value if set, zero value otherwise. -func (o *RouteTableEntryConnection) GetUuid() string { +func (o *ConnectionRouteTableEntryConnection) GetUuid() string { if o == nil || IsNil(o.Uuid) { var ret string return ret @@ -52,7 +51,7 @@ func (o *RouteTableEntryConnection) GetUuid() string { // 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 *RouteTableEntryConnection) GetUuidOk() (*string, bool) { +func (o *ConnectionRouteTableEntryConnection) GetUuidOk() (*string, bool) { if o == nil || IsNil(o.Uuid) { return nil, false } @@ -60,7 +59,7 @@ func (o *RouteTableEntryConnection) GetUuidOk() (*string, bool) { } // HasUuid returns a boolean if a field has been set. -func (o *RouteTableEntryConnection) HasUuid() bool { +func (o *ConnectionRouteTableEntryConnection) HasUuid() bool { if o != nil && !IsNil(o.Uuid) { return true } @@ -69,12 +68,12 @@ func (o *RouteTableEntryConnection) HasUuid() bool { } // SetUuid gets a reference to the given string and assigns it to the Uuid field. -func (o *RouteTableEntryConnection) SetUuid(v string) { +func (o *ConnectionRouteTableEntryConnection) SetUuid(v string) { o.Uuid = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *RouteTableEntryConnection) GetName() string { +func (o *ConnectionRouteTableEntryConnection) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -84,7 +83,7 @@ func (o *RouteTableEntryConnection) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RouteTableEntryConnection) GetNameOk() (*string, bool) { +func (o *ConnectionRouteTableEntryConnection) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -92,7 +91,7 @@ func (o *RouteTableEntryConnection) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *RouteTableEntryConnection) HasName() bool { +func (o *ConnectionRouteTableEntryConnection) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -101,11 +100,11 @@ func (o *RouteTableEntryConnection) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *RouteTableEntryConnection) SetName(v string) { +func (o *ConnectionRouteTableEntryConnection) SetName(v string) { o.Name = &v } -func (o RouteTableEntryConnection) MarshalJSON() ([]byte, error) { +func (o ConnectionRouteTableEntryConnection) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +112,7 @@ func (o RouteTableEntryConnection) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o RouteTableEntryConnection) ToMap() (map[string]interface{}, error) { +func (o ConnectionRouteTableEntryConnection) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Uuid) { toSerialize["uuid"] = o.Uuid @@ -129,16 +128,16 @@ func (o RouteTableEntryConnection) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *RouteTableEntryConnection) UnmarshalJSON(data []byte) (err error) { - varRouteTableEntryConnection := _RouteTableEntryConnection{} +func (o *ConnectionRouteTableEntryConnection) UnmarshalJSON(data []byte) (err error) { + varConnectionRouteTableEntryConnection := _ConnectionRouteTableEntryConnection{} - err = json.Unmarshal(data, &varRouteTableEntryConnection) + err = json.Unmarshal(data, &varConnectionRouteTableEntryConnection) if err != nil { return err } - *o = RouteTableEntryConnection(varRouteTableEntryConnection) + *o = ConnectionRouteTableEntryConnection(varConnectionRouteTableEntryConnection) additionalProperties := make(map[string]interface{}) @@ -151,38 +150,38 @@ func (o *RouteTableEntryConnection) UnmarshalJSON(data []byte) (err error) { return err } -type NullableRouteTableEntryConnection struct { - value *RouteTableEntryConnection +type NullableConnectionRouteTableEntryConnection struct { + value *ConnectionRouteTableEntryConnection isSet bool } -func (v NullableRouteTableEntryConnection) Get() *RouteTableEntryConnection { +func (v NullableConnectionRouteTableEntryConnection) Get() *ConnectionRouteTableEntryConnection { return v.value } -func (v *NullableRouteTableEntryConnection) Set(val *RouteTableEntryConnection) { +func (v *NullableConnectionRouteTableEntryConnection) Set(val *ConnectionRouteTableEntryConnection) { v.value = val v.isSet = true } -func (v NullableRouteTableEntryConnection) IsSet() bool { +func (v NullableConnectionRouteTableEntryConnection) IsSet() bool { return v.isSet } -func (v *NullableRouteTableEntryConnection) Unset() { +func (v *NullableConnectionRouteTableEntryConnection) Unset() { v.value = nil v.isSet = false } -func NewNullableRouteTableEntryConnection(val *RouteTableEntryConnection) *NullableRouteTableEntryConnection { - return &NullableRouteTableEntryConnection{value: val, isSet: true} +func NewNullableConnectionRouteTableEntryConnection(val *ConnectionRouteTableEntryConnection) *NullableConnectionRouteTableEntryConnection { + return &NullableConnectionRouteTableEntryConnection{value: val, isSet: true} } -func (v NullableRouteTableEntryConnection) MarshalJSON() ([]byte, error) { +func (v NullableConnectionRouteTableEntryConnection) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableRouteTableEntryConnection) UnmarshalJSON(src []byte) error { +func (v *NullableConnectionRouteTableEntryConnection) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/services/fabricv4/model_connection_route_table_entry_search_response.go b/services/fabricv4/model_connection_route_table_entry_search_response.go new file mode 100644 index 00000000..e909d991 --- /dev/null +++ b/services/fabricv4/model_connection_route_table_entry_search_response.go @@ -0,0 +1,188 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the ConnectionRouteTableEntrySearchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectionRouteTableEntrySearchResponse{} + +// ConnectionRouteTableEntrySearchResponse struct for ConnectionRouteTableEntrySearchResponse +type ConnectionRouteTableEntrySearchResponse struct { + Pagination *Pagination `json:"pagination,omitempty"` + // Data returned from the API call. + Data []ConnectionRouteTableEntry `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConnectionRouteTableEntrySearchResponse ConnectionRouteTableEntrySearchResponse + +// NewConnectionRouteTableEntrySearchResponse instantiates a new ConnectionRouteTableEntrySearchResponse 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 NewConnectionRouteTableEntrySearchResponse() *ConnectionRouteTableEntrySearchResponse { + this := ConnectionRouteTableEntrySearchResponse{} + return &this +} + +// NewConnectionRouteTableEntrySearchResponseWithDefaults instantiates a new ConnectionRouteTableEntrySearchResponse 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 NewConnectionRouteTableEntrySearchResponseWithDefaults() *ConnectionRouteTableEntrySearchResponse { + this := ConnectionRouteTableEntrySearchResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntrySearchResponse) 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 *ConnectionRouteTableEntrySearchResponse) 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 *ConnectionRouteTableEntrySearchResponse) 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 *ConnectionRouteTableEntrySearchResponse) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ConnectionRouteTableEntrySearchResponse) GetData() []ConnectionRouteTableEntry { + if o == nil || IsNil(o.Data) { + var ret []ConnectionRouteTableEntry + 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 *ConnectionRouteTableEntrySearchResponse) GetDataOk() ([]ConnectionRouteTableEntry, 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 *ConnectionRouteTableEntrySearchResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []ConnectionRouteTableEntry and assigns it to the Data field. +func (o *ConnectionRouteTableEntrySearchResponse) SetData(v []ConnectionRouteTableEntry) { + o.Data = v +} + +func (o ConnectionRouteTableEntrySearchResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectionRouteTableEntrySearchResponse) 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 *ConnectionRouteTableEntrySearchResponse) UnmarshalJSON(data []byte) (err error) { + varConnectionRouteTableEntrySearchResponse := _ConnectionRouteTableEntrySearchResponse{} + + err = json.Unmarshal(data, &varConnectionRouteTableEntrySearchResponse) + + if err != nil { + return err + } + + *o = ConnectionRouteTableEntrySearchResponse(varConnectionRouteTableEntrySearchResponse) + + 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 NullableConnectionRouteTableEntrySearchResponse struct { + value *ConnectionRouteTableEntrySearchResponse + isSet bool +} + +func (v NullableConnectionRouteTableEntrySearchResponse) Get() *ConnectionRouteTableEntrySearchResponse { + return v.value +} + +func (v *NullableConnectionRouteTableEntrySearchResponse) Set(val *ConnectionRouteTableEntrySearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteTableEntrySearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteTableEntrySearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteTableEntrySearchResponse(val *ConnectionRouteTableEntrySearchResponse) *NullableConnectionRouteTableEntrySearchResponse { + return &NullableConnectionRouteTableEntrySearchResponse{value: val, isSet: true} +} + +func (v NullableConnectionRouteTableEntrySearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteTableEntrySearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_route_table_entry_state.go b/services/fabricv4/model_connection_route_table_entry_state.go new file mode 100644 index 00000000..b220258d --- /dev/null +++ b/services/fabricv4/model_connection_route_table_entry_state.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// ConnectionRouteTableEntryState the model 'ConnectionRouteTableEntryState' +type ConnectionRouteTableEntryState string + +// List of ConnectionRouteTableEntry_state +const ( + CONNECTIONROUTETABLEENTRYSTATE_ACTIVE ConnectionRouteTableEntryState = "ACTIVE" + CONNECTIONROUTETABLEENTRYSTATE_INACTIVE ConnectionRouteTableEntryState = "INACTIVE" +) + +// All allowed values of ConnectionRouteTableEntryState enum +var AllowedConnectionRouteTableEntryStateEnumValues = []ConnectionRouteTableEntryState{ + "ACTIVE", + "INACTIVE", +} + +func (v *ConnectionRouteTableEntryState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectionRouteTableEntryState(value) + for _, existing := range AllowedConnectionRouteTableEntryStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectionRouteTableEntryState", value) +} + +// NewConnectionRouteTableEntryStateFromValue returns a pointer to a valid ConnectionRouteTableEntryState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectionRouteTableEntryStateFromValue(v string) (*ConnectionRouteTableEntryState, error) { + ev := ConnectionRouteTableEntryState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectionRouteTableEntryState: valid values are %v", v, AllowedConnectionRouteTableEntryStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectionRouteTableEntryState) IsValid() bool { + for _, existing := range AllowedConnectionRouteTableEntryStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectionRouteTableEntry_state value +func (v ConnectionRouteTableEntryState) Ptr() *ConnectionRouteTableEntryState { + return &v +} + +type NullableConnectionRouteTableEntryState struct { + value *ConnectionRouteTableEntryState + isSet bool +} + +func (v NullableConnectionRouteTableEntryState) Get() *ConnectionRouteTableEntryState { + return v.value +} + +func (v *NullableConnectionRouteTableEntryState) Set(val *ConnectionRouteTableEntryState) { + v.value = val + v.isSet = true +} + +func (v NullableConnectionRouteTableEntryState) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectionRouteTableEntryState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectionRouteTableEntryState(val *ConnectionRouteTableEntryState) *NullableConnectionRouteTableEntryState { + return &NullableConnectionRouteTableEntryState{value: val, isSet: true} +} + +func (v NullableConnectionRouteTableEntryState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectionRouteTableEntryState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_connection_routing_protocol_post_request.go b/services/fabricv4/model_connection_routing_protocol_post_request.go index d73cb78b..69156dbf 100644 --- a/services/fabricv4/model_connection_routing_protocol_post_request.go +++ b/services/fabricv4/model_connection_routing_protocol_post_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_search_response.go b/services/fabricv4/model_connection_search_response.go index d9fa987d..877820f7 100644 --- a/services/fabricv4/model_connection_search_response.go +++ b/services/fabricv4/model_connection_search_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_side.go b/services/fabricv4/model_connection_side.go index 19732d11..c8737c60 100644 --- a/services/fabricv4/model_connection_side.go +++ b/services/fabricv4/model_connection_side.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_side_additional_info.go b/services/fabricv4/model_connection_side_additional_info.go index d881b3af..3f651cad 100644 --- a/services/fabricv4/model_connection_side_additional_info.go +++ b/services/fabricv4/model_connection_side_additional_info.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_state.go b/services/fabricv4/model_connection_state.go index 3c2fc851..8f0870b9 100644 --- a/services/fabricv4/model_connection_state.go +++ b/services/fabricv4/model_connection_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connection_type.go b/services/fabricv4/model_connection_type.go index c843aecf..a2b5de2e 100644 --- a/services/fabricv4/model_connection_type.go +++ b/services/fabricv4/model_connection_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connectivity_source.go b/services/fabricv4/model_connectivity_source.go index 6095a1e6..42434af9 100644 --- a/services/fabricv4/model_connectivity_source.go +++ b/services/fabricv4/model_connectivity_source.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_connectivity_source_type.go b/services/fabricv4/model_connectivity_source_type.go index 1e4ae3ed..d0b865c5 100644 --- a/services/fabricv4/model_connectivity_source_type.go +++ b/services/fabricv4/model_connectivity_source_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_custom_field.go b/services/fabricv4/model_custom_field.go index 27982900..1094a86e 100644 --- a/services/fabricv4/model_custom_field.go +++ b/services/fabricv4/model_custom_field.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_custom_field_data_type.go b/services/fabricv4/model_custom_field_data_type.go index beff5cbe..b5ab814e 100644 --- a/services/fabricv4/model_custom_field_data_type.go +++ b/services/fabricv4/model_custom_field_data_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_direct_connection_ipv4.go b/services/fabricv4/model_direct_connection_ipv4.go index 90a54248..57eb8170 100644 --- a/services/fabricv4/model_direct_connection_ipv4.go +++ b/services/fabricv4/model_direct_connection_ipv4.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_direct_connection_ipv6.go b/services/fabricv4/model_direct_connection_ipv6.go index bc663b04..0c6a4923 100644 --- a/services/fabricv4/model_direct_connection_ipv6.go +++ b/services/fabricv4/model_direct_connection_ipv6.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_direction.go b/services/fabricv4/model_direction.go index 9c45629e..e67773b3 100644 --- a/services/fabricv4/model_direction.go +++ b/services/fabricv4/model_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_duration.go b/services/fabricv4/model_duration.go index 0d0622f0..ddd092ba 100644 --- a/services/fabricv4/model_duration.go +++ b/services/fabricv4/model_duration.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_equinix_status.go b/services/fabricv4/model_equinix_status.go index 01586560..1091b774 100644 --- a/services/fabricv4/model_equinix_status.go +++ b/services/fabricv4/model_equinix_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_error.go b/services/fabricv4/model_error.go index 4d83c967..146f2549 100644 --- a/services/fabricv4/model_error.go +++ b/services/fabricv4/model_error.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_expression.go b/services/fabricv4/model_expression.go index 323332b5..77ff5796 100644 --- a/services/fabricv4/model_expression.go +++ b/services/fabricv4/model_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_expression_operator.go b/services/fabricv4/model_expression_operator.go index 76f35ddb..f99a2fe8 100644 --- a/services/fabricv4/model_expression_operator.go +++ b/services/fabricv4/model_expression_operator.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_fabric_cloud_router_code.go b/services/fabricv4/model_fabric_cloud_router_code.go index 9e65e73e..9d104d04 100644 --- a/services/fabricv4/model_fabric_cloud_router_code.go +++ b/services/fabricv4/model_fabric_cloud_router_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_fabric_cloud_router_packages.go b/services/fabricv4/model_fabric_cloud_router_packages.go index 1ff02566..01a8a80f 100644 --- a/services/fabricv4/model_fabric_cloud_router_packages.go +++ b/services/fabricv4/model_fabric_cloud_router_packages.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_fabric_cloud_router_price.go b/services/fabricv4/model_fabric_cloud_router_price.go index ff4ada7c..48f6dbb0 100644 --- a/services/fabricv4/model_fabric_cloud_router_price.go +++ b/services/fabricv4/model_fabric_cloud_router_price.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_filter_body.go b/services/fabricv4/model_filter_body.go index 085873c9..06a7202a 100644 --- a/services/fabricv4/model_filter_body.go +++ b/services/fabricv4/model_filter_body.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_geo_coordinates.go b/services/fabricv4/model_geo_coordinates.go index 0c870b5b..13ce0ded 100644 --- a/services/fabricv4/model_geo_coordinates.go +++ b/services/fabricv4/model_geo_coordinates.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_geo_scope_type.go b/services/fabricv4/model_geo_scope_type.go index 5dd74364..cef05f23 100644 --- a/services/fabricv4/model_geo_scope_type.go +++ b/services/fabricv4/model_geo_scope_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_get_all_connection_route_filters_response.go b/services/fabricv4/model_get_all_connection_route_filters_response.go index b53b60f6..2f5d21d7 100644 --- a/services/fabricv4/model_get_all_connection_route_filters_response.go +++ b/services/fabricv4/model_get_all_connection_route_filters_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_get_all_stream_asset_response.go b/services/fabricv4/model_get_all_stream_asset_response.go new file mode 100644 index 00000000..434c1ca8 --- /dev/null +++ b/services/fabricv4/model_get_all_stream_asset_response.go @@ -0,0 +1,188 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the GetAllStreamAssetResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAllStreamAssetResponse{} + +// GetAllStreamAssetResponse struct for GetAllStreamAssetResponse +type GetAllStreamAssetResponse struct { + Pagination *Pagination `json:"pagination,omitempty"` + // Data returned from the API call. + Data []StreamAsset `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAllStreamAssetResponse GetAllStreamAssetResponse + +// NewGetAllStreamAssetResponse instantiates a new GetAllStreamAssetResponse 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 NewGetAllStreamAssetResponse() *GetAllStreamAssetResponse { + this := GetAllStreamAssetResponse{} + return &this +} + +// NewGetAllStreamAssetResponseWithDefaults instantiates a new GetAllStreamAssetResponse 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 NewGetAllStreamAssetResponseWithDefaults() *GetAllStreamAssetResponse { + this := GetAllStreamAssetResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *GetAllStreamAssetResponse) 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 *GetAllStreamAssetResponse) 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 *GetAllStreamAssetResponse) 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 *GetAllStreamAssetResponse) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GetAllStreamAssetResponse) GetData() []StreamAsset { + if o == nil || IsNil(o.Data) { + var ret []StreamAsset + 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 *GetAllStreamAssetResponse) GetDataOk() ([]StreamAsset, 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 *GetAllStreamAssetResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []StreamAsset and assigns it to the Data field. +func (o *GetAllStreamAssetResponse) SetData(v []StreamAsset) { + o.Data = v +} + +func (o GetAllStreamAssetResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAllStreamAssetResponse) 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 *GetAllStreamAssetResponse) UnmarshalJSON(data []byte) (err error) { + varGetAllStreamAssetResponse := _GetAllStreamAssetResponse{} + + err = json.Unmarshal(data, &varGetAllStreamAssetResponse) + + if err != nil { + return err + } + + *o = GetAllStreamAssetResponse(varGetAllStreamAssetResponse) + + 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 NullableGetAllStreamAssetResponse struct { + value *GetAllStreamAssetResponse + isSet bool +} + +func (v NullableGetAllStreamAssetResponse) Get() *GetAllStreamAssetResponse { + return v.value +} + +func (v *NullableGetAllStreamAssetResponse) Set(val *GetAllStreamAssetResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetAllStreamAssetResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAllStreamAssetResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAllStreamAssetResponse(val *GetAllStreamAssetResponse) *NullableGetAllStreamAssetResponse { + return &NullableGetAllStreamAssetResponse{value: val, isSet: true} +} + +func (v NullableGetAllStreamAssetResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAllStreamAssetResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_get_all_stream_response.go b/services/fabricv4/model_get_all_stream_response.go new file mode 100644 index 00000000..a2f0f6cb --- /dev/null +++ b/services/fabricv4/model_get_all_stream_response.go @@ -0,0 +1,188 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the GetAllStreamResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAllStreamResponse{} + +// GetAllStreamResponse struct for GetAllStreamResponse +type GetAllStreamResponse struct { + Pagination *Pagination `json:"pagination,omitempty"` + // Data returned from the API call. + Data []Stream `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAllStreamResponse GetAllStreamResponse + +// NewGetAllStreamResponse instantiates a new GetAllStreamResponse 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 NewGetAllStreamResponse() *GetAllStreamResponse { + this := GetAllStreamResponse{} + return &this +} + +// NewGetAllStreamResponseWithDefaults instantiates a new GetAllStreamResponse 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 NewGetAllStreamResponseWithDefaults() *GetAllStreamResponse { + this := GetAllStreamResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *GetAllStreamResponse) 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 *GetAllStreamResponse) 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 *GetAllStreamResponse) 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 *GetAllStreamResponse) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GetAllStreamResponse) GetData() []Stream { + if o == nil || IsNil(o.Data) { + var ret []Stream + 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 *GetAllStreamResponse) GetDataOk() ([]Stream, 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 *GetAllStreamResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []Stream and assigns it to the Data field. +func (o *GetAllStreamResponse) SetData(v []Stream) { + o.Data = v +} + +func (o GetAllStreamResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAllStreamResponse) 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 *GetAllStreamResponse) UnmarshalJSON(data []byte) (err error) { + varGetAllStreamResponse := _GetAllStreamResponse{} + + err = json.Unmarshal(data, &varGetAllStreamResponse) + + if err != nil { + return err + } + + *o = GetAllStreamResponse(varGetAllStreamResponse) + + 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 NullableGetAllStreamResponse struct { + value *GetAllStreamResponse + isSet bool +} + +func (v NullableGetAllStreamResponse) Get() *GetAllStreamResponse { + return v.value +} + +func (v *NullableGetAllStreamResponse) Set(val *GetAllStreamResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetAllStreamResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAllStreamResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAllStreamResponse(val *GetAllStreamResponse) *NullableGetAllStreamResponse { + return &NullableGetAllStreamResponse{value: val, isSet: true} +} + +func (v NullableGetAllStreamResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAllStreamResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_get_all_stream_subscription_response.go b/services/fabricv4/model_get_all_stream_subscription_response.go new file mode 100644 index 00000000..aeba24f8 --- /dev/null +++ b/services/fabricv4/model_get_all_stream_subscription_response.go @@ -0,0 +1,188 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the GetAllStreamSubscriptionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAllStreamSubscriptionResponse{} + +// GetAllStreamSubscriptionResponse struct for GetAllStreamSubscriptionResponse +type GetAllStreamSubscriptionResponse struct { + Pagination *Pagination `json:"pagination,omitempty"` + // Data returned from the API call. + Data []StreamSubscription `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAllStreamSubscriptionResponse GetAllStreamSubscriptionResponse + +// NewGetAllStreamSubscriptionResponse instantiates a new GetAllStreamSubscriptionResponse 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 NewGetAllStreamSubscriptionResponse() *GetAllStreamSubscriptionResponse { + this := GetAllStreamSubscriptionResponse{} + return &this +} + +// NewGetAllStreamSubscriptionResponseWithDefaults instantiates a new GetAllStreamSubscriptionResponse 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 NewGetAllStreamSubscriptionResponseWithDefaults() *GetAllStreamSubscriptionResponse { + this := GetAllStreamSubscriptionResponse{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *GetAllStreamSubscriptionResponse) 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 *GetAllStreamSubscriptionResponse) 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 *GetAllStreamSubscriptionResponse) 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 *GetAllStreamSubscriptionResponse) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GetAllStreamSubscriptionResponse) GetData() []StreamSubscription { + if o == nil || IsNil(o.Data) { + var ret []StreamSubscription + 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 *GetAllStreamSubscriptionResponse) GetDataOk() ([]StreamSubscription, 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 *GetAllStreamSubscriptionResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []StreamSubscription and assigns it to the Data field. +func (o *GetAllStreamSubscriptionResponse) SetData(v []StreamSubscription) { + o.Data = v +} + +func (o GetAllStreamSubscriptionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAllStreamSubscriptionResponse) 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 *GetAllStreamSubscriptionResponse) UnmarshalJSON(data []byte) (err error) { + varGetAllStreamSubscriptionResponse := _GetAllStreamSubscriptionResponse{} + + err = json.Unmarshal(data, &varGetAllStreamSubscriptionResponse) + + if err != nil { + return err + } + + *o = GetAllStreamSubscriptionResponse(varGetAllStreamSubscriptionResponse) + + 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 NullableGetAllStreamSubscriptionResponse struct { + value *GetAllStreamSubscriptionResponse + isSet bool +} + +func (v NullableGetAllStreamSubscriptionResponse) Get() *GetAllStreamSubscriptionResponse { + return v.value +} + +func (v *NullableGetAllStreamSubscriptionResponse) Set(val *GetAllStreamSubscriptionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetAllStreamSubscriptionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAllStreamSubscriptionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAllStreamSubscriptionResponse(val *GetAllStreamSubscriptionResponse) *NullableGetAllStreamSubscriptionResponse { + return &NullableGetAllStreamSubscriptionResponse{value: val, isSet: true} +} + +func (v NullableGetAllStreamSubscriptionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAllStreamSubscriptionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_get_response.go b/services/fabricv4/model_get_response.go index c5788317..f967dd27 100644 --- a/services/fabricv4/model_get_response.go +++ b/services/fabricv4/model_get_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_get_route_filter_get_connections_response.go b/services/fabricv4/model_get_route_filter_get_connections_response.go index 994e98c8..ab586814 100644 --- a/services/fabricv4/model_get_route_filter_get_connections_response.go +++ b/services/fabricv4/model_get_route_filter_get_connections_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_get_route_filter_rules_response.go b/services/fabricv4/model_get_route_filter_rules_response.go index ab4d99dd..2eda0075 100644 --- a/services/fabricv4/model_get_route_filter_rules_response.go +++ b/services/fabricv4/model_get_route_filter_rules_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_get_service_profiles_view_point_parameter.go b/services/fabricv4/model_get_service_profiles_view_point_parameter.go index 20150b8d..a0223fe5 100644 --- a/services/fabricv4/model_get_service_profiles_view_point_parameter.go +++ b/services/fabricv4/model_get_service_profiles_view_point_parameter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_get_subscriptions_in_stream_response.go b/services/fabricv4/model_get_subscriptions_in_stream_response.go new file mode 100644 index 00000000..4f1fce94 --- /dev/null +++ b/services/fabricv4/model_get_subscriptions_in_stream_response.go @@ -0,0 +1,188 @@ +/* +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_get_time_services_package_by_code_package_code_parameter.go b/services/fabricv4/model_get_time_services_package_by_code_package_code_parameter.go index 24427a2b..3d88b48a 100644 --- a/services/fabricv4/model_get_time_services_package_by_code_package_code_parameter.go +++ b/services/fabricv4/model_get_time_services_package_by_code_package_code_parameter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_health_response.go b/services/fabricv4/model_health_response.go index 3b85597f..0ddcaf52 100644 --- a/services/fabricv4/model_health_response.go +++ b/services/fabricv4/model_health_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_interface.go b/services/fabricv4/model_interface.go index cc237c2e..fefddb18 100644 --- a/services/fabricv4/model_interface.go +++ b/services/fabricv4/model_interface.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_interface_type.go b/services/fabricv4/model_interface_type.go index ef537989..3346836d 100644 --- a/services/fabricv4/model_interface_type.go +++ b/services/fabricv4/model_interface_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_internet_access.go b/services/fabricv4/model_internet_access.go index 786a1389..a80a7cfe 100644 --- a/services/fabricv4/model_internet_access.go +++ b/services/fabricv4/model_internet_access.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_ip_block_price.go b/services/fabricv4/model_ip_block_price.go index 3965579a..1bbb4eaa 100644 --- a/services/fabricv4/model_ip_block_price.go +++ b/services/fabricv4/model_ip_block_price.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_ip_block_type.go b/services/fabricv4/model_ip_block_type.go index 580fce3e..8593d9a6 100644 --- a/services/fabricv4/model_ip_block_type.go +++ b/services/fabricv4/model_ip_block_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_ipv4.go b/services/fabricv4/model_ipv4.go index 760fbd62..5706961a 100644 --- a/services/fabricv4/model_ipv4.go +++ b/services/fabricv4/model_ipv4.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -10,6 +9,7 @@ package fabricv4 import ( "encoding/json" + "fmt" ) // checks if the Ipv4 type satisfies the MappedNullable interface at compile time @@ -17,9 +17,13 @@ var _ MappedNullable = &Ipv4{} // Ipv4 EPT service network information type Ipv4 struct { - Primary *string `json:"primary,omitempty"` - Secondary *string `json:"secondary,omitempty"` - NetworkMask *string `json:"networkMask,omitempty"` + // Primary Timing Server IP Address + Primary string `json:"primary"` + // Secondary Timing Server IP Address + Secondary string `json:"secondary"` + // Network Mask + NetworkMask string `json:"networkMask"` + // Gateway Interface IP address DefaultGateway *string `json:"defaultGateway,omitempty"` AdditionalProperties map[string]interface{} } @@ -30,8 +34,11 @@ type _Ipv4 Ipv4 // 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 NewIpv4() *Ipv4 { +func NewIpv4(primary string, secondary string, networkMask string) *Ipv4 { this := Ipv4{} + this.Primary = primary + this.Secondary = secondary + this.NetworkMask = networkMask return &this } @@ -43,100 +50,76 @@ func NewIpv4WithDefaults() *Ipv4 { return &this } -// GetPrimary returns the Primary field value if set, zero value otherwise. +// GetPrimary returns the Primary field value func (o *Ipv4) GetPrimary() string { - if o == nil || IsNil(o.Primary) { + if o == nil { var ret string return ret } - return *o.Primary + + return o.Primary } -// GetPrimaryOk returns a tuple with the Primary field value if set, nil otherwise +// GetPrimaryOk returns a tuple with the Primary field value // and a boolean to check if the value has been set. func (o *Ipv4) GetPrimaryOk() (*string, bool) { - if o == nil || IsNil(o.Primary) { + if o == nil { return nil, false } - return o.Primary, true + return &o.Primary, true } -// HasPrimary returns a boolean if a field has been set. -func (o *Ipv4) HasPrimary() bool { - if o != nil && !IsNil(o.Primary) { - return true - } - - return false -} - -// SetPrimary gets a reference to the given string and assigns it to the Primary field. +// SetPrimary sets field value func (o *Ipv4) SetPrimary(v string) { - o.Primary = &v + o.Primary = v } -// GetSecondary returns the Secondary field value if set, zero value otherwise. +// GetSecondary returns the Secondary field value func (o *Ipv4) GetSecondary() string { - if o == nil || IsNil(o.Secondary) { + if o == nil { var ret string return ret } - return *o.Secondary + + return o.Secondary } -// GetSecondaryOk returns a tuple with the Secondary field value if set, nil otherwise +// GetSecondaryOk returns a tuple with the Secondary field value // and a boolean to check if the value has been set. func (o *Ipv4) GetSecondaryOk() (*string, bool) { - if o == nil || IsNil(o.Secondary) { + if o == nil { return nil, false } - return o.Secondary, true + return &o.Secondary, true } -// HasSecondary returns a boolean if a field has been set. -func (o *Ipv4) HasSecondary() bool { - if o != nil && !IsNil(o.Secondary) { - return true - } - - return false -} - -// SetSecondary gets a reference to the given string and assigns it to the Secondary field. +// SetSecondary sets field value func (o *Ipv4) SetSecondary(v string) { - o.Secondary = &v + o.Secondary = v } -// GetNetworkMask returns the NetworkMask field value if set, zero value otherwise. +// GetNetworkMask returns the NetworkMask field value func (o *Ipv4) GetNetworkMask() string { - if o == nil || IsNil(o.NetworkMask) { + if o == nil { var ret string return ret } - return *o.NetworkMask + + return o.NetworkMask } -// GetNetworkMaskOk returns a tuple with the NetworkMask field value if set, nil otherwise +// GetNetworkMaskOk returns a tuple with the NetworkMask field value // and a boolean to check if the value has been set. func (o *Ipv4) GetNetworkMaskOk() (*string, bool) { - if o == nil || IsNil(o.NetworkMask) { + if o == nil { return nil, false } - return o.NetworkMask, true -} - -// HasNetworkMask returns a boolean if a field has been set. -func (o *Ipv4) HasNetworkMask() bool { - if o != nil && !IsNil(o.NetworkMask) { - return true - } - - return false + return &o.NetworkMask, true } -// SetNetworkMask gets a reference to the given string and assigns it to the NetworkMask field. +// SetNetworkMask sets field value func (o *Ipv4) SetNetworkMask(v string) { - o.NetworkMask = &v + o.NetworkMask = v } // GetDefaultGateway returns the DefaultGateway field value if set, zero value otherwise. @@ -181,15 +164,9 @@ func (o Ipv4) MarshalJSON() ([]byte, error) { func (o Ipv4) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Primary) { - toSerialize["primary"] = o.Primary - } - if !IsNil(o.Secondary) { - toSerialize["secondary"] = o.Secondary - } - if !IsNil(o.NetworkMask) { - toSerialize["networkMask"] = o.NetworkMask - } + toSerialize["primary"] = o.Primary + toSerialize["secondary"] = o.Secondary + toSerialize["networkMask"] = o.NetworkMask if !IsNil(o.DefaultGateway) { toSerialize["defaultGateway"] = o.DefaultGateway } @@ -202,6 +179,29 @@ func (o Ipv4) ToMap() (map[string]interface{}, error) { } func (o *Ipv4) 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{ + "primary", + "secondary", + "networkMask", + } + + 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) + } + } + varIpv4 := _Ipv4{} err = json.Unmarshal(data, &varIpv4) diff --git a/services/fabricv4/model_json_patch_operation.go b/services/fabricv4/model_json_patch_operation.go index 1db9ddf8..0262204c 100644 --- a/services/fabricv4/model_json_patch_operation.go +++ b/services/fabricv4/model_json_patch_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link.go b/services/fabricv4/model_link.go index 3534d3f8..f3b1fd1a 100644 --- a/services/fabricv4/model_link.go +++ b/services/fabricv4/model_link.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_aggregation_group.go b/services/fabricv4/model_link_aggregation_group.go index 7cf2aa87..f965d010 100644 --- a/services/fabricv4/model_link_aggregation_group.go +++ b/services/fabricv4/model_link_aggregation_group.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol.go b/services/fabricv4/model_link_protocol.go deleted file mode 100644 index d6fcfe2f..00000000 --- a/services/fabricv4/model_link_protocol.go +++ /dev/null @@ -1,233 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// LinkProtocol - Connection link protocol Configuration -type LinkProtocol struct { - LinkProtocolDot1q *LinkProtocolDot1q - LinkProtocolEvpnVxlan *LinkProtocolEvpnVxlan - LinkProtocolQinq *LinkProtocolQinq - LinkProtocolUntagged *LinkProtocolUntagged - LinkProtocolVxlan *LinkProtocolVxlan -} - -// LinkProtocolDot1qAsLinkProtocol is a convenience function that returns LinkProtocolDot1q wrapped in LinkProtocol -func LinkProtocolDot1qAsLinkProtocol(v *LinkProtocolDot1q) LinkProtocol { - return LinkProtocol{ - LinkProtocolDot1q: v, - } -} - -// LinkProtocolEvpnVxlanAsLinkProtocol is a convenience function that returns LinkProtocolEvpnVxlan wrapped in LinkProtocol -func LinkProtocolEvpnVxlanAsLinkProtocol(v *LinkProtocolEvpnVxlan) LinkProtocol { - return LinkProtocol{ - LinkProtocolEvpnVxlan: v, - } -} - -// LinkProtocolQinqAsLinkProtocol is a convenience function that returns LinkProtocolQinq wrapped in LinkProtocol -func LinkProtocolQinqAsLinkProtocol(v *LinkProtocolQinq) LinkProtocol { - return LinkProtocol{ - LinkProtocolQinq: v, - } -} - -// LinkProtocolUntaggedAsLinkProtocol is a convenience function that returns LinkProtocolUntagged wrapped in LinkProtocol -func LinkProtocolUntaggedAsLinkProtocol(v *LinkProtocolUntagged) LinkProtocol { - return LinkProtocol{ - LinkProtocolUntagged: v, - } -} - -// LinkProtocolVxlanAsLinkProtocol is a convenience function that returns LinkProtocolVxlan wrapped in LinkProtocol -func LinkProtocolVxlanAsLinkProtocol(v *LinkProtocolVxlan) LinkProtocol { - return LinkProtocol{ - LinkProtocolVxlan: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *LinkProtocol) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into LinkProtocolDot1q - err = newStrictDecoder(data).Decode(&dst.LinkProtocolDot1q) - if err == nil { - jsonLinkProtocolDot1q, _ := json.Marshal(dst.LinkProtocolDot1q) - if string(jsonLinkProtocolDot1q) == "{}" { // empty struct - dst.LinkProtocolDot1q = nil - } else { - match++ - } - } else { - dst.LinkProtocolDot1q = nil - } - - // try to unmarshal data into LinkProtocolEvpnVxlan - err = newStrictDecoder(data).Decode(&dst.LinkProtocolEvpnVxlan) - if err == nil { - jsonLinkProtocolEvpnVxlan, _ := json.Marshal(dst.LinkProtocolEvpnVxlan) - if string(jsonLinkProtocolEvpnVxlan) == "{}" { // empty struct - dst.LinkProtocolEvpnVxlan = nil - } else { - match++ - } - } else { - dst.LinkProtocolEvpnVxlan = nil - } - - // try to unmarshal data into LinkProtocolQinq - err = newStrictDecoder(data).Decode(&dst.LinkProtocolQinq) - if err == nil { - jsonLinkProtocolQinq, _ := json.Marshal(dst.LinkProtocolQinq) - if string(jsonLinkProtocolQinq) == "{}" { // empty struct - dst.LinkProtocolQinq = nil - } else { - match++ - } - } else { - dst.LinkProtocolQinq = nil - } - - // try to unmarshal data into LinkProtocolUntagged - err = newStrictDecoder(data).Decode(&dst.LinkProtocolUntagged) - if err == nil { - jsonLinkProtocolUntagged, _ := json.Marshal(dst.LinkProtocolUntagged) - if string(jsonLinkProtocolUntagged) == "{}" { // empty struct - dst.LinkProtocolUntagged = nil - } else { - match++ - } - } else { - dst.LinkProtocolUntagged = nil - } - - // try to unmarshal data into LinkProtocolVxlan - err = newStrictDecoder(data).Decode(&dst.LinkProtocolVxlan) - if err == nil { - jsonLinkProtocolVxlan, _ := json.Marshal(dst.LinkProtocolVxlan) - if string(jsonLinkProtocolVxlan) == "{}" { // empty struct - dst.LinkProtocolVxlan = nil - } else { - match++ - } - } else { - dst.LinkProtocolVxlan = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.LinkProtocolDot1q = nil - dst.LinkProtocolEvpnVxlan = nil - dst.LinkProtocolQinq = nil - dst.LinkProtocolUntagged = nil - dst.LinkProtocolVxlan = nil - - return fmt.Errorf("data matches more than one schema in oneOf(LinkProtocol)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(LinkProtocol)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src LinkProtocol) MarshalJSON() ([]byte, error) { - if src.LinkProtocolDot1q != nil { - return json.Marshal(&src.LinkProtocolDot1q) - } - - if src.LinkProtocolEvpnVxlan != nil { - return json.Marshal(&src.LinkProtocolEvpnVxlan) - } - - if src.LinkProtocolQinq != nil { - return json.Marshal(&src.LinkProtocolQinq) - } - - if src.LinkProtocolUntagged != nil { - return json.Marshal(&src.LinkProtocolUntagged) - } - - if src.LinkProtocolVxlan != nil { - return json.Marshal(&src.LinkProtocolVxlan) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *LinkProtocol) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.LinkProtocolDot1q != nil { - return obj.LinkProtocolDot1q - } - - if obj.LinkProtocolEvpnVxlan != nil { - return obj.LinkProtocolEvpnVxlan - } - - if obj.LinkProtocolQinq != nil { - return obj.LinkProtocolQinq - } - - if obj.LinkProtocolUntagged != nil { - return obj.LinkProtocolUntagged - } - - if obj.LinkProtocolVxlan != nil { - return obj.LinkProtocolVxlan - } - - // all schemas are nil - return nil -} - -type NullableLinkProtocol struct { - value *LinkProtocol - isSet bool -} - -func (v NullableLinkProtocol) Get() *LinkProtocol { - return v.value -} - -func (v *NullableLinkProtocol) Set(val *LinkProtocol) { - v.value = val - v.isSet = true -} - -func (v NullableLinkProtocol) IsSet() bool { - return v.isSet -} - -func (v *NullableLinkProtocol) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinkProtocol(val *LinkProtocol) *NullableLinkProtocol { - return &NullableLinkProtocol{value: val, isSet: true} -} - -func (v NullableLinkProtocol) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinkProtocol) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_link_protocol_connection.go b/services/fabricv4/model_link_protocol_connection.go index 4561f2e9..4a286763 100644 --- a/services/fabricv4/model_link_protocol_connection.go +++ b/services/fabricv4/model_link_protocol_connection.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol_dot1q.go b/services/fabricv4/model_link_protocol_dot1q.go deleted file mode 100644 index 2e896354..00000000 --- a/services/fabricv4/model_link_protocol_dot1q.go +++ /dev/null @@ -1,316 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// checks if the LinkProtocolDot1q type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinkProtocolDot1q{} - -// LinkProtocolDot1q Connection link protocol configuration - DOT1Q -type LinkProtocolDot1q struct { - Type *LinkProtocolType `json:"type,omitempty"` - // Tag protocol identifier - TagProtocolId *string `json:"tagProtocolId,omitempty"` - // VLAN tag - VlanTag string `json:"vlanTag"` - // VLAN tag Min value specified for DOT1Q connections - VlanTagMin *int32 `json:"vlanTagMin,omitempty"` - // VLAN tag Max value specified for DOT1Q connections - VlanTagMax *int32 `json:"vlanTagMax,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _LinkProtocolDot1q LinkProtocolDot1q - -// NewLinkProtocolDot1q instantiates a new LinkProtocolDot1q 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 NewLinkProtocolDot1q(vlanTag string) *LinkProtocolDot1q { - this := LinkProtocolDot1q{} - this.VlanTag = vlanTag - return &this -} - -// NewLinkProtocolDot1qWithDefaults instantiates a new LinkProtocolDot1q 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 NewLinkProtocolDot1qWithDefaults() *LinkProtocolDot1q { - this := LinkProtocolDot1q{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *LinkProtocolDot1q) GetType() LinkProtocolType { - if o == nil || IsNil(o.Type) { - var ret LinkProtocolType - 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 *LinkProtocolDot1q) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolDot1q) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given LinkProtocolType and assigns it to the Type field. -func (o *LinkProtocolDot1q) SetType(v LinkProtocolType) { - o.Type = &v -} - -// GetTagProtocolId returns the TagProtocolId field value if set, zero value otherwise. -func (o *LinkProtocolDot1q) GetTagProtocolId() string { - if o == nil || IsNil(o.TagProtocolId) { - var ret string - return ret - } - return *o.TagProtocolId -} - -// GetTagProtocolIdOk returns a tuple with the TagProtocolId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolDot1q) GetTagProtocolIdOk() (*string, bool) { - if o == nil || IsNil(o.TagProtocolId) { - return nil, false - } - return o.TagProtocolId, true -} - -// HasTagProtocolId returns a boolean if a field has been set. -func (o *LinkProtocolDot1q) HasTagProtocolId() bool { - if o != nil && !IsNil(o.TagProtocolId) { - return true - } - - return false -} - -// SetTagProtocolId gets a reference to the given string and assigns it to the TagProtocolId field. -func (o *LinkProtocolDot1q) SetTagProtocolId(v string) { - o.TagProtocolId = &v -} - -// GetVlanTag returns the VlanTag field value -func (o *LinkProtocolDot1q) GetVlanTag() string { - if o == nil { - var ret string - return ret - } - - return o.VlanTag -} - -// GetVlanTagOk returns a tuple with the VlanTag field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolDot1q) GetVlanTagOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.VlanTag, true -} - -// SetVlanTag sets field value -func (o *LinkProtocolDot1q) SetVlanTag(v string) { - o.VlanTag = v -} - -// GetVlanTagMin returns the VlanTagMin field value if set, zero value otherwise. -func (o *LinkProtocolDot1q) GetVlanTagMin() int32 { - if o == nil || IsNil(o.VlanTagMin) { - var ret int32 - return ret - } - return *o.VlanTagMin -} - -// GetVlanTagMinOk returns a tuple with the VlanTagMin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolDot1q) GetVlanTagMinOk() (*int32, bool) { - if o == nil || IsNil(o.VlanTagMin) { - return nil, false - } - return o.VlanTagMin, true -} - -// HasVlanTagMin returns a boolean if a field has been set. -func (o *LinkProtocolDot1q) HasVlanTagMin() bool { - if o != nil && !IsNil(o.VlanTagMin) { - return true - } - - return false -} - -// SetVlanTagMin gets a reference to the given int32 and assigns it to the VlanTagMin field. -func (o *LinkProtocolDot1q) SetVlanTagMin(v int32) { - o.VlanTagMin = &v -} - -// GetVlanTagMax returns the VlanTagMax field value if set, zero value otherwise. -func (o *LinkProtocolDot1q) GetVlanTagMax() int32 { - if o == nil || IsNil(o.VlanTagMax) { - var ret int32 - return ret - } - return *o.VlanTagMax -} - -// GetVlanTagMaxOk returns a tuple with the VlanTagMax field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolDot1q) GetVlanTagMaxOk() (*int32, bool) { - if o == nil || IsNil(o.VlanTagMax) { - return nil, false - } - return o.VlanTagMax, true -} - -// HasVlanTagMax returns a boolean if a field has been set. -func (o *LinkProtocolDot1q) HasVlanTagMax() bool { - if o != nil && !IsNil(o.VlanTagMax) { - return true - } - - return false -} - -// SetVlanTagMax gets a reference to the given int32 and assigns it to the VlanTagMax field. -func (o *LinkProtocolDot1q) SetVlanTagMax(v int32) { - o.VlanTagMax = &v -} - -func (o LinkProtocolDot1q) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinkProtocolDot1q) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.TagProtocolId) { - toSerialize["tagProtocolId"] = o.TagProtocolId - } - toSerialize["vlanTag"] = o.VlanTag - if !IsNil(o.VlanTagMin) { - toSerialize["vlanTagMin"] = o.VlanTagMin - } - if !IsNil(o.VlanTagMax) { - toSerialize["vlanTagMax"] = o.VlanTagMax - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *LinkProtocolDot1q) 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{ - "vlanTag", - } - - 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) - } - } - - varLinkProtocolDot1q := _LinkProtocolDot1q{} - - err = json.Unmarshal(data, &varLinkProtocolDot1q) - - if err != nil { - return err - } - - *o = LinkProtocolDot1q(varLinkProtocolDot1q) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "tagProtocolId") - delete(additionalProperties, "vlanTag") - delete(additionalProperties, "vlanTagMin") - delete(additionalProperties, "vlanTagMax") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableLinkProtocolDot1q struct { - value *LinkProtocolDot1q - isSet bool -} - -func (v NullableLinkProtocolDot1q) Get() *LinkProtocolDot1q { - return v.value -} - -func (v *NullableLinkProtocolDot1q) Set(val *LinkProtocolDot1q) { - v.value = val - v.isSet = true -} - -func (v NullableLinkProtocolDot1q) IsSet() bool { - return v.isSet -} - -func (v *NullableLinkProtocolDot1q) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinkProtocolDot1q(val *LinkProtocolDot1q) *NullableLinkProtocolDot1q { - return &NullableLinkProtocolDot1q{value: val, isSet: true} -} - -func (v NullableLinkProtocolDot1q) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinkProtocolDot1q) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_link_protocol_evpn_vxlan.go b/services/fabricv4/model_link_protocol_evpn_vxlan.go deleted file mode 100644 index f4e372aa..00000000 --- a/services/fabricv4/model_link_protocol_evpn_vxlan.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// checks if the LinkProtocolEvpnVxlan type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinkProtocolEvpnVxlan{} - -// LinkProtocolEvpnVxlan Connection link protocol configuration - EVPN_VXLAN -type LinkProtocolEvpnVxlan struct { - Type *LinkProtocolType `json:"type,omitempty"` - // Virtual Network Identifier - Vnid int32 `json:"vnid"` - // Type 5 VNI identifier - Type5vni int32 `json:"type5vni"` - AdditionalProperties map[string]interface{} -} - -type _LinkProtocolEvpnVxlan LinkProtocolEvpnVxlan - -// NewLinkProtocolEvpnVxlan instantiates a new LinkProtocolEvpnVxlan 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 NewLinkProtocolEvpnVxlan(vnid int32, type5vni int32) *LinkProtocolEvpnVxlan { - this := LinkProtocolEvpnVxlan{} - this.Vnid = vnid - this.Type5vni = type5vni - return &this -} - -// NewLinkProtocolEvpnVxlanWithDefaults instantiates a new LinkProtocolEvpnVxlan 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 NewLinkProtocolEvpnVxlanWithDefaults() *LinkProtocolEvpnVxlan { - this := LinkProtocolEvpnVxlan{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *LinkProtocolEvpnVxlan) GetType() LinkProtocolType { - if o == nil || IsNil(o.Type) { - var ret LinkProtocolType - 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 *LinkProtocolEvpnVxlan) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolEvpnVxlan) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given LinkProtocolType and assigns it to the Type field. -func (o *LinkProtocolEvpnVxlan) SetType(v LinkProtocolType) { - o.Type = &v -} - -// GetVnid returns the Vnid field value -func (o *LinkProtocolEvpnVxlan) GetVnid() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Vnid -} - -// GetVnidOk returns a tuple with the Vnid field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolEvpnVxlan) GetVnidOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Vnid, true -} - -// SetVnid sets field value -func (o *LinkProtocolEvpnVxlan) SetVnid(v int32) { - o.Vnid = v -} - -// GetType5vni returns the Type5vni field value -func (o *LinkProtocolEvpnVxlan) GetType5vni() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Type5vni -} - -// GetType5vniOk returns a tuple with the Type5vni field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolEvpnVxlan) GetType5vniOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Type5vni, true -} - -// SetType5vni sets field value -func (o *LinkProtocolEvpnVxlan) SetType5vni(v int32) { - o.Type5vni = v -} - -func (o LinkProtocolEvpnVxlan) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinkProtocolEvpnVxlan) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - toSerialize["vnid"] = o.Vnid - toSerialize["type5vni"] = o.Type5vni - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *LinkProtocolEvpnVxlan) 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{ - "vnid", - "type5vni", - } - - 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) - } - } - - varLinkProtocolEvpnVxlan := _LinkProtocolEvpnVxlan{} - - err = json.Unmarshal(data, &varLinkProtocolEvpnVxlan) - - if err != nil { - return err - } - - *o = LinkProtocolEvpnVxlan(varLinkProtocolEvpnVxlan) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "vnid") - delete(additionalProperties, "type5vni") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableLinkProtocolEvpnVxlan struct { - value *LinkProtocolEvpnVxlan - isSet bool -} - -func (v NullableLinkProtocolEvpnVxlan) Get() *LinkProtocolEvpnVxlan { - return v.value -} - -func (v *NullableLinkProtocolEvpnVxlan) Set(val *LinkProtocolEvpnVxlan) { - v.value = val - v.isSet = true -} - -func (v NullableLinkProtocolEvpnVxlan) IsSet() bool { - return v.isSet -} - -func (v *NullableLinkProtocolEvpnVxlan) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinkProtocolEvpnVxlan(val *LinkProtocolEvpnVxlan) *NullableLinkProtocolEvpnVxlan { - return &NullableLinkProtocolEvpnVxlan{value: val, isSet: true} -} - -func (v NullableLinkProtocolEvpnVxlan) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinkProtocolEvpnVxlan) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_link_protocol_get_response.go b/services/fabricv4/model_link_protocol_get_response.go index 3d5820e1..9b436c09 100644 --- a/services/fabricv4/model_link_protocol_get_response.go +++ b/services/fabricv4/model_link_protocol_get_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol_ipv4_ipv6_config.go b/services/fabricv4/model_link_protocol_ipv4_ipv6_config.go deleted file mode 100644 index 054e51d2..00000000 --- a/services/fabricv4/model_link_protocol_ipv4_ipv6_config.go +++ /dev/null @@ -1,228 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the LinkProtocolIpv4Ipv6Config type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinkProtocolIpv4Ipv6Config{} - -// LinkProtocolIpv4Ipv6Config IPv4 or IPv6 specific configuration -type LinkProtocolIpv4Ipv6Config struct { - // Link subnet prefix - LinkPrefix *string `json:"linkPrefix,omitempty"` - // Prefix datatype when linkPrefix not specified - LocalIfaceIp *string `json:"localIfaceIp,omitempty"` - // Equinix-side link interface address - RemoteIfaceIp *string `json:"remoteIfaceIp,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _LinkProtocolIpv4Ipv6Config LinkProtocolIpv4Ipv6Config - -// NewLinkProtocolIpv4Ipv6Config instantiates a new LinkProtocolIpv4Ipv6Config 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 NewLinkProtocolIpv4Ipv6Config() *LinkProtocolIpv4Ipv6Config { - this := LinkProtocolIpv4Ipv6Config{} - return &this -} - -// NewLinkProtocolIpv4Ipv6ConfigWithDefaults instantiates a new LinkProtocolIpv4Ipv6Config 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 NewLinkProtocolIpv4Ipv6ConfigWithDefaults() *LinkProtocolIpv4Ipv6Config { - this := LinkProtocolIpv4Ipv6Config{} - return &this -} - -// GetLinkPrefix returns the LinkPrefix field value if set, zero value otherwise. -func (o *LinkProtocolIpv4Ipv6Config) GetLinkPrefix() string { - if o == nil || IsNil(o.LinkPrefix) { - var ret string - return ret - } - return *o.LinkPrefix -} - -// GetLinkPrefixOk returns a tuple with the LinkPrefix field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolIpv4Ipv6Config) GetLinkPrefixOk() (*string, bool) { - if o == nil || IsNil(o.LinkPrefix) { - return nil, false - } - return o.LinkPrefix, true -} - -// HasLinkPrefix returns a boolean if a field has been set. -func (o *LinkProtocolIpv4Ipv6Config) HasLinkPrefix() bool { - if o != nil && !IsNil(o.LinkPrefix) { - return true - } - - return false -} - -// SetLinkPrefix gets a reference to the given string and assigns it to the LinkPrefix field. -func (o *LinkProtocolIpv4Ipv6Config) SetLinkPrefix(v string) { - o.LinkPrefix = &v -} - -// GetLocalIfaceIp returns the LocalIfaceIp field value if set, zero value otherwise. -func (o *LinkProtocolIpv4Ipv6Config) GetLocalIfaceIp() string { - if o == nil || IsNil(o.LocalIfaceIp) { - var ret string - return ret - } - return *o.LocalIfaceIp -} - -// GetLocalIfaceIpOk returns a tuple with the LocalIfaceIp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolIpv4Ipv6Config) GetLocalIfaceIpOk() (*string, bool) { - if o == nil || IsNil(o.LocalIfaceIp) { - return nil, false - } - return o.LocalIfaceIp, true -} - -// HasLocalIfaceIp returns a boolean if a field has been set. -func (o *LinkProtocolIpv4Ipv6Config) HasLocalIfaceIp() bool { - if o != nil && !IsNil(o.LocalIfaceIp) { - return true - } - - return false -} - -// SetLocalIfaceIp gets a reference to the given string and assigns it to the LocalIfaceIp field. -func (o *LinkProtocolIpv4Ipv6Config) SetLocalIfaceIp(v string) { - o.LocalIfaceIp = &v -} - -// GetRemoteIfaceIp returns the RemoteIfaceIp field value if set, zero value otherwise. -func (o *LinkProtocolIpv4Ipv6Config) GetRemoteIfaceIp() string { - if o == nil || IsNil(o.RemoteIfaceIp) { - var ret string - return ret - } - return *o.RemoteIfaceIp -} - -// GetRemoteIfaceIpOk returns a tuple with the RemoteIfaceIp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolIpv4Ipv6Config) GetRemoteIfaceIpOk() (*string, bool) { - if o == nil || IsNil(o.RemoteIfaceIp) { - return nil, false - } - return o.RemoteIfaceIp, true -} - -// HasRemoteIfaceIp returns a boolean if a field has been set. -func (o *LinkProtocolIpv4Ipv6Config) HasRemoteIfaceIp() bool { - if o != nil && !IsNil(o.RemoteIfaceIp) { - return true - } - - return false -} - -// SetRemoteIfaceIp gets a reference to the given string and assigns it to the RemoteIfaceIp field. -func (o *LinkProtocolIpv4Ipv6Config) SetRemoteIfaceIp(v string) { - o.RemoteIfaceIp = &v -} - -func (o LinkProtocolIpv4Ipv6Config) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinkProtocolIpv4Ipv6Config) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.LinkPrefix) { - toSerialize["linkPrefix"] = o.LinkPrefix - } - if !IsNil(o.LocalIfaceIp) { - toSerialize["localIfaceIp"] = o.LocalIfaceIp - } - if !IsNil(o.RemoteIfaceIp) { - toSerialize["remoteIfaceIp"] = o.RemoteIfaceIp - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *LinkProtocolIpv4Ipv6Config) UnmarshalJSON(data []byte) (err error) { - varLinkProtocolIpv4Ipv6Config := _LinkProtocolIpv4Ipv6Config{} - - err = json.Unmarshal(data, &varLinkProtocolIpv4Ipv6Config) - - if err != nil { - return err - } - - *o = LinkProtocolIpv4Ipv6Config(varLinkProtocolIpv4Ipv6Config) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "linkPrefix") - delete(additionalProperties, "localIfaceIp") - delete(additionalProperties, "remoteIfaceIp") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableLinkProtocolIpv4Ipv6Config struct { - value *LinkProtocolIpv4Ipv6Config - isSet bool -} - -func (v NullableLinkProtocolIpv4Ipv6Config) Get() *LinkProtocolIpv4Ipv6Config { - return v.value -} - -func (v *NullableLinkProtocolIpv4Ipv6Config) Set(val *LinkProtocolIpv4Ipv6Config) { - v.value = val - v.isSet = true -} - -func (v NullableLinkProtocolIpv4Ipv6Config) IsSet() bool { - return v.isSet -} - -func (v *NullableLinkProtocolIpv4Ipv6Config) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinkProtocolIpv4Ipv6Config(val *LinkProtocolIpv4Ipv6Config) *NullableLinkProtocolIpv4Ipv6Config { - return &NullableLinkProtocolIpv4Ipv6Config{value: val, isSet: true} -} - -func (v NullableLinkProtocolIpv4Ipv6Config) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinkProtocolIpv4Ipv6Config) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_link_protocol_qinq.go b/services/fabricv4/model_link_protocol_qinq.go deleted file mode 100644 index cc864963..00000000 --- a/services/fabricv4/model_link_protocol_qinq.go +++ /dev/null @@ -1,406 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// checks if the LinkProtocolQinq type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinkProtocolQinq{} - -// LinkProtocolQinq Connection link protocol configuration - QINQ -type LinkProtocolQinq struct { - Type *LinkProtocolType `json:"type,omitempty"` - // Inner tag protocol identifier - InnerTagProtocolId int32 `json:"innerTagProtocolId"` - // Outer tag protocol identifier - OuterTagProtocolId int32 `json:"outerTagProtocolId"` - // Inner tag, i.e., C-VLAN tag - VlanCTag int32 `json:"vlanCTag"` - // Outer tag, i.e., S-VLAN tag - VlanSTag int32 `json:"vlanSTag"` - // Outer tag Min value specified for QINQ connections - VlanCTagMin *int32 `json:"vlanCTagMin,omitempty"` - // Outer tag Max value specified for QINQ connections - VlanCTagMax *int32 `json:"vlanCTagMax,omitempty"` - // Subinterface identifier - SubInterface *int32 `json:"subInterface,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _LinkProtocolQinq LinkProtocolQinq - -// NewLinkProtocolQinq instantiates a new LinkProtocolQinq 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 NewLinkProtocolQinq(innerTagProtocolId int32, outerTagProtocolId int32, vlanCTag int32, vlanSTag int32) *LinkProtocolQinq { - this := LinkProtocolQinq{} - this.InnerTagProtocolId = innerTagProtocolId - this.OuterTagProtocolId = outerTagProtocolId - this.VlanCTag = vlanCTag - this.VlanSTag = vlanSTag - return &this -} - -// NewLinkProtocolQinqWithDefaults instantiates a new LinkProtocolQinq 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 NewLinkProtocolQinqWithDefaults() *LinkProtocolQinq { - this := LinkProtocolQinq{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *LinkProtocolQinq) GetType() LinkProtocolType { - if o == nil || IsNil(o.Type) { - var ret LinkProtocolType - 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 *LinkProtocolQinq) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolQinq) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given LinkProtocolType and assigns it to the Type field. -func (o *LinkProtocolQinq) SetType(v LinkProtocolType) { - o.Type = &v -} - -// GetInnerTagProtocolId returns the InnerTagProtocolId field value -func (o *LinkProtocolQinq) GetInnerTagProtocolId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.InnerTagProtocolId -} - -// GetInnerTagProtocolIdOk returns a tuple with the InnerTagProtocolId field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolQinq) GetInnerTagProtocolIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.InnerTagProtocolId, true -} - -// SetInnerTagProtocolId sets field value -func (o *LinkProtocolQinq) SetInnerTagProtocolId(v int32) { - o.InnerTagProtocolId = v -} - -// GetOuterTagProtocolId returns the OuterTagProtocolId field value -func (o *LinkProtocolQinq) GetOuterTagProtocolId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.OuterTagProtocolId -} - -// GetOuterTagProtocolIdOk returns a tuple with the OuterTagProtocolId field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolQinq) GetOuterTagProtocolIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.OuterTagProtocolId, true -} - -// SetOuterTagProtocolId sets field value -func (o *LinkProtocolQinq) SetOuterTagProtocolId(v int32) { - o.OuterTagProtocolId = v -} - -// GetVlanCTag returns the VlanCTag field value -func (o *LinkProtocolQinq) GetVlanCTag() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.VlanCTag -} - -// GetVlanCTagOk returns a tuple with the VlanCTag field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolQinq) GetVlanCTagOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.VlanCTag, true -} - -// SetVlanCTag sets field value -func (o *LinkProtocolQinq) SetVlanCTag(v int32) { - o.VlanCTag = v -} - -// GetVlanSTag returns the VlanSTag field value -func (o *LinkProtocolQinq) GetVlanSTag() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.VlanSTag -} - -// GetVlanSTagOk returns a tuple with the VlanSTag field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolQinq) GetVlanSTagOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.VlanSTag, true -} - -// SetVlanSTag sets field value -func (o *LinkProtocolQinq) SetVlanSTag(v int32) { - o.VlanSTag = v -} - -// GetVlanCTagMin returns the VlanCTagMin field value if set, zero value otherwise. -func (o *LinkProtocolQinq) GetVlanCTagMin() int32 { - if o == nil || IsNil(o.VlanCTagMin) { - var ret int32 - return ret - } - return *o.VlanCTagMin -} - -// GetVlanCTagMinOk returns a tuple with the VlanCTagMin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolQinq) GetVlanCTagMinOk() (*int32, bool) { - if o == nil || IsNil(o.VlanCTagMin) { - return nil, false - } - return o.VlanCTagMin, true -} - -// HasVlanCTagMin returns a boolean if a field has been set. -func (o *LinkProtocolQinq) HasVlanCTagMin() bool { - if o != nil && !IsNil(o.VlanCTagMin) { - return true - } - - return false -} - -// SetVlanCTagMin gets a reference to the given int32 and assigns it to the VlanCTagMin field. -func (o *LinkProtocolQinq) SetVlanCTagMin(v int32) { - o.VlanCTagMin = &v -} - -// GetVlanCTagMax returns the VlanCTagMax field value if set, zero value otherwise. -func (o *LinkProtocolQinq) GetVlanCTagMax() int32 { - if o == nil || IsNil(o.VlanCTagMax) { - var ret int32 - return ret - } - return *o.VlanCTagMax -} - -// GetVlanCTagMaxOk returns a tuple with the VlanCTagMax field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolQinq) GetVlanCTagMaxOk() (*int32, bool) { - if o == nil || IsNil(o.VlanCTagMax) { - return nil, false - } - return o.VlanCTagMax, true -} - -// HasVlanCTagMax returns a boolean if a field has been set. -func (o *LinkProtocolQinq) HasVlanCTagMax() bool { - if o != nil && !IsNil(o.VlanCTagMax) { - return true - } - - return false -} - -// SetVlanCTagMax gets a reference to the given int32 and assigns it to the VlanCTagMax field. -func (o *LinkProtocolQinq) SetVlanCTagMax(v int32) { - o.VlanCTagMax = &v -} - -// GetSubInterface returns the SubInterface field value if set, zero value otherwise. -func (o *LinkProtocolQinq) GetSubInterface() int32 { - if o == nil || IsNil(o.SubInterface) { - var ret int32 - return ret - } - return *o.SubInterface -} - -// GetSubInterfaceOk returns a tuple with the SubInterface field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolQinq) GetSubInterfaceOk() (*int32, bool) { - if o == nil || IsNil(o.SubInterface) { - return nil, false - } - return o.SubInterface, true -} - -// HasSubInterface returns a boolean if a field has been set. -func (o *LinkProtocolQinq) HasSubInterface() bool { - if o != nil && !IsNil(o.SubInterface) { - return true - } - - return false -} - -// SetSubInterface gets a reference to the given int32 and assigns it to the SubInterface field. -func (o *LinkProtocolQinq) SetSubInterface(v int32) { - o.SubInterface = &v -} - -func (o LinkProtocolQinq) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinkProtocolQinq) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - toSerialize["innerTagProtocolId"] = o.InnerTagProtocolId - toSerialize["outerTagProtocolId"] = o.OuterTagProtocolId - toSerialize["vlanCTag"] = o.VlanCTag - toSerialize["vlanSTag"] = o.VlanSTag - if !IsNil(o.VlanCTagMin) { - toSerialize["vlanCTagMin"] = o.VlanCTagMin - } - if !IsNil(o.VlanCTagMax) { - toSerialize["vlanCTagMax"] = o.VlanCTagMax - } - if !IsNil(o.SubInterface) { - toSerialize["subInterface"] = o.SubInterface - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *LinkProtocolQinq) 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{ - "innerTagProtocolId", - "outerTagProtocolId", - "vlanCTag", - "vlanSTag", - } - - 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) - } - } - - varLinkProtocolQinq := _LinkProtocolQinq{} - - err = json.Unmarshal(data, &varLinkProtocolQinq) - - if err != nil { - return err - } - - *o = LinkProtocolQinq(varLinkProtocolQinq) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "innerTagProtocolId") - delete(additionalProperties, "outerTagProtocolId") - delete(additionalProperties, "vlanCTag") - delete(additionalProperties, "vlanSTag") - delete(additionalProperties, "vlanCTagMin") - delete(additionalProperties, "vlanCTagMax") - delete(additionalProperties, "subInterface") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableLinkProtocolQinq struct { - value *LinkProtocolQinq - isSet bool -} - -func (v NullableLinkProtocolQinq) Get() *LinkProtocolQinq { - return v.value -} - -func (v *NullableLinkProtocolQinq) Set(val *LinkProtocolQinq) { - v.value = val - v.isSet = true -} - -func (v NullableLinkProtocolQinq) IsSet() bool { - return v.isSet -} - -func (v *NullableLinkProtocolQinq) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinkProtocolQinq(val *LinkProtocolQinq) *NullableLinkProtocolQinq { - return &NullableLinkProtocolQinq{value: val, isSet: true} -} - -func (v NullableLinkProtocolQinq) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinkProtocolQinq) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_link_protocol_request_type.go b/services/fabricv4/model_link_protocol_request_type.go index 6f74720a..5ec44d45 100644 --- a/services/fabricv4/model_link_protocol_request_type.go +++ b/services/fabricv4/model_link_protocol_request_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol_response.go b/services/fabricv4/model_link_protocol_response.go index 1f1fe91c..0db376c0 100644 --- a/services/fabricv4/model_link_protocol_response.go +++ b/services/fabricv4/model_link_protocol_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol_service_token.go b/services/fabricv4/model_link_protocol_service_token.go index 7168f29b..af88fe6b 100644 --- a/services/fabricv4/model_link_protocol_service_token.go +++ b/services/fabricv4/model_link_protocol_service_token.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol_state.go b/services/fabricv4/model_link_protocol_state.go index 415c8b20..076c054c 100644 --- a/services/fabricv4/model_link_protocol_state.go +++ b/services/fabricv4/model_link_protocol_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol_type.go b/services/fabricv4/model_link_protocol_type.go index 467bb424..9ac5c68c 100644 --- a/services/fabricv4/model_link_protocol_type.go +++ b/services/fabricv4/model_link_protocol_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_link_protocol_untagged.go b/services/fabricv4/model_link_protocol_untagged.go deleted file mode 100644 index 28c61b94..00000000 --- a/services/fabricv4/model_link_protocol_untagged.go +++ /dev/null @@ -1,225 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the LinkProtocolUntagged type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinkProtocolUntagged{} - -// LinkProtocolUntagged Connection link protocol configuration - UNTAGGED -type LinkProtocolUntagged struct { - Type *LinkProtocolType `json:"type,omitempty"` - Ipv4 *LinkProtocolIpv4Ipv6Config `json:"ipv4,omitempty"` - Ipv6 *LinkProtocolIpv4Ipv6Config `json:"ipv6,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _LinkProtocolUntagged LinkProtocolUntagged - -// NewLinkProtocolUntagged instantiates a new LinkProtocolUntagged 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 NewLinkProtocolUntagged() *LinkProtocolUntagged { - this := LinkProtocolUntagged{} - return &this -} - -// NewLinkProtocolUntaggedWithDefaults instantiates a new LinkProtocolUntagged 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 NewLinkProtocolUntaggedWithDefaults() *LinkProtocolUntagged { - this := LinkProtocolUntagged{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *LinkProtocolUntagged) GetType() LinkProtocolType { - if o == nil || IsNil(o.Type) { - var ret LinkProtocolType - 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 *LinkProtocolUntagged) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolUntagged) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given LinkProtocolType and assigns it to the Type field. -func (o *LinkProtocolUntagged) SetType(v LinkProtocolType) { - o.Type = &v -} - -// GetIpv4 returns the Ipv4 field value if set, zero value otherwise. -func (o *LinkProtocolUntagged) GetIpv4() LinkProtocolIpv4Ipv6Config { - if o == nil || IsNil(o.Ipv4) { - var ret LinkProtocolIpv4Ipv6Config - return ret - } - return *o.Ipv4 -} - -// GetIpv4Ok returns a tuple with the Ipv4 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolUntagged) GetIpv4Ok() (*LinkProtocolIpv4Ipv6Config, bool) { - if o == nil || IsNil(o.Ipv4) { - return nil, false - } - return o.Ipv4, true -} - -// HasIpv4 returns a boolean if a field has been set. -func (o *LinkProtocolUntagged) HasIpv4() bool { - if o != nil && !IsNil(o.Ipv4) { - return true - } - - return false -} - -// SetIpv4 gets a reference to the given LinkProtocolIpv4Ipv6Config and assigns it to the Ipv4 field. -func (o *LinkProtocolUntagged) SetIpv4(v LinkProtocolIpv4Ipv6Config) { - o.Ipv4 = &v -} - -// GetIpv6 returns the Ipv6 field value if set, zero value otherwise. -func (o *LinkProtocolUntagged) GetIpv6() LinkProtocolIpv4Ipv6Config { - if o == nil || IsNil(o.Ipv6) { - var ret LinkProtocolIpv4Ipv6Config - return ret - } - return *o.Ipv6 -} - -// GetIpv6Ok returns a tuple with the Ipv6 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LinkProtocolUntagged) GetIpv6Ok() (*LinkProtocolIpv4Ipv6Config, bool) { - if o == nil || IsNil(o.Ipv6) { - return nil, false - } - return o.Ipv6, true -} - -// HasIpv6 returns a boolean if a field has been set. -func (o *LinkProtocolUntagged) HasIpv6() bool { - if o != nil && !IsNil(o.Ipv6) { - return true - } - - return false -} - -// SetIpv6 gets a reference to the given LinkProtocolIpv4Ipv6Config and assigns it to the Ipv6 field. -func (o *LinkProtocolUntagged) SetIpv6(v LinkProtocolIpv4Ipv6Config) { - o.Ipv6 = &v -} - -func (o LinkProtocolUntagged) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinkProtocolUntagged) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Ipv4) { - toSerialize["ipv4"] = o.Ipv4 - } - if !IsNil(o.Ipv6) { - toSerialize["ipv6"] = o.Ipv6 - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *LinkProtocolUntagged) UnmarshalJSON(data []byte) (err error) { - varLinkProtocolUntagged := _LinkProtocolUntagged{} - - err = json.Unmarshal(data, &varLinkProtocolUntagged) - - if err != nil { - return err - } - - *o = LinkProtocolUntagged(varLinkProtocolUntagged) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "ipv4") - delete(additionalProperties, "ipv6") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableLinkProtocolUntagged struct { - value *LinkProtocolUntagged - isSet bool -} - -func (v NullableLinkProtocolUntagged) Get() *LinkProtocolUntagged { - return v.value -} - -func (v *NullableLinkProtocolUntagged) Set(val *LinkProtocolUntagged) { - v.value = val - v.isSet = true -} - -func (v NullableLinkProtocolUntagged) IsSet() bool { - return v.isSet -} - -func (v *NullableLinkProtocolUntagged) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinkProtocolUntagged(val *LinkProtocolUntagged) *NullableLinkProtocolUntagged { - return &NullableLinkProtocolUntagged{value: val, isSet: true} -} - -func (v NullableLinkProtocolUntagged) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinkProtocolUntagged) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_link_protocol_vxlan.go b/services/fabricv4/model_link_protocol_vxlan.go deleted file mode 100644 index 9848a892..00000000 --- a/services/fabricv4/model_link_protocol_vxlan.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// checks if the LinkProtocolVxlan type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LinkProtocolVxlan{} - -// LinkProtocolVxlan Connection link protocol configuration - VXLAN -type LinkProtocolVxlan struct { - Type *LinkProtocolType `json:"type,omitempty"` - // Virtual Network Identifier - Vni int32 `json:"vni"` - AdditionalProperties map[string]interface{} -} - -type _LinkProtocolVxlan LinkProtocolVxlan - -// NewLinkProtocolVxlan instantiates a new LinkProtocolVxlan 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 NewLinkProtocolVxlan(vni int32) *LinkProtocolVxlan { - this := LinkProtocolVxlan{} - this.Vni = vni - return &this -} - -// NewLinkProtocolVxlanWithDefaults instantiates a new LinkProtocolVxlan 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 NewLinkProtocolVxlanWithDefaults() *LinkProtocolVxlan { - this := LinkProtocolVxlan{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *LinkProtocolVxlan) GetType() LinkProtocolType { - if o == nil || IsNil(o.Type) { - var ret LinkProtocolType - 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 *LinkProtocolVxlan) GetTypeOk() (*LinkProtocolType, 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 *LinkProtocolVxlan) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given LinkProtocolType and assigns it to the Type field. -func (o *LinkProtocolVxlan) SetType(v LinkProtocolType) { - o.Type = &v -} - -// GetVni returns the Vni field value -func (o *LinkProtocolVxlan) GetVni() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Vni -} - -// GetVniOk returns a tuple with the Vni field value -// and a boolean to check if the value has been set. -func (o *LinkProtocolVxlan) GetVniOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Vni, true -} - -// SetVni sets field value -func (o *LinkProtocolVxlan) SetVni(v int32) { - o.Vni = v -} - -func (o LinkProtocolVxlan) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LinkProtocolVxlan) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - toSerialize["vni"] = o.Vni - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *LinkProtocolVxlan) 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{ - "vni", - } - - 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) - } - } - - varLinkProtocolVxlan := _LinkProtocolVxlan{} - - err = json.Unmarshal(data, &varLinkProtocolVxlan) - - if err != nil { - return err - } - - *o = LinkProtocolVxlan(varLinkProtocolVxlan) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "vni") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableLinkProtocolVxlan struct { - value *LinkProtocolVxlan - isSet bool -} - -func (v NullableLinkProtocolVxlan) Get() *LinkProtocolVxlan { - return v.value -} - -func (v *NullableLinkProtocolVxlan) Set(val *LinkProtocolVxlan) { - v.value = val - v.isSet = true -} - -func (v NullableLinkProtocolVxlan) IsSet() bool { - return v.isSet -} - -func (v *NullableLinkProtocolVxlan) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLinkProtocolVxlan(val *LinkProtocolVxlan) *NullableLinkProtocolVxlan { - return &NullableLinkProtocolVxlan{value: val, isSet: true} -} - -func (v NullableLinkProtocolVxlan) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLinkProtocolVxlan) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_marketing_info.go b/services/fabricv4/model_marketing_info.go index 2381b311..1ee4d316 100644 --- a/services/fabricv4/model_marketing_info.go +++ b/services/fabricv4/model_marketing_info.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_marketplace_subscription.go b/services/fabricv4/model_marketplace_subscription.go index 09701a89..6b357be3 100644 --- a/services/fabricv4/model_marketplace_subscription.go +++ b/services/fabricv4/model_marketplace_subscription.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_marketplace_subscription_type.go b/services/fabricv4/model_marketplace_subscription_type.go index 78957122..31dfcf2f 100644 --- a/services/fabricv4/model_marketplace_subscription_type.go +++ b/services/fabricv4/model_marketplace_subscription_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_md5.go b/services/fabricv4/model_md5.go index 850166be..02cf8829 100644 --- a/services/fabricv4/model_md5.go +++ b/services/fabricv4/model_md5.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,9 +16,11 @@ var _ MappedNullable = &Md5{} // Md5 struct for Md5 type Md5 struct { - Type *Md5Type `json:"type,omitempty"` - Id *int32 `json:"id,omitempty"` - Password *string `json:"password,omitempty"` + Type *Md5Type `json:"type,omitempty"` + // The authentication Key ID. + KeyNumber *int32 `json:"keyNumber,omitempty"` + // The plaintext authentication key. For ASCII type, the key must contain printable ASCII characters, range 10-20 characters. For HEX type, range should be 10-40 characters. + Key *string `json:"key,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,68 +75,68 @@ func (o *Md5) SetType(v Md5Type) { o.Type = &v } -// GetId returns the Id field value if set, zero value otherwise. -func (o *Md5) GetId() int32 { - if o == nil || IsNil(o.Id) { +// GetKeyNumber returns the KeyNumber field value if set, zero value otherwise. +func (o *Md5) GetKeyNumber() int32 { + if o == nil || IsNil(o.KeyNumber) { var ret int32 return ret } - return *o.Id + return *o.KeyNumber } -// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// GetKeyNumberOk returns a tuple with the KeyNumber field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Md5) GetIdOk() (*int32, bool) { - if o == nil || IsNil(o.Id) { +func (o *Md5) GetKeyNumberOk() (*int32, bool) { + if o == nil || IsNil(o.KeyNumber) { return nil, false } - return o.Id, true + return o.KeyNumber, true } -// HasId returns a boolean if a field has been set. -func (o *Md5) HasId() bool { - if o != nil && !IsNil(o.Id) { +// HasKeyNumber returns a boolean if a field has been set. +func (o *Md5) HasKeyNumber() bool { + if o != nil && !IsNil(o.KeyNumber) { return true } return false } -// SetId gets a reference to the given int32 and assigns it to the Id field. -func (o *Md5) SetId(v int32) { - o.Id = &v +// SetKeyNumber gets a reference to the given int32 and assigns it to the KeyNumber field. +func (o *Md5) SetKeyNumber(v int32) { + o.KeyNumber = &v } -// GetPassword returns the Password field value if set, zero value otherwise. -func (o *Md5) GetPassword() string { - if o == nil || IsNil(o.Password) { +// GetKey returns the Key field value if set, zero value otherwise. +func (o *Md5) GetKey() string { + if o == nil || IsNil(o.Key) { var ret string return ret } - return *o.Password + return *o.Key } -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Md5) GetPasswordOk() (*string, bool) { - if o == nil || IsNil(o.Password) { +func (o *Md5) GetKeyOk() (*string, bool) { + if o == nil || IsNil(o.Key) { return nil, false } - return o.Password, true + return o.Key, true } -// HasPassword returns a boolean if a field has been set. -func (o *Md5) HasPassword() bool { - if o != nil && !IsNil(o.Password) { +// HasKey returns a boolean if a field has been set. +func (o *Md5) HasKey() bool { + if o != nil && !IsNil(o.Key) { return true } return false } -// SetPassword gets a reference to the given string and assigns it to the Password field. -func (o *Md5) SetPassword(v string) { - o.Password = &v +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *Md5) SetKey(v string) { + o.Key = &v } func (o Md5) MarshalJSON() ([]byte, error) { @@ -151,11 +152,11 @@ func (o Md5) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id + if !IsNil(o.KeyNumber) { + toSerialize["keyNumber"] = o.KeyNumber } - if !IsNil(o.Password) { - toSerialize["password"] = o.Password + if !IsNil(o.Key) { + toSerialize["key"] = o.Key } for key, value := range o.AdditionalProperties { @@ -180,8 +181,8 @@ func (o *Md5) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") - delete(additionalProperties, "id") - delete(additionalProperties, "password") + delete(additionalProperties, "keyNumber") + delete(additionalProperties, "key") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_md5_type.go b/services/fabricv4/model_md5_type.go index 7223950a..40360a19 100644 --- a/services/fabricv4/model_md5_type.go +++ b/services/fabricv4/model_md5_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metal_interconnection.go b/services/fabricv4/model_metal_interconnection.go index 1400cc3c..844f6108 100644 --- a/services/fabricv4/model_metal_interconnection.go +++ b/services/fabricv4/model_metal_interconnection.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metric_interval.go b/services/fabricv4/model_metric_interval.go index 1601d396..d10bec5d 100644 --- a/services/fabricv4/model_metric_interval.go +++ b/services/fabricv4/model_metric_interval.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metrics.go b/services/fabricv4/model_metrics.go index 84fb721e..d626dde5 100644 --- a/services/fabricv4/model_metrics.go +++ b/services/fabricv4/model_metrics.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metro.go b/services/fabricv4/model_metro.go index a9af53f2..c8905fc6 100644 --- a/services/fabricv4/model_metro.go +++ b/services/fabricv4/model_metro.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metro_error.go b/services/fabricv4/model_metro_error.go index ade468ae..9cf65f5b 100644 --- a/services/fabricv4/model_metro_error.go +++ b/services/fabricv4/model_metro_error.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metro_error_error_code.go b/services/fabricv4/model_metro_error_error_code.go index f29983e6..5e3cbc34 100644 --- a/services/fabricv4/model_metro_error_error_code.go +++ b/services/fabricv4/model_metro_error_error_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metro_error_error_message.go b/services/fabricv4/model_metro_error_error_message.go index da9a41da..9a946bb1 100644 --- a/services/fabricv4/model_metro_error_error_message.go +++ b/services/fabricv4/model_metro_error_error_message.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_metro_response.go b/services/fabricv4/model_metro_response.go index 40489768..2b170e65 100644 --- a/services/fabricv4/model_metro_response.go +++ b/services/fabricv4/model_metro_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network.go b/services/fabricv4/model_network.go index 911b0e99..a5791902 100644 --- a/services/fabricv4/model_network.go +++ b/services/fabricv4/model_network.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_change.go b/services/fabricv4/model_network_change.go index f5d45145..ab0c45ac 100644 --- a/services/fabricv4/model_network_change.go +++ b/services/fabricv4/model_network_change.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_change_operation.go b/services/fabricv4/model_network_change_operation.go index 0806cd10..31dd6bae 100644 --- a/services/fabricv4/model_network_change_operation.go +++ b/services/fabricv4/model_network_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,7 +17,7 @@ var _ MappedNullable = &NetworkChangeOperation{} // NetworkChangeOperation Network change operation data type NetworkChangeOperation struct { - Op ServiceTokenChangeOperationOp `json:"op"` + Op PrecisionTimeChangeOperationOp `json:"op"` // path inside document leading to updated parameter Path string `json:"path"` // new value for updated parameter @@ -32,7 +31,7 @@ type _NetworkChangeOperation NetworkChangeOperation // 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 NewNetworkChangeOperation(op ServiceTokenChangeOperationOp, path string, value interface{}) *NetworkChangeOperation { +func NewNetworkChangeOperation(op PrecisionTimeChangeOperationOp, path string, value interface{}) *NetworkChangeOperation { this := NetworkChangeOperation{} this.Op = op this.Path = path @@ -49,9 +48,9 @@ func NewNetworkChangeOperationWithDefaults() *NetworkChangeOperation { } // GetOp returns the Op field value -func (o *NetworkChangeOperation) GetOp() ServiceTokenChangeOperationOp { +func (o *NetworkChangeOperation) GetOp() PrecisionTimeChangeOperationOp { if o == nil { - var ret ServiceTokenChangeOperationOp + var ret PrecisionTimeChangeOperationOp return ret } @@ -60,7 +59,7 @@ func (o *NetworkChangeOperation) GetOp() ServiceTokenChangeOperationOp { // GetOpOk returns a tuple with the Op field value // and a boolean to check if the value has been set. -func (o *NetworkChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, bool) { +func (o *NetworkChangeOperation) GetOpOk() (*PrecisionTimeChangeOperationOp, bool) { if o == nil { return nil, false } @@ -68,7 +67,7 @@ func (o *NetworkChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, bool } // SetOp sets field value -func (o *NetworkChangeOperation) SetOp(v ServiceTokenChangeOperationOp) { +func (o *NetworkChangeOperation) SetOp(v PrecisionTimeChangeOperationOp) { o.Op = v } diff --git a/services/fabricv4/model_network_change_response.go b/services/fabricv4/model_network_change_response.go index ad18ffbd..b93ed16b 100644 --- a/services/fabricv4/model_network_change_response.go +++ b/services/fabricv4/model_network_change_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_change_status.go b/services/fabricv4/model_network_change_status.go index 5e89d4dc..60660def 100644 --- a/services/fabricv4/model_network_change_status.go +++ b/services/fabricv4/model_network_change_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_change_type.go b/services/fabricv4/model_network_change_type.go index c81646a9..550a01b3 100644 --- a/services/fabricv4/model_network_change_type.go +++ b/services/fabricv4/model_network_change_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_connections.go b/services/fabricv4/model_network_connections.go index 85faaa3a..ca6ec62a 100644 --- a/services/fabricv4/model_network_connections.go +++ b/services/fabricv4/model_network_connections.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_equinix_status.go b/services/fabricv4/model_network_equinix_status.go index 8db40206..42055a9c 100644 --- a/services/fabricv4/model_network_equinix_status.go +++ b/services/fabricv4/model_network_equinix_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_filter.go b/services/fabricv4/model_network_filter.go index 7e389993..76feaf83 100644 --- a/services/fabricv4/model_network_filter.go +++ b/services/fabricv4/model_network_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_filter_operator.go b/services/fabricv4/model_network_filter_operator.go index 3e25b997..2d1a9796 100644 --- a/services/fabricv4/model_network_filter_operator.go +++ b/services/fabricv4/model_network_filter_operator.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_operation.go b/services/fabricv4/model_network_operation.go index 0f21e136..08606187 100644 --- a/services/fabricv4/model_network_operation.go +++ b/services/fabricv4/model_network_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_post_request.go b/services/fabricv4/model_network_post_request.go index 5f3edb6c..785b1b5e 100644 --- a/services/fabricv4/model_network_post_request.go +++ b/services/fabricv4/model_network_post_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_scope.go b/services/fabricv4/model_network_scope.go index 3c267635..d1c6d772 100644 --- a/services/fabricv4/model_network_scope.go +++ b/services/fabricv4/model_network_scope.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_search_field_name.go b/services/fabricv4/model_network_search_field_name.go index 0c4fe1c0..56834300 100644 --- a/services/fabricv4/model_network_search_field_name.go +++ b/services/fabricv4/model_network_search_field_name.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_search_request.go b/services/fabricv4/model_network_search_request.go index 954a8e40..0df781e6 100644 --- a/services/fabricv4/model_network_search_request.go +++ b/services/fabricv4/model_network_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_search_response.go b/services/fabricv4/model_network_search_response.go index e331aa12..d59bd0b6 100644 --- a/services/fabricv4/model_network_search_response.go +++ b/services/fabricv4/model_network_search_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_sort_by.go b/services/fabricv4/model_network_sort_by.go index c54abde2..4a203f8d 100644 --- a/services/fabricv4/model_network_sort_by.go +++ b/services/fabricv4/model_network_sort_by.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_sort_by_response.go b/services/fabricv4/model_network_sort_by_response.go index fc8c2280..cbcb51fb 100644 --- a/services/fabricv4/model_network_sort_by_response.go +++ b/services/fabricv4/model_network_sort_by_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_sort_criteria.go b/services/fabricv4/model_network_sort_criteria.go index d3d6693c..483eab3c 100644 --- a/services/fabricv4/model_network_sort_criteria.go +++ b/services/fabricv4/model_network_sort_criteria.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_sort_criteria_response.go b/services/fabricv4/model_network_sort_criteria_response.go index 4d977749..1c4df7ca 100644 --- a/services/fabricv4/model_network_sort_criteria_response.go +++ b/services/fabricv4/model_network_sort_criteria_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_sort_direction.go b/services/fabricv4/model_network_sort_direction.go index 6417c74b..46e0318c 100644 --- a/services/fabricv4/model_network_sort_direction.go +++ b/services/fabricv4/model_network_sort_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_sort_direction_response.go b/services/fabricv4/model_network_sort_direction_response.go index 855eb657..fdf35bef 100644 --- a/services/fabricv4/model_network_sort_direction_response.go +++ b/services/fabricv4/model_network_sort_direction_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_state.go b/services/fabricv4/model_network_state.go index 555b0575..555e6d7c 100644 --- a/services/fabricv4/model_network_state.go +++ b/services/fabricv4/model_network_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_network_type.go b/services/fabricv4/model_network_type.go index ea975dad..d1b41cf6 100644 --- a/services/fabricv4/model_network_type.go +++ b/services/fabricv4/model_network_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_op_enum.go b/services/fabricv4/model_op_enum.go index 8ba12fa1..ee13352c 100644 --- a/services/fabricv4/model_op_enum.go +++ b/services/fabricv4/model_op_enum.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_operation.go b/services/fabricv4/model_operation.go new file mode 100644 index 00000000..d4c84a2b --- /dev/null +++ b/services/fabricv4/model_operation.go @@ -0,0 +1,189 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the Operation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Operation{} + +// Operation Operation object for router actions +type Operation struct { + // IPV4 Route Count + BgpIpv4RoutesCount *int32 `json:"bgpIpv4RoutesCount,omitempty"` + // IPV6 Route Count + BgpIpv6RoutesCount *int32 `json:"bgpIpv6RoutesCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Operation Operation + +// NewOperation instantiates a new Operation 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 NewOperation() *Operation { + this := Operation{} + return &this +} + +// NewOperationWithDefaults instantiates a new Operation 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 NewOperationWithDefaults() *Operation { + this := Operation{} + return &this +} + +// GetBgpIpv4RoutesCount returns the BgpIpv4RoutesCount field value if set, zero value otherwise. +func (o *Operation) GetBgpIpv4RoutesCount() int32 { + if o == nil || IsNil(o.BgpIpv4RoutesCount) { + var ret int32 + return ret + } + return *o.BgpIpv4RoutesCount +} + +// GetBgpIpv4RoutesCountOk returns a tuple with the BgpIpv4RoutesCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Operation) GetBgpIpv4RoutesCountOk() (*int32, bool) { + if o == nil || IsNil(o.BgpIpv4RoutesCount) { + return nil, false + } + return o.BgpIpv4RoutesCount, true +} + +// HasBgpIpv4RoutesCount returns a boolean if a field has been set. +func (o *Operation) HasBgpIpv4RoutesCount() bool { + if o != nil && !IsNil(o.BgpIpv4RoutesCount) { + return true + } + + return false +} + +// SetBgpIpv4RoutesCount gets a reference to the given int32 and assigns it to the BgpIpv4RoutesCount field. +func (o *Operation) SetBgpIpv4RoutesCount(v int32) { + o.BgpIpv4RoutesCount = &v +} + +// GetBgpIpv6RoutesCount returns the BgpIpv6RoutesCount field value if set, zero value otherwise. +func (o *Operation) GetBgpIpv6RoutesCount() int32 { + if o == nil || IsNil(o.BgpIpv6RoutesCount) { + var ret int32 + return ret + } + return *o.BgpIpv6RoutesCount +} + +// GetBgpIpv6RoutesCountOk returns a tuple with the BgpIpv6RoutesCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Operation) GetBgpIpv6RoutesCountOk() (*int32, bool) { + if o == nil || IsNil(o.BgpIpv6RoutesCount) { + return nil, false + } + return o.BgpIpv6RoutesCount, true +} + +// HasBgpIpv6RoutesCount returns a boolean if a field has been set. +func (o *Operation) HasBgpIpv6RoutesCount() bool { + if o != nil && !IsNil(o.BgpIpv6RoutesCount) { + return true + } + + return false +} + +// SetBgpIpv6RoutesCount gets a reference to the given int32 and assigns it to the BgpIpv6RoutesCount field. +func (o *Operation) SetBgpIpv6RoutesCount(v int32) { + o.BgpIpv6RoutesCount = &v +} + +func (o Operation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Operation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BgpIpv4RoutesCount) { + toSerialize["bgpIpv4RoutesCount"] = o.BgpIpv4RoutesCount + } + if !IsNil(o.BgpIpv6RoutesCount) { + toSerialize["bgpIpv6RoutesCount"] = o.BgpIpv6RoutesCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Operation) UnmarshalJSON(data []byte) (err error) { + varOperation := _Operation{} + + err = json.Unmarshal(data, &varOperation) + + if err != nil { + return err + } + + *o = Operation(varOperation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "bgpIpv4RoutesCount") + delete(additionalProperties, "bgpIpv6RoutesCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableOperation struct { + value *Operation + isSet bool +} + +func (v NullableOperation) Get() *Operation { + return v.value +} + +func (v *NullableOperation) Set(val *Operation) { + v.value = val + v.isSet = true +} + +func (v NullableOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOperation(val *Operation) *NullableOperation { + return &NullableOperation{value: val, isSet: true} +} + +func (v NullableOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_order.go b/services/fabricv4/model_order.go index 4d2fe920..9dbf834c 100644 --- a/services/fabricv4/model_order.go +++ b/services/fabricv4/model_order.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_package.go b/services/fabricv4/model_package.go new file mode 100644 index 00000000..db3081f2 --- /dev/null +++ b/services/fabricv4/model_package.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 Package type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Package{} + +// Package Package settings for port +type Package struct { + Code *PackageCode `json:"code,omitempty"` + Type *PackageType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Package Package + +// NewPackage instantiates a new Package 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 NewPackage() *Package { + this := Package{} + return &this +} + +// NewPackageWithDefaults instantiates a new Package 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 NewPackageWithDefaults() *Package { + this := Package{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *Package) GetCode() PackageCode { + if o == nil || IsNil(o.Code) { + var ret PackageCode + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetCodeOk() (*PackageCode, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *Package) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given PackageCode and assigns it to the Code field. +func (o *Package) SetCode(v PackageCode) { + o.Code = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Package) GetType() PackageType { + if o == nil || IsNil(o.Type) { + var ret PackageType + 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 *Package) GetTypeOk() (*PackageType, 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 *Package) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given PackageType and assigns it to the Type field. +func (o *Package) SetType(v PackageType) { + o.Type = &v +} + +func (o Package) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Package) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Package) UnmarshalJSON(data []byte) (err error) { + varPackage := _Package{} + + err = json.Unmarshal(data, &varPackage) + + if err != nil { + return err + } + + *o = Package(varPackage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePackage struct { + value *Package + isSet bool +} + +func (v NullablePackage) Get() *Package { + return v.value +} + +func (v *NullablePackage) Set(val *Package) { + v.value = val + v.isSet = true +} + +func (v NullablePackage) IsSet() bool { + return v.isSet +} + +func (v *NullablePackage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackage(val *Package) *NullablePackage { + return &NullablePackage{value: val, isSet: true} +} + +func (v NullablePackage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_package_change_log.go b/services/fabricv4/model_package_change_log.go index 66eefcd4..2b244806 100644 --- a/services/fabricv4/model_package_change_log.go +++ b/services/fabricv4/model_package_change_log.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_package_code.go b/services/fabricv4/model_package_code.go new file mode 100644 index 00000000..a4241027 --- /dev/null +++ b/services/fabricv4/model_package_code.go @@ -0,0 +1,109 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PackageCode Type of Port Package +type PackageCode string + +// List of Package_code +const ( + PACKAGECODE_STANDARD PackageCode = "STANDARD" + PACKAGECODE_UNLIMITED PackageCode = "UNLIMITED" + PACKAGECODE_UNLIMITED_PLUS PackageCode = "UNLIMITED_PLUS" +) + +// All allowed values of PackageCode enum +var AllowedPackageCodeEnumValues = []PackageCode{ + "STANDARD", + "UNLIMITED", + "UNLIMITED_PLUS", +} + +func (v *PackageCode) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PackageCode(value) + for _, existing := range AllowedPackageCodeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PackageCode", value) +} + +// NewPackageCodeFromValue returns a pointer to a valid PackageCode +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPackageCodeFromValue(v string) (*PackageCode, error) { + ev := PackageCode(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PackageCode: valid values are %v", v, AllowedPackageCodeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PackageCode) IsValid() bool { + for _, existing := range AllowedPackageCodeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Package_code value +func (v PackageCode) Ptr() *PackageCode { + return &v +} + +type NullablePackageCode struct { + value *PackageCode + isSet bool +} + +func (v NullablePackageCode) Get() *PackageCode { + return v.value +} + +func (v *NullablePackageCode) Set(val *PackageCode) { + v.value = val + v.isSet = true +} + +func (v NullablePackageCode) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageCode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageCode(val *PackageCode) *NullablePackageCode { + return &NullablePackageCode{value: val, isSet: true} +} + +func (v NullablePackageCode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageCode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_package_response.go b/services/fabricv4/model_package_response.go index bdd8d023..5443f42c 100644 --- a/services/fabricv4/model_package_response.go +++ b/services/fabricv4/model_package_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_package_type.go b/services/fabricv4/model_package_type.go new file mode 100644 index 00000000..2764dc41 --- /dev/null +++ b/services/fabricv4/model_package_type.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PackageType Port service Type +type PackageType string + +// List of Package_type +const ( + PACKAGETYPE_EPL PackageType = "EPL" + PACKAGETYPE_MSP PackageType = "MSP" +) + +// All allowed values of PackageType enum +var AllowedPackageTypeEnumValues = []PackageType{ + "EPL", + "MSP", +} + +func (v *PackageType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PackageType(value) + for _, existing := range AllowedPackageTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PackageType", value) +} + +// NewPackageTypeFromValue returns a pointer to a valid PackageType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPackageTypeFromValue(v string) (*PackageType, error) { + ev := PackageType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PackageType: valid values are %v", v, AllowedPackageTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PackageType) IsValid() bool { + for _, existing := range AllowedPackageTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Package_type value +func (v PackageType) Ptr() *PackageType { + return &v +} + +type NullablePackageType struct { + value *PackageType + isSet bool +} + +func (v NullablePackageType) Get() *PackageType { + return v.value +} + +func (v *NullablePackageType) Set(val *PackageType) { + v.value = val + v.isSet = true +} + +func (v NullablePackageType) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageType(val *PackageType) *NullablePackageType { + return &NullablePackageType{value: val, isSet: true} +} + +func (v NullablePackageType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_pagination.go b/services/fabricv4/model_pagination.go index 46c8ca2f..d8da2460 100644 --- a/services/fabricv4/model_pagination.go +++ b/services/fabricv4/model_pagination.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_pagination_request.go b/services/fabricv4/model_pagination_request.go index 6b5e86ae..6b73593e 100644 --- a/services/fabricv4/model_pagination_request.go +++ b/services/fabricv4/model_pagination_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_peering_type.go b/services/fabricv4/model_peering_type.go index a019d055..47904211 100644 --- a/services/fabricv4/model_peering_type.go +++ b/services/fabricv4/model_peering_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_physical_port.go b/services/fabricv4/model_physical_port.go index 888a7864..7b45da33 100644 --- a/services/fabricv4/model_physical_port.go +++ b/services/fabricv4/model_physical_port.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,19 +16,24 @@ var _ MappedNullable = &PhysicalPort{} // PhysicalPort Physical Port specification type PhysicalPort struct { + // Equinix assigned response attribute for an absolute URL that is the subject of the link's context. + Href *string `json:"href,omitempty"` Type *PhysicalPortType `json:"type,omitempty"` // Equinix assigned response attribute for Physical Port Id - Id *int32 `json:"id,omitempty"` - // Equinix assigned response attribute for an absolute URL that is the subject of the link's context. - Href *string `json:"href,omitempty"` + // Deprecated + Id *int32 `json:"id,omitempty"` State *PortState `json:"state,omitempty"` Account *SimplifiedAccount `json:"account,omitempty"` // Physical Port Speed in Mbps InterfaceSpeed *int32 `json:"interfaceSpeed,omitempty"` // Physical Port Interface Type - InterfaceType *string `json:"interfaceType,omitempty"` + InterfaceType *string `json:"interfaceType,omitempty"` + // Equinix assigned response attribute for physical port identifier + Uuid *string `json:"uuid,omitempty"` Tether *PortTether `json:"tether,omitempty"` DemarcationPoint *PortDemarcationPoint `json:"demarcationPoint,omitempty"` + Settings *PhysicalPortSettings `json:"settings,omitempty"` + Interface *PortInterface `json:"interface,omitempty"` // Notification preferences Notifications []PortNotification `json:"notifications,omitempty"` // Physical Port additional information @@ -60,6 +64,38 @@ func NewPhysicalPortWithDefaults() *PhysicalPort { return &this } +// GetHref returns the Href field value if set, zero value otherwise. +func (o *PhysicalPort) 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 *PhysicalPort) 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 *PhysicalPort) 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 *PhysicalPort) SetHref(v string) { + o.Href = &v +} + // GetType returns the Type field value if set, zero value otherwise. func (o *PhysicalPort) GetType() PhysicalPortType { if o == nil || IsNil(o.Type) { @@ -93,6 +129,7 @@ func (o *PhysicalPort) SetType(v PhysicalPortType) { } // GetId returns the Id field value if set, zero value otherwise. +// Deprecated func (o *PhysicalPort) GetId() int32 { if o == nil || IsNil(o.Id) { var ret int32 @@ -103,6 +140,7 @@ func (o *PhysicalPort) GetId() int32 { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PhysicalPort) GetIdOk() (*int32, bool) { if o == nil || IsNil(o.Id) { return nil, false @@ -120,42 +158,11 @@ func (o *PhysicalPort) HasId() bool { } // SetId gets a reference to the given int32 and assigns it to the Id field. +// Deprecated func (o *PhysicalPort) SetId(v int32) { o.Id = &v } -// GetHref returns the Href field value if set, zero value otherwise. -func (o *PhysicalPort) 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 *PhysicalPort) 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 *PhysicalPort) 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 *PhysicalPort) SetHref(v string) { - o.Href = &v -} - // GetState returns the State field value if set, zero value otherwise. func (o *PhysicalPort) GetState() PortState { if o == nil || IsNil(o.State) { @@ -284,6 +291,38 @@ func (o *PhysicalPort) SetInterfaceType(v string) { o.InterfaceType = &v } +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *PhysicalPort) 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 *PhysicalPort) 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 *PhysicalPort) 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 *PhysicalPort) SetUuid(v string) { + o.Uuid = &v +} + // GetTether returns the Tether field value if set, zero value otherwise. func (o *PhysicalPort) GetTether() PortTether { if o == nil || IsNil(o.Tether) { @@ -348,6 +387,70 @@ func (o *PhysicalPort) SetDemarcationPoint(v PortDemarcationPoint) { o.DemarcationPoint = &v } +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *PhysicalPort) GetSettings() PhysicalPortSettings { + if o == nil || IsNil(o.Settings) { + var ret PhysicalPortSettings + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PhysicalPort) GetSettingsOk() (*PhysicalPortSettings, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *PhysicalPort) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given PhysicalPortSettings and assigns it to the Settings field. +func (o *PhysicalPort) SetSettings(v PhysicalPortSettings) { + o.Settings = &v +} + +// GetInterface returns the Interface field value if set, zero value otherwise. +func (o *PhysicalPort) GetInterface() PortInterface { + if o == nil || IsNil(o.Interface) { + var ret PortInterface + return ret + } + return *o.Interface +} + +// GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PhysicalPort) GetInterfaceOk() (*PortInterface, bool) { + if o == nil || IsNil(o.Interface) { + return nil, false + } + return o.Interface, true +} + +// HasInterface returns a boolean if a field has been set. +func (o *PhysicalPort) HasInterface() bool { + if o != nil && !IsNil(o.Interface) { + return true + } + + return false +} + +// SetInterface gets a reference to the given PortInterface and assigns it to the Interface field. +func (o *PhysicalPort) SetInterface(v PortInterface) { + o.Interface = &v +} + // GetNotifications returns the Notifications field value if set, zero value otherwise. func (o *PhysicalPort) GetNotifications() []PortNotification { if o == nil || IsNil(o.Notifications) { @@ -518,15 +621,15 @@ func (o PhysicalPort) MarshalJSON() ([]byte, error) { func (o PhysicalPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } if !IsNil(o.Type) { toSerialize["type"] = o.Type } if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !IsNil(o.Href) { - toSerialize["href"] = o.Href - } if !IsNil(o.State) { toSerialize["state"] = o.State } @@ -539,12 +642,21 @@ func (o PhysicalPort) ToMap() (map[string]interface{}, error) { if !IsNil(o.InterfaceType) { toSerialize["interfaceType"] = o.InterfaceType } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } if !IsNil(o.Tether) { toSerialize["tether"] = o.Tether } if !IsNil(o.DemarcationPoint) { toSerialize["demarcationPoint"] = o.DemarcationPoint } + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } + if !IsNil(o.Interface) { + toSerialize["interface"] = o.Interface + } if !IsNil(o.Notifications) { toSerialize["notifications"] = o.Notifications } @@ -582,15 +694,18 @@ func (o *PhysicalPort) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") delete(additionalProperties, "type") delete(additionalProperties, "id") - delete(additionalProperties, "href") delete(additionalProperties, "state") delete(additionalProperties, "account") delete(additionalProperties, "interfaceSpeed") delete(additionalProperties, "interfaceType") + delete(additionalProperties, "uuid") delete(additionalProperties, "tether") delete(additionalProperties, "demarcationPoint") + delete(additionalProperties, "settings") + delete(additionalProperties, "interface") delete(additionalProperties, "notifications") delete(additionalProperties, "additionalInfo") delete(additionalProperties, "order") diff --git a/services/fabricv4/model_physical_port_settings.go b/services/fabricv4/model_physical_port_settings.go new file mode 100644 index 00000000..d726389f --- /dev/null +++ b/services/fabricv4/model_physical_port_settings.go @@ -0,0 +1,191 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the PhysicalPortSettings type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PhysicalPortSettings{} + +// PhysicalPortSettings Physical Port configuration settings +type PhysicalPortSettings struct { + ErrorMessage *string `json:"errorMessage,omitempty"` + // Deprecated + PackageType *string `json:"packageType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PhysicalPortSettings PhysicalPortSettings + +// NewPhysicalPortSettings instantiates a new PhysicalPortSettings 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 NewPhysicalPortSettings() *PhysicalPortSettings { + this := PhysicalPortSettings{} + return &this +} + +// NewPhysicalPortSettingsWithDefaults instantiates a new PhysicalPortSettings 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 NewPhysicalPortSettingsWithDefaults() *PhysicalPortSettings { + this := PhysicalPortSettings{} + return &this +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *PhysicalPortSettings) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PhysicalPortSettings) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *PhysicalPortSettings) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *PhysicalPortSettings) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetPackageType returns the PackageType field value if set, zero value otherwise. +// Deprecated +func (o *PhysicalPortSettings) GetPackageType() string { + if o == nil || IsNil(o.PackageType) { + var ret string + return ret + } + return *o.PackageType +} + +// GetPackageTypeOk returns a tuple with the PackageType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *PhysicalPortSettings) GetPackageTypeOk() (*string, bool) { + if o == nil || IsNil(o.PackageType) { + return nil, false + } + return o.PackageType, true +} + +// HasPackageType returns a boolean if a field has been set. +func (o *PhysicalPortSettings) HasPackageType() bool { + if o != nil && !IsNil(o.PackageType) { + return true + } + + return false +} + +// SetPackageType gets a reference to the given string and assigns it to the PackageType field. +// Deprecated +func (o *PhysicalPortSettings) SetPackageType(v string) { + o.PackageType = &v +} + +func (o PhysicalPortSettings) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PhysicalPortSettings) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.PackageType) { + toSerialize["packageType"] = o.PackageType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PhysicalPortSettings) UnmarshalJSON(data []byte) (err error) { + varPhysicalPortSettings := _PhysicalPortSettings{} + + err = json.Unmarshal(data, &varPhysicalPortSettings) + + if err != nil { + return err + } + + *o = PhysicalPortSettings(varPhysicalPortSettings) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "packageType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePhysicalPortSettings struct { + value *PhysicalPortSettings + isSet bool +} + +func (v NullablePhysicalPortSettings) Get() *PhysicalPortSettings { + return v.value +} + +func (v *NullablePhysicalPortSettings) Set(val *PhysicalPortSettings) { + v.value = val + v.isSet = true +} + +func (v NullablePhysicalPortSettings) IsSet() bool { + return v.isSet +} + +func (v *NullablePhysicalPortSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePhysicalPortSettings(val *PhysicalPortSettings) *NullablePhysicalPortSettings { + return &NullablePhysicalPortSettings{value: val, isSet: true} +} + +func (v NullablePhysicalPortSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePhysicalPortSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_physical_port_type.go b/services/fabricv4/model_physical_port_type.go index 27541308..f43998d9 100644 --- a/services/fabricv4/model_physical_port_type.go +++ b/services/fabricv4/model_physical_port_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port.go b/services/fabricv4/model_port.go index c646dc65..29a13bc6 100644 --- a/services/fabricv4/model_port.go +++ b/services/fabricv4/model_port.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -10,20 +9,18 @@ package fabricv4 import ( "encoding/json" - "fmt" ) // checks if the Port type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Port{} -// Port Port is the Request Object for Creating Fabric Ports +// Port Port specification type Port struct { - Account SimplifiedAccount `json:"account"` - Type PortType `json:"type"` + // Equinix assigned response attribute for an absolute URL that is the subject of the link's context. + Href *string `json:"href,omitempty"` + Type *PortType `json:"type,omitempty"` // Equinix assigned response attribute for Port Id Id *int32 `json:"id,omitempty"` - // Equinix assigned response attribute for an absolute URL that is the subject of the link's context. - Href *string `json:"href,omitempty"` // Equinix assigned response attribute for port identifier Uuid *string `json:"uuid,omitempty"` // Equinix assigned response attribute for Port name @@ -31,43 +28,45 @@ type Port struct { // Equinix assigned response attribute for Port description Description *string `json:"description,omitempty"` // Physical Ports Speed in Mbps - PhysicalPortsSpeed int32 `json:"physicalPortsSpeed"` + PhysicalPortsSpeed *int32 `json:"physicalPortsSpeed,omitempty"` // Equinix assigned response attribute for Connection count - ConnectionsCount *int32 `json:"connectionsCount,omitempty"` - PhysicalPortsType PortResponsePhysicalPortsType `json:"physicalPortsType"` - PhysicalPortsCount *int32 `json:"physicalPortsCount,omitempty"` - ConnectivitySourceType PortResponseConnectivitySourceType `json:"connectivitySourceType"` - BmmrType *PortResponseBmmrType `json:"bmmrType,omitempty"` - Project *Project `json:"project,omitempty"` - State *PortState `json:"state,omitempty"` - Order *PortOrder `json:"order,omitempty"` - // Equinix assigned response attribute for Unique ID for a virtual port. - CvpId *string `json:"cvpId,omitempty"` - Operation *PortOperation `json:"operation,omitempty"` - Changelog *Changelog `json:"changelog,omitempty"` - ServiceType *PortResponseServiceType `json:"serviceType,omitempty"` + ConnectionsCount *int32 `json:"connectionsCount,omitempty"` + PhysicalPortsType *PortPhysicalPortsType `json:"physicalPortsType,omitempty"` + PhysicalPortsCount *int32 `json:"physicalPortsCount,omitempty"` + ConnectivitySourceType *PortConnectivitySourceType `json:"connectivitySourceType,omitempty"` + BmmrType *PortBmmrType `json:"bmmrType,omitempty"` + Project *Project `json:"project,omitempty"` + State *PortState `json:"state,omitempty"` + Order *PortOrder `json:"order,omitempty"` + Operation *PortOperation `json:"operation,omitempty"` + Account *SimplifiedAccount `json:"account,omitempty"` + ChangeLog *Changelog `json:"changeLog,omitempty"` + // Deprecated + ServiceType *PortServiceType `json:"serviceType,omitempty"` // Equinix assigned response attribute for Port bandwidth in Mbps + // Deprecated Bandwidth *int32 `json:"bandwidth,omitempty"` // Equinix assigned response attribute for Port available bandwidth in Mbps AvailableBandwidth *int32 `json:"availableBandwidth,omitempty"` // Equinix assigned response attribute for Port used bandwidth in Mbps - UsedBandwidth *int32 `json:"usedBandwidth,omitempty"` - Location SimplifiedLocation `json:"location"` - Device *PortDevice `json:"device,omitempty"` - Interface *PortInterface `json:"interface,omitempty"` + UsedBandwidth *int32 `json:"usedBandwidth,omitempty"` + Location *SimplifiedLocation `json:"location,omitempty"` + Device *PortDevice `json:"device,omitempty"` + Interface *PortInterface `json:"interface,omitempty"` // A-side/Equinix ibx DemarcationPointIbx *string `json:"demarcationPointIbx,omitempty"` // z-side/Equinix ibx TetherIbx *string `json:"tetherIbx,omitempty"` DemarcationPoint *PortDemarcationPoint `json:"demarcationPoint,omitempty"` Redundancy *PortRedundancy `json:"redundancy,omitempty"` - Encapsulation PortEncapsulation `json:"encapsulation"` + Encapsulation *PortEncapsulation `json:"encapsulation,omitempty"` // If LAG enabled LagEnabled *bool `json:"lagEnabled,omitempty"` Lag *PortLag `json:"lag,omitempty"` // Port ASN - Asn *int32 `json:"asn,omitempty"` - Settings PortSettings `json:"settings"` + Asn *int32 `json:"asn,omitempty"` + Package *Package `json:"package,omitempty"` + Settings *PortSettings `json:"settings,omitempty"` // Number of physical ports PhysicalPortQuantity *int32 `json:"physicalPortQuantity,omitempty"` // Notification preferences @@ -87,16 +86,8 @@ type _Port Port // 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 NewPort(account SimplifiedAccount, type_ PortType, physicalPortsSpeed int32, physicalPortsType PortResponsePhysicalPortsType, connectivitySourceType PortResponseConnectivitySourceType, location SimplifiedLocation, encapsulation PortEncapsulation, settings PortSettings) *Port { +func NewPort() *Port { this := Port{} - this.Type = type_ - this.PhysicalPortsSpeed = physicalPortsSpeed - this.PhysicalPortsType = physicalPortsType - this.ConnectivitySourceType = connectivitySourceType - this.Account = account - this.Location = location - this.Encapsulation = encapsulation - this.Settings = settings return &this } @@ -108,52 +99,68 @@ func NewPortWithDefaults() *Port { return &this } -// GetAccount returns the Account field value -func (o *Port) GetAccount() SimplifiedAccount { - if o == nil { - var ret SimplifiedAccount +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Port) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string return ret } - - return o.Account + return *o.Href } -// GetAccountOk returns a tuple with the Account field value +// 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 *Port) GetAccountOk() (*SimplifiedAccount, bool) { - if o == nil { +func (o *Port) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { return nil, false } - return &o.Account, true + return o.Href, true } -// SetAccount sets field value -func (o *Port) SetAccount(v SimplifiedAccount) { - o.Account = v +// HasHref returns a boolean if a field has been set. +func (o *Port) 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 *Port) SetHref(v string) { + o.Href = &v } -// GetType returns the Type field value +// GetType returns the Type field value if set, zero value otherwise. func (o *Port) GetType() PortType { - if o == nil { + if o == nil || IsNil(o.Type) { var ret PortType 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 *Port) GetTypeOk() (*PortType, bool) { - if o == nil { + if o == nil || IsNil(o.Type) { return nil, false } - return &o.Type, true + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Port) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false } -// SetType sets field value +// SetType gets a reference to the given PortType and assigns it to the Type field. func (o *Port) SetType(v PortType) { - o.Type = v + o.Type = &v } // GetId returns the Id field value if set, zero value otherwise. @@ -188,38 +195,6 @@ func (o *Port) SetId(v int32) { o.Id = &v } -// GetHref returns the Href field value if set, zero value otherwise. -func (o *Port) 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 *Port) 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 *Port) 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 *Port) SetHref(v string) { - o.Href = &v -} - // GetUuid returns the Uuid field value if set, zero value otherwise. func (o *Port) GetUuid() string { if o == nil || IsNil(o.Uuid) { @@ -316,28 +291,36 @@ func (o *Port) SetDescription(v string) { o.Description = &v } -// GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field value +// GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field value if set, zero value otherwise. func (o *Port) GetPhysicalPortsSpeed() int32 { - if o == nil { + if o == nil || IsNil(o.PhysicalPortsSpeed) { var ret int32 return ret } - - return o.PhysicalPortsSpeed + return *o.PhysicalPortsSpeed } -// GetPhysicalPortsSpeedOk returns a tuple with the PhysicalPortsSpeed field value +// 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 *Port) GetPhysicalPortsSpeedOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.PhysicalPortsSpeed) { return nil, false } - return &o.PhysicalPortsSpeed, true + return o.PhysicalPortsSpeed, true +} + +// HasPhysicalPortsSpeed returns a boolean if a field has been set. +func (o *Port) HasPhysicalPortsSpeed() bool { + if o != nil && !IsNil(o.PhysicalPortsSpeed) { + return true + } + + return false } -// SetPhysicalPortsSpeed sets field value +// SetPhysicalPortsSpeed gets a reference to the given int32 and assigns it to the PhysicalPortsSpeed field. func (o *Port) SetPhysicalPortsSpeed(v int32) { - o.PhysicalPortsSpeed = v + o.PhysicalPortsSpeed = &v } // GetConnectionsCount returns the ConnectionsCount field value if set, zero value otherwise. @@ -372,28 +355,36 @@ func (o *Port) SetConnectionsCount(v int32) { o.ConnectionsCount = &v } -// GetPhysicalPortsType returns the PhysicalPortsType field value -func (o *Port) GetPhysicalPortsType() PortResponsePhysicalPortsType { - if o == nil { - var ret PortResponsePhysicalPortsType +// GetPhysicalPortsType returns the PhysicalPortsType field value if set, zero value otherwise. +func (o *Port) GetPhysicalPortsType() PortPhysicalPortsType { + if o == nil || IsNil(o.PhysicalPortsType) { + var ret PortPhysicalPortsType return ret } - - return o.PhysicalPortsType + return *o.PhysicalPortsType } -// GetPhysicalPortsTypeOk returns a tuple with the PhysicalPortsType field value +// 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 *Port) GetPhysicalPortsTypeOk() (*PortResponsePhysicalPortsType, bool) { - if o == nil { +func (o *Port) GetPhysicalPortsTypeOk() (*PortPhysicalPortsType, bool) { + if o == nil || IsNil(o.PhysicalPortsType) { return nil, false } - return &o.PhysicalPortsType, true + return o.PhysicalPortsType, true +} + +// HasPhysicalPortsType returns a boolean if a field has been set. +func (o *Port) HasPhysicalPortsType() bool { + if o != nil && !IsNil(o.PhysicalPortsType) { + return true + } + + return false } -// SetPhysicalPortsType sets field value -func (o *Port) SetPhysicalPortsType(v PortResponsePhysicalPortsType) { - o.PhysicalPortsType = v +// SetPhysicalPortsType gets a reference to the given PortPhysicalPortsType and assigns it to the PhysicalPortsType field. +func (o *Port) SetPhysicalPortsType(v PortPhysicalPortsType) { + o.PhysicalPortsType = &v } // GetPhysicalPortsCount returns the PhysicalPortsCount field value if set, zero value otherwise. @@ -428,34 +419,42 @@ func (o *Port) SetPhysicalPortsCount(v int32) { o.PhysicalPortsCount = &v } -// GetConnectivitySourceType returns the ConnectivitySourceType field value -func (o *Port) GetConnectivitySourceType() PortResponseConnectivitySourceType { - if o == nil { - var ret PortResponseConnectivitySourceType +// GetConnectivitySourceType returns the ConnectivitySourceType field value if set, zero value otherwise. +func (o *Port) GetConnectivitySourceType() PortConnectivitySourceType { + if o == nil || IsNil(o.ConnectivitySourceType) { + var ret PortConnectivitySourceType return ret } - - return o.ConnectivitySourceType + return *o.ConnectivitySourceType } -// GetConnectivitySourceTypeOk returns a tuple with the ConnectivitySourceType field value +// GetConnectivitySourceTypeOk returns a tuple with the ConnectivitySourceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Port) GetConnectivitySourceTypeOk() (*PortResponseConnectivitySourceType, bool) { - if o == nil { +func (o *Port) GetConnectivitySourceTypeOk() (*PortConnectivitySourceType, bool) { + if o == nil || IsNil(o.ConnectivitySourceType) { return nil, false } - return &o.ConnectivitySourceType, true + return o.ConnectivitySourceType, true +} + +// HasConnectivitySourceType returns a boolean if a field has been set. +func (o *Port) HasConnectivitySourceType() bool { + if o != nil && !IsNil(o.ConnectivitySourceType) { + return true + } + + return false } -// SetConnectivitySourceType sets field value -func (o *Port) SetConnectivitySourceType(v PortResponseConnectivitySourceType) { - o.ConnectivitySourceType = v +// SetConnectivitySourceType gets a reference to the given PortConnectivitySourceType and assigns it to the ConnectivitySourceType field. +func (o *Port) SetConnectivitySourceType(v PortConnectivitySourceType) { + o.ConnectivitySourceType = &v } // GetBmmrType returns the BmmrType field value if set, zero value otherwise. -func (o *Port) GetBmmrType() PortResponseBmmrType { +func (o *Port) GetBmmrType() PortBmmrType { if o == nil || IsNil(o.BmmrType) { - var ret PortResponseBmmrType + var ret PortBmmrType return ret } return *o.BmmrType @@ -463,7 +462,7 @@ func (o *Port) GetBmmrType() PortResponseBmmrType { // GetBmmrTypeOk returns a tuple with the BmmrType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Port) GetBmmrTypeOk() (*PortResponseBmmrType, bool) { +func (o *Port) GetBmmrTypeOk() (*PortBmmrType, bool) { if o == nil || IsNil(o.BmmrType) { return nil, false } @@ -479,8 +478,8 @@ func (o *Port) HasBmmrType() bool { return false } -// SetBmmrType gets a reference to the given PortResponseBmmrType and assigns it to the BmmrType field. -func (o *Port) SetBmmrType(v PortResponseBmmrType) { +// SetBmmrType gets a reference to the given PortBmmrType and assigns it to the BmmrType field. +func (o *Port) SetBmmrType(v PortBmmrType) { o.BmmrType = &v } @@ -580,106 +579,107 @@ func (o *Port) SetOrder(v PortOrder) { o.Order = &v } -// GetCvpId returns the CvpId field value if set, zero value otherwise. -func (o *Port) GetCvpId() string { - if o == nil || IsNil(o.CvpId) { - var ret string +// GetOperation returns the Operation field value if set, zero value otherwise. +func (o *Port) GetOperation() PortOperation { + if o == nil || IsNil(o.Operation) { + var ret PortOperation return ret } - return *o.CvpId + return *o.Operation } -// GetCvpIdOk returns a tuple with the CvpId field value if set, nil otherwise +// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Port) GetCvpIdOk() (*string, bool) { - if o == nil || IsNil(o.CvpId) { +func (o *Port) GetOperationOk() (*PortOperation, bool) { + if o == nil || IsNil(o.Operation) { return nil, false } - return o.CvpId, true + return o.Operation, true } -// HasCvpId returns a boolean if a field has been set. -func (o *Port) HasCvpId() bool { - if o != nil && !IsNil(o.CvpId) { +// HasOperation returns a boolean if a field has been set. +func (o *Port) HasOperation() bool { + if o != nil && !IsNil(o.Operation) { return true } return false } -// SetCvpId gets a reference to the given string and assigns it to the CvpId field. -func (o *Port) SetCvpId(v string) { - o.CvpId = &v +// SetOperation gets a reference to the given PortOperation and assigns it to the Operation field. +func (o *Port) SetOperation(v PortOperation) { + o.Operation = &v } -// GetOperation returns the Operation field value if set, zero value otherwise. -func (o *Port) GetOperation() PortOperation { - if o == nil || IsNil(o.Operation) { - var ret PortOperation +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *Port) GetAccount() SimplifiedAccount { + if o == nil || IsNil(o.Account) { + var ret SimplifiedAccount return ret } - return *o.Operation + return *o.Account } -// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Port) GetOperationOk() (*PortOperation, bool) { - if o == nil || IsNil(o.Operation) { +func (o *Port) GetAccountOk() (*SimplifiedAccount, bool) { + if o == nil || IsNil(o.Account) { return nil, false } - return o.Operation, true + return o.Account, true } -// HasOperation returns a boolean if a field has been set. -func (o *Port) HasOperation() bool { - if o != nil && !IsNil(o.Operation) { +// HasAccount returns a boolean if a field has been set. +func (o *Port) HasAccount() bool { + if o != nil && !IsNil(o.Account) { return true } return false } -// SetOperation gets a reference to the given PortOperation and assigns it to the Operation field. -func (o *Port) SetOperation(v PortOperation) { - o.Operation = &v +// SetAccount gets a reference to the given SimplifiedAccount and assigns it to the Account field. +func (o *Port) SetAccount(v SimplifiedAccount) { + o.Account = &v } -// GetChangelog returns the Changelog field value if set, zero value otherwise. -func (o *Port) GetChangelog() Changelog { - if o == nil || IsNil(o.Changelog) { +// GetChangeLog returns the ChangeLog field value if set, zero value otherwise. +func (o *Port) GetChangeLog() Changelog { + if o == nil || IsNil(o.ChangeLog) { var ret Changelog return ret } - return *o.Changelog + return *o.ChangeLog } -// GetChangelogOk returns a tuple with the Changelog field value if set, nil otherwise +// GetChangeLogOk returns a tuple with the ChangeLog field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Port) GetChangelogOk() (*Changelog, bool) { - if o == nil || IsNil(o.Changelog) { +func (o *Port) GetChangeLogOk() (*Changelog, bool) { + if o == nil || IsNil(o.ChangeLog) { return nil, false } - return o.Changelog, true + return o.ChangeLog, true } -// HasChangelog returns a boolean if a field has been set. -func (o *Port) HasChangelog() bool { - if o != nil && !IsNil(o.Changelog) { +// HasChangeLog returns a boolean if a field has been set. +func (o *Port) HasChangeLog() bool { + if o != nil && !IsNil(o.ChangeLog) { return true } return false } -// SetChangelog gets a reference to the given Changelog and assigns it to the Changelog field. -func (o *Port) SetChangelog(v Changelog) { - o.Changelog = &v +// SetChangeLog gets a reference to the given Changelog and assigns it to the ChangeLog field. +func (o *Port) SetChangeLog(v Changelog) { + o.ChangeLog = &v } // GetServiceType returns the ServiceType field value if set, zero value otherwise. -func (o *Port) GetServiceType() PortResponseServiceType { +// Deprecated +func (o *Port) GetServiceType() PortServiceType { if o == nil || IsNil(o.ServiceType) { - var ret PortResponseServiceType + var ret PortServiceType return ret } return *o.ServiceType @@ -687,7 +687,8 @@ func (o *Port) GetServiceType() PortResponseServiceType { // GetServiceTypeOk returns a tuple with the ServiceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Port) GetServiceTypeOk() (*PortResponseServiceType, bool) { +// Deprecated +func (o *Port) GetServiceTypeOk() (*PortServiceType, bool) { if o == nil || IsNil(o.ServiceType) { return nil, false } @@ -703,12 +704,14 @@ func (o *Port) HasServiceType() bool { return false } -// SetServiceType gets a reference to the given PortResponseServiceType and assigns it to the ServiceType field. -func (o *Port) SetServiceType(v PortResponseServiceType) { +// SetServiceType gets a reference to the given PortServiceType and assigns it to the ServiceType field. +// Deprecated +func (o *Port) SetServiceType(v PortServiceType) { o.ServiceType = &v } // GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +// Deprecated func (o *Port) GetBandwidth() int32 { if o == nil || IsNil(o.Bandwidth) { var ret int32 @@ -719,6 +722,7 @@ func (o *Port) GetBandwidth() int32 { // GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *Port) GetBandwidthOk() (*int32, bool) { if o == nil || IsNil(o.Bandwidth) { return nil, false @@ -736,6 +740,7 @@ func (o *Port) HasBandwidth() bool { } // SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. +// Deprecated func (o *Port) SetBandwidth(v int32) { o.Bandwidth = &v } @@ -804,28 +809,36 @@ func (o *Port) SetUsedBandwidth(v int32) { o.UsedBandwidth = &v } -// GetLocation returns the Location field value +// GetLocation returns the Location field value if set, zero value otherwise. func (o *Port) GetLocation() SimplifiedLocation { - if o == nil { + if o == nil || IsNil(o.Location) { var ret SimplifiedLocation return ret } - - return o.Location + return *o.Location } -// GetLocationOk returns a tuple with the Location field value +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Port) GetLocationOk() (*SimplifiedLocation, bool) { - if o == nil { + if o == nil || IsNil(o.Location) { return nil, false } - return &o.Location, true + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *Port) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false } -// SetLocation sets field value +// SetLocation gets a reference to the given SimplifiedLocation and assigns it to the Location field. func (o *Port) SetLocation(v SimplifiedLocation) { - o.Location = v + o.Location = &v } // GetDevice returns the Device field value if set, zero value otherwise. @@ -1020,28 +1033,36 @@ func (o *Port) SetRedundancy(v PortRedundancy) { o.Redundancy = &v } -// GetEncapsulation returns the Encapsulation field value +// GetEncapsulation returns the Encapsulation field value if set, zero value otherwise. func (o *Port) GetEncapsulation() PortEncapsulation { - if o == nil { + if o == nil || IsNil(o.Encapsulation) { var ret PortEncapsulation return ret } - - return o.Encapsulation + return *o.Encapsulation } -// GetEncapsulationOk returns a tuple with the Encapsulation field value +// GetEncapsulationOk returns a tuple with the Encapsulation field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Port) GetEncapsulationOk() (*PortEncapsulation, bool) { - if o == nil { + if o == nil || IsNil(o.Encapsulation) { return nil, false } - return &o.Encapsulation, true + return o.Encapsulation, true +} + +// HasEncapsulation returns a boolean if a field has been set. +func (o *Port) HasEncapsulation() bool { + if o != nil && !IsNil(o.Encapsulation) { + return true + } + + return false } -// SetEncapsulation sets field value +// SetEncapsulation gets a reference to the given PortEncapsulation and assigns it to the Encapsulation field. func (o *Port) SetEncapsulation(v PortEncapsulation) { - o.Encapsulation = v + o.Encapsulation = &v } // GetLagEnabled returns the LagEnabled field value if set, zero value otherwise. @@ -1140,28 +1161,68 @@ func (o *Port) SetAsn(v int32) { o.Asn = &v } -// GetSettings returns the Settings field value +// GetPackage returns the Package field value if set, zero value otherwise. +func (o *Port) GetPackage() Package { + if o == nil || IsNil(o.Package) { + var ret Package + return ret + } + return *o.Package +} + +// GetPackageOk returns a tuple with the Package field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Port) GetPackageOk() (*Package, bool) { + if o == nil || IsNil(o.Package) { + return nil, false + } + return o.Package, true +} + +// HasPackage returns a boolean if a field has been set. +func (o *Port) HasPackage() bool { + if o != nil && !IsNil(o.Package) { + return true + } + + return false +} + +// SetPackage gets a reference to the given Package and assigns it to the Package field. +func (o *Port) SetPackage(v Package) { + o.Package = &v +} + +// GetSettings returns the Settings field value if set, zero value otherwise. func (o *Port) GetSettings() PortSettings { - if o == nil { + if o == nil || IsNil(o.Settings) { var ret PortSettings return ret } - - return o.Settings + return *o.Settings } -// GetSettingsOk returns a tuple with the Settings field value +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Port) GetSettingsOk() (*PortSettings, bool) { - if o == nil { + if o == nil || IsNil(o.Settings) { return nil, false } - return &o.Settings, true + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *Port) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false } -// SetSettings sets field value +// SetSettings gets a reference to the given PortSettings and assigns it to the Settings field. func (o *Port) SetSettings(v PortSettings) { - o.Settings = v + o.Settings = &v } // GetPhysicalPortQuantity returns the PhysicalPortQuantity field value if set, zero value otherwise. @@ -1334,14 +1395,15 @@ func (o Port) MarshalJSON() ([]byte, error) { func (o Port) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["account"] = o.Account - toSerialize["type"] = o.Type - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } if !IsNil(o.Href) { toSerialize["href"] = o.Href } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } if !IsNil(o.Uuid) { toSerialize["uuid"] = o.Uuid } @@ -1351,15 +1413,21 @@ func (o Port) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["physicalPortsSpeed"] = o.PhysicalPortsSpeed + if !IsNil(o.PhysicalPortsSpeed) { + toSerialize["physicalPortsSpeed"] = o.PhysicalPortsSpeed + } if !IsNil(o.ConnectionsCount) { toSerialize["connectionsCount"] = o.ConnectionsCount } - toSerialize["physicalPortsType"] = o.PhysicalPortsType + if !IsNil(o.PhysicalPortsType) { + toSerialize["physicalPortsType"] = o.PhysicalPortsType + } if !IsNil(o.PhysicalPortsCount) { toSerialize["physicalPortsCount"] = o.PhysicalPortsCount } - toSerialize["connectivitySourceType"] = o.ConnectivitySourceType + if !IsNil(o.ConnectivitySourceType) { + toSerialize["connectivitySourceType"] = o.ConnectivitySourceType + } if !IsNil(o.BmmrType) { toSerialize["bmmrType"] = o.BmmrType } @@ -1372,14 +1440,14 @@ func (o Port) ToMap() (map[string]interface{}, error) { if !IsNil(o.Order) { toSerialize["order"] = o.Order } - if !IsNil(o.CvpId) { - toSerialize["cvpId"] = o.CvpId - } if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } - if !IsNil(o.Changelog) { - toSerialize["changelog"] = o.Changelog + if !IsNil(o.Account) { + toSerialize["account"] = o.Account + } + if !IsNil(o.ChangeLog) { + toSerialize["changeLog"] = o.ChangeLog } if !IsNil(o.ServiceType) { toSerialize["serviceType"] = o.ServiceType @@ -1393,7 +1461,9 @@ func (o Port) ToMap() (map[string]interface{}, error) { if !IsNil(o.UsedBandwidth) { toSerialize["usedBandwidth"] = o.UsedBandwidth } - toSerialize["location"] = o.Location + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } if !IsNil(o.Device) { toSerialize["device"] = o.Device } @@ -1412,7 +1482,9 @@ func (o Port) ToMap() (map[string]interface{}, error) { if !IsNil(o.Redundancy) { toSerialize["redundancy"] = o.Redundancy } - toSerialize["encapsulation"] = o.Encapsulation + if !IsNil(o.Encapsulation) { + toSerialize["encapsulation"] = o.Encapsulation + } if !IsNil(o.LagEnabled) { toSerialize["lagEnabled"] = o.LagEnabled } @@ -1422,7 +1494,12 @@ func (o Port) ToMap() (map[string]interface{}, error) { if !IsNil(o.Asn) { toSerialize["asn"] = o.Asn } - toSerialize["settings"] = o.Settings + if !IsNil(o.Package) { + toSerialize["package"] = o.Package + } + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } if !IsNil(o.PhysicalPortQuantity) { toSerialize["physicalPortQuantity"] = o.PhysicalPortQuantity } @@ -1447,34 +1524,6 @@ func (o Port) ToMap() (map[string]interface{}, error) { } func (o *Port) 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{ - "account", - "type", - "physicalPortsSpeed", - "physicalPortsType", - "connectivitySourceType", - "location", - "encapsulation", - "settings", - } - - 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) - } - } - varPort := _Port{} err = json.Unmarshal(data, &varPort) @@ -1488,10 +1537,9 @@ func (o *Port) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "account") + delete(additionalProperties, "href") delete(additionalProperties, "type") delete(additionalProperties, "id") - delete(additionalProperties, "href") delete(additionalProperties, "uuid") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -1504,9 +1552,9 @@ func (o *Port) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "project") delete(additionalProperties, "state") delete(additionalProperties, "order") - delete(additionalProperties, "cvpId") delete(additionalProperties, "operation") - delete(additionalProperties, "changelog") + delete(additionalProperties, "account") + delete(additionalProperties, "changeLog") delete(additionalProperties, "serviceType") delete(additionalProperties, "bandwidth") delete(additionalProperties, "availableBandwidth") @@ -1522,6 +1570,7 @@ func (o *Port) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "lagEnabled") delete(additionalProperties, "lag") delete(additionalProperties, "asn") + delete(additionalProperties, "package") delete(additionalProperties, "settings") delete(additionalProperties, "physicalPortQuantity") delete(additionalProperties, "notifications") diff --git a/services/fabricv4/model_port_additional_info.go b/services/fabricv4/model_port_additional_info.go index 83f60860..6c2f30f1 100644 --- a/services/fabricv4/model_port_additional_info.go +++ b/services/fabricv4/model_port_additional_info.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_bmmr_type.go b/services/fabricv4/model_port_bmmr_type.go new file mode 100644 index 00000000..0a69f541 --- /dev/null +++ b/services/fabricv4/model_port_bmmr_type.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PortBmmrType the model 'PortBmmrType' +type PortBmmrType string + +// List of Port_bmmrType +const ( + PORTBMMRTYPE_SELF PortBmmrType = "SELF" + PORTBMMRTYPE_EQUINIX PortBmmrType = "EQUINIX" +) + +// All allowed values of PortBmmrType enum +var AllowedPortBmmrTypeEnumValues = []PortBmmrType{ + "SELF", + "EQUINIX", +} + +func (v *PortBmmrType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PortBmmrType(value) + for _, existing := range AllowedPortBmmrTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PortBmmrType", value) +} + +// NewPortBmmrTypeFromValue returns a pointer to a valid PortBmmrType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPortBmmrTypeFromValue(v string) (*PortBmmrType, error) { + ev := PortBmmrType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PortBmmrType: valid values are %v", v, AllowedPortBmmrTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PortBmmrType) IsValid() bool { + for _, existing := range AllowedPortBmmrTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Port_bmmrType value +func (v PortBmmrType) Ptr() *PortBmmrType { + return &v +} + +type NullablePortBmmrType struct { + value *PortBmmrType + isSet bool +} + +func (v NullablePortBmmrType) Get() *PortBmmrType { + return v.value +} + +func (v *NullablePortBmmrType) Set(val *PortBmmrType) { + v.value = val + v.isSet = true +} + +func (v NullablePortBmmrType) IsSet() bool { + return v.isSet +} + +func (v *NullablePortBmmrType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortBmmrType(val *PortBmmrType) *NullablePortBmmrType { + return &NullablePortBmmrType{value: val, isSet: true} +} + +func (v NullablePortBmmrType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortBmmrType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_connectivity_source_type.go b/services/fabricv4/model_port_connectivity_source_type.go new file mode 100644 index 00000000..2154c473 --- /dev/null +++ b/services/fabricv4/model_port_connectivity_source_type.go @@ -0,0 +1,109 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PortConnectivitySourceType Port connectivity type +type PortConnectivitySourceType string + +// List of Port_connectivitySourceType +const ( + PORTCONNECTIVITYSOURCETYPE_COLO PortConnectivitySourceType = "COLO" + PORTCONNECTIVITYSOURCETYPE_BMMR PortConnectivitySourceType = "BMMR" + PORTCONNECTIVITYSOURCETYPE_REMOTE PortConnectivitySourceType = "REMOTE" +) + +// All allowed values of PortConnectivitySourceType enum +var AllowedPortConnectivitySourceTypeEnumValues = []PortConnectivitySourceType{ + "COLO", + "BMMR", + "REMOTE", +} + +func (v *PortConnectivitySourceType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PortConnectivitySourceType(value) + for _, existing := range AllowedPortConnectivitySourceTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PortConnectivitySourceType", value) +} + +// NewPortConnectivitySourceTypeFromValue returns a pointer to a valid PortConnectivitySourceType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPortConnectivitySourceTypeFromValue(v string) (*PortConnectivitySourceType, error) { + ev := PortConnectivitySourceType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PortConnectivitySourceType: valid values are %v", v, AllowedPortConnectivitySourceTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PortConnectivitySourceType) IsValid() bool { + for _, existing := range AllowedPortConnectivitySourceTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Port_connectivitySourceType value +func (v PortConnectivitySourceType) Ptr() *PortConnectivitySourceType { + return &v +} + +type NullablePortConnectivitySourceType struct { + value *PortConnectivitySourceType + isSet bool +} + +func (v NullablePortConnectivitySourceType) Get() *PortConnectivitySourceType { + return v.value +} + +func (v *NullablePortConnectivitySourceType) Set(val *PortConnectivitySourceType) { + v.value = val + v.isSet = true +} + +func (v NullablePortConnectivitySourceType) IsSet() bool { + return v.isSet +} + +func (v *NullablePortConnectivitySourceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortConnectivitySourceType(val *PortConnectivitySourceType) *NullablePortConnectivitySourceType { + return &NullablePortConnectivitySourceType{value: val, isSet: true} +} + +func (v NullablePortConnectivitySourceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortConnectivitySourceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_demarcation_point.go b/services/fabricv4/model_port_demarcation_point.go index 8dda9432..f3ec4e07 100644 --- a/services/fabricv4/model_port_demarcation_point.go +++ b/services/fabricv4/model_port_demarcation_point.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_device.go b/services/fabricv4/model_port_device.go index e28fec96..155624d1 100644 --- a/services/fabricv4/model_port_device.go +++ b/services/fabricv4/model_port_device.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_device_redundancy.go b/services/fabricv4/model_port_device_redundancy.go index 8de5702b..62b4921e 100644 --- a/services/fabricv4/model_port_device_redundancy.go +++ b/services/fabricv4/model_port_device_redundancy.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_device_redundancy_priority.go b/services/fabricv4/model_port_device_redundancy_priority.go index 4c4e4c06..74a60f2c 100644 --- a/services/fabricv4/model_port_device_redundancy_priority.go +++ b/services/fabricv4/model_port_device_redundancy_priority.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_encapsulation.go b/services/fabricv4/model_port_encapsulation.go index fe8af61e..118c3012 100644 --- a/services/fabricv4/model_port_encapsulation.go +++ b/services/fabricv4/model_port_encapsulation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_encapsulation_type.go b/services/fabricv4/model_port_encapsulation_type.go index c26e636e..5f74e977 100644 --- a/services/fabricv4/model_port_encapsulation_type.go +++ b/services/fabricv4/model_port_encapsulation_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_expression.go b/services/fabricv4/model_port_expression.go index 2ef7262f..9f49496d 100644 --- a/services/fabricv4/model_port_expression.go +++ b/services/fabricv4/model_port_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_interface.go b/services/fabricv4/model_port_interface.go index adfb07cd..e394de8d 100644 --- a/services/fabricv4/model_port_interface.go +++ b/services/fabricv4/model_port_interface.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,11 +17,7 @@ var _ MappedNullable = &PortInterface{} // PortInterface Port interface type PortInterface struct { // Port interface type - Type *string `json:"type,omitempty"` - // Port interface index - IfIndex *string `json:"ifIndex,omitempty"` - // Port interface name - Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,70 +72,6 @@ func (o *PortInterface) SetType(v string) { o.Type = &v } -// GetIfIndex returns the IfIndex field value if set, zero value otherwise. -func (o *PortInterface) GetIfIndex() string { - if o == nil || IsNil(o.IfIndex) { - var ret string - return ret - } - return *o.IfIndex -} - -// GetIfIndexOk returns a tuple with the IfIndex field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PortInterface) GetIfIndexOk() (*string, bool) { - if o == nil || IsNil(o.IfIndex) { - return nil, false - } - return o.IfIndex, true -} - -// HasIfIndex returns a boolean if a field has been set. -func (o *PortInterface) HasIfIndex() bool { - if o != nil && !IsNil(o.IfIndex) { - return true - } - - return false -} - -// SetIfIndex gets a reference to the given string and assigns it to the IfIndex field. -func (o *PortInterface) SetIfIndex(v string) { - o.IfIndex = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *PortInterface) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PortInterface) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *PortInterface) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *PortInterface) SetName(v string) { - o.Name = &v -} - func (o PortInterface) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -154,12 +85,6 @@ func (o PortInterface) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !IsNil(o.IfIndex) { - toSerialize["ifIndex"] = o.IfIndex - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -183,8 +108,6 @@ func (o *PortInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") - delete(additionalProperties, "ifIndex") - delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_port_lag.go b/services/fabricv4/model_port_lag.go index 2b1b6c4f..dc52b155 100644 --- a/services/fabricv4/model_port_lag.go +++ b/services/fabricv4/model_port_lag.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,6 +19,7 @@ type PortLag struct { // id Id *string `json:"id,omitempty"` // enabled + // Deprecated Enabled *bool `json:"enabled,omitempty"` // name Name *string `json:"name,omitempty"` @@ -80,6 +80,7 @@ func (o *PortLag) SetId(v string) { } // GetEnabled returns the Enabled field value if set, zero value otherwise. +// Deprecated func (o *PortLag) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { var ret bool @@ -90,6 +91,7 @@ func (o *PortLag) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortLag) GetEnabledOk() (*bool, bool) { if o == nil || IsNil(o.Enabled) { return nil, false @@ -107,6 +109,7 @@ func (o *PortLag) HasEnabled() bool { } // SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +// Deprecated func (o *PortLag) SetEnabled(v bool) { o.Enabled = &v } diff --git a/services/fabricv4/model_port_loa.go b/services/fabricv4/model_port_loa.go index 70f0f480..af701489 100644 --- a/services/fabricv4/model_port_loa.go +++ b/services/fabricv4/model_port_loa.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_loa_type.go b/services/fabricv4/model_port_loa_type.go index 937acaba..038b3382 100644 --- a/services/fabricv4/model_port_loa_type.go +++ b/services/fabricv4/model_port_loa_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_notification.go b/services/fabricv4/model_port_notification.go index f336ced5..9825878a 100644 --- a/services/fabricv4/model_port_notification.go +++ b/services/fabricv4/model_port_notification.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_notification_type.go b/services/fabricv4/model_port_notification_type.go index 7d9ece81..0d4b32d1 100644 --- a/services/fabricv4/model_port_notification_type.go +++ b/services/fabricv4/model_port_notification_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_operation.go b/services/fabricv4/model_port_operation.go index 889c7f7a..15159cc7 100644 --- a/services/fabricv4/model_port_operation.go +++ b/services/fabricv4/model_port_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +19,13 @@ var _ MappedNullable = &PortOperation{} type PortOperation struct { OperationalStatus *PortOperationOperationalStatus `json:"operationalStatus,omitempty"` // Total number of connections. - ConnectionCount *int32 `json:"connectionCount,omitempty"` + ConnectionCount *int64 `json:"connectionCount,omitempty"` + // Total number of connections. + EvplVCCount *int64 `json:"evplVCCount,omitempty"` + // Total number of connections. + FgVCCount *int64 `json:"fgVCCount,omitempty"` + // Total number of connections. + AccessVCCount *int64 `json:"accessVCCount,omitempty"` // Date and time at which port availability changed. OpStatusChangedAt *time.Time `json:"opStatusChangedAt,omitempty"` AdditionalProperties map[string]interface{} @@ -78,9 +83,9 @@ func (o *PortOperation) SetOperationalStatus(v PortOperationOperationalStatus) { } // GetConnectionCount returns the ConnectionCount field value if set, zero value otherwise. -func (o *PortOperation) GetConnectionCount() int32 { +func (o *PortOperation) GetConnectionCount() int64 { if o == nil || IsNil(o.ConnectionCount) { - var ret int32 + var ret int64 return ret } return *o.ConnectionCount @@ -88,7 +93,7 @@ func (o *PortOperation) GetConnectionCount() int32 { // GetConnectionCountOk returns a tuple with the ConnectionCount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortOperation) GetConnectionCountOk() (*int32, bool) { +func (o *PortOperation) GetConnectionCountOk() (*int64, bool) { if o == nil || IsNil(o.ConnectionCount) { return nil, false } @@ -104,11 +109,107 @@ func (o *PortOperation) HasConnectionCount() bool { return false } -// SetConnectionCount gets a reference to the given int32 and assigns it to the ConnectionCount field. -func (o *PortOperation) SetConnectionCount(v int32) { +// SetConnectionCount gets a reference to the given int64 and assigns it to the ConnectionCount field. +func (o *PortOperation) SetConnectionCount(v int64) { o.ConnectionCount = &v } +// GetEvplVCCount returns the EvplVCCount field value if set, zero value otherwise. +func (o *PortOperation) GetEvplVCCount() int64 { + if o == nil || IsNil(o.EvplVCCount) { + var ret int64 + return ret + } + return *o.EvplVCCount +} + +// GetEvplVCCountOk returns a tuple with the EvplVCCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortOperation) GetEvplVCCountOk() (*int64, bool) { + if o == nil || IsNil(o.EvplVCCount) { + return nil, false + } + return o.EvplVCCount, true +} + +// HasEvplVCCount returns a boolean if a field has been set. +func (o *PortOperation) HasEvplVCCount() bool { + if o != nil && !IsNil(o.EvplVCCount) { + return true + } + + return false +} + +// SetEvplVCCount gets a reference to the given int64 and assigns it to the EvplVCCount field. +func (o *PortOperation) SetEvplVCCount(v int64) { + o.EvplVCCount = &v +} + +// GetFgVCCount returns the FgVCCount field value if set, zero value otherwise. +func (o *PortOperation) GetFgVCCount() int64 { + if o == nil || IsNil(o.FgVCCount) { + var ret int64 + return ret + } + return *o.FgVCCount +} + +// GetFgVCCountOk returns a tuple with the FgVCCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortOperation) GetFgVCCountOk() (*int64, bool) { + if o == nil || IsNil(o.FgVCCount) { + return nil, false + } + return o.FgVCCount, true +} + +// HasFgVCCount returns a boolean if a field has been set. +func (o *PortOperation) HasFgVCCount() bool { + if o != nil && !IsNil(o.FgVCCount) { + return true + } + + return false +} + +// SetFgVCCount gets a reference to the given int64 and assigns it to the FgVCCount field. +func (o *PortOperation) SetFgVCCount(v int64) { + o.FgVCCount = &v +} + +// GetAccessVCCount returns the AccessVCCount field value if set, zero value otherwise. +func (o *PortOperation) GetAccessVCCount() int64 { + if o == nil || IsNil(o.AccessVCCount) { + var ret int64 + return ret + } + return *o.AccessVCCount +} + +// GetAccessVCCountOk returns a tuple with the AccessVCCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PortOperation) GetAccessVCCountOk() (*int64, bool) { + if o == nil || IsNil(o.AccessVCCount) { + return nil, false + } + return o.AccessVCCount, true +} + +// HasAccessVCCount returns a boolean if a field has been set. +func (o *PortOperation) HasAccessVCCount() bool { + if o != nil && !IsNil(o.AccessVCCount) { + return true + } + + return false +} + +// SetAccessVCCount gets a reference to the given int64 and assigns it to the AccessVCCount field. +func (o *PortOperation) SetAccessVCCount(v int64) { + o.AccessVCCount = &v +} + // GetOpStatusChangedAt returns the OpStatusChangedAt field value if set, zero value otherwise. func (o *PortOperation) GetOpStatusChangedAt() time.Time { if o == nil || IsNil(o.OpStatusChangedAt) { @@ -157,6 +258,15 @@ func (o PortOperation) ToMap() (map[string]interface{}, error) { if !IsNil(o.ConnectionCount) { toSerialize["connectionCount"] = o.ConnectionCount } + if !IsNil(o.EvplVCCount) { + toSerialize["evplVCCount"] = o.EvplVCCount + } + if !IsNil(o.FgVCCount) { + toSerialize["fgVCCount"] = o.FgVCCount + } + if !IsNil(o.AccessVCCount) { + toSerialize["accessVCCount"] = o.AccessVCCount + } if !IsNil(o.OpStatusChangedAt) { toSerialize["opStatusChangedAt"] = o.OpStatusChangedAt } @@ -184,6 +294,9 @@ func (o *PortOperation) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "operationalStatus") delete(additionalProperties, "connectionCount") + delete(additionalProperties, "evplVCCount") + delete(additionalProperties, "fgVCCount") + delete(additionalProperties, "accessVCCount") delete(additionalProperties, "opStatusChangedAt") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_port_operation_operational_status.go b/services/fabricv4/model_port_operation_operational_status.go index 312b085d..9d3c1bf7 100644 --- a/services/fabricv4/model_port_operation_operational_status.go +++ b/services/fabricv4/model_port_operation_operational_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,14 +17,16 @@ type PortOperationOperationalStatus string // List of PortOperation_operationalStatus const ( - PORTOPERATIONOPERATIONALSTATUS_UP PortOperationOperationalStatus = "UP" - PORTOPERATIONOPERATIONALSTATUS_DOWN PortOperationOperationalStatus = "DOWN" + PORTOPERATIONOPERATIONALSTATUS_UP PortOperationOperationalStatus = "UP" + PORTOPERATIONOPERATIONALSTATUS_DOWN PortOperationOperationalStatus = "DOWN" + PORTOPERATIONOPERATIONALSTATUS_PARTIAL PortOperationOperationalStatus = "PARTIAL" ) // All allowed values of PortOperationOperationalStatus enum var AllowedPortOperationOperationalStatusEnumValues = []PortOperationOperationalStatus{ "UP", "DOWN", + "PARTIAL", } func (v *PortOperationOperationalStatus) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_port_order.go b/services/fabricv4/model_port_order.go index b900358b..f7348d49 100644 --- a/services/fabricv4/model_port_order.go +++ b/services/fabricv4/model_port_order.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,7 +23,7 @@ type PortOrder struct { CustomerReferenceId *string `json:"customerReferenceId,omitempty"` // Order Reference Number OrderNumber *string `json:"orderNumber,omitempty"` - // Equinix-assigned order identifier + // Equinix-assigned order identifier, this is a derived response atrribute Uuid *string `json:"uuid,omitempty"` Signature *PortOrderSignature `json:"signature,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/fabricv4/model_port_order_purchase_order.go b/services/fabricv4/model_port_order_purchase_order.go index 171f2d8c..0f1b4590 100644 --- a/services/fabricv4/model_port_order_purchase_order.go +++ b/services/fabricv4/model_port_order_purchase_order.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +19,13 @@ type PortOrderPurchaseOrder struct { // purchase order number Number *string `json:"number,omitempty"` // purchase order amount - Amount *string `json:"amount,omitempty"` - StartDate *string `json:"startDate,omitempty"` - EndDate *string `json:"endDate,omitempty"` - AttachmentId *string `json:"attachmentId,omitempty"` + Amount *string `json:"amount,omitempty"` + StartDate *string `json:"startDate,omitempty"` + EndDate *string `json:"endDate,omitempty"` + AttachmentId *string `json:"attachmentId,omitempty"` + // Deprecated SelectionType *PortOrderPurchaseOrderSelectionType `json:"selectionType,omitempty"` + Type *PortOrderPurchaseOrderType `json:"type,omitempty"` AdditionalProperties map[string]interface{} } @@ -208,6 +209,7 @@ func (o *PortOrderPurchaseOrder) SetAttachmentId(v string) { } // GetSelectionType returns the SelectionType field value if set, zero value otherwise. +// Deprecated func (o *PortOrderPurchaseOrder) GetSelectionType() PortOrderPurchaseOrderSelectionType { if o == nil || IsNil(o.SelectionType) { var ret PortOrderPurchaseOrderSelectionType @@ -218,6 +220,7 @@ func (o *PortOrderPurchaseOrder) GetSelectionType() PortOrderPurchaseOrderSelect // GetSelectionTypeOk returns a tuple with the SelectionType field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortOrderPurchaseOrder) GetSelectionTypeOk() (*PortOrderPurchaseOrderSelectionType, bool) { if o == nil || IsNil(o.SelectionType) { return nil, false @@ -235,10 +238,43 @@ func (o *PortOrderPurchaseOrder) HasSelectionType() bool { } // SetSelectionType gets a reference to the given PortOrderPurchaseOrderSelectionType and assigns it to the SelectionType field. +// Deprecated func (o *PortOrderPurchaseOrder) SetSelectionType(v PortOrderPurchaseOrderSelectionType) { o.SelectionType = &v } +// GetType returns the Type field value if set, zero value otherwise. +func (o *PortOrderPurchaseOrder) GetType() PortOrderPurchaseOrderType { + if o == nil || IsNil(o.Type) { + var ret PortOrderPurchaseOrderType + 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 *PortOrderPurchaseOrder) GetTypeOk() (*PortOrderPurchaseOrderType, 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 *PortOrderPurchaseOrder) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given PortOrderPurchaseOrderType and assigns it to the Type field. +func (o *PortOrderPurchaseOrder) SetType(v PortOrderPurchaseOrderType) { + o.Type = &v +} + func (o PortOrderPurchaseOrder) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -267,6 +303,9 @@ func (o PortOrderPurchaseOrder) ToMap() (map[string]interface{}, error) { if !IsNil(o.SelectionType) { toSerialize["selectionType"] = o.SelectionType } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -295,6 +334,7 @@ func (o *PortOrderPurchaseOrder) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "endDate") delete(additionalProperties, "attachmentId") delete(additionalProperties, "selectionType") + delete(additionalProperties, "type") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_port_order_purchase_order_selection_type.go b/services/fabricv4/model_port_order_purchase_order_selection_type.go index 61a0d384..784254fa 100644 --- a/services/fabricv4/model_port_order_purchase_order_selection_type.go +++ b/services/fabricv4/model_port_order_purchase_order_selection_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_order_purchase_order_type.go b/services/fabricv4/model_port_order_purchase_order_type.go new file mode 100644 index 00000000..1a6e6547 --- /dev/null +++ b/services/fabricv4/model_port_order_purchase_order_type.go @@ -0,0 +1,111 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PortOrderPurchaseOrderType the model 'PortOrderPurchaseOrderType' +type PortOrderPurchaseOrderType string + +// List of PortOrder_purchaseOrder_type +const ( + PORTORDERPURCHASEORDERTYPE_EXEMPTION PortOrderPurchaseOrderType = "EXEMPTION" + PORTORDERPURCHASEORDERTYPE_EXISTING PortOrderPurchaseOrderType = "EXISTING" + PORTORDERPURCHASEORDERTYPE_NEW PortOrderPurchaseOrderType = "NEW" + PORTORDERPURCHASEORDERTYPE_BLANKET PortOrderPurchaseOrderType = "BLANKET" +) + +// All allowed values of PortOrderPurchaseOrderType enum +var AllowedPortOrderPurchaseOrderTypeEnumValues = []PortOrderPurchaseOrderType{ + "EXEMPTION", + "EXISTING", + "NEW", + "BLANKET", +} + +func (v *PortOrderPurchaseOrderType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PortOrderPurchaseOrderType(value) + for _, existing := range AllowedPortOrderPurchaseOrderTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PortOrderPurchaseOrderType", value) +} + +// NewPortOrderPurchaseOrderTypeFromValue returns a pointer to a valid PortOrderPurchaseOrderType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPortOrderPurchaseOrderTypeFromValue(v string) (*PortOrderPurchaseOrderType, error) { + ev := PortOrderPurchaseOrderType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PortOrderPurchaseOrderType: valid values are %v", v, AllowedPortOrderPurchaseOrderTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PortOrderPurchaseOrderType) IsValid() bool { + for _, existing := range AllowedPortOrderPurchaseOrderTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PortOrder_purchaseOrder_type value +func (v PortOrderPurchaseOrderType) Ptr() *PortOrderPurchaseOrderType { + return &v +} + +type NullablePortOrderPurchaseOrderType struct { + value *PortOrderPurchaseOrderType + isSet bool +} + +func (v NullablePortOrderPurchaseOrderType) Get() *PortOrderPurchaseOrderType { + return v.value +} + +func (v *NullablePortOrderPurchaseOrderType) Set(val *PortOrderPurchaseOrderType) { + v.value = val + v.isSet = true +} + +func (v NullablePortOrderPurchaseOrderType) IsSet() bool { + return v.isSet +} + +func (v *NullablePortOrderPurchaseOrderType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortOrderPurchaseOrderType(val *PortOrderPurchaseOrderType) *NullablePortOrderPurchaseOrderType { + return &NullablePortOrderPurchaseOrderType{value: val, isSet: true} +} + +func (v NullablePortOrderPurchaseOrderType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortOrderPurchaseOrderType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_order_signature.go b/services/fabricv4/model_port_order_signature.go index 3b00eab9..8288a1db 100644 --- a/services/fabricv4/model_port_order_signature.go +++ b/services/fabricv4/model_port_order_signature.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_order_signature_delegate.go b/services/fabricv4/model_port_order_signature_delegate.go index 6d6c893f..c6218ffc 100644 --- a/services/fabricv4/model_port_order_signature_delegate.go +++ b/services/fabricv4/model_port_order_signature_delegate.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_order_signature_signatory.go b/services/fabricv4/model_port_order_signature_signatory.go index 31185e0a..2f3e0d3c 100644 --- a/services/fabricv4/model_port_order_signature_signatory.go +++ b/services/fabricv4/model_port_order_signature_signatory.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_physical_ports_type.go b/services/fabricv4/model_port_physical_ports_type.go new file mode 100644 index 00000000..3fb767b0 --- /dev/null +++ b/services/fabricv4/model_port_physical_ports_type.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" +) + +// PortPhysicalPortsType Physical Ports Type +type PortPhysicalPortsType string + +// List of Port_physicalPortsType +const ( + PORTPHYSICALPORTSTYPE__1000_BASE_LX PortPhysicalPortsType = "1000BASE_LX" + PORTPHYSICALPORTSTYPE__10_GBASE_LR PortPhysicalPortsType = "10GBASE_LR" + PORTPHYSICALPORTSTYPE__100_GBASE_LR4 PortPhysicalPortsType = "100GBASE_LR4" + PORTPHYSICALPORTSTYPE__10_GBASE_ER PortPhysicalPortsType = "10GBASE_ER" + PORTPHYSICALPORTSTYPE__1000_BASE_SX PortPhysicalPortsType = "1000BASE_SX" +) + +// All allowed values of PortPhysicalPortsType enum +var AllowedPortPhysicalPortsTypeEnumValues = []PortPhysicalPortsType{ + "1000BASE_LX", + "10GBASE_LR", + "100GBASE_LR4", + "10GBASE_ER", + "1000BASE_SX", +} + +func (v *PortPhysicalPortsType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PortPhysicalPortsType(value) + for _, existing := range AllowedPortPhysicalPortsTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PortPhysicalPortsType", value) +} + +// NewPortPhysicalPortsTypeFromValue returns a pointer to a valid PortPhysicalPortsType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPortPhysicalPortsTypeFromValue(v string) (*PortPhysicalPortsType, error) { + ev := PortPhysicalPortsType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PortPhysicalPortsType: valid values are %v", v, AllowedPortPhysicalPortsTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PortPhysicalPortsType) IsValid() bool { + for _, existing := range AllowedPortPhysicalPortsTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Port_physicalPortsType value +func (v PortPhysicalPortsType) Ptr() *PortPhysicalPortsType { + return &v +} + +type NullablePortPhysicalPortsType struct { + value *PortPhysicalPortsType + isSet bool +} + +func (v NullablePortPhysicalPortsType) Get() *PortPhysicalPortsType { + return v.value +} + +func (v *NullablePortPhysicalPortsType) Set(val *PortPhysicalPortsType) { + v.value = val + v.isSet = true +} + +func (v NullablePortPhysicalPortsType) IsSet() bool { + return v.isSet +} + +func (v *NullablePortPhysicalPortsType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortPhysicalPortsType(val *PortPhysicalPortsType) *NullablePortPhysicalPortsType { + return &NullablePortPhysicalPortsType{value: val, isSet: true} +} + +func (v NullablePortPhysicalPortsType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortPhysicalPortsType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_priority.go b/services/fabricv4/model_port_priority.go index 92402519..c22908d2 100644 --- a/services/fabricv4/model_port_priority.go +++ b/services/fabricv4/model_port_priority.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_redundancy.go b/services/fabricv4/model_port_redundancy.go index f98854a4..7fd1830e 100644 --- a/services/fabricv4/model_port_redundancy.go +++ b/services/fabricv4/model_port_redundancy.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,6 +19,7 @@ type PortRedundancy struct { // Access point redundancy Enabled *bool `json:"enabled,omitempty"` // Port UUID of respective primary port + // Deprecated Group *string `json:"group,omitempty"` Priority *PortPriority `json:"priority,omitempty"` AdditionalProperties map[string]interface{} @@ -77,6 +77,7 @@ func (o *PortRedundancy) SetEnabled(v bool) { } // GetGroup returns the Group field value if set, zero value otherwise. +// Deprecated func (o *PortRedundancy) GetGroup() string { if o == nil || IsNil(o.Group) { var ret string @@ -87,6 +88,7 @@ func (o *PortRedundancy) GetGroup() string { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortRedundancy) GetGroupOk() (*string, bool) { if o == nil || IsNil(o.Group) { return nil, false @@ -104,6 +106,7 @@ func (o *PortRedundancy) HasGroup() bool { } // SetGroup gets a reference to the given string and assigns it to the Group field. +// Deprecated func (o *PortRedundancy) SetGroup(v string) { o.Group = &v } diff --git a/services/fabricv4/model_port_response.go b/services/fabricv4/model_port_request.go similarity index 61% rename from services/fabricv4/model_port_response.go rename to services/fabricv4/model_port_request.go index e9badda9..e10c4086 100644 --- a/services/fabricv4/model_port_response.go +++ b/services/fabricv4/model_port_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -10,18 +9,19 @@ package fabricv4 import ( "encoding/json" + "fmt" ) -// checks if the PortResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PortResponse{} +// checks if the PortRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PortRequest{} -// PortResponse Port response specification -type PortResponse struct { - Type *PortType `json:"type,omitempty"` +// PortRequest PortRequest is the Request Object for creating single and bulk fabric ports +type PortRequest struct { + // Equinix assigned response attribute for an absolute URL that is the subject of the link's context. + Href *string `json:"href,omitempty"` + Type PortType `json:"type"` // Equinix assigned response attribute for Port Id Id *int32 `json:"id,omitempty"` - // Equinix assigned response attribute for an absolute URL that is the subject of the link's context. - Href *string `json:"href,omitempty"` // Equinix assigned response attribute for port identifier Uuid *string `json:"uuid,omitempty"` // Equinix assigned response attribute for Port name @@ -29,44 +29,45 @@ type PortResponse struct { // Equinix assigned response attribute for Port description Description *string `json:"description,omitempty"` // Physical Ports Speed in Mbps - PhysicalPortsSpeed *int32 `json:"physicalPortsSpeed,omitempty"` + PhysicalPortsSpeed int32 `json:"physicalPortsSpeed"` // Equinix assigned response attribute for Connection count - ConnectionsCount *int32 `json:"connectionsCount,omitempty"` - PhysicalPortsType *PortResponsePhysicalPortsType `json:"physicalPortsType,omitempty"` - PhysicalPortsCount *int32 `json:"physicalPortsCount,omitempty"` - ConnectivitySourceType *PortResponseConnectivitySourceType `json:"connectivitySourceType,omitempty"` - BmmrType *PortResponseBmmrType `json:"bmmrType,omitempty"` - Project *Project `json:"project,omitempty"` - State *PortState `json:"state,omitempty"` - Order *PortOrder `json:"order,omitempty"` - // Equinix assigned response attribute for Unique ID for a virtual port. - CvpId *string `json:"cvpId,omitempty"` - Operation *PortOperation `json:"operation,omitempty"` - Account *SimplifiedAccountPortResponse `json:"account,omitempty"` - Changelog *Changelog `json:"changelog,omitempty"` - ServiceType *PortResponseServiceType `json:"serviceType,omitempty"` + ConnectionsCount *int32 `json:"connectionsCount,omitempty"` + PhysicalPortsType PortPhysicalPortsType `json:"physicalPortsType"` + PhysicalPortsCount *int32 `json:"physicalPortsCount,omitempty"` + ConnectivitySourceType PortConnectivitySourceType `json:"connectivitySourceType"` + BmmrType *PortBmmrType `json:"bmmrType,omitempty"` + Project *Project `json:"project,omitempty"` + State *PortState `json:"state,omitempty"` + Order *PortOrder `json:"order,omitempty"` + Operation *PortOperation `json:"operation,omitempty"` + Account SimplifiedAccount `json:"account"` + ChangeLog *Changelog `json:"changeLog,omitempty"` + // Deprecated + ServiceType *PortServiceType `json:"serviceType,omitempty"` // Equinix assigned response attribute for Port bandwidth in Mbps + // Deprecated Bandwidth *int32 `json:"bandwidth,omitempty"` // Equinix assigned response attribute for Port available bandwidth in Mbps AvailableBandwidth *int32 `json:"availableBandwidth,omitempty"` // Equinix assigned response attribute for Port used bandwidth in Mbps - UsedBandwidth *int32 `json:"usedBandwidth,omitempty"` - Location *SimplifiedLocation `json:"location,omitempty"` - Device *PortDevice `json:"device,omitempty"` - Interface *PortInterface `json:"interface,omitempty"` + UsedBandwidth *int32 `json:"usedBandwidth,omitempty"` + Location SimplifiedLocation `json:"location"` + Device *PortDevice `json:"device,omitempty"` + Interface *PortInterface `json:"interface,omitempty"` // A-side/Equinix ibx DemarcationPointIbx *string `json:"demarcationPointIbx,omitempty"` // z-side/Equinix ibx TetherIbx *string `json:"tetherIbx,omitempty"` DemarcationPoint *PortDemarcationPoint `json:"demarcationPoint,omitempty"` Redundancy *PortRedundancy `json:"redundancy,omitempty"` - Encapsulation *PortEncapsulation `json:"encapsulation,omitempty"` + Encapsulation PortEncapsulation `json:"encapsulation"` // If LAG enabled LagEnabled *bool `json:"lagEnabled,omitempty"` Lag *PortLag `json:"lag,omitempty"` // Port ASN - Asn *int32 `json:"asn,omitempty"` - Settings *PortSettings `json:"settings,omitempty"` + Asn *int32 `json:"asn,omitempty"` + Package *Package `json:"package,omitempty"` + Settings PortSettings `json:"settings"` // Number of physical ports PhysicalPortQuantity *int32 `json:"physicalPortQuantity,omitempty"` // Notification preferences @@ -80,123 +81,123 @@ type PortResponse struct { AdditionalProperties map[string]interface{} } -type _PortResponse PortResponse +type _PortRequest PortRequest -// NewPortResponse instantiates a new PortResponse object +// NewPortRequest instantiates a new PortRequest 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 NewPortResponse() *PortResponse { - this := PortResponse{} +func NewPortRequest(type_ PortType, physicalPortsSpeed int32, physicalPortsType PortPhysicalPortsType, connectivitySourceType PortConnectivitySourceType, account SimplifiedAccount, location SimplifiedLocation, encapsulation PortEncapsulation, settings PortSettings) *PortRequest { + this := PortRequest{} + this.Type = type_ + this.PhysicalPortsSpeed = physicalPortsSpeed + this.PhysicalPortsType = physicalPortsType + this.ConnectivitySourceType = connectivitySourceType + this.Account = account + this.Location = location + this.Encapsulation = encapsulation + this.Settings = settings return &this } -// NewPortResponseWithDefaults instantiates a new PortResponse object +// NewPortRequestWithDefaults instantiates a new PortRequest 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 NewPortResponseWithDefaults() *PortResponse { - this := PortResponse{} +func NewPortRequestWithDefaults() *PortRequest { + this := PortRequest{} return &this } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PortResponse) GetType() PortType { - if o == nil || IsNil(o.Type) { - var ret PortType +// GetHref returns the Href field value if set, zero value otherwise. +func (o *PortRequest) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string return ret } - return *o.Type + return *o.Href } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// 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 *PortResponse) GetTypeOk() (*PortType, bool) { - if o == nil || IsNil(o.Type) { +func (o *PortRequest) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { return nil, false } - return o.Type, true + return o.Href, true } -// HasType returns a boolean if a field has been set. -func (o *PortResponse) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasHref returns a boolean if a field has been set. +func (o *PortRequest) HasHref() bool { + if o != nil && !IsNil(o.Href) { return true } return false } -// SetType gets a reference to the given PortType and assigns it to the Type field. -func (o *PortResponse) SetType(v PortType) { - o.Type = &v +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *PortRequest) SetHref(v string) { + o.Href = &v } -// GetId returns the Id field value if set, zero value otherwise. -func (o *PortResponse) GetId() int32 { - if o == nil || IsNil(o.Id) { - var ret int32 +// GetType returns the Type field value +func (o *PortRequest) GetType() PortType { + if o == nil { + var ret PortType return ret } - return *o.Id + + return o.Type } -// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *PortResponse) GetIdOk() (*int32, bool) { - if o == nil || IsNil(o.Id) { +func (o *PortRequest) GetTypeOk() (*PortType, bool) { + if o == nil { return nil, false } - return o.Id, true + return &o.Type, true } -// HasId returns a boolean if a field has been set. -func (o *PortResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false +// SetType sets field value +func (o *PortRequest) SetType(v PortType) { + o.Type = v } -// SetId gets a reference to the given int32 and assigns it to the Id field. -func (o *PortResponse) SetId(v int32) { - o.Id = &v -} - -// GetHref returns the Href field value if set, zero value otherwise. -func (o *PortResponse) GetHref() string { - if o == nil || IsNil(o.Href) { - var ret string +// GetId returns the Id field value if set, zero value otherwise. +func (o *PortRequest) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 return ret } - return *o.Href + return *o.Id } -// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetHrefOk() (*string, bool) { - if o == nil || IsNil(o.Href) { +func (o *PortRequest) GetIdOk() (*int32, bool) { + if o == nil || IsNil(o.Id) { return nil, false } - return o.Href, true + return o.Id, true } -// HasHref returns a boolean if a field has been set. -func (o *PortResponse) HasHref() bool { - if o != nil && !IsNil(o.Href) { +// HasId returns a boolean if a field has been set. +func (o *PortRequest) HasId() bool { + if o != nil && !IsNil(o.Id) { return true } return false } -// SetHref gets a reference to the given string and assigns it to the Href field. -func (o *PortResponse) SetHref(v string) { - o.Href = &v +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PortRequest) SetId(v int32) { + o.Id = &v } // GetUuid returns the Uuid field value if set, zero value otherwise. -func (o *PortResponse) GetUuid() string { +func (o *PortRequest) GetUuid() string { if o == nil || IsNil(o.Uuid) { var ret string return ret @@ -206,7 +207,7 @@ func (o *PortResponse) GetUuid() string { // 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 *PortResponse) GetUuidOk() (*string, bool) { +func (o *PortRequest) GetUuidOk() (*string, bool) { if o == nil || IsNil(o.Uuid) { return nil, false } @@ -214,7 +215,7 @@ func (o *PortResponse) GetUuidOk() (*string, bool) { } // HasUuid returns a boolean if a field has been set. -func (o *PortResponse) HasUuid() bool { +func (o *PortRequest) HasUuid() bool { if o != nil && !IsNil(o.Uuid) { return true } @@ -223,12 +224,12 @@ func (o *PortResponse) HasUuid() bool { } // SetUuid gets a reference to the given string and assigns it to the Uuid field. -func (o *PortResponse) SetUuid(v string) { +func (o *PortRequest) SetUuid(v string) { o.Uuid = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *PortResponse) GetName() string { +func (o *PortRequest) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -238,7 +239,7 @@ func (o *PortResponse) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetNameOk() (*string, bool) { +func (o *PortRequest) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -246,7 +247,7 @@ func (o *PortResponse) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *PortResponse) HasName() bool { +func (o *PortRequest) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -255,12 +256,12 @@ func (o *PortResponse) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *PortResponse) SetName(v string) { +func (o *PortRequest) SetName(v string) { o.Name = &v } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *PortResponse) GetDescription() string { +func (o *PortRequest) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -270,7 +271,7 @@ func (o *PortResponse) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetDescriptionOk() (*string, bool) { +func (o *PortRequest) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -278,7 +279,7 @@ func (o *PortResponse) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *PortResponse) HasDescription() bool { +func (o *PortRequest) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -287,44 +288,36 @@ func (o *PortResponse) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *PortResponse) SetDescription(v string) { +func (o *PortRequest) SetDescription(v string) { o.Description = &v } -// GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field value if set, zero value otherwise. -func (o *PortResponse) GetPhysicalPortsSpeed() int32 { - if o == nil || IsNil(o.PhysicalPortsSpeed) { +// GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field value +func (o *PortRequest) GetPhysicalPortsSpeed() int32 { + if o == nil { var ret int32 return ret } - return *o.PhysicalPortsSpeed + + return o.PhysicalPortsSpeed } -// GetPhysicalPortsSpeedOk returns a tuple with the PhysicalPortsSpeed field value if set, nil otherwise +// GetPhysicalPortsSpeedOk returns a tuple with the PhysicalPortsSpeed field value // and a boolean to check if the value has been set. -func (o *PortResponse) GetPhysicalPortsSpeedOk() (*int32, bool) { - if o == nil || IsNil(o.PhysicalPortsSpeed) { +func (o *PortRequest) GetPhysicalPortsSpeedOk() (*int32, bool) { + if o == nil { return nil, false } - return o.PhysicalPortsSpeed, true -} - -// HasPhysicalPortsSpeed returns a boolean if a field has been set. -func (o *PortResponse) HasPhysicalPortsSpeed() bool { - if o != nil && !IsNil(o.PhysicalPortsSpeed) { - return true - } - - return false + return &o.PhysicalPortsSpeed, true } -// SetPhysicalPortsSpeed gets a reference to the given int32 and assigns it to the PhysicalPortsSpeed field. -func (o *PortResponse) SetPhysicalPortsSpeed(v int32) { - o.PhysicalPortsSpeed = &v +// SetPhysicalPortsSpeed sets field value +func (o *PortRequest) SetPhysicalPortsSpeed(v int32) { + o.PhysicalPortsSpeed = v } // GetConnectionsCount returns the ConnectionsCount field value if set, zero value otherwise. -func (o *PortResponse) GetConnectionsCount() int32 { +func (o *PortRequest) GetConnectionsCount() int32 { if o == nil || IsNil(o.ConnectionsCount) { var ret int32 return ret @@ -334,7 +327,7 @@ func (o *PortResponse) GetConnectionsCount() int32 { // GetConnectionsCountOk returns a tuple with the ConnectionsCount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetConnectionsCountOk() (*int32, bool) { +func (o *PortRequest) GetConnectionsCountOk() (*int32, bool) { if o == nil || IsNil(o.ConnectionsCount) { return nil, false } @@ -342,7 +335,7 @@ func (o *PortResponse) GetConnectionsCountOk() (*int32, bool) { } // HasConnectionsCount returns a boolean if a field has been set. -func (o *PortResponse) HasConnectionsCount() bool { +func (o *PortRequest) HasConnectionsCount() bool { if o != nil && !IsNil(o.ConnectionsCount) { return true } @@ -351,44 +344,36 @@ func (o *PortResponse) HasConnectionsCount() bool { } // SetConnectionsCount gets a reference to the given int32 and assigns it to the ConnectionsCount field. -func (o *PortResponse) SetConnectionsCount(v int32) { +func (o *PortRequest) SetConnectionsCount(v int32) { o.ConnectionsCount = &v } -// GetPhysicalPortsType returns the PhysicalPortsType field value if set, zero value otherwise. -func (o *PortResponse) GetPhysicalPortsType() PortResponsePhysicalPortsType { - if o == nil || IsNil(o.PhysicalPortsType) { - var ret PortResponsePhysicalPortsType +// GetPhysicalPortsType returns the PhysicalPortsType field value +func (o *PortRequest) GetPhysicalPortsType() PortPhysicalPortsType { + if o == nil { + var ret PortPhysicalPortsType return ret } - return *o.PhysicalPortsType + + return o.PhysicalPortsType } -// GetPhysicalPortsTypeOk returns a tuple with the PhysicalPortsType field value if set, nil otherwise +// GetPhysicalPortsTypeOk returns a tuple with the PhysicalPortsType field value // and a boolean to check if the value has been set. -func (o *PortResponse) GetPhysicalPortsTypeOk() (*PortResponsePhysicalPortsType, bool) { - if o == nil || IsNil(o.PhysicalPortsType) { +func (o *PortRequest) GetPhysicalPortsTypeOk() (*PortPhysicalPortsType, bool) { + if o == nil { return nil, false } - return o.PhysicalPortsType, true + return &o.PhysicalPortsType, true } -// HasPhysicalPortsType returns a boolean if a field has been set. -func (o *PortResponse) HasPhysicalPortsType() bool { - if o != nil && !IsNil(o.PhysicalPortsType) { - return true - } - - return false -} - -// SetPhysicalPortsType gets a reference to the given PortResponsePhysicalPortsType and assigns it to the PhysicalPortsType field. -func (o *PortResponse) SetPhysicalPortsType(v PortResponsePhysicalPortsType) { - o.PhysicalPortsType = &v +// SetPhysicalPortsType sets field value +func (o *PortRequest) SetPhysicalPortsType(v PortPhysicalPortsType) { + o.PhysicalPortsType = v } // GetPhysicalPortsCount returns the PhysicalPortsCount field value if set, zero value otherwise. -func (o *PortResponse) GetPhysicalPortsCount() int32 { +func (o *PortRequest) GetPhysicalPortsCount() int32 { if o == nil || IsNil(o.PhysicalPortsCount) { var ret int32 return ret @@ -398,7 +383,7 @@ func (o *PortResponse) GetPhysicalPortsCount() int32 { // GetPhysicalPortsCountOk returns a tuple with the PhysicalPortsCount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetPhysicalPortsCountOk() (*int32, bool) { +func (o *PortRequest) GetPhysicalPortsCountOk() (*int32, bool) { if o == nil || IsNil(o.PhysicalPortsCount) { return nil, false } @@ -406,7 +391,7 @@ func (o *PortResponse) GetPhysicalPortsCountOk() (*int32, bool) { } // HasPhysicalPortsCount returns a boolean if a field has been set. -func (o *PortResponse) HasPhysicalPortsCount() bool { +func (o *PortRequest) HasPhysicalPortsCount() bool { if o != nil && !IsNil(o.PhysicalPortsCount) { return true } @@ -415,46 +400,38 @@ func (o *PortResponse) HasPhysicalPortsCount() bool { } // SetPhysicalPortsCount gets a reference to the given int32 and assigns it to the PhysicalPortsCount field. -func (o *PortResponse) SetPhysicalPortsCount(v int32) { +func (o *PortRequest) SetPhysicalPortsCount(v int32) { o.PhysicalPortsCount = &v } -// GetConnectivitySourceType returns the ConnectivitySourceType field value if set, zero value otherwise. -func (o *PortResponse) GetConnectivitySourceType() PortResponseConnectivitySourceType { - if o == nil || IsNil(o.ConnectivitySourceType) { - var ret PortResponseConnectivitySourceType +// GetConnectivitySourceType returns the ConnectivitySourceType field value +func (o *PortRequest) GetConnectivitySourceType() PortConnectivitySourceType { + if o == nil { + var ret PortConnectivitySourceType return ret } - return *o.ConnectivitySourceType + + return o.ConnectivitySourceType } -// GetConnectivitySourceTypeOk returns a tuple with the ConnectivitySourceType field value if set, nil otherwise +// GetConnectivitySourceTypeOk returns a tuple with the ConnectivitySourceType field value // and a boolean to check if the value has been set. -func (o *PortResponse) GetConnectivitySourceTypeOk() (*PortResponseConnectivitySourceType, bool) { - if o == nil || IsNil(o.ConnectivitySourceType) { +func (o *PortRequest) GetConnectivitySourceTypeOk() (*PortConnectivitySourceType, bool) { + if o == nil { return nil, false } - return o.ConnectivitySourceType, true + return &o.ConnectivitySourceType, true } -// HasConnectivitySourceType returns a boolean if a field has been set. -func (o *PortResponse) HasConnectivitySourceType() bool { - if o != nil && !IsNil(o.ConnectivitySourceType) { - return true - } - - return false -} - -// SetConnectivitySourceType gets a reference to the given PortResponseConnectivitySourceType and assigns it to the ConnectivitySourceType field. -func (o *PortResponse) SetConnectivitySourceType(v PortResponseConnectivitySourceType) { - o.ConnectivitySourceType = &v +// SetConnectivitySourceType sets field value +func (o *PortRequest) SetConnectivitySourceType(v PortConnectivitySourceType) { + o.ConnectivitySourceType = v } // GetBmmrType returns the BmmrType field value if set, zero value otherwise. -func (o *PortResponse) GetBmmrType() PortResponseBmmrType { +func (o *PortRequest) GetBmmrType() PortBmmrType { if o == nil || IsNil(o.BmmrType) { - var ret PortResponseBmmrType + var ret PortBmmrType return ret } return *o.BmmrType @@ -462,7 +439,7 @@ func (o *PortResponse) GetBmmrType() PortResponseBmmrType { // GetBmmrTypeOk returns a tuple with the BmmrType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetBmmrTypeOk() (*PortResponseBmmrType, bool) { +func (o *PortRequest) GetBmmrTypeOk() (*PortBmmrType, bool) { if o == nil || IsNil(o.BmmrType) { return nil, false } @@ -470,7 +447,7 @@ func (o *PortResponse) GetBmmrTypeOk() (*PortResponseBmmrType, bool) { } // HasBmmrType returns a boolean if a field has been set. -func (o *PortResponse) HasBmmrType() bool { +func (o *PortRequest) HasBmmrType() bool { if o != nil && !IsNil(o.BmmrType) { return true } @@ -478,13 +455,13 @@ func (o *PortResponse) HasBmmrType() bool { return false } -// SetBmmrType gets a reference to the given PortResponseBmmrType and assigns it to the BmmrType field. -func (o *PortResponse) SetBmmrType(v PortResponseBmmrType) { +// SetBmmrType gets a reference to the given PortBmmrType and assigns it to the BmmrType field. +func (o *PortRequest) SetBmmrType(v PortBmmrType) { o.BmmrType = &v } // GetProject returns the Project field value if set, zero value otherwise. -func (o *PortResponse) GetProject() Project { +func (o *PortRequest) GetProject() Project { if o == nil || IsNil(o.Project) { var ret Project return ret @@ -494,7 +471,7 @@ func (o *PortResponse) GetProject() 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 *PortResponse) GetProjectOk() (*Project, bool) { +func (o *PortRequest) GetProjectOk() (*Project, bool) { if o == nil || IsNil(o.Project) { return nil, false } @@ -502,7 +479,7 @@ func (o *PortResponse) GetProjectOk() (*Project, bool) { } // HasProject returns a boolean if a field has been set. -func (o *PortResponse) HasProject() bool { +func (o *PortRequest) HasProject() bool { if o != nil && !IsNil(o.Project) { return true } @@ -511,12 +488,12 @@ func (o *PortResponse) HasProject() bool { } // SetProject gets a reference to the given Project and assigns it to the Project field. -func (o *PortResponse) SetProject(v Project) { +func (o *PortRequest) SetProject(v Project) { o.Project = &v } // GetState returns the State field value if set, zero value otherwise. -func (o *PortResponse) GetState() PortState { +func (o *PortRequest) GetState() PortState { if o == nil || IsNil(o.State) { var ret PortState return ret @@ -526,7 +503,7 @@ func (o *PortResponse) GetState() PortState { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetStateOk() (*PortState, bool) { +func (o *PortRequest) GetStateOk() (*PortState, bool) { if o == nil || IsNil(o.State) { return nil, false } @@ -534,7 +511,7 @@ func (o *PortResponse) GetStateOk() (*PortState, bool) { } // HasState returns a boolean if a field has been set. -func (o *PortResponse) HasState() bool { +func (o *PortRequest) HasState() bool { if o != nil && !IsNil(o.State) { return true } @@ -543,12 +520,12 @@ func (o *PortResponse) HasState() bool { } // SetState gets a reference to the given PortState and assigns it to the State field. -func (o *PortResponse) SetState(v PortState) { +func (o *PortRequest) SetState(v PortState) { o.State = &v } // GetOrder returns the Order field value if set, zero value otherwise. -func (o *PortResponse) GetOrder() PortOrder { +func (o *PortRequest) GetOrder() PortOrder { if o == nil || IsNil(o.Order) { var ret PortOrder return ret @@ -558,7 +535,7 @@ func (o *PortResponse) GetOrder() PortOrder { // GetOrderOk returns a tuple with the Order field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetOrderOk() (*PortOrder, bool) { +func (o *PortRequest) GetOrderOk() (*PortOrder, bool) { if o == nil || IsNil(o.Order) { return nil, false } @@ -566,7 +543,7 @@ func (o *PortResponse) GetOrderOk() (*PortOrder, bool) { } // HasOrder returns a boolean if a field has been set. -func (o *PortResponse) HasOrder() bool { +func (o *PortRequest) HasOrder() bool { if o != nil && !IsNil(o.Order) { return true } @@ -575,44 +552,12 @@ func (o *PortResponse) HasOrder() bool { } // SetOrder gets a reference to the given PortOrder and assigns it to the Order field. -func (o *PortResponse) SetOrder(v PortOrder) { +func (o *PortRequest) SetOrder(v PortOrder) { o.Order = &v } -// GetCvpId returns the CvpId field value if set, zero value otherwise. -func (o *PortResponse) GetCvpId() string { - if o == nil || IsNil(o.CvpId) { - var ret string - return ret - } - return *o.CvpId -} - -// GetCvpIdOk returns a tuple with the CvpId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PortResponse) GetCvpIdOk() (*string, bool) { - if o == nil || IsNil(o.CvpId) { - return nil, false - } - return o.CvpId, true -} - -// HasCvpId returns a boolean if a field has been set. -func (o *PortResponse) HasCvpId() bool { - if o != nil && !IsNil(o.CvpId) { - return true - } - - return false -} - -// SetCvpId gets a reference to the given string and assigns it to the CvpId field. -func (o *PortResponse) SetCvpId(v string) { - o.CvpId = &v -} - // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *PortResponse) GetOperation() PortOperation { +func (o *PortRequest) GetOperation() PortOperation { if o == nil || IsNil(o.Operation) { var ret PortOperation return ret @@ -622,7 +567,7 @@ func (o *PortResponse) GetOperation() PortOperation { // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetOperationOk() (*PortOperation, bool) { +func (o *PortRequest) GetOperationOk() (*PortOperation, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -630,7 +575,7 @@ func (o *PortResponse) GetOperationOk() (*PortOperation, bool) { } // HasOperation returns a boolean if a field has been set. -func (o *PortResponse) HasOperation() bool { +func (o *PortRequest) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -639,78 +584,71 @@ func (o *PortResponse) HasOperation() bool { } // SetOperation gets a reference to the given PortOperation and assigns it to the Operation field. -func (o *PortResponse) SetOperation(v PortOperation) { +func (o *PortRequest) SetOperation(v PortOperation) { o.Operation = &v } -// GetAccount returns the Account field value if set, zero value otherwise. -func (o *PortResponse) GetAccount() SimplifiedAccountPortResponse { - if o == nil || IsNil(o.Account) { - var ret SimplifiedAccountPortResponse +// GetAccount returns the Account field value +func (o *PortRequest) GetAccount() SimplifiedAccount { + if o == nil { + var ret SimplifiedAccount return ret } - return *o.Account + + return o.Account } -// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// GetAccountOk returns a tuple with the Account field value // and a boolean to check if the value has been set. -func (o *PortResponse) GetAccountOk() (*SimplifiedAccountPortResponse, bool) { - if o == nil || IsNil(o.Account) { +func (o *PortRequest) GetAccountOk() (*SimplifiedAccount, bool) { + if o == nil { return nil, false } - return o.Account, true -} - -// HasAccount returns a boolean if a field has been set. -func (o *PortResponse) HasAccount() bool { - if o != nil && !IsNil(o.Account) { - return true - } - - return false + return &o.Account, true } -// SetAccount gets a reference to the given SimplifiedAccountPortResponse and assigns it to the Account field. -func (o *PortResponse) SetAccount(v SimplifiedAccountPortResponse) { - o.Account = &v +// SetAccount sets field value +func (o *PortRequest) SetAccount(v SimplifiedAccount) { + o.Account = v } -// GetChangelog returns the Changelog field value if set, zero value otherwise. -func (o *PortResponse) GetChangelog() Changelog { - if o == nil || IsNil(o.Changelog) { +// GetChangeLog returns the ChangeLog field value if set, zero value otherwise. +func (o *PortRequest) GetChangeLog() Changelog { + if o == nil || IsNil(o.ChangeLog) { var ret Changelog return ret } - return *o.Changelog + return *o.ChangeLog } -// GetChangelogOk returns a tuple with the Changelog field value if set, nil otherwise +// GetChangeLogOk returns a tuple with the ChangeLog field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetChangelogOk() (*Changelog, bool) { - if o == nil || IsNil(o.Changelog) { +func (o *PortRequest) GetChangeLogOk() (*Changelog, bool) { + if o == nil || IsNil(o.ChangeLog) { return nil, false } - return o.Changelog, true + return o.ChangeLog, true } -// HasChangelog returns a boolean if a field has been set. -func (o *PortResponse) HasChangelog() bool { - if o != nil && !IsNil(o.Changelog) { +// HasChangeLog returns a boolean if a field has been set. +func (o *PortRequest) HasChangeLog() bool { + if o != nil && !IsNil(o.ChangeLog) { return true } return false } -// SetChangelog gets a reference to the given Changelog and assigns it to the Changelog field. -func (o *PortResponse) SetChangelog(v Changelog) { - o.Changelog = &v +// SetChangeLog gets a reference to the given Changelog and assigns it to the ChangeLog field. +func (o *PortRequest) SetChangeLog(v Changelog) { + o.ChangeLog = &v } // GetServiceType returns the ServiceType field value if set, zero value otherwise. -func (o *PortResponse) GetServiceType() PortResponseServiceType { +// Deprecated +func (o *PortRequest) GetServiceType() PortServiceType { if o == nil || IsNil(o.ServiceType) { - var ret PortResponseServiceType + var ret PortServiceType return ret } return *o.ServiceType @@ -718,7 +656,8 @@ func (o *PortResponse) GetServiceType() PortResponseServiceType { // GetServiceTypeOk returns a tuple with the ServiceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetServiceTypeOk() (*PortResponseServiceType, bool) { +// Deprecated +func (o *PortRequest) GetServiceTypeOk() (*PortServiceType, bool) { if o == nil || IsNil(o.ServiceType) { return nil, false } @@ -726,7 +665,7 @@ func (o *PortResponse) GetServiceTypeOk() (*PortResponseServiceType, bool) { } // HasServiceType returns a boolean if a field has been set. -func (o *PortResponse) HasServiceType() bool { +func (o *PortRequest) HasServiceType() bool { if o != nil && !IsNil(o.ServiceType) { return true } @@ -734,13 +673,15 @@ func (o *PortResponse) HasServiceType() bool { return false } -// SetServiceType gets a reference to the given PortResponseServiceType and assigns it to the ServiceType field. -func (o *PortResponse) SetServiceType(v PortResponseServiceType) { +// SetServiceType gets a reference to the given PortServiceType and assigns it to the ServiceType field. +// Deprecated +func (o *PortRequest) SetServiceType(v PortServiceType) { o.ServiceType = &v } // GetBandwidth returns the Bandwidth field value if set, zero value otherwise. -func (o *PortResponse) GetBandwidth() int32 { +// Deprecated +func (o *PortRequest) GetBandwidth() int32 { if o == nil || IsNil(o.Bandwidth) { var ret int32 return ret @@ -750,7 +691,8 @@ func (o *PortResponse) GetBandwidth() int32 { // GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetBandwidthOk() (*int32, bool) { +// Deprecated +func (o *PortRequest) GetBandwidthOk() (*int32, bool) { if o == nil || IsNil(o.Bandwidth) { return nil, false } @@ -758,7 +700,7 @@ func (o *PortResponse) GetBandwidthOk() (*int32, bool) { } // HasBandwidth returns a boolean if a field has been set. -func (o *PortResponse) HasBandwidth() bool { +func (o *PortRequest) HasBandwidth() bool { if o != nil && !IsNil(o.Bandwidth) { return true } @@ -767,12 +709,13 @@ func (o *PortResponse) HasBandwidth() bool { } // SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. -func (o *PortResponse) SetBandwidth(v int32) { +// Deprecated +func (o *PortRequest) SetBandwidth(v int32) { o.Bandwidth = &v } // GetAvailableBandwidth returns the AvailableBandwidth field value if set, zero value otherwise. -func (o *PortResponse) GetAvailableBandwidth() int32 { +func (o *PortRequest) GetAvailableBandwidth() int32 { if o == nil || IsNil(o.AvailableBandwidth) { var ret int32 return ret @@ -782,7 +725,7 @@ func (o *PortResponse) GetAvailableBandwidth() int32 { // GetAvailableBandwidthOk returns a tuple with the AvailableBandwidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetAvailableBandwidthOk() (*int32, bool) { +func (o *PortRequest) GetAvailableBandwidthOk() (*int32, bool) { if o == nil || IsNil(o.AvailableBandwidth) { return nil, false } @@ -790,7 +733,7 @@ func (o *PortResponse) GetAvailableBandwidthOk() (*int32, bool) { } // HasAvailableBandwidth returns a boolean if a field has been set. -func (o *PortResponse) HasAvailableBandwidth() bool { +func (o *PortRequest) HasAvailableBandwidth() bool { if o != nil && !IsNil(o.AvailableBandwidth) { return true } @@ -799,12 +742,12 @@ func (o *PortResponse) HasAvailableBandwidth() bool { } // SetAvailableBandwidth gets a reference to the given int32 and assigns it to the AvailableBandwidth field. -func (o *PortResponse) SetAvailableBandwidth(v int32) { +func (o *PortRequest) SetAvailableBandwidth(v int32) { o.AvailableBandwidth = &v } // GetUsedBandwidth returns the UsedBandwidth field value if set, zero value otherwise. -func (o *PortResponse) GetUsedBandwidth() int32 { +func (o *PortRequest) GetUsedBandwidth() int32 { if o == nil || IsNil(o.UsedBandwidth) { var ret int32 return ret @@ -814,7 +757,7 @@ func (o *PortResponse) GetUsedBandwidth() int32 { // GetUsedBandwidthOk returns a tuple with the UsedBandwidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetUsedBandwidthOk() (*int32, bool) { +func (o *PortRequest) GetUsedBandwidthOk() (*int32, bool) { if o == nil || IsNil(o.UsedBandwidth) { return nil, false } @@ -822,7 +765,7 @@ func (o *PortResponse) GetUsedBandwidthOk() (*int32, bool) { } // HasUsedBandwidth returns a boolean if a field has been set. -func (o *PortResponse) HasUsedBandwidth() bool { +func (o *PortRequest) HasUsedBandwidth() bool { if o != nil && !IsNil(o.UsedBandwidth) { return true } @@ -831,44 +774,36 @@ func (o *PortResponse) HasUsedBandwidth() bool { } // SetUsedBandwidth gets a reference to the given int32 and assigns it to the UsedBandwidth field. -func (o *PortResponse) SetUsedBandwidth(v int32) { +func (o *PortRequest) SetUsedBandwidth(v int32) { o.UsedBandwidth = &v } -// GetLocation returns the Location field value if set, zero value otherwise. -func (o *PortResponse) GetLocation() SimplifiedLocation { - if o == nil || IsNil(o.Location) { +// GetLocation returns the Location field value +func (o *PortRequest) GetLocation() SimplifiedLocation { + if o == nil { var ret SimplifiedLocation return ret } - return *o.Location + + return o.Location } -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// GetLocationOk returns a tuple with the Location field value // and a boolean to check if the value has been set. -func (o *PortResponse) GetLocationOk() (*SimplifiedLocation, bool) { - if o == nil || IsNil(o.Location) { +func (o *PortRequest) GetLocationOk() (*SimplifiedLocation, bool) { + if o == nil { return nil, false } - return o.Location, true + return &o.Location, true } -// HasLocation returns a boolean if a field has been set. -func (o *PortResponse) HasLocation() bool { - if o != nil && !IsNil(o.Location) { - return true - } - - return false -} - -// SetLocation gets a reference to the given SimplifiedLocation and assigns it to the Location field. -func (o *PortResponse) SetLocation(v SimplifiedLocation) { - o.Location = &v +// SetLocation sets field value +func (o *PortRequest) SetLocation(v SimplifiedLocation) { + o.Location = v } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PortResponse) GetDevice() PortDevice { +func (o *PortRequest) GetDevice() PortDevice { if o == nil || IsNil(o.Device) { var ret PortDevice return ret @@ -878,7 +813,7 @@ func (o *PortResponse) GetDevice() PortDevice { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetDeviceOk() (*PortDevice, bool) { +func (o *PortRequest) GetDeviceOk() (*PortDevice, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -886,7 +821,7 @@ func (o *PortResponse) GetDeviceOk() (*PortDevice, bool) { } // HasDevice returns a boolean if a field has been set. -func (o *PortResponse) HasDevice() bool { +func (o *PortRequest) HasDevice() bool { if o != nil && !IsNil(o.Device) { return true } @@ -895,12 +830,12 @@ func (o *PortResponse) HasDevice() bool { } // SetDevice gets a reference to the given PortDevice and assigns it to the Device field. -func (o *PortResponse) SetDevice(v PortDevice) { +func (o *PortRequest) SetDevice(v PortDevice) { o.Device = &v } // GetInterface returns the Interface field value if set, zero value otherwise. -func (o *PortResponse) GetInterface() PortInterface { +func (o *PortRequest) GetInterface() PortInterface { if o == nil || IsNil(o.Interface) { var ret PortInterface return ret @@ -910,7 +845,7 @@ func (o *PortResponse) GetInterface() PortInterface { // GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetInterfaceOk() (*PortInterface, bool) { +func (o *PortRequest) GetInterfaceOk() (*PortInterface, bool) { if o == nil || IsNil(o.Interface) { return nil, false } @@ -918,7 +853,7 @@ func (o *PortResponse) GetInterfaceOk() (*PortInterface, bool) { } // HasInterface returns a boolean if a field has been set. -func (o *PortResponse) HasInterface() bool { +func (o *PortRequest) HasInterface() bool { if o != nil && !IsNil(o.Interface) { return true } @@ -927,12 +862,12 @@ func (o *PortResponse) HasInterface() bool { } // SetInterface gets a reference to the given PortInterface and assigns it to the Interface field. -func (o *PortResponse) SetInterface(v PortInterface) { +func (o *PortRequest) SetInterface(v PortInterface) { o.Interface = &v } // GetDemarcationPointIbx returns the DemarcationPointIbx field value if set, zero value otherwise. -func (o *PortResponse) GetDemarcationPointIbx() string { +func (o *PortRequest) GetDemarcationPointIbx() string { if o == nil || IsNil(o.DemarcationPointIbx) { var ret string return ret @@ -942,7 +877,7 @@ func (o *PortResponse) GetDemarcationPointIbx() string { // 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 *PortResponse) GetDemarcationPointIbxOk() (*string, bool) { +func (o *PortRequest) GetDemarcationPointIbxOk() (*string, bool) { if o == nil || IsNil(o.DemarcationPointIbx) { return nil, false } @@ -950,7 +885,7 @@ func (o *PortResponse) GetDemarcationPointIbxOk() (*string, bool) { } // HasDemarcationPointIbx returns a boolean if a field has been set. -func (o *PortResponse) HasDemarcationPointIbx() bool { +func (o *PortRequest) HasDemarcationPointIbx() bool { if o != nil && !IsNil(o.DemarcationPointIbx) { return true } @@ -959,12 +894,12 @@ func (o *PortResponse) HasDemarcationPointIbx() bool { } // SetDemarcationPointIbx gets a reference to the given string and assigns it to the DemarcationPointIbx field. -func (o *PortResponse) SetDemarcationPointIbx(v string) { +func (o *PortRequest) SetDemarcationPointIbx(v string) { o.DemarcationPointIbx = &v } // GetTetherIbx returns the TetherIbx field value if set, zero value otherwise. -func (o *PortResponse) GetTetherIbx() string { +func (o *PortRequest) GetTetherIbx() string { if o == nil || IsNil(o.TetherIbx) { var ret string return ret @@ -974,7 +909,7 @@ func (o *PortResponse) GetTetherIbx() string { // 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 *PortResponse) GetTetherIbxOk() (*string, bool) { +func (o *PortRequest) GetTetherIbxOk() (*string, bool) { if o == nil || IsNil(o.TetherIbx) { return nil, false } @@ -982,7 +917,7 @@ func (o *PortResponse) GetTetherIbxOk() (*string, bool) { } // HasTetherIbx returns a boolean if a field has been set. -func (o *PortResponse) HasTetherIbx() bool { +func (o *PortRequest) HasTetherIbx() bool { if o != nil && !IsNil(o.TetherIbx) { return true } @@ -991,12 +926,12 @@ func (o *PortResponse) HasTetherIbx() bool { } // SetTetherIbx gets a reference to the given string and assigns it to the TetherIbx field. -func (o *PortResponse) SetTetherIbx(v string) { +func (o *PortRequest) SetTetherIbx(v string) { o.TetherIbx = &v } // GetDemarcationPoint returns the DemarcationPoint field value if set, zero value otherwise. -func (o *PortResponse) GetDemarcationPoint() PortDemarcationPoint { +func (o *PortRequest) GetDemarcationPoint() PortDemarcationPoint { if o == nil || IsNil(o.DemarcationPoint) { var ret PortDemarcationPoint return ret @@ -1006,7 +941,7 @@ func (o *PortResponse) GetDemarcationPoint() PortDemarcationPoint { // GetDemarcationPointOk returns a tuple with the DemarcationPoint field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetDemarcationPointOk() (*PortDemarcationPoint, bool) { +func (o *PortRequest) GetDemarcationPointOk() (*PortDemarcationPoint, bool) { if o == nil || IsNil(o.DemarcationPoint) { return nil, false } @@ -1014,7 +949,7 @@ func (o *PortResponse) GetDemarcationPointOk() (*PortDemarcationPoint, bool) { } // HasDemarcationPoint returns a boolean if a field has been set. -func (o *PortResponse) HasDemarcationPoint() bool { +func (o *PortRequest) HasDemarcationPoint() bool { if o != nil && !IsNil(o.DemarcationPoint) { return true } @@ -1023,12 +958,12 @@ func (o *PortResponse) HasDemarcationPoint() bool { } // SetDemarcationPoint gets a reference to the given PortDemarcationPoint and assigns it to the DemarcationPoint field. -func (o *PortResponse) SetDemarcationPoint(v PortDemarcationPoint) { +func (o *PortRequest) SetDemarcationPoint(v PortDemarcationPoint) { o.DemarcationPoint = &v } // GetRedundancy returns the Redundancy field value if set, zero value otherwise. -func (o *PortResponse) GetRedundancy() PortRedundancy { +func (o *PortRequest) GetRedundancy() PortRedundancy { if o == nil || IsNil(o.Redundancy) { var ret PortRedundancy return ret @@ -1038,7 +973,7 @@ func (o *PortResponse) GetRedundancy() PortRedundancy { // 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 *PortResponse) GetRedundancyOk() (*PortRedundancy, bool) { +func (o *PortRequest) GetRedundancyOk() (*PortRedundancy, bool) { if o == nil || IsNil(o.Redundancy) { return nil, false } @@ -1046,7 +981,7 @@ func (o *PortResponse) GetRedundancyOk() (*PortRedundancy, bool) { } // HasRedundancy returns a boolean if a field has been set. -func (o *PortResponse) HasRedundancy() bool { +func (o *PortRequest) HasRedundancy() bool { if o != nil && !IsNil(o.Redundancy) { return true } @@ -1055,44 +990,36 @@ func (o *PortResponse) HasRedundancy() bool { } // SetRedundancy gets a reference to the given PortRedundancy and assigns it to the Redundancy field. -func (o *PortResponse) SetRedundancy(v PortRedundancy) { +func (o *PortRequest) SetRedundancy(v PortRedundancy) { o.Redundancy = &v } -// GetEncapsulation returns the Encapsulation field value if set, zero value otherwise. -func (o *PortResponse) GetEncapsulation() PortEncapsulation { - if o == nil || IsNil(o.Encapsulation) { +// GetEncapsulation returns the Encapsulation field value +func (o *PortRequest) GetEncapsulation() PortEncapsulation { + if o == nil { var ret PortEncapsulation return ret } - return *o.Encapsulation + + return o.Encapsulation } -// GetEncapsulationOk returns a tuple with the Encapsulation field value if set, nil otherwise +// GetEncapsulationOk returns a tuple with the Encapsulation field value // and a boolean to check if the value has been set. -func (o *PortResponse) GetEncapsulationOk() (*PortEncapsulation, bool) { - if o == nil || IsNil(o.Encapsulation) { +func (o *PortRequest) GetEncapsulationOk() (*PortEncapsulation, bool) { + if o == nil { return nil, false } - return o.Encapsulation, true -} - -// HasEncapsulation returns a boolean if a field has been set. -func (o *PortResponse) HasEncapsulation() bool { - if o != nil && !IsNil(o.Encapsulation) { - return true - } - - return false + return &o.Encapsulation, true } -// SetEncapsulation gets a reference to the given PortEncapsulation and assigns it to the Encapsulation field. -func (o *PortResponse) SetEncapsulation(v PortEncapsulation) { - o.Encapsulation = &v +// SetEncapsulation sets field value +func (o *PortRequest) SetEncapsulation(v PortEncapsulation) { + o.Encapsulation = v } // GetLagEnabled returns the LagEnabled field value if set, zero value otherwise. -func (o *PortResponse) GetLagEnabled() bool { +func (o *PortRequest) GetLagEnabled() bool { if o == nil || IsNil(o.LagEnabled) { var ret bool return ret @@ -1102,7 +1029,7 @@ func (o *PortResponse) GetLagEnabled() bool { // 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 *PortResponse) GetLagEnabledOk() (*bool, bool) { +func (o *PortRequest) GetLagEnabledOk() (*bool, bool) { if o == nil || IsNil(o.LagEnabled) { return nil, false } @@ -1110,7 +1037,7 @@ func (o *PortResponse) GetLagEnabledOk() (*bool, bool) { } // HasLagEnabled returns a boolean if a field has been set. -func (o *PortResponse) HasLagEnabled() bool { +func (o *PortRequest) HasLagEnabled() bool { if o != nil && !IsNil(o.LagEnabled) { return true } @@ -1119,12 +1046,12 @@ func (o *PortResponse) HasLagEnabled() bool { } // SetLagEnabled gets a reference to the given bool and assigns it to the LagEnabled field. -func (o *PortResponse) SetLagEnabled(v bool) { +func (o *PortRequest) SetLagEnabled(v bool) { o.LagEnabled = &v } // GetLag returns the Lag field value if set, zero value otherwise. -func (o *PortResponse) GetLag() PortLag { +func (o *PortRequest) GetLag() PortLag { if o == nil || IsNil(o.Lag) { var ret PortLag return ret @@ -1134,7 +1061,7 @@ func (o *PortResponse) GetLag() PortLag { // GetLagOk returns a tuple with the Lag field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetLagOk() (*PortLag, bool) { +func (o *PortRequest) GetLagOk() (*PortLag, bool) { if o == nil || IsNil(o.Lag) { return nil, false } @@ -1142,7 +1069,7 @@ func (o *PortResponse) GetLagOk() (*PortLag, bool) { } // HasLag returns a boolean if a field has been set. -func (o *PortResponse) HasLag() bool { +func (o *PortRequest) HasLag() bool { if o != nil && !IsNil(o.Lag) { return true } @@ -1151,12 +1078,12 @@ func (o *PortResponse) HasLag() bool { } // SetLag gets a reference to the given PortLag and assigns it to the Lag field. -func (o *PortResponse) SetLag(v PortLag) { +func (o *PortRequest) SetLag(v PortLag) { o.Lag = &v } // GetAsn returns the Asn field value if set, zero value otherwise. -func (o *PortResponse) GetAsn() int32 { +func (o *PortRequest) GetAsn() int32 { if o == nil || IsNil(o.Asn) { var ret int32 return ret @@ -1166,7 +1093,7 @@ func (o *PortResponse) GetAsn() int32 { // GetAsnOk returns a tuple with the Asn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetAsnOk() (*int32, bool) { +func (o *PortRequest) GetAsnOk() (*int32, bool) { if o == nil || IsNil(o.Asn) { return nil, false } @@ -1174,7 +1101,7 @@ func (o *PortResponse) GetAsnOk() (*int32, bool) { } // HasAsn returns a boolean if a field has been set. -func (o *PortResponse) HasAsn() bool { +func (o *PortRequest) HasAsn() bool { if o != nil && !IsNil(o.Asn) { return true } @@ -1183,44 +1110,68 @@ func (o *PortResponse) HasAsn() bool { } // SetAsn gets a reference to the given int32 and assigns it to the Asn field. -func (o *PortResponse) SetAsn(v int32) { +func (o *PortRequest) SetAsn(v int32) { o.Asn = &v } -// GetSettings returns the Settings field value if set, zero value otherwise. -func (o *PortResponse) GetSettings() PortSettings { - if o == nil || IsNil(o.Settings) { - var ret PortSettings +// GetPackage returns the Package field value if set, zero value otherwise. +func (o *PortRequest) GetPackage() Package { + if o == nil || IsNil(o.Package) { + var ret Package return ret } - return *o.Settings + return *o.Package } -// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// GetPackageOk returns a tuple with the Package field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetSettingsOk() (*PortSettings, bool) { - if o == nil || IsNil(o.Settings) { +func (o *PortRequest) GetPackageOk() (*Package, bool) { + if o == nil || IsNil(o.Package) { return nil, false } - return o.Settings, true + return o.Package, true } -// HasSettings returns a boolean if a field has been set. -func (o *PortResponse) HasSettings() bool { - if o != nil && !IsNil(o.Settings) { +// HasPackage returns a boolean if a field has been set. +func (o *PortRequest) HasPackage() bool { + if o != nil && !IsNil(o.Package) { return true } return false } -// SetSettings gets a reference to the given PortSettings and assigns it to the Settings field. -func (o *PortResponse) SetSettings(v PortSettings) { - o.Settings = &v +// SetPackage gets a reference to the given Package and assigns it to the Package field. +func (o *PortRequest) SetPackage(v Package) { + o.Package = &v +} + +// GetSettings returns the Settings field value +func (o *PortRequest) GetSettings() PortSettings { + if o == nil { + var ret PortSettings + return ret + } + + return o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value +// and a boolean to check if the value has been set. +func (o *PortRequest) GetSettingsOk() (*PortSettings, bool) { + if o == nil { + return nil, false + } + return &o.Settings, true +} + +// SetSettings sets field value +func (o *PortRequest) SetSettings(v PortSettings) { + o.Settings = v } // GetPhysicalPortQuantity returns the PhysicalPortQuantity field value if set, zero value otherwise. -func (o *PortResponse) GetPhysicalPortQuantity() int32 { +func (o *PortRequest) GetPhysicalPortQuantity() int32 { if o == nil || IsNil(o.PhysicalPortQuantity) { var ret int32 return ret @@ -1230,7 +1181,7 @@ func (o *PortResponse) GetPhysicalPortQuantity() int32 { // GetPhysicalPortQuantityOk returns a tuple with the PhysicalPortQuantity field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetPhysicalPortQuantityOk() (*int32, bool) { +func (o *PortRequest) GetPhysicalPortQuantityOk() (*int32, bool) { if o == nil || IsNil(o.PhysicalPortQuantity) { return nil, false } @@ -1238,7 +1189,7 @@ func (o *PortResponse) GetPhysicalPortQuantityOk() (*int32, bool) { } // HasPhysicalPortQuantity returns a boolean if a field has been set. -func (o *PortResponse) HasPhysicalPortQuantity() bool { +func (o *PortRequest) HasPhysicalPortQuantity() bool { if o != nil && !IsNil(o.PhysicalPortQuantity) { return true } @@ -1247,12 +1198,12 @@ func (o *PortResponse) HasPhysicalPortQuantity() bool { } // SetPhysicalPortQuantity gets a reference to the given int32 and assigns it to the PhysicalPortQuantity field. -func (o *PortResponse) SetPhysicalPortQuantity(v int32) { +func (o *PortRequest) SetPhysicalPortQuantity(v int32) { o.PhysicalPortQuantity = &v } // GetNotifications returns the Notifications field value if set, zero value otherwise. -func (o *PortResponse) GetNotifications() []PortNotification { +func (o *PortRequest) GetNotifications() []PortNotification { if o == nil || IsNil(o.Notifications) { var ret []PortNotification return ret @@ -1262,7 +1213,7 @@ func (o *PortResponse) GetNotifications() []PortNotification { // GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetNotificationsOk() ([]PortNotification, bool) { +func (o *PortRequest) GetNotificationsOk() ([]PortNotification, bool) { if o == nil || IsNil(o.Notifications) { return nil, false } @@ -1270,7 +1221,7 @@ func (o *PortResponse) GetNotificationsOk() ([]PortNotification, bool) { } // HasNotifications returns a boolean if a field has been set. -func (o *PortResponse) HasNotifications() bool { +func (o *PortRequest) HasNotifications() bool { if o != nil && !IsNil(o.Notifications) { return true } @@ -1279,12 +1230,12 @@ func (o *PortResponse) HasNotifications() bool { } // SetNotifications gets a reference to the given []PortNotification and assigns it to the Notifications field. -func (o *PortResponse) SetNotifications(v []PortNotification) { +func (o *PortRequest) SetNotifications(v []PortNotification) { o.Notifications = v } // GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise. -func (o *PortResponse) GetAdditionalInfo() []PortAdditionalInfo { +func (o *PortRequest) GetAdditionalInfo() []PortAdditionalInfo { if o == nil || IsNil(o.AdditionalInfo) { var ret []PortAdditionalInfo return ret @@ -1294,7 +1245,7 @@ func (o *PortResponse) GetAdditionalInfo() []PortAdditionalInfo { // GetAdditionalInfoOk returns a tuple with the AdditionalInfo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetAdditionalInfoOk() ([]PortAdditionalInfo, bool) { +func (o *PortRequest) GetAdditionalInfoOk() ([]PortAdditionalInfo, bool) { if o == nil || IsNil(o.AdditionalInfo) { return nil, false } @@ -1302,7 +1253,7 @@ func (o *PortResponse) GetAdditionalInfoOk() ([]PortAdditionalInfo, bool) { } // HasAdditionalInfo returns a boolean if a field has been set. -func (o *PortResponse) HasAdditionalInfo() bool { +func (o *PortRequest) HasAdditionalInfo() bool { if o != nil && !IsNil(o.AdditionalInfo) { return true } @@ -1311,12 +1262,12 @@ func (o *PortResponse) HasAdditionalInfo() bool { } // SetAdditionalInfo gets a reference to the given []PortAdditionalInfo and assigns it to the AdditionalInfo field. -func (o *PortResponse) SetAdditionalInfo(v []PortAdditionalInfo) { +func (o *PortRequest) SetAdditionalInfo(v []PortAdditionalInfo) { o.AdditionalInfo = v } // GetPhysicalPorts returns the PhysicalPorts field value if set, zero value otherwise. -func (o *PortResponse) GetPhysicalPorts() []PhysicalPort { +func (o *PortRequest) GetPhysicalPorts() []PhysicalPort { if o == nil || IsNil(o.PhysicalPorts) { var ret []PhysicalPort return ret @@ -1326,7 +1277,7 @@ func (o *PortResponse) GetPhysicalPorts() []PhysicalPort { // GetPhysicalPortsOk returns a tuple with the PhysicalPorts field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetPhysicalPortsOk() ([]PhysicalPort, bool) { +func (o *PortRequest) GetPhysicalPortsOk() ([]PhysicalPort, bool) { if o == nil || IsNil(o.PhysicalPorts) { return nil, false } @@ -1334,7 +1285,7 @@ func (o *PortResponse) GetPhysicalPortsOk() ([]PhysicalPort, bool) { } // HasPhysicalPorts returns a boolean if a field has been set. -func (o *PortResponse) HasPhysicalPorts() bool { +func (o *PortRequest) HasPhysicalPorts() bool { if o != nil && !IsNil(o.PhysicalPorts) { return true } @@ -1343,12 +1294,12 @@ func (o *PortResponse) HasPhysicalPorts() bool { } // SetPhysicalPorts gets a reference to the given []PhysicalPort and assigns it to the PhysicalPorts field. -func (o *PortResponse) SetPhysicalPorts(v []PhysicalPort) { +func (o *PortRequest) SetPhysicalPorts(v []PhysicalPort) { o.PhysicalPorts = v } // GetLoas returns the Loas field value if set, zero value otherwise. -func (o *PortResponse) GetLoas() []PortLoa { +func (o *PortRequest) GetLoas() []PortLoa { if o == nil || IsNil(o.Loas) { var ret []PortLoa return ret @@ -1358,7 +1309,7 @@ func (o *PortResponse) GetLoas() []PortLoa { // GetLoasOk returns a tuple with the Loas field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PortResponse) GetLoasOk() ([]PortLoa, bool) { +func (o *PortRequest) GetLoasOk() ([]PortLoa, bool) { if o == nil || IsNil(o.Loas) { return nil, false } @@ -1366,7 +1317,7 @@ func (o *PortResponse) GetLoasOk() ([]PortLoa, bool) { } // HasLoas returns a boolean if a field has been set. -func (o *PortResponse) HasLoas() bool { +func (o *PortRequest) HasLoas() bool { if o != nil && !IsNil(o.Loas) { return true } @@ -1375,11 +1326,11 @@ func (o *PortResponse) HasLoas() bool { } // SetLoas gets a reference to the given []PortLoa and assigns it to the Loas field. -func (o *PortResponse) SetLoas(v []PortLoa) { +func (o *PortRequest) SetLoas(v []PortLoa) { o.Loas = v } -func (o PortResponse) MarshalJSON() ([]byte, error) { +func (o PortRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -1387,17 +1338,15 @@ func (o PortResponse) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PortResponse) ToMap() (map[string]interface{}, error) { +func (o PortRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if !IsNil(o.Href) { + toSerialize["href"] = o.Href } + toSerialize["type"] = o.Type if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if !IsNil(o.Href) { - toSerialize["href"] = o.Href - } if !IsNil(o.Uuid) { toSerialize["uuid"] = o.Uuid } @@ -1407,21 +1356,15 @@ func (o PortResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.PhysicalPortsSpeed) { - toSerialize["physicalPortsSpeed"] = o.PhysicalPortsSpeed - } + toSerialize["physicalPortsSpeed"] = o.PhysicalPortsSpeed if !IsNil(o.ConnectionsCount) { toSerialize["connectionsCount"] = o.ConnectionsCount } - if !IsNil(o.PhysicalPortsType) { - toSerialize["physicalPortsType"] = o.PhysicalPortsType - } + toSerialize["physicalPortsType"] = o.PhysicalPortsType if !IsNil(o.PhysicalPortsCount) { toSerialize["physicalPortsCount"] = o.PhysicalPortsCount } - if !IsNil(o.ConnectivitySourceType) { - toSerialize["connectivitySourceType"] = o.ConnectivitySourceType - } + toSerialize["connectivitySourceType"] = o.ConnectivitySourceType if !IsNil(o.BmmrType) { toSerialize["bmmrType"] = o.BmmrType } @@ -1434,17 +1377,12 @@ func (o PortResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Order) { toSerialize["order"] = o.Order } - if !IsNil(o.CvpId) { - toSerialize["cvpId"] = o.CvpId - } if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } - if !IsNil(o.Account) { - toSerialize["account"] = o.Account - } - if !IsNil(o.Changelog) { - toSerialize["changelog"] = o.Changelog + toSerialize["account"] = o.Account + if !IsNil(o.ChangeLog) { + toSerialize["changeLog"] = o.ChangeLog } if !IsNil(o.ServiceType) { toSerialize["serviceType"] = o.ServiceType @@ -1458,9 +1396,7 @@ func (o PortResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.UsedBandwidth) { toSerialize["usedBandwidth"] = o.UsedBandwidth } - if !IsNil(o.Location) { - toSerialize["location"] = o.Location - } + toSerialize["location"] = o.Location if !IsNil(o.Device) { toSerialize["device"] = o.Device } @@ -1479,9 +1415,7 @@ func (o PortResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Redundancy) { toSerialize["redundancy"] = o.Redundancy } - if !IsNil(o.Encapsulation) { - toSerialize["encapsulation"] = o.Encapsulation - } + toSerialize["encapsulation"] = o.Encapsulation if !IsNil(o.LagEnabled) { toSerialize["lagEnabled"] = o.LagEnabled } @@ -1491,9 +1425,10 @@ func (o PortResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Asn) { toSerialize["asn"] = o.Asn } - if !IsNil(o.Settings) { - toSerialize["settings"] = o.Settings + if !IsNil(o.Package) { + toSerialize["package"] = o.Package } + toSerialize["settings"] = o.Settings if !IsNil(o.PhysicalPortQuantity) { toSerialize["physicalPortQuantity"] = o.PhysicalPortQuantity } @@ -1517,23 +1452,51 @@ func (o PortResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PortResponse) UnmarshalJSON(data []byte) (err error) { - varPortResponse := _PortResponse{} +func (o *PortRequest) 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", + "physicalPortsSpeed", + "physicalPortsType", + "connectivitySourceType", + "account", + "location", + "encapsulation", + "settings", + } - err = json.Unmarshal(data, &varPortResponse) + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) if err != nil { return err } - *o = PortResponse(varPortResponse) + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPortRequest := _PortRequest{} + + err = json.Unmarshal(data, &varPortRequest) + + if err != nil { + return err + } + + *o = PortRequest(varPortRequest) additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") delete(additionalProperties, "type") delete(additionalProperties, "id") - delete(additionalProperties, "href") delete(additionalProperties, "uuid") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -1546,10 +1509,9 @@ func (o *PortResponse) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "project") delete(additionalProperties, "state") delete(additionalProperties, "order") - delete(additionalProperties, "cvpId") delete(additionalProperties, "operation") delete(additionalProperties, "account") - delete(additionalProperties, "changelog") + delete(additionalProperties, "changeLog") delete(additionalProperties, "serviceType") delete(additionalProperties, "bandwidth") delete(additionalProperties, "availableBandwidth") @@ -1565,6 +1527,7 @@ func (o *PortResponse) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "lagEnabled") delete(additionalProperties, "lag") delete(additionalProperties, "asn") + delete(additionalProperties, "package") delete(additionalProperties, "settings") delete(additionalProperties, "physicalPortQuantity") delete(additionalProperties, "notifications") @@ -1577,38 +1540,38 @@ func (o *PortResponse) UnmarshalJSON(data []byte) (err error) { return err } -type NullablePortResponse struct { - value *PortResponse +type NullablePortRequest struct { + value *PortRequest isSet bool } -func (v NullablePortResponse) Get() *PortResponse { +func (v NullablePortRequest) Get() *PortRequest { return v.value } -func (v *NullablePortResponse) Set(val *PortResponse) { +func (v *NullablePortRequest) Set(val *PortRequest) { v.value = val v.isSet = true } -func (v NullablePortResponse) IsSet() bool { +func (v NullablePortRequest) IsSet() bool { return v.isSet } -func (v *NullablePortResponse) Unset() { +func (v *NullablePortRequest) Unset() { v.value = nil v.isSet = false } -func NewNullablePortResponse(val *PortResponse) *NullablePortResponse { - return &NullablePortResponse{value: val, isSet: true} +func NewNullablePortRequest(val *PortRequest) *NullablePortRequest { + return &NullablePortRequest{value: val, isSet: true} } -func (v NullablePortResponse) MarshalJSON() ([]byte, error) { +func (v NullablePortRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePortResponse) UnmarshalJSON(src []byte) error { +func (v *NullablePortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/services/fabricv4/model_port_response_bmmr_type.go b/services/fabricv4/model_port_response_bmmr_type.go deleted file mode 100644 index d0776013..00000000 --- a/services/fabricv4/model_port_response_bmmr_type.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// PortResponseBmmrType the model 'PortResponseBmmrType' -type PortResponseBmmrType string - -// List of PortResponse_bmmrType -const ( - PORTRESPONSEBMMRTYPE_SELF PortResponseBmmrType = "SELF" - PORTRESPONSEBMMRTYPE_EQUINIX PortResponseBmmrType = "EQUINIX" -) - -// All allowed values of PortResponseBmmrType enum -var AllowedPortResponseBmmrTypeEnumValues = []PortResponseBmmrType{ - "SELF", - "EQUINIX", -} - -func (v *PortResponseBmmrType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PortResponseBmmrType(value) - for _, existing := range AllowedPortResponseBmmrTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PortResponseBmmrType", value) -} - -// NewPortResponseBmmrTypeFromValue returns a pointer to a valid PortResponseBmmrType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPortResponseBmmrTypeFromValue(v string) (*PortResponseBmmrType, error) { - ev := PortResponseBmmrType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PortResponseBmmrType: valid values are %v", v, AllowedPortResponseBmmrTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PortResponseBmmrType) IsValid() bool { - for _, existing := range AllowedPortResponseBmmrTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PortResponse_bmmrType value -func (v PortResponseBmmrType) Ptr() *PortResponseBmmrType { - return &v -} - -type NullablePortResponseBmmrType struct { - value *PortResponseBmmrType - isSet bool -} - -func (v NullablePortResponseBmmrType) Get() *PortResponseBmmrType { - return v.value -} - -func (v *NullablePortResponseBmmrType) Set(val *PortResponseBmmrType) { - v.value = val - v.isSet = true -} - -func (v NullablePortResponseBmmrType) IsSet() bool { - return v.isSet -} - -func (v *NullablePortResponseBmmrType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePortResponseBmmrType(val *PortResponseBmmrType) *NullablePortResponseBmmrType { - return &NullablePortResponseBmmrType{value: val, isSet: true} -} - -func (v NullablePortResponseBmmrType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePortResponseBmmrType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_port_response_connectivity_source_type.go b/services/fabricv4/model_port_response_connectivity_source_type.go deleted file mode 100644 index 5cab5cc8..00000000 --- a/services/fabricv4/model_port_response_connectivity_source_type.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// PortResponseConnectivitySourceType Port connectivity type -type PortResponseConnectivitySourceType string - -// List of PortResponse_connectivitySourceType -const ( - PORTRESPONSECONNECTIVITYSOURCETYPE_COLO PortResponseConnectivitySourceType = "COLO" - PORTRESPONSECONNECTIVITYSOURCETYPE_BMMR PortResponseConnectivitySourceType = "BMMR" - PORTRESPONSECONNECTIVITYSOURCETYPE_REMOTE PortResponseConnectivitySourceType = "REMOTE" -) - -// All allowed values of PortResponseConnectivitySourceType enum -var AllowedPortResponseConnectivitySourceTypeEnumValues = []PortResponseConnectivitySourceType{ - "COLO", - "BMMR", - "REMOTE", -} - -func (v *PortResponseConnectivitySourceType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PortResponseConnectivitySourceType(value) - for _, existing := range AllowedPortResponseConnectivitySourceTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PortResponseConnectivitySourceType", value) -} - -// NewPortResponseConnectivitySourceTypeFromValue returns a pointer to a valid PortResponseConnectivitySourceType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPortResponseConnectivitySourceTypeFromValue(v string) (*PortResponseConnectivitySourceType, error) { - ev := PortResponseConnectivitySourceType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PortResponseConnectivitySourceType: valid values are %v", v, AllowedPortResponseConnectivitySourceTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PortResponseConnectivitySourceType) IsValid() bool { - for _, existing := range AllowedPortResponseConnectivitySourceTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PortResponse_connectivitySourceType value -func (v PortResponseConnectivitySourceType) Ptr() *PortResponseConnectivitySourceType { - return &v -} - -type NullablePortResponseConnectivitySourceType struct { - value *PortResponseConnectivitySourceType - isSet bool -} - -func (v NullablePortResponseConnectivitySourceType) Get() *PortResponseConnectivitySourceType { - return v.value -} - -func (v *NullablePortResponseConnectivitySourceType) Set(val *PortResponseConnectivitySourceType) { - v.value = val - v.isSet = true -} - -func (v NullablePortResponseConnectivitySourceType) IsSet() bool { - return v.isSet -} - -func (v *NullablePortResponseConnectivitySourceType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePortResponseConnectivitySourceType(val *PortResponseConnectivitySourceType) *NullablePortResponseConnectivitySourceType { - return &NullablePortResponseConnectivitySourceType{value: val, isSet: true} -} - -func (v NullablePortResponseConnectivitySourceType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePortResponseConnectivitySourceType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_port_response_physical_ports_type.go b/services/fabricv4/model_port_response_physical_ports_type.go deleted file mode 100644 index 9536616d..00000000 --- a/services/fabricv4/model_port_response_physical_ports_type.go +++ /dev/null @@ -1,114 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// PortResponsePhysicalPortsType Physical Ports Type -type PortResponsePhysicalPortsType string - -// List of PortResponse_physicalPortsType -const ( - PORTRESPONSEPHYSICALPORTSTYPE__1000_BASE_LX PortResponsePhysicalPortsType = "1000BASE_LX" - PORTRESPONSEPHYSICALPORTSTYPE__10_GBASE_LR PortResponsePhysicalPortsType = "10GBASE_LR" - PORTRESPONSEPHYSICALPORTSTYPE__100_GBASE_LR4 PortResponsePhysicalPortsType = "100GBASE_LR4" - PORTRESPONSEPHYSICALPORTSTYPE__10_GBASE_ER PortResponsePhysicalPortsType = "10GBASE_ER" - PORTRESPONSEPHYSICALPORTSTYPE__1000_BASE_SX PortResponsePhysicalPortsType = "1000BASE_SX" -) - -// All allowed values of PortResponsePhysicalPortsType enum -var AllowedPortResponsePhysicalPortsTypeEnumValues = []PortResponsePhysicalPortsType{ - "1000BASE_LX", - "10GBASE_LR", - "100GBASE_LR4", - "10GBASE_ER", - "1000BASE_SX", -} - -func (v *PortResponsePhysicalPortsType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PortResponsePhysicalPortsType(value) - for _, existing := range AllowedPortResponsePhysicalPortsTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PortResponsePhysicalPortsType", value) -} - -// NewPortResponsePhysicalPortsTypeFromValue returns a pointer to a valid PortResponsePhysicalPortsType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPortResponsePhysicalPortsTypeFromValue(v string) (*PortResponsePhysicalPortsType, error) { - ev := PortResponsePhysicalPortsType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PortResponsePhysicalPortsType: valid values are %v", v, AllowedPortResponsePhysicalPortsTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PortResponsePhysicalPortsType) IsValid() bool { - for _, existing := range AllowedPortResponsePhysicalPortsTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PortResponse_physicalPortsType value -func (v PortResponsePhysicalPortsType) Ptr() *PortResponsePhysicalPortsType { - return &v -} - -type NullablePortResponsePhysicalPortsType struct { - value *PortResponsePhysicalPortsType - isSet bool -} - -func (v NullablePortResponsePhysicalPortsType) Get() *PortResponsePhysicalPortsType { - return v.value -} - -func (v *NullablePortResponsePhysicalPortsType) Set(val *PortResponsePhysicalPortsType) { - v.value = val - v.isSet = true -} - -func (v NullablePortResponsePhysicalPortsType) IsSet() bool { - return v.isSet -} - -func (v *NullablePortResponsePhysicalPortsType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePortResponsePhysicalPortsType(val *PortResponsePhysicalPortsType) *NullablePortResponsePhysicalPortsType { - return &NullablePortResponsePhysicalPortsType{value: val, isSet: true} -} - -func (v NullablePortResponsePhysicalPortsType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePortResponsePhysicalPortsType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_port_response_service_type.go b/services/fabricv4/model_port_response_service_type.go deleted file mode 100644 index 5d5bb78f..00000000 --- a/services/fabricv4/model_port_response_service_type.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// PortResponseServiceType Port service Type -type PortResponseServiceType string - -// List of PortResponse_serviceType -const ( - PORTRESPONSESERVICETYPE_EPL PortResponseServiceType = "EPL" - PORTRESPONSESERVICETYPE_MSP PortResponseServiceType = "MSP" -) - -// All allowed values of PortResponseServiceType enum -var AllowedPortResponseServiceTypeEnumValues = []PortResponseServiceType{ - "EPL", - "MSP", -} - -func (v *PortResponseServiceType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PortResponseServiceType(value) - for _, existing := range AllowedPortResponseServiceTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PortResponseServiceType", value) -} - -// NewPortResponseServiceTypeFromValue returns a pointer to a valid PortResponseServiceType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPortResponseServiceTypeFromValue(v string) (*PortResponseServiceType, error) { - ev := PortResponseServiceType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PortResponseServiceType: valid values are %v", v, AllowedPortResponseServiceTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PortResponseServiceType) IsValid() bool { - for _, existing := range AllowedPortResponseServiceTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PortResponse_serviceType value -func (v PortResponseServiceType) Ptr() *PortResponseServiceType { - return &v -} - -type NullablePortResponseServiceType struct { - value *PortResponseServiceType - isSet bool -} - -func (v NullablePortResponseServiceType) Get() *PortResponseServiceType { - return v.value -} - -func (v *NullablePortResponseServiceType) Set(val *PortResponseServiceType) { - v.value = val - v.isSet = true -} - -func (v NullablePortResponseServiceType) IsSet() bool { - return v.isSet -} - -func (v *NullablePortResponseServiceType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePortResponseServiceType(val *PortResponseServiceType) *NullablePortResponseServiceType { - return &NullablePortResponseServiceType{value: val, isSet: true} -} - -func (v NullablePortResponseServiceType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePortResponseServiceType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_port_search_field_name.go b/services/fabricv4/model_port_search_field_name.go index fe39c3ef..e0a38f88 100644 --- a/services/fabricv4/model_port_search_field_name.go +++ b/services/fabricv4/model_port_search_field_name.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_service_type.go b/services/fabricv4/model_port_service_type.go new file mode 100644 index 00000000..5abf68c3 --- /dev/null +++ b/services/fabricv4/model_port_service_type.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PortServiceType Port service Type +type PortServiceType string + +// List of Port_serviceType +const ( + PORTSERVICETYPE_EPL PortServiceType = "EPL" + PORTSERVICETYPE_MSP PortServiceType = "MSP" +) + +// All allowed values of PortServiceType enum +var AllowedPortServiceTypeEnumValues = []PortServiceType{ + "EPL", + "MSP", +} + +func (v *PortServiceType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PortServiceType(value) + for _, existing := range AllowedPortServiceTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PortServiceType", value) +} + +// NewPortServiceTypeFromValue returns a pointer to a valid PortServiceType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPortServiceTypeFromValue(v string) (*PortServiceType, error) { + ev := PortServiceType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PortServiceType: valid values are %v", v, AllowedPortServiceTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PortServiceType) IsValid() bool { + for _, existing := range AllowedPortServiceTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Port_serviceType value +func (v PortServiceType) Ptr() *PortServiceType { + return &v +} + +type NullablePortServiceType struct { + value *PortServiceType + isSet bool +} + +func (v NullablePortServiceType) Get() *PortServiceType { + return v.value +} + +func (v *NullablePortServiceType) Set(val *PortServiceType) { + v.value = val + v.isSet = true +} + +func (v NullablePortServiceType) IsSet() bool { + return v.isSet +} + +func (v *NullablePortServiceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePortServiceType(val *PortServiceType) *NullablePortServiceType { + return &NullablePortServiceType{value: val, isSet: true} +} + +func (v NullablePortServiceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePortServiceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_port_settings.go b/services/fabricv4/model_port_settings.go index 9c74037d..7ab68bc0 100644 --- a/services/fabricv4/model_port_settings.go +++ b/services/fabricv4/model_port_settings.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,17 +16,19 @@ var _ MappedNullable = &PortSettings{} // PortSettings Port configuration settings type PortSettings struct { - // Product name - Product *string `json:"product,omitempty"` - Buyout *bool `json:"buyout,omitempty"` - ViewPortPermission *bool `json:"viewPortPermission,omitempty"` - PlaceVcOrderPermission *bool `json:"placeVcOrderPermission,omitempty"` - Layer3Enabled *bool `json:"layer3Enabled,omitempty"` - ProductCode *string `json:"productCode,omitempty"` - SharedPortType *bool `json:"sharedPortType,omitempty"` - SharedPortProduct *PortSettingsSharedPortProduct `json:"sharedPortProduct,omitempty"` - PackageType *PortSettingsPackageType `json:"packageType,omitempty"` - AdditionalProperties map[string]interface{} + // Deprecated + Buyout *bool `json:"buyout,omitempty"` + // Deprecated + ViewPortPermission *bool `json:"viewPortPermission,omitempty"` + // Deprecated + PlaceVcOrderPermission *bool `json:"placeVcOrderPermission,omitempty"` + // Deprecated + Layer3Enabled *bool `json:"layer3Enabled,omitempty"` + SharedPortType *bool `json:"sharedPortType,omitempty"` + SharedPortProduct *PortSettingsSharedPortProduct `json:"sharedPortProduct,omitempty"` + // Deprecated + PackageType *PortSettingsPackageType `json:"packageType,omitempty"` + AdditionalProperties map[string]interface{} } type _PortSettings PortSettings @@ -49,39 +50,8 @@ func NewPortSettingsWithDefaults() *PortSettings { return &this } -// GetProduct returns the Product field value if set, zero value otherwise. -func (o *PortSettings) GetProduct() string { - if o == nil || IsNil(o.Product) { - var ret string - return ret - } - return *o.Product -} - -// GetProductOk returns a tuple with the Product field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PortSettings) GetProductOk() (*string, bool) { - if o == nil || IsNil(o.Product) { - return nil, false - } - return o.Product, true -} - -// HasProduct returns a boolean if a field has been set. -func (o *PortSettings) HasProduct() bool { - if o != nil && !IsNil(o.Product) { - return true - } - - return false -} - -// SetProduct gets a reference to the given string and assigns it to the Product field. -func (o *PortSettings) SetProduct(v string) { - o.Product = &v -} - // GetBuyout returns the Buyout field value if set, zero value otherwise. +// Deprecated func (o *PortSettings) GetBuyout() bool { if o == nil || IsNil(o.Buyout) { var ret bool @@ -92,6 +62,7 @@ func (o *PortSettings) GetBuyout() bool { // GetBuyoutOk returns a tuple with the Buyout field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortSettings) GetBuyoutOk() (*bool, bool) { if o == nil || IsNil(o.Buyout) { return nil, false @@ -109,11 +80,13 @@ func (o *PortSettings) HasBuyout() bool { } // SetBuyout gets a reference to the given bool and assigns it to the Buyout field. +// Deprecated func (o *PortSettings) SetBuyout(v bool) { o.Buyout = &v } // GetViewPortPermission returns the ViewPortPermission field value if set, zero value otherwise. +// Deprecated func (o *PortSettings) GetViewPortPermission() bool { if o == nil || IsNil(o.ViewPortPermission) { var ret bool @@ -124,6 +97,7 @@ func (o *PortSettings) GetViewPortPermission() bool { // GetViewPortPermissionOk returns a tuple with the ViewPortPermission field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortSettings) GetViewPortPermissionOk() (*bool, bool) { if o == nil || IsNil(o.ViewPortPermission) { return nil, false @@ -141,11 +115,13 @@ func (o *PortSettings) HasViewPortPermission() bool { } // SetViewPortPermission gets a reference to the given bool and assigns it to the ViewPortPermission field. +// Deprecated func (o *PortSettings) SetViewPortPermission(v bool) { o.ViewPortPermission = &v } // GetPlaceVcOrderPermission returns the PlaceVcOrderPermission field value if set, zero value otherwise. +// Deprecated func (o *PortSettings) GetPlaceVcOrderPermission() bool { if o == nil || IsNil(o.PlaceVcOrderPermission) { var ret bool @@ -156,6 +132,7 @@ func (o *PortSettings) GetPlaceVcOrderPermission() bool { // GetPlaceVcOrderPermissionOk returns a tuple with the PlaceVcOrderPermission field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortSettings) GetPlaceVcOrderPermissionOk() (*bool, bool) { if o == nil || IsNil(o.PlaceVcOrderPermission) { return nil, false @@ -173,11 +150,13 @@ func (o *PortSettings) HasPlaceVcOrderPermission() bool { } // SetPlaceVcOrderPermission gets a reference to the given bool and assigns it to the PlaceVcOrderPermission field. +// Deprecated func (o *PortSettings) SetPlaceVcOrderPermission(v bool) { o.PlaceVcOrderPermission = &v } // GetLayer3Enabled returns the Layer3Enabled field value if set, zero value otherwise. +// Deprecated func (o *PortSettings) GetLayer3Enabled() bool { if o == nil || IsNil(o.Layer3Enabled) { var ret bool @@ -188,6 +167,7 @@ func (o *PortSettings) GetLayer3Enabled() bool { // GetLayer3EnabledOk returns a tuple with the Layer3Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortSettings) GetLayer3EnabledOk() (*bool, bool) { if o == nil || IsNil(o.Layer3Enabled) { return nil, false @@ -205,42 +185,11 @@ func (o *PortSettings) HasLayer3Enabled() bool { } // SetLayer3Enabled gets a reference to the given bool and assigns it to the Layer3Enabled field. +// Deprecated func (o *PortSettings) SetLayer3Enabled(v bool) { o.Layer3Enabled = &v } -// GetProductCode returns the ProductCode field value if set, zero value otherwise. -func (o *PortSettings) GetProductCode() string { - if o == nil || IsNil(o.ProductCode) { - var ret string - return ret - } - return *o.ProductCode -} - -// GetProductCodeOk returns a tuple with the ProductCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PortSettings) GetProductCodeOk() (*string, bool) { - if o == nil || IsNil(o.ProductCode) { - return nil, false - } - return o.ProductCode, true -} - -// HasProductCode returns a boolean if a field has been set. -func (o *PortSettings) HasProductCode() bool { - if o != nil && !IsNil(o.ProductCode) { - return true - } - - return false -} - -// SetProductCode gets a reference to the given string and assigns it to the ProductCode field. -func (o *PortSettings) SetProductCode(v string) { - o.ProductCode = &v -} - // GetSharedPortType returns the SharedPortType field value if set, zero value otherwise. func (o *PortSettings) GetSharedPortType() bool { if o == nil || IsNil(o.SharedPortType) { @@ -306,6 +255,7 @@ func (o *PortSettings) SetSharedPortProduct(v PortSettingsSharedPortProduct) { } // GetPackageType returns the PackageType field value if set, zero value otherwise. +// Deprecated func (o *PortSettings) GetPackageType() PortSettingsPackageType { if o == nil || IsNil(o.PackageType) { var ret PortSettingsPackageType @@ -316,6 +266,7 @@ func (o *PortSettings) GetPackageType() PortSettingsPackageType { // GetPackageTypeOk returns a tuple with the PackageType field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *PortSettings) GetPackageTypeOk() (*PortSettingsPackageType, bool) { if o == nil || IsNil(o.PackageType) { return nil, false @@ -333,6 +284,7 @@ func (o *PortSettings) HasPackageType() bool { } // SetPackageType gets a reference to the given PortSettingsPackageType and assigns it to the PackageType field. +// Deprecated func (o *PortSettings) SetPackageType(v PortSettingsPackageType) { o.PackageType = &v } @@ -347,9 +299,6 @@ func (o PortSettings) MarshalJSON() ([]byte, error) { func (o PortSettings) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Product) { - toSerialize["product"] = o.Product - } if !IsNil(o.Buyout) { toSerialize["buyout"] = o.Buyout } @@ -362,9 +311,6 @@ func (o PortSettings) ToMap() (map[string]interface{}, error) { if !IsNil(o.Layer3Enabled) { toSerialize["layer3Enabled"] = o.Layer3Enabled } - if !IsNil(o.ProductCode) { - toSerialize["productCode"] = o.ProductCode - } if !IsNil(o.SharedPortType) { toSerialize["sharedPortType"] = o.SharedPortType } @@ -396,12 +342,10 @@ func (o *PortSettings) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "product") delete(additionalProperties, "buyout") delete(additionalProperties, "viewPortPermission") delete(additionalProperties, "placeVcOrderPermission") delete(additionalProperties, "layer3Enabled") - delete(additionalProperties, "productCode") delete(additionalProperties, "sharedPortType") delete(additionalProperties, "sharedPortProduct") delete(additionalProperties, "packageType") diff --git a/services/fabricv4/model_port_settings_package_type.go b/services/fabricv4/model_port_settings_package_type.go index 4b121946..78f96a1d 100644 --- a/services/fabricv4/model_port_settings_package_type.go +++ b/services/fabricv4/model_port_settings_package_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +18,15 @@ type PortSettingsPackageType string // List of PortSettings_packageType const ( PORTSETTINGSPACKAGETYPE_STANDARD PortSettingsPackageType = "STANDARD" - PORTSETTINGSPACKAGETYPE_UNTAGGED PortSettingsPackageType = "UNTAGGED" PORTSETTINGSPACKAGETYPE_UNLIMITED PortSettingsPackageType = "UNLIMITED" - PORTSETTINGSPACKAGETYPE_UNLIMITED_PLUS PortSettingsPackageType = "UNLIMITED PLUS" + PORTSETTINGSPACKAGETYPE_UNLIMITED_PLUS PortSettingsPackageType = "UNLIMITED_PLUS" ) // All allowed values of PortSettingsPackageType enum var AllowedPortSettingsPackageTypeEnumValues = []PortSettingsPackageType{ "STANDARD", - "UNTAGGED", "UNLIMITED", - "UNLIMITED PLUS", + "UNLIMITED_PLUS", } func (v *PortSettingsPackageType) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_port_settings_shared_port_product.go b/services/fabricv4/model_port_settings_shared_port_product.go index 317890e3..e9203ee4 100644 --- a/services/fabricv4/model_port_settings_shared_port_product.go +++ b/services/fabricv4/model_port_settings_shared_port_product.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_sort_by.go b/services/fabricv4/model_port_sort_by.go index 62c87d71..2a27a23c 100644 --- a/services/fabricv4/model_port_sort_by.go +++ b/services/fabricv4/model_port_sort_by.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_sort_criteria.go b/services/fabricv4/model_port_sort_criteria.go index e3dad9c0..5ff6a9b1 100644 --- a/services/fabricv4/model_port_sort_criteria.go +++ b/services/fabricv4/model_port_sort_criteria.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_sort_direction.go b/services/fabricv4/model_port_sort_direction.go index e155b604..b277360e 100644 --- a/services/fabricv4/model_port_sort_direction.go +++ b/services/fabricv4/model_port_sort_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_state.go b/services/fabricv4/model_port_state.go index ed60252e..2adb7c4d 100644 --- a/services/fabricv4/model_port_state.go +++ b/services/fabricv4/model_port_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_tether.go b/services/fabricv4/model_port_tether.go index cd35bb60..65fba37d 100644 --- a/services/fabricv4/model_port_tether.go +++ b/services/fabricv4/model_port_tether.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_type.go b/services/fabricv4/model_port_type.go index 440622a9..c71a2c49 100644 --- a/services/fabricv4/model_port_type.go +++ b/services/fabricv4/model_port_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_port_v4_search_request.go b/services/fabricv4/model_port_v4_search_request.go index 0b6f34d5..c8cba5dd 100644 --- a/services/fabricv4/model_port_v4_search_request.go +++ b/services/fabricv4/model_port_v4_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_precision_time_change_operation.go b/services/fabricv4/model_precision_time_change_operation.go index 1697d2df..eebdd98f 100644 --- a/services/fabricv4/model_precision_time_change_operation.go +++ b/services/fabricv4/model_precision_time_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_precision_time_change_operation_op.go b/services/fabricv4/model_precision_time_change_operation_op.go index 50e184a1..98e9b011 100644 --- a/services/fabricv4/model_precision_time_change_operation_op.go +++ b/services/fabricv4/model_precision_time_change_operation_op.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +18,15 @@ type PrecisionTimeChangeOperationOp string // List of precisionTimeChangeOperation_op const ( PRECISIONTIMECHANGEOPERATIONOP_REPLACE PrecisionTimeChangeOperationOp = "replace" + PRECISIONTIMECHANGEOPERATIONOP_ADD PrecisionTimeChangeOperationOp = "add" + PRECISIONTIMECHANGEOPERATIONOP_REMOVE PrecisionTimeChangeOperationOp = "remove" ) // All allowed values of PrecisionTimeChangeOperationOp enum var AllowedPrecisionTimeChangeOperationOpEnumValues = []PrecisionTimeChangeOperationOp{ "replace", + "add", + "remove", } func (v *PrecisionTimeChangeOperationOp) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_precision_time_change_operation_path.go b/services/fabricv4/model_precision_time_change_operation_path.go index 5335fee4..6f46c308 100644 --- a/services/fabricv4/model_precision_time_change_operation_path.go +++ b/services/fabricv4/model_precision_time_change_operation_path.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,14 +17,20 @@ type PrecisionTimeChangeOperationPath string // List of precisionTimeChangeOperation_path const ( - PRECISIONTIMECHANGEOPERATIONPATH_NAME PrecisionTimeChangeOperationPath = "/name" - PRECISIONTIMECHANGEOPERATIONPATH_PACKAGE_CODE PrecisionTimeChangeOperationPath = "/package/code" + PRECISIONTIMECHANGEOPERATIONPATH_NAME PrecisionTimeChangeOperationPath = "/name" + PRECISIONTIMECHANGEOPERATIONPATH_PACKAGE_CODE PrecisionTimeChangeOperationPath = "/package/code" + PRECISIONTIMECHANGEOPERATIONPATH_IPV4 PrecisionTimeChangeOperationPath = "/ipv4" + PRECISIONTIMECHANGEOPERATIONPATH_NTP_ADVANCED_CONFIGURATION PrecisionTimeChangeOperationPath = "/ntpAdvancedConfiguration" + PRECISIONTIMECHANGEOPERATIONPATH_PTP_ADVANCED_CONFIGURATION PrecisionTimeChangeOperationPath = "/ptpAdvancedConfiguration" ) // All allowed values of PrecisionTimeChangeOperationPath enum var AllowedPrecisionTimeChangeOperationPathEnumValues = []PrecisionTimeChangeOperationPath{ "/name", "/package/code", + "/ipv4", + "/ntpAdvancedConfiguration", + "/ptpAdvancedConfiguration", } func (v *PrecisionTimeChangeOperationPath) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_precision_time_order.go b/services/fabricv4/model_precision_time_order.go new file mode 100644 index 00000000..7c5045a8 --- /dev/null +++ b/services/fabricv4/model_precision_time_order.go @@ -0,0 +1,227 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the PrecisionTimeOrder type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PrecisionTimeOrder{} + +// PrecisionTimeOrder Precision Time Order +type PrecisionTimeOrder struct { + // Purchase order number + PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"` + // Customer reference number + CustomerReferenceNumber *string `json:"customerReferenceNumber,omitempty"` + // Order Reference Number + OrderNumber *string `json:"orderNumber,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PrecisionTimeOrder PrecisionTimeOrder + +// NewPrecisionTimeOrder instantiates a new PrecisionTimeOrder 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 NewPrecisionTimeOrder() *PrecisionTimeOrder { + this := PrecisionTimeOrder{} + return &this +} + +// NewPrecisionTimeOrderWithDefaults instantiates a new PrecisionTimeOrder 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 NewPrecisionTimeOrderWithDefaults() *PrecisionTimeOrder { + this := PrecisionTimeOrder{} + return &this +} + +// GetPurchaseOrderNumber returns the PurchaseOrderNumber field value if set, zero value otherwise. +func (o *PrecisionTimeOrder) GetPurchaseOrderNumber() string { + if o == nil || IsNil(o.PurchaseOrderNumber) { + var ret string + return ret + } + return *o.PurchaseOrderNumber +} + +// GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PrecisionTimeOrder) GetPurchaseOrderNumberOk() (*string, bool) { + if o == nil || IsNil(o.PurchaseOrderNumber) { + return nil, false + } + return o.PurchaseOrderNumber, true +} + +// HasPurchaseOrderNumber returns a boolean if a field has been set. +func (o *PrecisionTimeOrder) HasPurchaseOrderNumber() bool { + if o != nil && !IsNil(o.PurchaseOrderNumber) { + return true + } + + return false +} + +// SetPurchaseOrderNumber gets a reference to the given string and assigns it to the PurchaseOrderNumber field. +func (o *PrecisionTimeOrder) SetPurchaseOrderNumber(v string) { + o.PurchaseOrderNumber = &v +} + +// GetCustomerReferenceNumber returns the CustomerReferenceNumber field value if set, zero value otherwise. +func (o *PrecisionTimeOrder) GetCustomerReferenceNumber() string { + if o == nil || IsNil(o.CustomerReferenceNumber) { + var ret string + return ret + } + return *o.CustomerReferenceNumber +} + +// GetCustomerReferenceNumberOk returns a tuple with the CustomerReferenceNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PrecisionTimeOrder) GetCustomerReferenceNumberOk() (*string, bool) { + if o == nil || IsNil(o.CustomerReferenceNumber) { + return nil, false + } + return o.CustomerReferenceNumber, true +} + +// HasCustomerReferenceNumber returns a boolean if a field has been set. +func (o *PrecisionTimeOrder) HasCustomerReferenceNumber() bool { + if o != nil && !IsNil(o.CustomerReferenceNumber) { + return true + } + + return false +} + +// SetCustomerReferenceNumber gets a reference to the given string and assigns it to the CustomerReferenceNumber field. +func (o *PrecisionTimeOrder) SetCustomerReferenceNumber(v string) { + o.CustomerReferenceNumber = &v +} + +// GetOrderNumber returns the OrderNumber field value if set, zero value otherwise. +func (o *PrecisionTimeOrder) GetOrderNumber() string { + if o == nil || IsNil(o.OrderNumber) { + var ret string + return ret + } + return *o.OrderNumber +} + +// GetOrderNumberOk returns a tuple with the OrderNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PrecisionTimeOrder) GetOrderNumberOk() (*string, bool) { + if o == nil || IsNil(o.OrderNumber) { + return nil, false + } + return o.OrderNumber, true +} + +// HasOrderNumber returns a boolean if a field has been set. +func (o *PrecisionTimeOrder) HasOrderNumber() bool { + if o != nil && !IsNil(o.OrderNumber) { + return true + } + + return false +} + +// SetOrderNumber gets a reference to the given string and assigns it to the OrderNumber field. +func (o *PrecisionTimeOrder) SetOrderNumber(v string) { + o.OrderNumber = &v +} + +func (o PrecisionTimeOrder) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PrecisionTimeOrder) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PurchaseOrderNumber) { + toSerialize["purchaseOrderNumber"] = o.PurchaseOrderNumber + } + if !IsNil(o.CustomerReferenceNumber) { + toSerialize["customerReferenceNumber"] = o.CustomerReferenceNumber + } + if !IsNil(o.OrderNumber) { + toSerialize["orderNumber"] = o.OrderNumber + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PrecisionTimeOrder) UnmarshalJSON(data []byte) (err error) { + varPrecisionTimeOrder := _PrecisionTimeOrder{} + + err = json.Unmarshal(data, &varPrecisionTimeOrder) + + if err != nil { + return err + } + + *o = PrecisionTimeOrder(varPrecisionTimeOrder) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "purchaseOrderNumber") + delete(additionalProperties, "customerReferenceNumber") + delete(additionalProperties, "orderNumber") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePrecisionTimeOrder struct { + value *PrecisionTimeOrder + isSet bool +} + +func (v NullablePrecisionTimeOrder) Get() *PrecisionTimeOrder { + return v.value +} + +func (v *NullablePrecisionTimeOrder) Set(val *PrecisionTimeOrder) { + v.value = val + v.isSet = true +} + +func (v NullablePrecisionTimeOrder) IsSet() bool { + return v.isSet +} + +func (v *NullablePrecisionTimeOrder) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePrecisionTimeOrder(val *PrecisionTimeOrder) *NullablePrecisionTimeOrder { + return &NullablePrecisionTimeOrder{value: val, isSet: true} +} + +func (v NullablePrecisionTimeOrder) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePrecisionTimeOrder) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_precision_time_package_request.go b/services/fabricv4/model_precision_time_package_request.go index 34f29a2c..572663a2 100644 --- a/services/fabricv4/model_precision_time_package_request.go +++ b/services/fabricv4/model_precision_time_package_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,10 +15,9 @@ import ( // checks if the PrecisionTimePackageRequest type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PrecisionTimePackageRequest{} -// PrecisionTimePackageRequest EPT Package Request +// PrecisionTimePackageRequest Precision Time Service Level Request type PrecisionTimePackageRequest struct { - Href *string `json:"href,omitempty"` - Code GetTimeServicesPackageByCodePackageCodeParameter `json:"code"` + Code PrecisionTimePackageRequestCode `json:"code"` AdditionalProperties map[string]interface{} } @@ -29,7 +27,7 @@ type _PrecisionTimePackageRequest PrecisionTimePackageRequest // 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 NewPrecisionTimePackageRequest(code GetTimeServicesPackageByCodePackageCodeParameter) *PrecisionTimePackageRequest { +func NewPrecisionTimePackageRequest(code PrecisionTimePackageRequestCode) *PrecisionTimePackageRequest { this := PrecisionTimePackageRequest{} this.Code = code return &this @@ -43,42 +41,10 @@ func NewPrecisionTimePackageRequestWithDefaults() *PrecisionTimePackageRequest { return &this } -// GetHref returns the Href field value if set, zero value otherwise. -func (o *PrecisionTimePackageRequest) 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 *PrecisionTimePackageRequest) 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 *PrecisionTimePackageRequest) 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 *PrecisionTimePackageRequest) SetHref(v string) { - o.Href = &v -} - // GetCode returns the Code field value -func (o *PrecisionTimePackageRequest) GetCode() GetTimeServicesPackageByCodePackageCodeParameter { +func (o *PrecisionTimePackageRequest) GetCode() PrecisionTimePackageRequestCode { if o == nil { - var ret GetTimeServicesPackageByCodePackageCodeParameter + var ret PrecisionTimePackageRequestCode return ret } @@ -87,7 +53,7 @@ func (o *PrecisionTimePackageRequest) GetCode() GetTimeServicesPackageByCodePack // GetCodeOk returns a tuple with the Code field value // and a boolean to check if the value has been set. -func (o *PrecisionTimePackageRequest) GetCodeOk() (*GetTimeServicesPackageByCodePackageCodeParameter, bool) { +func (o *PrecisionTimePackageRequest) GetCodeOk() (*PrecisionTimePackageRequestCode, bool) { if o == nil { return nil, false } @@ -95,7 +61,7 @@ func (o *PrecisionTimePackageRequest) GetCodeOk() (*GetTimeServicesPackageByCode } // SetCode sets field value -func (o *PrecisionTimePackageRequest) SetCode(v GetTimeServicesPackageByCodePackageCodeParameter) { +func (o *PrecisionTimePackageRequest) SetCode(v PrecisionTimePackageRequestCode) { o.Code = v } @@ -109,9 +75,6 @@ func (o PrecisionTimePackageRequest) MarshalJSON() ([]byte, error) { func (o PrecisionTimePackageRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Href) { - toSerialize["href"] = o.Href - } toSerialize["code"] = o.Code for key, value := range o.AdditionalProperties { @@ -156,7 +119,6 @@ func (o *PrecisionTimePackageRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "href") delete(additionalProperties, "code") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_precision_time_package_request_code.go b/services/fabricv4/model_precision_time_package_request_code.go new file mode 100644 index 00000000..7482c31e --- /dev/null +++ b/services/fabricv4/model_precision_time_package_request_code.go @@ -0,0 +1,111 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PrecisionTimePackageRequestCode Precision Time Service Level +type PrecisionTimePackageRequestCode string + +// List of precisionTimePackageRequest_code +const ( + PRECISIONTIMEPACKAGEREQUESTCODE_NTP_STANDARD PrecisionTimePackageRequestCode = "NTP_STANDARD" + PRECISIONTIMEPACKAGEREQUESTCODE_NTP_ENTERPRISE PrecisionTimePackageRequestCode = "NTP_ENTERPRISE" + PRECISIONTIMEPACKAGEREQUESTCODE_PTP_STANDARD PrecisionTimePackageRequestCode = "PTP_STANDARD" + PRECISIONTIMEPACKAGEREQUESTCODE_PTP_ENTERPRISE PrecisionTimePackageRequestCode = "PTP_ENTERPRISE" +) + +// All allowed values of PrecisionTimePackageRequestCode enum +var AllowedPrecisionTimePackageRequestCodeEnumValues = []PrecisionTimePackageRequestCode{ + "NTP_STANDARD", + "NTP_ENTERPRISE", + "PTP_STANDARD", + "PTP_ENTERPRISE", +} + +func (v *PrecisionTimePackageRequestCode) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PrecisionTimePackageRequestCode(value) + for _, existing := range AllowedPrecisionTimePackageRequestCodeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PrecisionTimePackageRequestCode", value) +} + +// NewPrecisionTimePackageRequestCodeFromValue returns a pointer to a valid PrecisionTimePackageRequestCode +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPrecisionTimePackageRequestCodeFromValue(v string) (*PrecisionTimePackageRequestCode, error) { + ev := PrecisionTimePackageRequestCode(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PrecisionTimePackageRequestCode: valid values are %v", v, AllowedPrecisionTimePackageRequestCodeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PrecisionTimePackageRequestCode) IsValid() bool { + for _, existing := range AllowedPrecisionTimePackageRequestCodeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to precisionTimePackageRequest_code value +func (v PrecisionTimePackageRequestCode) Ptr() *PrecisionTimePackageRequestCode { + return &v +} + +type NullablePrecisionTimePackageRequestCode struct { + value *PrecisionTimePackageRequestCode + isSet bool +} + +func (v NullablePrecisionTimePackageRequestCode) Get() *PrecisionTimePackageRequestCode { + return v.value +} + +func (v *NullablePrecisionTimePackageRequestCode) Set(val *PrecisionTimePackageRequestCode) { + v.value = val + v.isSet = true +} + +func (v NullablePrecisionTimePackageRequestCode) IsSet() bool { + return v.isSet +} + +func (v *NullablePrecisionTimePackageRequestCode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePrecisionTimePackageRequestCode(val *PrecisionTimePackageRequestCode) *NullablePrecisionTimePackageRequestCode { + return &NullablePrecisionTimePackageRequestCode{value: val, isSet: true} +} + +func (v NullablePrecisionTimePackageRequestCode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePrecisionTimePackageRequestCode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_precision_time_package_response.go b/services/fabricv4/model_precision_time_package_response.go index aa5cd04e..0b8ff7ea 100644 --- a/services/fabricv4/model_precision_time_package_response.go +++ b/services/fabricv4/model_precision_time_package_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,18 +17,26 @@ var _ MappedNullable = &PrecisionTimePackageResponse{} // PrecisionTimePackageResponse EPT Service Package Information type PrecisionTimePackageResponse struct { - Href *string `json:"href,omitempty"` - Code GetTimeServicesPackageByCodePackageCodeParameter `json:"code"` - Type *PrecisionTimePackageResponseType `json:"type,omitempty"` - Bandwidth *int32 `json:"bandwidth,omitempty"` - ClientsPerSecondMax *int32 `json:"clientsPerSecondMax,omitempty"` - RedundancySupported *bool `json:"redundancySupported,omitempty"` - MultiSubnetSupported *bool `json:"multiSubnetSupported,omitempty"` - AccuracyUnit *string `json:"accuracyUnit,omitempty"` - AccuracySla *int32 `json:"accuracySla,omitempty"` - AccuracyAvgMin *int32 `json:"accuracyAvgMin,omitempty"` - AccuracyAvgMax *int32 `json:"accuracyAvgMax,omitempty"` - Changelog *Changelog `json:"changelog,omitempty"` + Href *string `json:"href,omitempty"` + Type PrecisionTimePackageResponseType `json:"type"` + Code GetTimeServicesPackageByCodePackageCodeParameter `json:"code"` + // Connection bandwidth in Mbps. + Bandwidth int32 `json:"bandwidth"` + // Max. number of clients that can be synchronized per second at a packet rate of 1 per second. + ClientsPerSecondMax *int32 `json:"clientsPerSecondMax,omitempty"` + // Is Redundant virtual connection supported for the package code. + RedundancySupported *bool `json:"redundancySupported,omitempty"` + // Is Multiple subnet supported for the package code. + MultiSubnetSupported *bool `json:"multiSubnetSupported,omitempty"` + // Accuracy SLA unit. + AccuracySlaUnit *string `json:"accuracySlaUnit,omitempty"` + // Accuracy SLA for the package code, -1 value denotes the accuracySla is not published. + AccuracySla *int32 `json:"accuracySla,omitempty"` + // Typical minimum Accuracy for the package code. + AccuracySlaMin *int32 `json:"accuracySlaMin,omitempty"` + // Typical maximum Accuracy for the package code. + AccuracySlaMax *int32 `json:"accuracySlaMax,omitempty"` + Changelog *Changelog `json:"changelog,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,9 +46,11 @@ type _PrecisionTimePackageResponse PrecisionTimePackageResponse // 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 NewPrecisionTimePackageResponse(code GetTimeServicesPackageByCodePackageCodeParameter) *PrecisionTimePackageResponse { +func NewPrecisionTimePackageResponse(type_ PrecisionTimePackageResponseType, code GetTimeServicesPackageByCodePackageCodeParameter, bandwidth int32) *PrecisionTimePackageResponse { this := PrecisionTimePackageResponse{} + this.Type = type_ this.Code = code + this.Bandwidth = bandwidth return &this } @@ -85,92 +94,76 @@ func (o *PrecisionTimePackageResponse) SetHref(v string) { o.Href = &v } -// GetCode returns the Code field value -func (o *PrecisionTimePackageResponse) GetCode() GetTimeServicesPackageByCodePackageCodeParameter { +// GetType returns the Type field value +func (o *PrecisionTimePackageResponse) GetType() PrecisionTimePackageResponseType { if o == nil { - var ret GetTimeServicesPackageByCodePackageCodeParameter + var ret PrecisionTimePackageResponseType return ret } - return o.Code + return o.Type } -// GetCodeOk returns a tuple with the Code field value +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *PrecisionTimePackageResponse) GetCodeOk() (*GetTimeServicesPackageByCodePackageCodeParameter, bool) { +func (o *PrecisionTimePackageResponse) GetTypeOk() (*PrecisionTimePackageResponseType, bool) { if o == nil { return nil, false } - return &o.Code, true + return &o.Type, true } -// SetCode sets field value -func (o *PrecisionTimePackageResponse) SetCode(v GetTimeServicesPackageByCodePackageCodeParameter) { - o.Code = v +// SetType sets field value +func (o *PrecisionTimePackageResponse) SetType(v PrecisionTimePackageResponseType) { + o.Type = v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PrecisionTimePackageResponse) GetType() PrecisionTimePackageResponseType { - if o == nil || IsNil(o.Type) { - var ret PrecisionTimePackageResponseType +// GetCode returns the Code field value +func (o *PrecisionTimePackageResponse) GetCode() GetTimeServicesPackageByCodePackageCodeParameter { + if o == nil { + var ret GetTimeServicesPackageByCodePackageCodeParameter return ret } - return *o.Type + + return o.Code } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetCodeOk returns a tuple with the Code field value // and a boolean to check if the value has been set. -func (o *PrecisionTimePackageResponse) GetTypeOk() (*PrecisionTimePackageResponseType, bool) { - if o == nil || IsNil(o.Type) { +func (o *PrecisionTimePackageResponse) GetCodeOk() (*GetTimeServicesPackageByCodePackageCodeParameter, bool) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *PrecisionTimePackageResponse) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Code, true } -// SetType gets a reference to the given PrecisionTimePackageResponseType and assigns it to the Type field. -func (o *PrecisionTimePackageResponse) SetType(v PrecisionTimePackageResponseType) { - o.Type = &v +// SetCode sets field value +func (o *PrecisionTimePackageResponse) SetCode(v GetTimeServicesPackageByCodePackageCodeParameter) { + o.Code = v } -// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +// GetBandwidth returns the Bandwidth field value func (o *PrecisionTimePackageResponse) GetBandwidth() int32 { - if o == nil || IsNil(o.Bandwidth) { + if o == nil { var ret int32 return ret } - return *o.Bandwidth + + return o.Bandwidth } -// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise +// GetBandwidthOk returns a tuple with the Bandwidth field value // and a boolean to check if the value has been set. func (o *PrecisionTimePackageResponse) GetBandwidthOk() (*int32, bool) { - if o == nil || IsNil(o.Bandwidth) { + if o == nil { return nil, false } - return o.Bandwidth, true -} - -// HasBandwidth returns a boolean if a field has been set. -func (o *PrecisionTimePackageResponse) HasBandwidth() bool { - if o != nil && !IsNil(o.Bandwidth) { - return true - } - - return false + return &o.Bandwidth, true } -// SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. +// SetBandwidth sets field value func (o *PrecisionTimePackageResponse) SetBandwidth(v int32) { - o.Bandwidth = &v + o.Bandwidth = v } // GetClientsPerSecondMax returns the ClientsPerSecondMax field value if set, zero value otherwise. @@ -269,36 +262,36 @@ func (o *PrecisionTimePackageResponse) SetMultiSubnetSupported(v bool) { o.MultiSubnetSupported = &v } -// GetAccuracyUnit returns the AccuracyUnit field value if set, zero value otherwise. -func (o *PrecisionTimePackageResponse) GetAccuracyUnit() string { - if o == nil || IsNil(o.AccuracyUnit) { +// GetAccuracySlaUnit returns the AccuracySlaUnit field value if set, zero value otherwise. +func (o *PrecisionTimePackageResponse) GetAccuracySlaUnit() string { + if o == nil || IsNil(o.AccuracySlaUnit) { var ret string return ret } - return *o.AccuracyUnit + return *o.AccuracySlaUnit } -// GetAccuracyUnitOk returns a tuple with the AccuracyUnit field value if set, nil otherwise +// GetAccuracySlaUnitOk returns a tuple with the AccuracySlaUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimePackageResponse) GetAccuracyUnitOk() (*string, bool) { - if o == nil || IsNil(o.AccuracyUnit) { +func (o *PrecisionTimePackageResponse) GetAccuracySlaUnitOk() (*string, bool) { + if o == nil || IsNil(o.AccuracySlaUnit) { return nil, false } - return o.AccuracyUnit, true + return o.AccuracySlaUnit, true } -// HasAccuracyUnit returns a boolean if a field has been set. -func (o *PrecisionTimePackageResponse) HasAccuracyUnit() bool { - if o != nil && !IsNil(o.AccuracyUnit) { +// HasAccuracySlaUnit returns a boolean if a field has been set. +func (o *PrecisionTimePackageResponse) HasAccuracySlaUnit() bool { + if o != nil && !IsNil(o.AccuracySlaUnit) { return true } return false } -// SetAccuracyUnit gets a reference to the given string and assigns it to the AccuracyUnit field. -func (o *PrecisionTimePackageResponse) SetAccuracyUnit(v string) { - o.AccuracyUnit = &v +// SetAccuracySlaUnit gets a reference to the given string and assigns it to the AccuracySlaUnit field. +func (o *PrecisionTimePackageResponse) SetAccuracySlaUnit(v string) { + o.AccuracySlaUnit = &v } // GetAccuracySla returns the AccuracySla field value if set, zero value otherwise. @@ -333,68 +326,68 @@ func (o *PrecisionTimePackageResponse) SetAccuracySla(v int32) { o.AccuracySla = &v } -// GetAccuracyAvgMin returns the AccuracyAvgMin field value if set, zero value otherwise. -func (o *PrecisionTimePackageResponse) GetAccuracyAvgMin() int32 { - if o == nil || IsNil(o.AccuracyAvgMin) { +// GetAccuracySlaMin returns the AccuracySlaMin field value if set, zero value otherwise. +func (o *PrecisionTimePackageResponse) GetAccuracySlaMin() int32 { + if o == nil || IsNil(o.AccuracySlaMin) { var ret int32 return ret } - return *o.AccuracyAvgMin + return *o.AccuracySlaMin } -// GetAccuracyAvgMinOk returns a tuple with the AccuracyAvgMin field value if set, nil otherwise +// GetAccuracySlaMinOk returns a tuple with the AccuracySlaMin field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimePackageResponse) GetAccuracyAvgMinOk() (*int32, bool) { - if o == nil || IsNil(o.AccuracyAvgMin) { +func (o *PrecisionTimePackageResponse) GetAccuracySlaMinOk() (*int32, bool) { + if o == nil || IsNil(o.AccuracySlaMin) { return nil, false } - return o.AccuracyAvgMin, true + return o.AccuracySlaMin, true } -// HasAccuracyAvgMin returns a boolean if a field has been set. -func (o *PrecisionTimePackageResponse) HasAccuracyAvgMin() bool { - if o != nil && !IsNil(o.AccuracyAvgMin) { +// HasAccuracySlaMin returns a boolean if a field has been set. +func (o *PrecisionTimePackageResponse) HasAccuracySlaMin() bool { + if o != nil && !IsNil(o.AccuracySlaMin) { return true } return false } -// SetAccuracyAvgMin gets a reference to the given int32 and assigns it to the AccuracyAvgMin field. -func (o *PrecisionTimePackageResponse) SetAccuracyAvgMin(v int32) { - o.AccuracyAvgMin = &v +// SetAccuracySlaMin gets a reference to the given int32 and assigns it to the AccuracySlaMin field. +func (o *PrecisionTimePackageResponse) SetAccuracySlaMin(v int32) { + o.AccuracySlaMin = &v } -// GetAccuracyAvgMax returns the AccuracyAvgMax field value if set, zero value otherwise. -func (o *PrecisionTimePackageResponse) GetAccuracyAvgMax() int32 { - if o == nil || IsNil(o.AccuracyAvgMax) { +// GetAccuracySlaMax returns the AccuracySlaMax field value if set, zero value otherwise. +func (o *PrecisionTimePackageResponse) GetAccuracySlaMax() int32 { + if o == nil || IsNil(o.AccuracySlaMax) { var ret int32 return ret } - return *o.AccuracyAvgMax + return *o.AccuracySlaMax } -// GetAccuracyAvgMaxOk returns a tuple with the AccuracyAvgMax field value if set, nil otherwise +// GetAccuracySlaMaxOk returns a tuple with the AccuracySlaMax field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimePackageResponse) GetAccuracyAvgMaxOk() (*int32, bool) { - if o == nil || IsNil(o.AccuracyAvgMax) { +func (o *PrecisionTimePackageResponse) GetAccuracySlaMaxOk() (*int32, bool) { + if o == nil || IsNil(o.AccuracySlaMax) { return nil, false } - return o.AccuracyAvgMax, true + return o.AccuracySlaMax, true } -// HasAccuracyAvgMax returns a boolean if a field has been set. -func (o *PrecisionTimePackageResponse) HasAccuracyAvgMax() bool { - if o != nil && !IsNil(o.AccuracyAvgMax) { +// HasAccuracySlaMax returns a boolean if a field has been set. +func (o *PrecisionTimePackageResponse) HasAccuracySlaMax() bool { + if o != nil && !IsNil(o.AccuracySlaMax) { return true } return false } -// SetAccuracyAvgMax gets a reference to the given int32 and assigns it to the AccuracyAvgMax field. -func (o *PrecisionTimePackageResponse) SetAccuracyAvgMax(v int32) { - o.AccuracyAvgMax = &v +// SetAccuracySlaMax gets a reference to the given int32 and assigns it to the AccuracySlaMax field. +func (o *PrecisionTimePackageResponse) SetAccuracySlaMax(v int32) { + o.AccuracySlaMax = &v } // GetChangelog returns the Changelog field value if set, zero value otherwise. @@ -442,13 +435,9 @@ func (o PrecisionTimePackageResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Href) { toSerialize["href"] = o.Href } + toSerialize["type"] = o.Type toSerialize["code"] = o.Code - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Bandwidth) { - toSerialize["bandwidth"] = o.Bandwidth - } + toSerialize["bandwidth"] = o.Bandwidth if !IsNil(o.ClientsPerSecondMax) { toSerialize["clientsPerSecondMax"] = o.ClientsPerSecondMax } @@ -458,17 +447,17 @@ func (o PrecisionTimePackageResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.MultiSubnetSupported) { toSerialize["multiSubnetSupported"] = o.MultiSubnetSupported } - if !IsNil(o.AccuracyUnit) { - toSerialize["accuracyUnit"] = o.AccuracyUnit + if !IsNil(o.AccuracySlaUnit) { + toSerialize["accuracySlaUnit"] = o.AccuracySlaUnit } if !IsNil(o.AccuracySla) { toSerialize["accuracySla"] = o.AccuracySla } - if !IsNil(o.AccuracyAvgMin) { - toSerialize["accuracyAvgMin"] = o.AccuracyAvgMin + if !IsNil(o.AccuracySlaMin) { + toSerialize["accuracySlaMin"] = o.AccuracySlaMin } - if !IsNil(o.AccuracyAvgMax) { - toSerialize["accuracyAvgMax"] = o.AccuracyAvgMax + if !IsNil(o.AccuracySlaMax) { + toSerialize["accuracySlaMax"] = o.AccuracySlaMax } if !IsNil(o.Changelog) { toSerialize["changelog"] = o.Changelog @@ -486,7 +475,9 @@ func (o *PrecisionTimePackageResponse) UnmarshalJSON(data []byte) (err error) { // 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", "code", + "bandwidth", } allProperties := make(map[string]interface{}) @@ -517,16 +508,16 @@ func (o *PrecisionTimePackageResponse) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "href") - delete(additionalProperties, "code") delete(additionalProperties, "type") + delete(additionalProperties, "code") delete(additionalProperties, "bandwidth") delete(additionalProperties, "clientsPerSecondMax") delete(additionalProperties, "redundancySupported") delete(additionalProperties, "multiSubnetSupported") - delete(additionalProperties, "accuracyUnit") + delete(additionalProperties, "accuracySlaUnit") delete(additionalProperties, "accuracySla") - delete(additionalProperties, "accuracyAvgMin") - delete(additionalProperties, "accuracyAvgMax") + delete(additionalProperties, "accuracySlaMin") + delete(additionalProperties, "accuracySlaMax") delete(additionalProperties, "changelog") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_precision_time_package_response_type.go b/services/fabricv4/model_precision_time_package_response_type.go index f882d55e..c9c85f69 100644 --- a/services/fabricv4/model_precision_time_package_response_type.go +++ b/services/fabricv4/model_precision_time_package_response_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_precision_time_service_connections_response.go b/services/fabricv4/model_precision_time_service_connections_response.go index e58674d8..e17b97c2 100644 --- a/services/fabricv4/model_precision_time_service_connections_response.go +++ b/services/fabricv4/model_precision_time_service_connections_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_precision_time_service_create_response.go b/services/fabricv4/model_precision_time_service_create_response.go deleted file mode 100644 index 7bdbfc43..00000000 --- a/services/fabricv4/model_precision_time_service_create_response.go +++ /dev/null @@ -1,534 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// checks if the PrecisionTimeServiceCreateResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PrecisionTimeServiceCreateResponse{} - -// PrecisionTimeServiceCreateResponse EPT service instance -type PrecisionTimeServiceCreateResponse struct { - Type PrecisionTimeServiceCreateResponseType `json:"type"` - Href string `json:"href"` - // uuid of the ept service - Uuid string `json:"uuid"` - // name of the ept service - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - State PrecisionTimeServiceCreateResponseState `json:"state"` - Package PrecisionTimePackageResponse `json:"package"` - // fabric l2 connections used for the ept service - Connections []FabricConnectionUuid `json:"connections,omitempty"` - Ipv4 Ipv4 `json:"ipv4"` - Account *Account `json:"account,omitempty"` - AdvanceConfiguration *AdvanceConfiguration `json:"advanceConfiguration,omitempty"` - Project *Project `json:"project,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _PrecisionTimeServiceCreateResponse PrecisionTimeServiceCreateResponse - -// NewPrecisionTimeServiceCreateResponse instantiates a new PrecisionTimeServiceCreateResponse 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 NewPrecisionTimeServiceCreateResponse(type_ PrecisionTimeServiceCreateResponseType, href string, uuid string, state PrecisionTimeServiceCreateResponseState, package_ PrecisionTimePackageResponse, ipv4 Ipv4) *PrecisionTimeServiceCreateResponse { - this := PrecisionTimeServiceCreateResponse{} - this.Type = type_ - this.Href = href - this.Uuid = uuid - this.State = state - this.Package = package_ - this.Ipv4 = ipv4 - return &this -} - -// NewPrecisionTimeServiceCreateResponseWithDefaults instantiates a new PrecisionTimeServiceCreateResponse 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 NewPrecisionTimeServiceCreateResponseWithDefaults() *PrecisionTimeServiceCreateResponse { - this := PrecisionTimeServiceCreateResponse{} - return &this -} - -// GetType returns the Type field value -func (o *PrecisionTimeServiceCreateResponse) GetType() PrecisionTimeServiceCreateResponseType { - if o == nil { - var ret PrecisionTimeServiceCreateResponseType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetTypeOk() (*PrecisionTimeServiceCreateResponseType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *PrecisionTimeServiceCreateResponse) SetType(v PrecisionTimeServiceCreateResponseType) { - o.Type = v -} - -// GetHref returns the Href field value -func (o *PrecisionTimeServiceCreateResponse) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *PrecisionTimeServiceCreateResponse) SetHref(v string) { - o.Href = v -} - -// GetUuid returns the Uuid field value -func (o *PrecisionTimeServiceCreateResponse) GetUuid() string { - if o == nil { - var ret string - return ret - } - - return o.Uuid -} - -// GetUuidOk returns a tuple with the Uuid field value -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetUuidOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Uuid, true -} - -// SetUuid sets field value -func (o *PrecisionTimeServiceCreateResponse) SetUuid(v string) { - o.Uuid = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *PrecisionTimeServiceCreateResponse) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *PrecisionTimeServiceCreateResponse) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *PrecisionTimeServiceCreateResponse) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *PrecisionTimeServiceCreateResponse) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *PrecisionTimeServiceCreateResponse) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *PrecisionTimeServiceCreateResponse) SetDescription(v string) { - o.Description = &v -} - -// GetState returns the State field value -func (o *PrecisionTimeServiceCreateResponse) GetState() PrecisionTimeServiceCreateResponseState { - if o == nil { - var ret PrecisionTimeServiceCreateResponseState - return ret - } - - return o.State -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetStateOk() (*PrecisionTimeServiceCreateResponseState, bool) { - if o == nil { - return nil, false - } - return &o.State, true -} - -// SetState sets field value -func (o *PrecisionTimeServiceCreateResponse) SetState(v PrecisionTimeServiceCreateResponseState) { - o.State = v -} - -// GetPackage returns the Package field value -func (o *PrecisionTimeServiceCreateResponse) GetPackage() PrecisionTimePackageResponse { - if o == nil { - var ret PrecisionTimePackageResponse - return ret - } - - return o.Package -} - -// GetPackageOk returns a tuple with the Package field value -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetPackageOk() (*PrecisionTimePackageResponse, bool) { - if o == nil { - return nil, false - } - return &o.Package, true -} - -// SetPackage sets field value -func (o *PrecisionTimeServiceCreateResponse) SetPackage(v PrecisionTimePackageResponse) { - o.Package = v -} - -// GetConnections returns the Connections field value if set, zero value otherwise. -func (o *PrecisionTimeServiceCreateResponse) GetConnections() []FabricConnectionUuid { - if o == nil || IsNil(o.Connections) { - var ret []FabricConnectionUuid - return ret - } - return o.Connections -} - -// GetConnectionsOk returns a tuple with the Connections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetConnectionsOk() ([]FabricConnectionUuid, bool) { - if o == nil || IsNil(o.Connections) { - return nil, false - } - return o.Connections, true -} - -// HasConnections returns a boolean if a field has been set. -func (o *PrecisionTimeServiceCreateResponse) HasConnections() bool { - if o != nil && !IsNil(o.Connections) { - return true - } - - return false -} - -// SetConnections gets a reference to the given []FabricConnectionUuid and assigns it to the Connections field. -func (o *PrecisionTimeServiceCreateResponse) SetConnections(v []FabricConnectionUuid) { - o.Connections = v -} - -// GetIpv4 returns the Ipv4 field value -func (o *PrecisionTimeServiceCreateResponse) GetIpv4() Ipv4 { - if o == nil { - var ret Ipv4 - return ret - } - - return o.Ipv4 -} - -// GetIpv4Ok returns a tuple with the Ipv4 field value -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetIpv4Ok() (*Ipv4, bool) { - if o == nil { - return nil, false - } - return &o.Ipv4, true -} - -// SetIpv4 sets field value -func (o *PrecisionTimeServiceCreateResponse) SetIpv4(v Ipv4) { - o.Ipv4 = v -} - -// GetAccount returns the Account field value if set, zero value otherwise. -func (o *PrecisionTimeServiceCreateResponse) GetAccount() Account { - if o == nil || IsNil(o.Account) { - var ret Account - return ret - } - return *o.Account -} - -// GetAccountOk returns a tuple with the Account field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetAccountOk() (*Account, bool) { - if o == nil || IsNil(o.Account) { - return nil, false - } - return o.Account, true -} - -// HasAccount returns a boolean if a field has been set. -func (o *PrecisionTimeServiceCreateResponse) HasAccount() bool { - if o != nil && !IsNil(o.Account) { - return true - } - - return false -} - -// SetAccount gets a reference to the given Account and assigns it to the Account field. -func (o *PrecisionTimeServiceCreateResponse) SetAccount(v Account) { - o.Account = &v -} - -// GetAdvanceConfiguration returns the AdvanceConfiguration field value if set, zero value otherwise. -func (o *PrecisionTimeServiceCreateResponse) GetAdvanceConfiguration() AdvanceConfiguration { - if o == nil || IsNil(o.AdvanceConfiguration) { - var ret AdvanceConfiguration - return ret - } - return *o.AdvanceConfiguration -} - -// GetAdvanceConfigurationOk returns a tuple with the AdvanceConfiguration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceCreateResponse) GetAdvanceConfigurationOk() (*AdvanceConfiguration, bool) { - if o == nil || IsNil(o.AdvanceConfiguration) { - return nil, false - } - return o.AdvanceConfiguration, true -} - -// HasAdvanceConfiguration returns a boolean if a field has been set. -func (o *PrecisionTimeServiceCreateResponse) HasAdvanceConfiguration() bool { - if o != nil && !IsNil(o.AdvanceConfiguration) { - return true - } - - return false -} - -// SetAdvanceConfiguration gets a reference to the given AdvanceConfiguration and assigns it to the AdvanceConfiguration field. -func (o *PrecisionTimeServiceCreateResponse) SetAdvanceConfiguration(v AdvanceConfiguration) { - o.AdvanceConfiguration = &v -} - -// GetProject returns the Project field value if set, zero value otherwise. -func (o *PrecisionTimeServiceCreateResponse) 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 *PrecisionTimeServiceCreateResponse) 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 *PrecisionTimeServiceCreateResponse) 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 *PrecisionTimeServiceCreateResponse) SetProject(v Project) { - o.Project = &v -} - -func (o PrecisionTimeServiceCreateResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PrecisionTimeServiceCreateResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["href"] = o.Href - toSerialize["uuid"] = o.Uuid - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } - toSerialize["state"] = o.State - toSerialize["package"] = o.Package - if !IsNil(o.Connections) { - toSerialize["connections"] = o.Connections - } - toSerialize["ipv4"] = o.Ipv4 - if !IsNil(o.Account) { - toSerialize["account"] = o.Account - } - if !IsNil(o.AdvanceConfiguration) { - toSerialize["advanceConfiguration"] = o.AdvanceConfiguration - } - if !IsNil(o.Project) { - toSerialize["project"] = o.Project - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PrecisionTimeServiceCreateResponse) 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", - "href", - "uuid", - "state", - "package", - "ipv4", - } - - 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) - } - } - - varPrecisionTimeServiceCreateResponse := _PrecisionTimeServiceCreateResponse{} - - err = json.Unmarshal(data, &varPrecisionTimeServiceCreateResponse) - - if err != nil { - return err - } - - *o = PrecisionTimeServiceCreateResponse(varPrecisionTimeServiceCreateResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "href") - delete(additionalProperties, "uuid") - delete(additionalProperties, "name") - delete(additionalProperties, "description") - delete(additionalProperties, "state") - delete(additionalProperties, "package") - delete(additionalProperties, "connections") - delete(additionalProperties, "ipv4") - delete(additionalProperties, "account") - delete(additionalProperties, "advanceConfiguration") - delete(additionalProperties, "project") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePrecisionTimeServiceCreateResponse struct { - value *PrecisionTimeServiceCreateResponse - isSet bool -} - -func (v NullablePrecisionTimeServiceCreateResponse) Get() *PrecisionTimeServiceCreateResponse { - return v.value -} - -func (v *NullablePrecisionTimeServiceCreateResponse) Set(val *PrecisionTimeServiceCreateResponse) { - v.value = val - v.isSet = true -} - -func (v NullablePrecisionTimeServiceCreateResponse) IsSet() bool { - return v.isSet -} - -func (v *NullablePrecisionTimeServiceCreateResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePrecisionTimeServiceCreateResponse(val *PrecisionTimeServiceCreateResponse) *NullablePrecisionTimeServiceCreateResponse { - return &NullablePrecisionTimeServiceCreateResponse{value: val, isSet: true} -} - -func (v NullablePrecisionTimeServiceCreateResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePrecisionTimeServiceCreateResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_precision_time_service_create_response_state.go b/services/fabricv4/model_precision_time_service_create_response_state.go deleted file mode 100644 index 8a18892c..00000000 --- a/services/fabricv4/model_precision_time_service_create_response_state.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// PrecisionTimeServiceCreateResponseState indicate service state -type PrecisionTimeServiceCreateResponseState string - -// List of precisionTimeServiceCreateResponse_state -const ( - PRECISIONTIMESERVICECREATERESPONSESTATE_PROVISIONED PrecisionTimeServiceCreateResponseState = "PROVISIONED" - PRECISIONTIMESERVICECREATERESPONSESTATE_PROVISIONING PrecisionTimeServiceCreateResponseState = "PROVISIONING" - PRECISIONTIMESERVICECREATERESPONSESTATE_PROVISIONING_FAILED PrecisionTimeServiceCreateResponseState = "PROVISIONING_FAILED" - PRECISIONTIMESERVICECREATERESPONSESTATE_CONFIGURING PrecisionTimeServiceCreateResponseState = "CONFIGURING" - PRECISIONTIMESERVICECREATERESPONSESTATE_CANCELLED PrecisionTimeServiceCreateResponseState = "CANCELLED" - PRECISIONTIMESERVICECREATERESPONSESTATE_DEPROVISIONING_FAILED PrecisionTimeServiceCreateResponseState = "DEPROVISIONING_FAILED" - PRECISIONTIMESERVICECREATERESPONSESTATE_PENDING_CONFIGURATION PrecisionTimeServiceCreateResponseState = "PENDING_CONFIGURATION" - PRECISIONTIMESERVICECREATERESPONSESTATE_DEPROVISIONED PrecisionTimeServiceCreateResponseState = "DEPROVISIONED" - PRECISIONTIMESERVICECREATERESPONSESTATE_CONFIGURING_FAILED PrecisionTimeServiceCreateResponseState = "CONFIGURING_FAILED" - PRECISIONTIMESERVICECREATERESPONSESTATE_DEPROVISIONING PrecisionTimeServiceCreateResponseState = "DEPROVISIONING" -) - -// All allowed values of PrecisionTimeServiceCreateResponseState enum -var AllowedPrecisionTimeServiceCreateResponseStateEnumValues = []PrecisionTimeServiceCreateResponseState{ - "PROVISIONED", - "PROVISIONING", - "PROVISIONING_FAILED", - "CONFIGURING", - "CANCELLED", - "DEPROVISIONING_FAILED", - "PENDING_CONFIGURATION", - "DEPROVISIONED", - "CONFIGURING_FAILED", - "DEPROVISIONING", -} - -func (v *PrecisionTimeServiceCreateResponseState) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PrecisionTimeServiceCreateResponseState(value) - for _, existing := range AllowedPrecisionTimeServiceCreateResponseStateEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PrecisionTimeServiceCreateResponseState", value) -} - -// NewPrecisionTimeServiceCreateResponseStateFromValue returns a pointer to a valid PrecisionTimeServiceCreateResponseState -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPrecisionTimeServiceCreateResponseStateFromValue(v string) (*PrecisionTimeServiceCreateResponseState, error) { - ev := PrecisionTimeServiceCreateResponseState(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PrecisionTimeServiceCreateResponseState: valid values are %v", v, AllowedPrecisionTimeServiceCreateResponseStateEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PrecisionTimeServiceCreateResponseState) IsValid() bool { - for _, existing := range AllowedPrecisionTimeServiceCreateResponseStateEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to precisionTimeServiceCreateResponse_state value -func (v PrecisionTimeServiceCreateResponseState) Ptr() *PrecisionTimeServiceCreateResponseState { - return &v -} - -type NullablePrecisionTimeServiceCreateResponseState struct { - value *PrecisionTimeServiceCreateResponseState - isSet bool -} - -func (v NullablePrecisionTimeServiceCreateResponseState) Get() *PrecisionTimeServiceCreateResponseState { - return v.value -} - -func (v *NullablePrecisionTimeServiceCreateResponseState) Set(val *PrecisionTimeServiceCreateResponseState) { - v.value = val - v.isSet = true -} - -func (v NullablePrecisionTimeServiceCreateResponseState) IsSet() bool { - return v.isSet -} - -func (v *NullablePrecisionTimeServiceCreateResponseState) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePrecisionTimeServiceCreateResponseState(val *PrecisionTimeServiceCreateResponseState) *NullablePrecisionTimeServiceCreateResponseState { - return &NullablePrecisionTimeServiceCreateResponseState{value: val, isSet: true} -} - -func (v NullablePrecisionTimeServiceCreateResponseState) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePrecisionTimeServiceCreateResponseState) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_precision_time_service_create_response_type.go b/services/fabricv4/model_precision_time_service_create_response_type.go deleted file mode 100644 index 62def6ea..00000000 --- a/services/fabricv4/model_precision_time_service_create_response_type.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// PrecisionTimeServiceCreateResponseType the model 'PrecisionTimeServiceCreateResponseType' -type PrecisionTimeServiceCreateResponseType string - -// List of precisionTimeServiceCreateResponse_type -const ( - PRECISIONTIMESERVICECREATERESPONSETYPE_NTP PrecisionTimeServiceCreateResponseType = "NTP" - PRECISIONTIMESERVICECREATERESPONSETYPE_PTP PrecisionTimeServiceCreateResponseType = "PTP" -) - -// All allowed values of PrecisionTimeServiceCreateResponseType enum -var AllowedPrecisionTimeServiceCreateResponseTypeEnumValues = []PrecisionTimeServiceCreateResponseType{ - "NTP", - "PTP", -} - -func (v *PrecisionTimeServiceCreateResponseType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PrecisionTimeServiceCreateResponseType(value) - for _, existing := range AllowedPrecisionTimeServiceCreateResponseTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PrecisionTimeServiceCreateResponseType", value) -} - -// NewPrecisionTimeServiceCreateResponseTypeFromValue returns a pointer to a valid PrecisionTimeServiceCreateResponseType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPrecisionTimeServiceCreateResponseTypeFromValue(v string) (*PrecisionTimeServiceCreateResponseType, error) { - ev := PrecisionTimeServiceCreateResponseType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PrecisionTimeServiceCreateResponseType: valid values are %v", v, AllowedPrecisionTimeServiceCreateResponseTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PrecisionTimeServiceCreateResponseType) IsValid() bool { - for _, existing := range AllowedPrecisionTimeServiceCreateResponseTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to precisionTimeServiceCreateResponse_type value -func (v PrecisionTimeServiceCreateResponseType) Ptr() *PrecisionTimeServiceCreateResponseType { - return &v -} - -type NullablePrecisionTimeServiceCreateResponseType struct { - value *PrecisionTimeServiceCreateResponseType - isSet bool -} - -func (v NullablePrecisionTimeServiceCreateResponseType) Get() *PrecisionTimeServiceCreateResponseType { - return v.value -} - -func (v *NullablePrecisionTimeServiceCreateResponseType) Set(val *PrecisionTimeServiceCreateResponseType) { - v.value = val - v.isSet = true -} - -func (v NullablePrecisionTimeServiceCreateResponseType) IsSet() bool { - return v.isSet -} - -func (v *NullablePrecisionTimeServiceCreateResponseType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePrecisionTimeServiceCreateResponseType(val *PrecisionTimeServiceCreateResponseType) *NullablePrecisionTimeServiceCreateResponseType { - return &NullablePrecisionTimeServiceCreateResponseType{value: val, isSet: true} -} - -func (v NullablePrecisionTimeServiceCreateResponseType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePrecisionTimeServiceCreateResponseType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_precision_time_service_packages_response.go b/services/fabricv4/model_precision_time_service_packages_response.go index 09c2bef6..5c6da6f5 100644 --- a/services/fabricv4/model_precision_time_service_packages_response.go +++ b/services/fabricv4/model_precision_time_service_packages_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_precision_time_service_request.go b/services/fabricv4/model_precision_time_service_request.go index 995d51c5..d57a24b6 100644 --- a/services/fabricv4/model_precision_time_service_request.go +++ b/services/fabricv4/model_precision_time_service_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +15,20 @@ import ( // checks if the PrecisionTimeServiceRequest type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PrecisionTimeServiceRequest{} -// PrecisionTimeServiceRequest EPT service instance +// PrecisionTimeServiceRequest Create Precision Time Service Request Schema. type PrecisionTimeServiceRequest struct { - Type PrecisionTimeServiceRequestType `json:"type"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Package PrecisionTimePackageRequest `json:"package"` - Connections []FabricConnectionUuid `json:"connections"` - Ipv4 Ipv4 `json:"ipv4"` - AdvanceConfiguration *AdvanceConfiguration `json:"advanceConfiguration,omitempty"` - Project *Project `json:"project,omitempty"` - AdditionalProperties map[string]interface{} + Type PrecisionTimeServiceRequestType `json:"type"` + // Precision Time Service name. + Name string `json:"name"` + Package PrecisionTimePackageRequest `json:"package"` + Connections []VirtualConnectionUuid `json:"connections"` + Ipv4 Ipv4 `json:"ipv4"` + // NTP Advanced configuration - MD5 Authentication. + NtpAdvancedConfiguration []Md5 `json:"ntpAdvancedConfiguration,omitempty"` + PtpAdvancedConfiguration *PtpAdvanceConfiguration `json:"ptpAdvancedConfiguration,omitempty"` + Project *Project `json:"project,omitempty"` + Order *PrecisionTimeOrder `json:"order,omitempty"` + AdditionalProperties map[string]interface{} } type _PrecisionTimeServiceRequest PrecisionTimeServiceRequest @@ -35,7 +37,7 @@ type _PrecisionTimeServiceRequest PrecisionTimeServiceRequest // 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 NewPrecisionTimeServiceRequest(type_ PrecisionTimeServiceRequestType, name string, package_ PrecisionTimePackageRequest, connections []FabricConnectionUuid, ipv4 Ipv4) *PrecisionTimeServiceRequest { +func NewPrecisionTimeServiceRequest(type_ PrecisionTimeServiceRequestType, name string, package_ PrecisionTimePackageRequest, connections []VirtualConnectionUuid, ipv4 Ipv4) *PrecisionTimeServiceRequest { this := PrecisionTimeServiceRequest{} this.Type = type_ this.Name = name @@ -101,38 +103,6 @@ func (o *PrecisionTimeServiceRequest) SetName(v string) { o.Name = v } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *PrecisionTimeServiceRequest) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceRequest) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *PrecisionTimeServiceRequest) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *PrecisionTimeServiceRequest) SetDescription(v string) { - o.Description = &v -} - // GetPackage returns the Package field value func (o *PrecisionTimeServiceRequest) GetPackage() PrecisionTimePackageRequest { if o == nil { @@ -158,9 +128,9 @@ func (o *PrecisionTimeServiceRequest) SetPackage(v PrecisionTimePackageRequest) } // GetConnections returns the Connections field value -func (o *PrecisionTimeServiceRequest) GetConnections() []FabricConnectionUuid { +func (o *PrecisionTimeServiceRequest) GetConnections() []VirtualConnectionUuid { if o == nil { - var ret []FabricConnectionUuid + var ret []VirtualConnectionUuid return ret } @@ -169,7 +139,7 @@ func (o *PrecisionTimeServiceRequest) GetConnections() []FabricConnectionUuid { // GetConnectionsOk returns a tuple with the Connections field value // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceRequest) GetConnectionsOk() ([]FabricConnectionUuid, bool) { +func (o *PrecisionTimeServiceRequest) GetConnectionsOk() ([]VirtualConnectionUuid, bool) { if o == nil { return nil, false } @@ -177,7 +147,7 @@ func (o *PrecisionTimeServiceRequest) GetConnectionsOk() ([]FabricConnectionUuid } // SetConnections sets field value -func (o *PrecisionTimeServiceRequest) SetConnections(v []FabricConnectionUuid) { +func (o *PrecisionTimeServiceRequest) SetConnections(v []VirtualConnectionUuid) { o.Connections = v } @@ -205,36 +175,68 @@ func (o *PrecisionTimeServiceRequest) SetIpv4(v Ipv4) { o.Ipv4 = v } -// GetAdvanceConfiguration returns the AdvanceConfiguration field value if set, zero value otherwise. -func (o *PrecisionTimeServiceRequest) GetAdvanceConfiguration() AdvanceConfiguration { - if o == nil || IsNil(o.AdvanceConfiguration) { - var ret AdvanceConfiguration +// GetNtpAdvancedConfiguration returns the NtpAdvancedConfiguration field value if set, zero value otherwise. +func (o *PrecisionTimeServiceRequest) GetNtpAdvancedConfiguration() []Md5 { + if o == nil || IsNil(o.NtpAdvancedConfiguration) { + var ret []Md5 return ret } - return *o.AdvanceConfiguration + return o.NtpAdvancedConfiguration } -// GetAdvanceConfigurationOk returns a tuple with the AdvanceConfiguration field value if set, nil otherwise +// GetNtpAdvancedConfigurationOk returns a tuple with the NtpAdvancedConfiguration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceRequest) GetAdvanceConfigurationOk() (*AdvanceConfiguration, bool) { - if o == nil || IsNil(o.AdvanceConfiguration) { +func (o *PrecisionTimeServiceRequest) GetNtpAdvancedConfigurationOk() ([]Md5, bool) { + if o == nil || IsNil(o.NtpAdvancedConfiguration) { return nil, false } - return o.AdvanceConfiguration, true + return o.NtpAdvancedConfiguration, true } -// HasAdvanceConfiguration returns a boolean if a field has been set. -func (o *PrecisionTimeServiceRequest) HasAdvanceConfiguration() bool { - if o != nil && !IsNil(o.AdvanceConfiguration) { +// HasNtpAdvancedConfiguration returns a boolean if a field has been set. +func (o *PrecisionTimeServiceRequest) HasNtpAdvancedConfiguration() bool { + if o != nil && !IsNil(o.NtpAdvancedConfiguration) { return true } return false } -// SetAdvanceConfiguration gets a reference to the given AdvanceConfiguration and assigns it to the AdvanceConfiguration field. -func (o *PrecisionTimeServiceRequest) SetAdvanceConfiguration(v AdvanceConfiguration) { - o.AdvanceConfiguration = &v +// SetNtpAdvancedConfiguration gets a reference to the given []Md5 and assigns it to the NtpAdvancedConfiguration field. +func (o *PrecisionTimeServiceRequest) SetNtpAdvancedConfiguration(v []Md5) { + o.NtpAdvancedConfiguration = v +} + +// GetPtpAdvancedConfiguration returns the PtpAdvancedConfiguration field value if set, zero value otherwise. +func (o *PrecisionTimeServiceRequest) GetPtpAdvancedConfiguration() PtpAdvanceConfiguration { + if o == nil || IsNil(o.PtpAdvancedConfiguration) { + var ret PtpAdvanceConfiguration + return ret + } + return *o.PtpAdvancedConfiguration +} + +// GetPtpAdvancedConfigurationOk returns a tuple with the PtpAdvancedConfiguration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PrecisionTimeServiceRequest) GetPtpAdvancedConfigurationOk() (*PtpAdvanceConfiguration, bool) { + if o == nil || IsNil(o.PtpAdvancedConfiguration) { + return nil, false + } + return o.PtpAdvancedConfiguration, true +} + +// HasPtpAdvancedConfiguration returns a boolean if a field has been set. +func (o *PrecisionTimeServiceRequest) HasPtpAdvancedConfiguration() bool { + if o != nil && !IsNil(o.PtpAdvancedConfiguration) { + return true + } + + return false +} + +// SetPtpAdvancedConfiguration gets a reference to the given PtpAdvanceConfiguration and assigns it to the PtpAdvancedConfiguration field. +func (o *PrecisionTimeServiceRequest) SetPtpAdvancedConfiguration(v PtpAdvanceConfiguration) { + o.PtpAdvancedConfiguration = &v } // GetProject returns the Project field value if set, zero value otherwise. @@ -269,6 +271,38 @@ func (o *PrecisionTimeServiceRequest) SetProject(v Project) { o.Project = &v } +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *PrecisionTimeServiceRequest) GetOrder() PrecisionTimeOrder { + if o == nil || IsNil(o.Order) { + var ret PrecisionTimeOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PrecisionTimeServiceRequest) GetOrderOk() (*PrecisionTimeOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *PrecisionTimeServiceRequest) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given PrecisionTimeOrder and assigns it to the Order field. +func (o *PrecisionTimeServiceRequest) SetOrder(v PrecisionTimeOrder) { + o.Order = &v +} + func (o PrecisionTimeServiceRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -281,18 +315,21 @@ func (o PrecisionTimeServiceRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["name"] = o.Name - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } toSerialize["package"] = o.Package toSerialize["connections"] = o.Connections toSerialize["ipv4"] = o.Ipv4 - if !IsNil(o.AdvanceConfiguration) { - toSerialize["advanceConfiguration"] = o.AdvanceConfiguration + if !IsNil(o.NtpAdvancedConfiguration) { + toSerialize["ntpAdvancedConfiguration"] = o.NtpAdvancedConfiguration + } + if !IsNil(o.PtpAdvancedConfiguration) { + toSerialize["ptpAdvancedConfiguration"] = o.PtpAdvancedConfiguration } if !IsNil(o.Project) { toSerialize["project"] = o.Project } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -342,12 +379,13 @@ func (o *PrecisionTimeServiceRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "type") delete(additionalProperties, "name") - delete(additionalProperties, "description") delete(additionalProperties, "package") delete(additionalProperties, "connections") delete(additionalProperties, "ipv4") - delete(additionalProperties, "advanceConfiguration") + delete(additionalProperties, "ntpAdvancedConfiguration") + delete(additionalProperties, "ptpAdvancedConfiguration") delete(additionalProperties, "project") + delete(additionalProperties, "order") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_precision_time_service_request_type.go b/services/fabricv4/model_precision_time_service_request_type.go index a7189ad8..0a2a5747 100644 --- a/services/fabricv4/model_precision_time_service_request_type.go +++ b/services/fabricv4/model_precision_time_service_request_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +12,7 @@ import ( "fmt" ) -// PrecisionTimeServiceRequestType Indicate the entity is EPT service +// PrecisionTimeServiceRequestType Precision Time Service Type refers to the corresponding Protocol. type PrecisionTimeServiceRequestType string // List of precisionTimeServiceRequest_type diff --git a/services/fabricv4/model_precision_time_service_response.go b/services/fabricv4/model_precision_time_service_response.go index a15b2faa..450c9463 100644 --- a/services/fabricv4/model_precision_time_service_response.go +++ b/services/fabricv4/model_precision_time_service_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,25 +15,28 @@ import ( // checks if the PrecisionTimeServiceResponse type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PrecisionTimeServiceResponse{} -// PrecisionTimeServiceResponse EPT service instance +// PrecisionTimeServiceResponse Precision Time Service Response Schema. type PrecisionTimeServiceResponse struct { - Type PrecisionTimeServiceCreateResponseType `json:"type"` - Href string `json:"href"` - // uuid of the ept service - Uuid string `json:"uuid"` - // name of the ept service - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - State PrecisionTimeServiceCreateResponseState `json:"state"` - Package PrecisionTimePackageResponse `json:"package"` - // fabric l2 connections used for the ept service - Connections []FabricConnectionUuid `json:"connections,omitempty"` - Order Order `json:"order"` - Ipv4 Ipv4 `json:"ipv4"` - AdvanceConfiguration *AdvanceConfiguration `json:"advanceConfiguration,omitempty"` - Project *Project `json:"project,omitempty"` - Account *Account `json:"account,omitempty"` - AdditionalProperties map[string]interface{} + // Precision Time Service URI. + Href string `json:"href"` + Type PrecisionTimeServiceResponseType `json:"type"` + // Precision Time Service Name. + Name *string `json:"name,omitempty"` + // Precision Time Service UUID. + Uuid string `json:"uuid"` + State PrecisionTimeServiceResponseState `json:"state"` + Package PrecisionTimePackageResponse `json:"package"` + // Fabric Connections associated with Precision Time Service. + Connections []VirtualConnectionTimeServiceResponse `json:"connections,omitempty"` + Ipv4 *Ipv4 `json:"ipv4,omitempty"` + // NTP Advanced configuration - MD5 Authentication. + NtpAdvancedConfiguration []Md5 `json:"ntpAdvancedConfiguration,omitempty"` + PtpAdvancedConfiguration *PtpAdvanceConfiguration `json:"ptpAdvancedConfiguration,omitempty"` + Project *Project `json:"project,omitempty"` + Account *SimplifiedAccount `json:"account,omitempty"` + Order *PrecisionTimeOrder `json:"order,omitempty"` + ChangeLog *Changelog `json:"changeLog,omitempty"` + AdditionalProperties map[string]interface{} } type _PrecisionTimeServiceResponse PrecisionTimeServiceResponse @@ -43,15 +45,13 @@ type _PrecisionTimeServiceResponse PrecisionTimeServiceResponse // 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 NewPrecisionTimeServiceResponse(type_ PrecisionTimeServiceCreateResponseType, href string, uuid string, state PrecisionTimeServiceCreateResponseState, package_ PrecisionTimePackageResponse, order Order, ipv4 Ipv4) *PrecisionTimeServiceResponse { +func NewPrecisionTimeServiceResponse(href string, type_ PrecisionTimeServiceResponseType, uuid string, state PrecisionTimeServiceResponseState, package_ PrecisionTimePackageResponse) *PrecisionTimeServiceResponse { this := PrecisionTimeServiceResponse{} - this.Type = type_ this.Href = href + this.Type = type_ this.Uuid = uuid this.State = state this.Package = package_ - this.Order = order - this.Ipv4 = ipv4 return &this } @@ -63,30 +63,6 @@ func NewPrecisionTimeServiceResponseWithDefaults() *PrecisionTimeServiceResponse return &this } -// GetType returns the Type field value -func (o *PrecisionTimeServiceResponse) GetType() PrecisionTimeServiceCreateResponseType { - if o == nil { - var ret PrecisionTimeServiceCreateResponseType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetTypeOk() (*PrecisionTimeServiceCreateResponseType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *PrecisionTimeServiceResponse) SetType(v PrecisionTimeServiceCreateResponseType) { - o.Type = v -} - // GetHref returns the Href field value func (o *PrecisionTimeServiceResponse) GetHref() string { if o == nil { @@ -111,28 +87,28 @@ func (o *PrecisionTimeServiceResponse) SetHref(v string) { o.Href = v } -// GetUuid returns the Uuid field value -func (o *PrecisionTimeServiceResponse) GetUuid() string { +// GetType returns the Type field value +func (o *PrecisionTimeServiceResponse) GetType() PrecisionTimeServiceResponseType { if o == nil { - var ret string + var ret PrecisionTimeServiceResponseType return ret } - return o.Uuid + return o.Type } -// GetUuidOk returns a tuple with the Uuid field value +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetUuidOk() (*string, bool) { +func (o *PrecisionTimeServiceResponse) GetTypeOk() (*PrecisionTimeServiceResponseType, bool) { if o == nil { return nil, false } - return &o.Uuid, true + return &o.Type, true } -// SetUuid sets field value -func (o *PrecisionTimeServiceResponse) SetUuid(v string) { - o.Uuid = v +// SetType sets field value +func (o *PrecisionTimeServiceResponse) SetType(v PrecisionTimeServiceResponseType) { + o.Type = v } // GetName returns the Name field value if set, zero value otherwise. @@ -167,42 +143,34 @@ func (o *PrecisionTimeServiceResponse) SetName(v string) { o.Name = &v } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *PrecisionTimeServiceResponse) GetDescription() string { - if o == nil || IsNil(o.Description) { +// GetUuid returns the Uuid field value +func (o *PrecisionTimeServiceResponse) GetUuid() string { + if o == nil { var ret string return ret } - return *o.Description + + return o.Uuid } -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// GetUuidOk returns a tuple with the Uuid field value // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { +func (o *PrecisionTimeServiceResponse) GetUuidOk() (*string, bool) { + if o == nil { return nil, false } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *PrecisionTimeServiceResponse) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false + return &o.Uuid, true } -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *PrecisionTimeServiceResponse) SetDescription(v string) { - o.Description = &v +// SetUuid sets field value +func (o *PrecisionTimeServiceResponse) SetUuid(v string) { + o.Uuid = v } // GetState returns the State field value -func (o *PrecisionTimeServiceResponse) GetState() PrecisionTimeServiceCreateResponseState { +func (o *PrecisionTimeServiceResponse) GetState() PrecisionTimeServiceResponseState { if o == nil { - var ret PrecisionTimeServiceCreateResponseState + var ret PrecisionTimeServiceResponseState return ret } @@ -211,7 +179,7 @@ func (o *PrecisionTimeServiceResponse) GetState() PrecisionTimeServiceCreateResp // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetStateOk() (*PrecisionTimeServiceCreateResponseState, bool) { +func (o *PrecisionTimeServiceResponse) GetStateOk() (*PrecisionTimeServiceResponseState, bool) { if o == nil { return nil, false } @@ -219,7 +187,7 @@ func (o *PrecisionTimeServiceResponse) GetStateOk() (*PrecisionTimeServiceCreate } // SetState sets field value -func (o *PrecisionTimeServiceResponse) SetState(v PrecisionTimeServiceCreateResponseState) { +func (o *PrecisionTimeServiceResponse) SetState(v PrecisionTimeServiceResponseState) { o.State = v } @@ -248,9 +216,9 @@ func (o *PrecisionTimeServiceResponse) SetPackage(v PrecisionTimePackageResponse } // GetConnections returns the Connections field value if set, zero value otherwise. -func (o *PrecisionTimeServiceResponse) GetConnections() []FabricConnectionUuid { +func (o *PrecisionTimeServiceResponse) GetConnections() []VirtualConnectionTimeServiceResponse { if o == nil || IsNil(o.Connections) { - var ret []FabricConnectionUuid + var ret []VirtualConnectionTimeServiceResponse return ret } return o.Connections @@ -258,7 +226,7 @@ func (o *PrecisionTimeServiceResponse) GetConnections() []FabricConnectionUuid { // GetConnectionsOk returns a tuple with the Connections field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetConnectionsOk() ([]FabricConnectionUuid, bool) { +func (o *PrecisionTimeServiceResponse) GetConnectionsOk() ([]VirtualConnectionTimeServiceResponse, bool) { if o == nil || IsNil(o.Connections) { return nil, false } @@ -274,89 +242,105 @@ func (o *PrecisionTimeServiceResponse) HasConnections() bool { return false } -// SetConnections gets a reference to the given []FabricConnectionUuid and assigns it to the Connections field. -func (o *PrecisionTimeServiceResponse) SetConnections(v []FabricConnectionUuid) { +// SetConnections gets a reference to the given []VirtualConnectionTimeServiceResponse and assigns it to the Connections field. +func (o *PrecisionTimeServiceResponse) SetConnections(v []VirtualConnectionTimeServiceResponse) { o.Connections = v } -// GetOrder returns the Order field value -func (o *PrecisionTimeServiceResponse) GetOrder() Order { - if o == nil { - var ret Order +// GetIpv4 returns the Ipv4 field value if set, zero value otherwise. +func (o *PrecisionTimeServiceResponse) GetIpv4() Ipv4 { + if o == nil || IsNil(o.Ipv4) { + var ret Ipv4 return ret } - - return o.Order + return *o.Ipv4 } -// GetOrderOk returns a tuple with the Order field value +// GetIpv4Ok returns a tuple with the Ipv4 field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetOrderOk() (*Order, bool) { - if o == nil { +func (o *PrecisionTimeServiceResponse) GetIpv4Ok() (*Ipv4, bool) { + if o == nil || IsNil(o.Ipv4) { return nil, false } - return &o.Order, true + return o.Ipv4, true } -// SetOrder sets field value -func (o *PrecisionTimeServiceResponse) SetOrder(v Order) { - o.Order = v +// HasIpv4 returns a boolean if a field has been set. +func (o *PrecisionTimeServiceResponse) HasIpv4() bool { + if o != nil && !IsNil(o.Ipv4) { + return true + } + + return false } -// GetIpv4 returns the Ipv4 field value -func (o *PrecisionTimeServiceResponse) GetIpv4() Ipv4 { - if o == nil { - var ret Ipv4 +// SetIpv4 gets a reference to the given Ipv4 and assigns it to the Ipv4 field. +func (o *PrecisionTimeServiceResponse) SetIpv4(v Ipv4) { + o.Ipv4 = &v +} + +// GetNtpAdvancedConfiguration returns the NtpAdvancedConfiguration field value if set, zero value otherwise. +func (o *PrecisionTimeServiceResponse) GetNtpAdvancedConfiguration() []Md5 { + if o == nil || IsNil(o.NtpAdvancedConfiguration) { + var ret []Md5 return ret } - - return o.Ipv4 + return o.NtpAdvancedConfiguration } -// GetIpv4Ok returns a tuple with the Ipv4 field value +// GetNtpAdvancedConfigurationOk returns a tuple with the NtpAdvancedConfiguration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetIpv4Ok() (*Ipv4, bool) { - if o == nil { +func (o *PrecisionTimeServiceResponse) GetNtpAdvancedConfigurationOk() ([]Md5, bool) { + if o == nil || IsNil(o.NtpAdvancedConfiguration) { return nil, false } - return &o.Ipv4, true + return o.NtpAdvancedConfiguration, true } -// SetIpv4 sets field value -func (o *PrecisionTimeServiceResponse) SetIpv4(v Ipv4) { - o.Ipv4 = v +// HasNtpAdvancedConfiguration returns a boolean if a field has been set. +func (o *PrecisionTimeServiceResponse) HasNtpAdvancedConfiguration() bool { + if o != nil && !IsNil(o.NtpAdvancedConfiguration) { + return true + } + + return false } -// GetAdvanceConfiguration returns the AdvanceConfiguration field value if set, zero value otherwise. -func (o *PrecisionTimeServiceResponse) GetAdvanceConfiguration() AdvanceConfiguration { - if o == nil || IsNil(o.AdvanceConfiguration) { - var ret AdvanceConfiguration +// SetNtpAdvancedConfiguration gets a reference to the given []Md5 and assigns it to the NtpAdvancedConfiguration field. +func (o *PrecisionTimeServiceResponse) SetNtpAdvancedConfiguration(v []Md5) { + o.NtpAdvancedConfiguration = v +} + +// GetPtpAdvancedConfiguration returns the PtpAdvancedConfiguration field value if set, zero value otherwise. +func (o *PrecisionTimeServiceResponse) GetPtpAdvancedConfiguration() PtpAdvanceConfiguration { + if o == nil || IsNil(o.PtpAdvancedConfiguration) { + var ret PtpAdvanceConfiguration return ret } - return *o.AdvanceConfiguration + return *o.PtpAdvancedConfiguration } -// GetAdvanceConfigurationOk returns a tuple with the AdvanceConfiguration field value if set, nil otherwise +// GetPtpAdvancedConfigurationOk returns a tuple with the PtpAdvancedConfiguration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetAdvanceConfigurationOk() (*AdvanceConfiguration, bool) { - if o == nil || IsNil(o.AdvanceConfiguration) { +func (o *PrecisionTimeServiceResponse) GetPtpAdvancedConfigurationOk() (*PtpAdvanceConfiguration, bool) { + if o == nil || IsNil(o.PtpAdvancedConfiguration) { return nil, false } - return o.AdvanceConfiguration, true + return o.PtpAdvancedConfiguration, true } -// HasAdvanceConfiguration returns a boolean if a field has been set. -func (o *PrecisionTimeServiceResponse) HasAdvanceConfiguration() bool { - if o != nil && !IsNil(o.AdvanceConfiguration) { +// HasPtpAdvancedConfiguration returns a boolean if a field has been set. +func (o *PrecisionTimeServiceResponse) HasPtpAdvancedConfiguration() bool { + if o != nil && !IsNil(o.PtpAdvancedConfiguration) { return true } return false } -// SetAdvanceConfiguration gets a reference to the given AdvanceConfiguration and assigns it to the AdvanceConfiguration field. -func (o *PrecisionTimeServiceResponse) SetAdvanceConfiguration(v AdvanceConfiguration) { - o.AdvanceConfiguration = &v +// SetPtpAdvancedConfiguration gets a reference to the given PtpAdvanceConfiguration and assigns it to the PtpAdvancedConfiguration field. +func (o *PrecisionTimeServiceResponse) SetPtpAdvancedConfiguration(v PtpAdvanceConfiguration) { + o.PtpAdvancedConfiguration = &v } // GetProject returns the Project field value if set, zero value otherwise. @@ -392,9 +376,9 @@ func (o *PrecisionTimeServiceResponse) SetProject(v Project) { } // GetAccount returns the Account field value if set, zero value otherwise. -func (o *PrecisionTimeServiceResponse) GetAccount() Account { +func (o *PrecisionTimeServiceResponse) GetAccount() SimplifiedAccount { if o == nil || IsNil(o.Account) { - var ret Account + var ret SimplifiedAccount return ret } return *o.Account @@ -402,7 +386,7 @@ func (o *PrecisionTimeServiceResponse) GetAccount() Account { // GetAccountOk returns a tuple with the Account field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrecisionTimeServiceResponse) GetAccountOk() (*Account, bool) { +func (o *PrecisionTimeServiceResponse) GetAccountOk() (*SimplifiedAccount, bool) { if o == nil || IsNil(o.Account) { return nil, false } @@ -418,11 +402,75 @@ func (o *PrecisionTimeServiceResponse) HasAccount() bool { return false } -// SetAccount gets a reference to the given Account and assigns it to the Account field. -func (o *PrecisionTimeServiceResponse) SetAccount(v Account) { +// SetAccount gets a reference to the given SimplifiedAccount and assigns it to the Account field. +func (o *PrecisionTimeServiceResponse) SetAccount(v SimplifiedAccount) { o.Account = &v } +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *PrecisionTimeServiceResponse) GetOrder() PrecisionTimeOrder { + if o == nil || IsNil(o.Order) { + var ret PrecisionTimeOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PrecisionTimeServiceResponse) GetOrderOk() (*PrecisionTimeOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *PrecisionTimeServiceResponse) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given PrecisionTimeOrder and assigns it to the Order field. +func (o *PrecisionTimeServiceResponse) SetOrder(v PrecisionTimeOrder) { + o.Order = &v +} + +// GetChangeLog returns the ChangeLog field value if set, zero value otherwise. +func (o *PrecisionTimeServiceResponse) GetChangeLog() Changelog { + if o == nil || IsNil(o.ChangeLog) { + var ret Changelog + return ret + } + return *o.ChangeLog +} + +// GetChangeLogOk returns a tuple with the ChangeLog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PrecisionTimeServiceResponse) GetChangeLogOk() (*Changelog, bool) { + if o == nil || IsNil(o.ChangeLog) { + return nil, false + } + return o.ChangeLog, true +} + +// HasChangeLog returns a boolean if a field has been set. +func (o *PrecisionTimeServiceResponse) HasChangeLog() bool { + if o != nil && !IsNil(o.ChangeLog) { + return true + } + + return false +} + +// SetChangeLog gets a reference to the given Changelog and assigns it to the ChangeLog field. +func (o *PrecisionTimeServiceResponse) SetChangeLog(v Changelog) { + o.ChangeLog = &v +} + func (o PrecisionTimeServiceResponse) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -433,24 +481,25 @@ func (o PrecisionTimeServiceResponse) MarshalJSON() ([]byte, error) { func (o PrecisionTimeServiceResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type toSerialize["href"] = o.Href - toSerialize["uuid"] = o.Uuid + toSerialize["type"] = o.Type if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } + toSerialize["uuid"] = o.Uuid toSerialize["state"] = o.State toSerialize["package"] = o.Package if !IsNil(o.Connections) { toSerialize["connections"] = o.Connections } - toSerialize["order"] = o.Order - toSerialize["ipv4"] = o.Ipv4 - if !IsNil(o.AdvanceConfiguration) { - toSerialize["advanceConfiguration"] = o.AdvanceConfiguration + if !IsNil(o.Ipv4) { + toSerialize["ipv4"] = o.Ipv4 + } + if !IsNil(o.NtpAdvancedConfiguration) { + toSerialize["ntpAdvancedConfiguration"] = o.NtpAdvancedConfiguration + } + if !IsNil(o.PtpAdvancedConfiguration) { + toSerialize["ptpAdvancedConfiguration"] = o.PtpAdvancedConfiguration } if !IsNil(o.Project) { toSerialize["project"] = o.Project @@ -458,6 +507,12 @@ func (o PrecisionTimeServiceResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Account) { toSerialize["account"] = o.Account } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.ChangeLog) { + toSerialize["changeLog"] = o.ChangeLog + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -471,13 +526,11 @@ func (o *PrecisionTimeServiceResponse) UnmarshalJSON(data []byte) (err error) { // 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", "href", + "type", "uuid", "state", "package", - "order", - "ipv4", } allProperties := make(map[string]interface{}) @@ -507,19 +560,20 @@ func (o *PrecisionTimeServiceResponse) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") delete(additionalProperties, "href") - delete(additionalProperties, "uuid") + delete(additionalProperties, "type") delete(additionalProperties, "name") - delete(additionalProperties, "description") + delete(additionalProperties, "uuid") delete(additionalProperties, "state") delete(additionalProperties, "package") delete(additionalProperties, "connections") - delete(additionalProperties, "order") delete(additionalProperties, "ipv4") - delete(additionalProperties, "advanceConfiguration") + delete(additionalProperties, "ntpAdvancedConfiguration") + delete(additionalProperties, "ptpAdvancedConfiguration") delete(additionalProperties, "project") delete(additionalProperties, "account") + delete(additionalProperties, "order") + delete(additionalProperties, "changeLog") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_precision_time_service_response_state.go b/services/fabricv4/model_precision_time_service_response_state.go new file mode 100644 index 00000000..45deeb2d --- /dev/null +++ b/services/fabricv4/model_precision_time_service_response_state.go @@ -0,0 +1,127 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PrecisionTimeServiceResponseState Precision Time Service Status. +type PrecisionTimeServiceResponseState string + +// List of precisionTimeServiceResponse_state +const ( + PRECISIONTIMESERVICERESPONSESTATE_CANCELLED PrecisionTimeServiceResponseState = "CANCELLED" + PRECISIONTIMESERVICERESPONSESTATE_CONFIGURING PrecisionTimeServiceResponseState = "CONFIGURING" + PRECISIONTIMESERVICERESPONSESTATE_CONFIGURING_FAILED PrecisionTimeServiceResponseState = "CONFIGURING_FAILED" + PRECISIONTIMESERVICERESPONSESTATE_DRAFT PrecisionTimeServiceResponseState = "DRAFT" + PRECISIONTIMESERVICERESPONSESTATE_DEPROVISIONING PrecisionTimeServiceResponseState = "DEPROVISIONING" + PRECISIONTIMESERVICERESPONSESTATE_DEPROVISIONING_FAILED PrecisionTimeServiceResponseState = "DEPROVISIONING_FAILED" + PRECISIONTIMESERVICERESPONSESTATE_DEPROVISIONED PrecisionTimeServiceResponseState = "DEPROVISIONED" + PRECISIONTIMESERVICERESPONSESTATE_PROVISIONED PrecisionTimeServiceResponseState = "PROVISIONED" + PRECISIONTIMESERVICERESPONSESTATE_PROVISIONING PrecisionTimeServiceResponseState = "PROVISIONING" + PRECISIONTIMESERVICERESPONSESTATE_PROVISIONING_FAILED PrecisionTimeServiceResponseState = "PROVISIONING_FAILED" + PRECISIONTIMESERVICERESPONSESTATE_REPROVISIONING PrecisionTimeServiceResponseState = "REPROVISIONING" + PRECISIONTIMESERVICERESPONSESTATE_REPROVISIONING_FAILED PrecisionTimeServiceResponseState = "REPROVISIONING_FAILED" +) + +// All allowed values of PrecisionTimeServiceResponseState enum +var AllowedPrecisionTimeServiceResponseStateEnumValues = []PrecisionTimeServiceResponseState{ + "CANCELLED", + "CONFIGURING", + "CONFIGURING_FAILED", + "DRAFT", + "DEPROVISIONING", + "DEPROVISIONING_FAILED", + "DEPROVISIONED", + "PROVISIONED", + "PROVISIONING", + "PROVISIONING_FAILED", + "REPROVISIONING", + "REPROVISIONING_FAILED", +} + +func (v *PrecisionTimeServiceResponseState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PrecisionTimeServiceResponseState(value) + for _, existing := range AllowedPrecisionTimeServiceResponseStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PrecisionTimeServiceResponseState", value) +} + +// NewPrecisionTimeServiceResponseStateFromValue returns a pointer to a valid PrecisionTimeServiceResponseState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPrecisionTimeServiceResponseStateFromValue(v string) (*PrecisionTimeServiceResponseState, error) { + ev := PrecisionTimeServiceResponseState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PrecisionTimeServiceResponseState: valid values are %v", v, AllowedPrecisionTimeServiceResponseStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PrecisionTimeServiceResponseState) IsValid() bool { + for _, existing := range AllowedPrecisionTimeServiceResponseStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to precisionTimeServiceResponse_state value +func (v PrecisionTimeServiceResponseState) Ptr() *PrecisionTimeServiceResponseState { + return &v +} + +type NullablePrecisionTimeServiceResponseState struct { + value *PrecisionTimeServiceResponseState + isSet bool +} + +func (v NullablePrecisionTimeServiceResponseState) Get() *PrecisionTimeServiceResponseState { + return v.value +} + +func (v *NullablePrecisionTimeServiceResponseState) Set(val *PrecisionTimeServiceResponseState) { + v.value = val + v.isSet = true +} + +func (v NullablePrecisionTimeServiceResponseState) IsSet() bool { + return v.isSet +} + +func (v *NullablePrecisionTimeServiceResponseState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePrecisionTimeServiceResponseState(val *PrecisionTimeServiceResponseState) *NullablePrecisionTimeServiceResponseState { + return &NullablePrecisionTimeServiceResponseState{value: val, isSet: true} +} + +func (v NullablePrecisionTimeServiceResponseState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePrecisionTimeServiceResponseState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_precision_time_service_response_type.go b/services/fabricv4/model_precision_time_service_response_type.go new file mode 100644 index 00000000..7ea30a70 --- /dev/null +++ b/services/fabricv4/model_precision_time_service_response_type.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PrecisionTimeServiceResponseType Precision Time Service type refers to the corresponding protocol. +type PrecisionTimeServiceResponseType string + +// List of precisionTimeServiceResponse_type +const ( + PRECISIONTIMESERVICERESPONSETYPE_NTP PrecisionTimeServiceResponseType = "NTP" + PRECISIONTIMESERVICERESPONSETYPE_PTP PrecisionTimeServiceResponseType = "PTP" +) + +// All allowed values of PrecisionTimeServiceResponseType enum +var AllowedPrecisionTimeServiceResponseTypeEnumValues = []PrecisionTimeServiceResponseType{ + "NTP", + "PTP", +} + +func (v *PrecisionTimeServiceResponseType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PrecisionTimeServiceResponseType(value) + for _, existing := range AllowedPrecisionTimeServiceResponseTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PrecisionTimeServiceResponseType", value) +} + +// NewPrecisionTimeServiceResponseTypeFromValue returns a pointer to a valid PrecisionTimeServiceResponseType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPrecisionTimeServiceResponseTypeFromValue(v string) (*PrecisionTimeServiceResponseType, error) { + ev := PrecisionTimeServiceResponseType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PrecisionTimeServiceResponseType: valid values are %v", v, AllowedPrecisionTimeServiceResponseTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PrecisionTimeServiceResponseType) IsValid() bool { + for _, existing := range AllowedPrecisionTimeServiceResponseTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to precisionTimeServiceResponse_type value +func (v PrecisionTimeServiceResponseType) Ptr() *PrecisionTimeServiceResponseType { + return &v +} + +type NullablePrecisionTimeServiceResponseType struct { + value *PrecisionTimeServiceResponseType + isSet bool +} + +func (v NullablePrecisionTimeServiceResponseType) Get() *PrecisionTimeServiceResponseType { + return v.value +} + +func (v *NullablePrecisionTimeServiceResponseType) Set(val *PrecisionTimeServiceResponseType) { + v.value = val + v.isSet = true +} + +func (v NullablePrecisionTimeServiceResponseType) IsSet() bool { + return v.isSet +} + +func (v *NullablePrecisionTimeServiceResponseType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePrecisionTimeServiceResponseType(val *PrecisionTimeServiceResponseType) *NullablePrecisionTimeServiceResponseType { + return &NullablePrecisionTimeServiceResponseType{value: val, isSet: true} +} + +func (v NullablePrecisionTimeServiceResponseType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePrecisionTimeServiceResponseType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_presence.go b/services/fabricv4/model_presence.go index 19d2fd83..63e60fd1 100644 --- a/services/fabricv4/model_presence.go +++ b/services/fabricv4/model_presence.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price.go b/services/fabricv4/model_price.go index 9494ba95..ecb70e49 100644 --- a/services/fabricv4/model_price.go +++ b/services/fabricv4/model_price.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_category.go b/services/fabricv4/model_price_category.go index 946c4d96..1adcbe11 100644 --- a/services/fabricv4/model_price_category.go +++ b/services/fabricv4/model_price_category.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_charge.go b/services/fabricv4/model_price_charge.go index c15c89a0..73818b53 100644 --- a/services/fabricv4/model_price_charge.go +++ b/services/fabricv4/model_price_charge.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_charge_type.go b/services/fabricv4/model_price_charge_type.go index 04aa4bb8..e4e683a8 100644 --- a/services/fabricv4/model_price_charge_type.go +++ b/services/fabricv4/model_price_charge_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_error.go b/services/fabricv4/model_price_error.go index 09ed9302..4b438518 100644 --- a/services/fabricv4/model_price_error.go +++ b/services/fabricv4/model_price_error.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_error_additional_info.go b/services/fabricv4/model_price_error_additional_info.go index 68587bca..9ac34530 100644 --- a/services/fabricv4/model_price_error_additional_info.go +++ b/services/fabricv4/model_price_error_additional_info.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_error_error_code.go b/services/fabricv4/model_price_error_error_code.go index 4c00d4fc..43d7bce7 100644 --- a/services/fabricv4/model_price_error_error_code.go +++ b/services/fabricv4/model_price_error_error_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_error_error_message.go b/services/fabricv4/model_price_error_error_message.go index de22f81d..063ed5a2 100644 --- a/services/fabricv4/model_price_error_error_message.go +++ b/services/fabricv4/model_price_error_error_message.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_location.go b/services/fabricv4/model_price_location.go index 7f43f1b6..49dfc53e 100644 --- a/services/fabricv4/model_price_location.go +++ b/services/fabricv4/model_price_location.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_search_response.go b/services/fabricv4/model_price_search_response.go index adafeaf2..56692fb3 100644 --- a/services/fabricv4/model_price_search_response.go +++ b/services/fabricv4/model_price_search_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_price_term_length.go b/services/fabricv4/model_price_term_length.go index 98269571..eb75bb07 100644 --- a/services/fabricv4/model_price_term_length.go +++ b/services/fabricv4/model_price_term_length.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_process_step.go b/services/fabricv4/model_process_step.go index 29bc9893..c6decee3 100644 --- a/services/fabricv4/model_process_step.go +++ b/services/fabricv4/model_process_step.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_product_type.go b/services/fabricv4/model_product_type.go index d3ea46cc..625e3a24 100644 --- a/services/fabricv4/model_product_type.go +++ b/services/fabricv4/model_product_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_project.go b/services/fabricv4/model_project.go index 5c2fceeb..a9c43f76 100644 --- a/services/fabricv4/model_project.go +++ b/services/fabricv4/model_project.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -10,6 +9,7 @@ package fabricv4 import ( "encoding/json" + "fmt" ) // checks if the Project type satisfies the MappedNullable interface at compile time @@ -18,7 +18,7 @@ var _ MappedNullable = &Project{} // Project struct for Project type Project struct { // Subscriber-assigned project ID - ProjectId *string `json:"projectId,omitempty"` + ProjectId string `json:"projectId"` AdditionalProperties map[string]interface{} } @@ -28,8 +28,9 @@ type _Project Project // 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 NewProject() *Project { +func NewProject(projectId string) *Project { this := Project{} + this.ProjectId = projectId return &this } @@ -41,36 +42,28 @@ func NewProjectWithDefaults() *Project { return &this } -// GetProjectId returns the ProjectId field value if set, zero value otherwise. +// GetProjectId returns the ProjectId field value func (o *Project) GetProjectId() string { - if o == nil || IsNil(o.ProjectId) { + if o == nil { var ret string return ret } - return *o.ProjectId + + return o.ProjectId } -// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise +// GetProjectIdOk returns a tuple with the ProjectId field value // and a boolean to check if the value has been set. func (o *Project) GetProjectIdOk() (*string, bool) { - if o == nil || IsNil(o.ProjectId) { + if o == nil { return nil, false } - return o.ProjectId, true -} - -// HasProjectId returns a boolean if a field has been set. -func (o *Project) HasProjectId() bool { - if o != nil && !IsNil(o.ProjectId) { - return true - } - - return false + return &o.ProjectId, true } -// SetProjectId gets a reference to the given string and assigns it to the ProjectId field. +// SetProjectId sets field value func (o *Project) SetProjectId(v string) { - o.ProjectId = &v + o.ProjectId = v } func (o Project) MarshalJSON() ([]byte, error) { @@ -83,9 +76,7 @@ func (o Project) MarshalJSON() ([]byte, error) { func (o Project) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectId) { - toSerialize["projectId"] = o.ProjectId - } + toSerialize["projectId"] = o.ProjectId for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -95,6 +86,27 @@ func (o Project) ToMap() (map[string]interface{}, error) { } func (o *Project) 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{ + "projectId", + } + + 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) + } + } + varProject := _Project{} err = json.Unmarshal(data, &varProject) diff --git a/services/fabricv4/model_provider_status.go b/services/fabricv4/model_provider_status.go index 87f23551..5a8e08f8 100644 --- a/services/fabricv4/model_provider_status.go +++ b/services/fabricv4/model_provider_status.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_ptp_advance_configuration.go b/services/fabricv4/model_ptp_advance_configuration.go index 4d76aef3..f5036ad8 100644 --- a/services/fabricv4/model_ptp_advance_configuration.go +++ b/services/fabricv4/model_ptp_advance_configuration.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,18 +14,19 @@ import ( // checks if the PtpAdvanceConfiguration type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PtpAdvanceConfiguration{} -// PtpAdvanceConfiguration struct for PtpAdvanceConfiguration +// PtpAdvanceConfiguration PTP Advanced Configuration. type PtpAdvanceConfiguration struct { TimeScale *PtpAdvanceConfigurationTimeScale `json:"timeScale,omitempty"` - Domain *int32 `json:"domain,omitempty"` - Priority1 *int32 `json:"priority1,omitempty"` - Priority2 *int32 `json:"priority2,omitempty"` - // The mean time interval between Announce messages. A shorter interval makes ptp4l react faster to the changes in the master-slave hierarchy. The interval should be the same in the whole domain. It's specified as a power of two in seconds. The default is 1 (2 seconds). - LogAnnounceInterval *int32 `json:"logAnnounceInterval,omitempty"` - // The mean time interval between Sync messages. A shorter interval may improve accuracy of the local clock. It's specified as a power of two in seconds. The default is 0 (1 second). - LogSyncInterval *int32 `json:"logSyncInterval,omitempty"` - LogDelayReqInterval *int32 `json:"logDelayReqInterval,omitempty"` - TransportMode *PtpAdvanceConfigurationTransportMode `json:"transportMode,omitempty"` + // The PTP domain value. + Domain *int32 `json:"domain,omitempty"` + // The priority1 value determines the best primary clock, Lower value indicates higher priority. + Priority1 *int32 `json:"priority1,omitempty"` + // The priority2 value differentiates and prioritizes the primary clock to avoid confusion when priority1-value is the same for different primary clocks in a network. + Priority2 *int32 `json:"priority2,omitempty"` + LogAnnounceInterval *PtpAdvanceConfigurationLogAnnounceInterval `json:"logAnnounceInterval,omitempty"` + LogSyncInterval *PtpAdvanceConfigurationLogSyncInterval `json:"logSyncInterval,omitempty"` + LogDelayReqInterval *PtpAdvanceConfigurationLogDelayReqInterval `json:"logDelayReqInterval,omitempty"` + TransportMode *PtpAdvanceConfigurationTransportMode `json:"transportMode,omitempty"` // Unicast Grant Time in seconds. For Multicast and Hybrid transport modes, grant time defaults to 300 seconds. For Unicast mode, grant time can be between 30 to 7200. GrantTime *int32 `json:"grantTime,omitempty"` AdditionalProperties map[string]interface{} @@ -180,9 +180,9 @@ func (o *PtpAdvanceConfiguration) SetPriority2(v int32) { } // GetLogAnnounceInterval returns the LogAnnounceInterval field value if set, zero value otherwise. -func (o *PtpAdvanceConfiguration) GetLogAnnounceInterval() int32 { +func (o *PtpAdvanceConfiguration) GetLogAnnounceInterval() PtpAdvanceConfigurationLogAnnounceInterval { if o == nil || IsNil(o.LogAnnounceInterval) { - var ret int32 + var ret PtpAdvanceConfigurationLogAnnounceInterval return ret } return *o.LogAnnounceInterval @@ -190,7 +190,7 @@ func (o *PtpAdvanceConfiguration) GetLogAnnounceInterval() int32 { // GetLogAnnounceIntervalOk returns a tuple with the LogAnnounceInterval field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PtpAdvanceConfiguration) GetLogAnnounceIntervalOk() (*int32, bool) { +func (o *PtpAdvanceConfiguration) GetLogAnnounceIntervalOk() (*PtpAdvanceConfigurationLogAnnounceInterval, bool) { if o == nil || IsNil(o.LogAnnounceInterval) { return nil, false } @@ -206,15 +206,15 @@ func (o *PtpAdvanceConfiguration) HasLogAnnounceInterval() bool { return false } -// SetLogAnnounceInterval gets a reference to the given int32 and assigns it to the LogAnnounceInterval field. -func (o *PtpAdvanceConfiguration) SetLogAnnounceInterval(v int32) { +// SetLogAnnounceInterval gets a reference to the given PtpAdvanceConfigurationLogAnnounceInterval and assigns it to the LogAnnounceInterval field. +func (o *PtpAdvanceConfiguration) SetLogAnnounceInterval(v PtpAdvanceConfigurationLogAnnounceInterval) { o.LogAnnounceInterval = &v } // GetLogSyncInterval returns the LogSyncInterval field value if set, zero value otherwise. -func (o *PtpAdvanceConfiguration) GetLogSyncInterval() int32 { +func (o *PtpAdvanceConfiguration) GetLogSyncInterval() PtpAdvanceConfigurationLogSyncInterval { if o == nil || IsNil(o.LogSyncInterval) { - var ret int32 + var ret PtpAdvanceConfigurationLogSyncInterval return ret } return *o.LogSyncInterval @@ -222,7 +222,7 @@ func (o *PtpAdvanceConfiguration) GetLogSyncInterval() int32 { // GetLogSyncIntervalOk returns a tuple with the LogSyncInterval field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PtpAdvanceConfiguration) GetLogSyncIntervalOk() (*int32, bool) { +func (o *PtpAdvanceConfiguration) GetLogSyncIntervalOk() (*PtpAdvanceConfigurationLogSyncInterval, bool) { if o == nil || IsNil(o.LogSyncInterval) { return nil, false } @@ -238,15 +238,15 @@ func (o *PtpAdvanceConfiguration) HasLogSyncInterval() bool { return false } -// SetLogSyncInterval gets a reference to the given int32 and assigns it to the LogSyncInterval field. -func (o *PtpAdvanceConfiguration) SetLogSyncInterval(v int32) { +// SetLogSyncInterval gets a reference to the given PtpAdvanceConfigurationLogSyncInterval and assigns it to the LogSyncInterval field. +func (o *PtpAdvanceConfiguration) SetLogSyncInterval(v PtpAdvanceConfigurationLogSyncInterval) { o.LogSyncInterval = &v } // GetLogDelayReqInterval returns the LogDelayReqInterval field value if set, zero value otherwise. -func (o *PtpAdvanceConfiguration) GetLogDelayReqInterval() int32 { +func (o *PtpAdvanceConfiguration) GetLogDelayReqInterval() PtpAdvanceConfigurationLogDelayReqInterval { if o == nil || IsNil(o.LogDelayReqInterval) { - var ret int32 + var ret PtpAdvanceConfigurationLogDelayReqInterval return ret } return *o.LogDelayReqInterval @@ -254,7 +254,7 @@ func (o *PtpAdvanceConfiguration) GetLogDelayReqInterval() int32 { // GetLogDelayReqIntervalOk returns a tuple with the LogDelayReqInterval field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PtpAdvanceConfiguration) GetLogDelayReqIntervalOk() (*int32, bool) { +func (o *PtpAdvanceConfiguration) GetLogDelayReqIntervalOk() (*PtpAdvanceConfigurationLogDelayReqInterval, bool) { if o == nil || IsNil(o.LogDelayReqInterval) { return nil, false } @@ -270,8 +270,8 @@ func (o *PtpAdvanceConfiguration) HasLogDelayReqInterval() bool { return false } -// SetLogDelayReqInterval gets a reference to the given int32 and assigns it to the LogDelayReqInterval field. -func (o *PtpAdvanceConfiguration) SetLogDelayReqInterval(v int32) { +// SetLogDelayReqInterval gets a reference to the given PtpAdvanceConfigurationLogDelayReqInterval and assigns it to the LogDelayReqInterval field. +func (o *PtpAdvanceConfiguration) SetLogDelayReqInterval(v PtpAdvanceConfigurationLogDelayReqInterval) { o.LogDelayReqInterval = &v } diff --git a/services/fabricv4/model_ptp_advance_configuration_log_announce_interval.go b/services/fabricv4/model_ptp_advance_configuration_log_announce_interval.go new file mode 100644 index 00000000..5beede7a --- /dev/null +++ b/services/fabricv4/model_ptp_advance_configuration_log_announce_interval.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" +) + +// PtpAdvanceConfigurationLogAnnounceInterval Logarithmic value that controls the rate of PTP Announce packets from the PTP time server. Default is 1 (1 packet every 2 seconds), Unit packets/second. +type PtpAdvanceConfigurationLogAnnounceInterval int32 + +// List of ptpAdvanceConfiguration_logAnnounceInterval +const ( + PTPADVANCECONFIGURATIONLOGANNOUNCEINTERVAL__MINUS_3 PtpAdvanceConfigurationLogAnnounceInterval = -3 + PTPADVANCECONFIGURATIONLOGANNOUNCEINTERVAL__MINUS_2 PtpAdvanceConfigurationLogAnnounceInterval = -2 + PTPADVANCECONFIGURATIONLOGANNOUNCEINTERVAL__MINUS_1 PtpAdvanceConfigurationLogAnnounceInterval = -1 + PTPADVANCECONFIGURATIONLOGANNOUNCEINTERVAL__0 PtpAdvanceConfigurationLogAnnounceInterval = 0 + PTPADVANCECONFIGURATIONLOGANNOUNCEINTERVAL__1 PtpAdvanceConfigurationLogAnnounceInterval = 1 +) + +// All allowed values of PtpAdvanceConfigurationLogAnnounceInterval enum +var AllowedPtpAdvanceConfigurationLogAnnounceIntervalEnumValues = []PtpAdvanceConfigurationLogAnnounceInterval{ + -3, + -2, + -1, + 0, + 1, +} + +func (v *PtpAdvanceConfigurationLogAnnounceInterval) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PtpAdvanceConfigurationLogAnnounceInterval(value) + for _, existing := range AllowedPtpAdvanceConfigurationLogAnnounceIntervalEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PtpAdvanceConfigurationLogAnnounceInterval", value) +} + +// NewPtpAdvanceConfigurationLogAnnounceIntervalFromValue returns a pointer to a valid PtpAdvanceConfigurationLogAnnounceInterval +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPtpAdvanceConfigurationLogAnnounceIntervalFromValue(v int32) (*PtpAdvanceConfigurationLogAnnounceInterval, error) { + ev := PtpAdvanceConfigurationLogAnnounceInterval(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PtpAdvanceConfigurationLogAnnounceInterval: valid values are %v", v, AllowedPtpAdvanceConfigurationLogAnnounceIntervalEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PtpAdvanceConfigurationLogAnnounceInterval) IsValid() bool { + for _, existing := range AllowedPtpAdvanceConfigurationLogAnnounceIntervalEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ptpAdvanceConfiguration_logAnnounceInterval value +func (v PtpAdvanceConfigurationLogAnnounceInterval) Ptr() *PtpAdvanceConfigurationLogAnnounceInterval { + return &v +} + +type NullablePtpAdvanceConfigurationLogAnnounceInterval struct { + value *PtpAdvanceConfigurationLogAnnounceInterval + isSet bool +} + +func (v NullablePtpAdvanceConfigurationLogAnnounceInterval) Get() *PtpAdvanceConfigurationLogAnnounceInterval { + return v.value +} + +func (v *NullablePtpAdvanceConfigurationLogAnnounceInterval) Set(val *PtpAdvanceConfigurationLogAnnounceInterval) { + v.value = val + v.isSet = true +} + +func (v NullablePtpAdvanceConfigurationLogAnnounceInterval) IsSet() bool { + return v.isSet +} + +func (v *NullablePtpAdvanceConfigurationLogAnnounceInterval) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePtpAdvanceConfigurationLogAnnounceInterval(val *PtpAdvanceConfigurationLogAnnounceInterval) *NullablePtpAdvanceConfigurationLogAnnounceInterval { + return &NullablePtpAdvanceConfigurationLogAnnounceInterval{value: val, isSet: true} +} + +func (v NullablePtpAdvanceConfigurationLogAnnounceInterval) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePtpAdvanceConfigurationLogAnnounceInterval) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_ptp_advance_configuration_log_delay_req_interval.go b/services/fabricv4/model_ptp_advance_configuration_log_delay_req_interval.go new file mode 100644 index 00000000..8442b1c1 --- /dev/null +++ b/services/fabricv4/model_ptp_advance_configuration_log_delay_req_interval.go @@ -0,0 +1,117 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PtpAdvanceConfigurationLogDelayReqInterval Logarithmic value that controls the rate of PTP DelayReq packets. Default is -4 (16 packets per second), Unit packets/second.. +type PtpAdvanceConfigurationLogDelayReqInterval int32 + +// List of ptpAdvanceConfiguration_logDelayReqInterval +const ( + PTPADVANCECONFIGURATIONLOGDELAYREQINTERVAL__MINUS_5 PtpAdvanceConfigurationLogDelayReqInterval = -5 + PTPADVANCECONFIGURATIONLOGDELAYREQINTERVAL__MINUS_4 PtpAdvanceConfigurationLogDelayReqInterval = -4 + PTPADVANCECONFIGURATIONLOGDELAYREQINTERVAL__MINUS_3 PtpAdvanceConfigurationLogDelayReqInterval = -3 + PTPADVANCECONFIGURATIONLOGDELAYREQINTERVAL__MINUS_2 PtpAdvanceConfigurationLogDelayReqInterval = -2 + PTPADVANCECONFIGURATIONLOGDELAYREQINTERVAL__MINUS_1 PtpAdvanceConfigurationLogDelayReqInterval = -1 + PTPADVANCECONFIGURATIONLOGDELAYREQINTERVAL__0 PtpAdvanceConfigurationLogDelayReqInterval = 0 + PTPADVANCECONFIGURATIONLOGDELAYREQINTERVAL__1 PtpAdvanceConfigurationLogDelayReqInterval = 1 +) + +// All allowed values of PtpAdvanceConfigurationLogDelayReqInterval enum +var AllowedPtpAdvanceConfigurationLogDelayReqIntervalEnumValues = []PtpAdvanceConfigurationLogDelayReqInterval{ + -5, + -4, + -3, + -2, + -1, + 0, + 1, +} + +func (v *PtpAdvanceConfigurationLogDelayReqInterval) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PtpAdvanceConfigurationLogDelayReqInterval(value) + for _, existing := range AllowedPtpAdvanceConfigurationLogDelayReqIntervalEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PtpAdvanceConfigurationLogDelayReqInterval", value) +} + +// NewPtpAdvanceConfigurationLogDelayReqIntervalFromValue returns a pointer to a valid PtpAdvanceConfigurationLogDelayReqInterval +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPtpAdvanceConfigurationLogDelayReqIntervalFromValue(v int32) (*PtpAdvanceConfigurationLogDelayReqInterval, error) { + ev := PtpAdvanceConfigurationLogDelayReqInterval(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PtpAdvanceConfigurationLogDelayReqInterval: valid values are %v", v, AllowedPtpAdvanceConfigurationLogDelayReqIntervalEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PtpAdvanceConfigurationLogDelayReqInterval) IsValid() bool { + for _, existing := range AllowedPtpAdvanceConfigurationLogDelayReqIntervalEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ptpAdvanceConfiguration_logDelayReqInterval value +func (v PtpAdvanceConfigurationLogDelayReqInterval) Ptr() *PtpAdvanceConfigurationLogDelayReqInterval { + return &v +} + +type NullablePtpAdvanceConfigurationLogDelayReqInterval struct { + value *PtpAdvanceConfigurationLogDelayReqInterval + isSet bool +} + +func (v NullablePtpAdvanceConfigurationLogDelayReqInterval) Get() *PtpAdvanceConfigurationLogDelayReqInterval { + return v.value +} + +func (v *NullablePtpAdvanceConfigurationLogDelayReqInterval) Set(val *PtpAdvanceConfigurationLogDelayReqInterval) { + v.value = val + v.isSet = true +} + +func (v NullablePtpAdvanceConfigurationLogDelayReqInterval) IsSet() bool { + return v.isSet +} + +func (v *NullablePtpAdvanceConfigurationLogDelayReqInterval) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePtpAdvanceConfigurationLogDelayReqInterval(val *PtpAdvanceConfigurationLogDelayReqInterval) *NullablePtpAdvanceConfigurationLogDelayReqInterval { + return &NullablePtpAdvanceConfigurationLogDelayReqInterval{value: val, isSet: true} +} + +func (v NullablePtpAdvanceConfigurationLogDelayReqInterval) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePtpAdvanceConfigurationLogDelayReqInterval) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_ptp_advance_configuration_log_sync_interval.go b/services/fabricv4/model_ptp_advance_configuration_log_sync_interval.go new file mode 100644 index 00000000..a1c32de2 --- /dev/null +++ b/services/fabricv4/model_ptp_advance_configuration_log_sync_interval.go @@ -0,0 +1,117 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// PtpAdvanceConfigurationLogSyncInterval Logarithmic value that controls the rate of PTP Sync packets. Default is -4 (16 packets per second), Unit packets/second.. +type PtpAdvanceConfigurationLogSyncInterval int32 + +// List of ptpAdvanceConfiguration_logSyncInterval +const ( + PTPADVANCECONFIGURATIONLOGSYNCINTERVAL__MINUS_5 PtpAdvanceConfigurationLogSyncInterval = -5 + PTPADVANCECONFIGURATIONLOGSYNCINTERVAL__MINUS_4 PtpAdvanceConfigurationLogSyncInterval = -4 + PTPADVANCECONFIGURATIONLOGSYNCINTERVAL__MINUS_3 PtpAdvanceConfigurationLogSyncInterval = -3 + PTPADVANCECONFIGURATIONLOGSYNCINTERVAL__MINUS_2 PtpAdvanceConfigurationLogSyncInterval = -2 + PTPADVANCECONFIGURATIONLOGSYNCINTERVAL__MINUS_1 PtpAdvanceConfigurationLogSyncInterval = -1 + PTPADVANCECONFIGURATIONLOGSYNCINTERVAL__0 PtpAdvanceConfigurationLogSyncInterval = 0 + PTPADVANCECONFIGURATIONLOGSYNCINTERVAL__1 PtpAdvanceConfigurationLogSyncInterval = 1 +) + +// All allowed values of PtpAdvanceConfigurationLogSyncInterval enum +var AllowedPtpAdvanceConfigurationLogSyncIntervalEnumValues = []PtpAdvanceConfigurationLogSyncInterval{ + -5, + -4, + -3, + -2, + -1, + 0, + 1, +} + +func (v *PtpAdvanceConfigurationLogSyncInterval) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PtpAdvanceConfigurationLogSyncInterval(value) + for _, existing := range AllowedPtpAdvanceConfigurationLogSyncIntervalEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PtpAdvanceConfigurationLogSyncInterval", value) +} + +// NewPtpAdvanceConfigurationLogSyncIntervalFromValue returns a pointer to a valid PtpAdvanceConfigurationLogSyncInterval +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPtpAdvanceConfigurationLogSyncIntervalFromValue(v int32) (*PtpAdvanceConfigurationLogSyncInterval, error) { + ev := PtpAdvanceConfigurationLogSyncInterval(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PtpAdvanceConfigurationLogSyncInterval: valid values are %v", v, AllowedPtpAdvanceConfigurationLogSyncIntervalEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PtpAdvanceConfigurationLogSyncInterval) IsValid() bool { + for _, existing := range AllowedPtpAdvanceConfigurationLogSyncIntervalEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ptpAdvanceConfiguration_logSyncInterval value +func (v PtpAdvanceConfigurationLogSyncInterval) Ptr() *PtpAdvanceConfigurationLogSyncInterval { + return &v +} + +type NullablePtpAdvanceConfigurationLogSyncInterval struct { + value *PtpAdvanceConfigurationLogSyncInterval + isSet bool +} + +func (v NullablePtpAdvanceConfigurationLogSyncInterval) Get() *PtpAdvanceConfigurationLogSyncInterval { + return v.value +} + +func (v *NullablePtpAdvanceConfigurationLogSyncInterval) Set(val *PtpAdvanceConfigurationLogSyncInterval) { + v.value = val + v.isSet = true +} + +func (v NullablePtpAdvanceConfigurationLogSyncInterval) IsSet() bool { + return v.isSet +} + +func (v *NullablePtpAdvanceConfigurationLogSyncInterval) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePtpAdvanceConfigurationLogSyncInterval(val *PtpAdvanceConfigurationLogSyncInterval) *NullablePtpAdvanceConfigurationLogSyncInterval { + return &NullablePtpAdvanceConfigurationLogSyncInterval{value: val, isSet: true} +} + +func (v NullablePtpAdvanceConfigurationLogSyncInterval) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePtpAdvanceConfigurationLogSyncInterval) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_ptp_advance_configuration_time_scale.go b/services/fabricv4/model_ptp_advance_configuration_time_scale.go index 26b49603..3169bff1 100644 --- a/services/fabricv4/model_ptp_advance_configuration_time_scale.go +++ b/services/fabricv4/model_ptp_advance_configuration_time_scale.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_ptp_advance_configuration_transport_mode.go b/services/fabricv4/model_ptp_advance_configuration_transport_mode.go index 98322590..349a2bcf 100644 --- a/services/fabricv4/model_ptp_advance_configuration_transport_mode.go +++ b/services/fabricv4/model_ptp_advance_configuration_transport_mode.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,16 +17,16 @@ type PtpAdvanceConfigurationTransportMode string // List of ptpAdvanceConfiguration_transportMode const ( - PTPADVANCECONFIGURATIONTRANSPORTMODE_MULTICAST PtpAdvanceConfigurationTransportMode = "Multicast" - PTPADVANCECONFIGURATIONTRANSPORTMODE_UNICAST PtpAdvanceConfigurationTransportMode = "Unicast" - PTPADVANCECONFIGURATIONTRANSPORTMODE_HYBRID PtpAdvanceConfigurationTransportMode = "Hybrid" + PTPADVANCECONFIGURATIONTRANSPORTMODE_MULTICAST PtpAdvanceConfigurationTransportMode = "MULTICAST" + PTPADVANCECONFIGURATIONTRANSPORTMODE_UNICAST PtpAdvanceConfigurationTransportMode = "UNICAST" + PTPADVANCECONFIGURATIONTRANSPORTMODE_HYBRID PtpAdvanceConfigurationTransportMode = "HYBRID" ) // All allowed values of PtpAdvanceConfigurationTransportMode enum var AllowedPtpAdvanceConfigurationTransportModeEnumValues = []PtpAdvanceConfigurationTransportMode{ - "Multicast", - "Unicast", - "Hybrid", + "MULTICAST", + "UNICAST", + "HYBRID", } func (v *PtpAdvanceConfigurationTransportMode) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_query_direction.go b/services/fabricv4/model_query_direction.go index b1c21444..bd973993 100644 --- a/services/fabricv4/model_query_direction.go +++ b/services/fabricv4/model_query_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_remove_operation.go b/services/fabricv4/model_remove_operation.go index 53f2e7b0..90a55201 100644 --- a/services/fabricv4/model_remove_operation.go +++ b/services/fabricv4/model_remove_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_replace_operation.go b/services/fabricv4/model_replace_operation.go index c7ef6440..13083c7b 100644 --- a/services/fabricv4/model_replace_operation.go +++ b/services/fabricv4/model_replace_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_change_data.go b/services/fabricv4/model_route_filter_change_data.go index 68a93956..8797c4b0 100644 --- a/services/fabricv4/model_route_filter_change_data.go +++ b/services/fabricv4/model_route_filter_change_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_change_data_response.go b/services/fabricv4/model_route_filter_change_data_response.go index 1507e582..58904203 100644 --- a/services/fabricv4/model_route_filter_change_data_response.go +++ b/services/fabricv4/model_route_filter_change_data_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_connections_data.go b/services/fabricv4/model_route_filter_connections_data.go index bf4a2088..da8f128e 100644 --- a/services/fabricv4/model_route_filter_connections_data.go +++ b/services/fabricv4/model_route_filter_connections_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rule_state.go b/services/fabricv4/model_route_filter_rule_state.go index 9a4c0bf2..abd09bc9 100644 --- a/services/fabricv4/model_route_filter_rule_state.go +++ b/services/fabricv4/model_route_filter_rule_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_base.go b/services/fabricv4/model_route_filter_rules_base.go index 9727d68c..c311d994 100644 --- a/services/fabricv4/model_route_filter_rules_base.go +++ b/services/fabricv4/model_route_filter_rules_base.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_change.go b/services/fabricv4/model_route_filter_rules_change.go index 960353dd..0e7ef801 100644 --- a/services/fabricv4/model_route_filter_rules_change.go +++ b/services/fabricv4/model_route_filter_rules_change.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_change_data.go b/services/fabricv4/model_route_filter_rules_change_data.go index 2ed75194..12414a82 100644 --- a/services/fabricv4/model_route_filter_rules_change_data.go +++ b/services/fabricv4/model_route_filter_rules_change_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_change_data_response.go b/services/fabricv4/model_route_filter_rules_change_data_response.go index ec3e9f78..7af81c7c 100644 --- a/services/fabricv4/model_route_filter_rules_change_data_response.go +++ b/services/fabricv4/model_route_filter_rules_change_data_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_change_operation.go b/services/fabricv4/model_route_filter_rules_change_operation.go index f04028f4..30960b96 100644 --- a/services/fabricv4/model_route_filter_rules_change_operation.go +++ b/services/fabricv4/model_route_filter_rules_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_change_type.go b/services/fabricv4/model_route_filter_rules_change_type.go index a5fd5ddf..5c7f52b4 100644 --- a/services/fabricv4/model_route_filter_rules_change_type.go +++ b/services/fabricv4/model_route_filter_rules_change_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_data.go b/services/fabricv4/model_route_filter_rules_data.go index 987b1fe6..58f0aa78 100644 --- a/services/fabricv4/model_route_filter_rules_data.go +++ b/services/fabricv4/model_route_filter_rules_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_data_action.go b/services/fabricv4/model_route_filter_rules_data_action.go index bfc9e07a..93bfab77 100644 --- a/services/fabricv4/model_route_filter_rules_data_action.go +++ b/services/fabricv4/model_route_filter_rules_data_action.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_data_type.go b/services/fabricv4/model_route_filter_rules_data_type.go index c23d1d23..62b2de06 100644 --- a/services/fabricv4/model_route_filter_rules_data_type.go +++ b/services/fabricv4/model_route_filter_rules_data_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 a798aa7e..942914a4 100644 --- a/services/fabricv4/model_route_filter_rules_patch_request_item.go +++ b/services/fabricv4/model_route_filter_rules_patch_request_item.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_rules_post_request.go b/services/fabricv4/model_route_filter_rules_post_request.go index c922e05a..30754400 100644 --- a/services/fabricv4/model_route_filter_rules_post_request.go +++ b/services/fabricv4/model_route_filter_rules_post_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filter_state.go b/services/fabricv4/model_route_filter_state.go index 4894a964..324a6eba 100644 --- a/services/fabricv4/model_route_filter_state.go +++ b/services/fabricv4/model_route_filter_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_base.go b/services/fabricv4/model_route_filters_base.go index 03bce146..29b5ec7c 100644 --- a/services/fabricv4/model_route_filters_base.go +++ b/services/fabricv4/model_route_filters_base.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_change.go b/services/fabricv4/model_route_filters_change.go index 59cf65f6..176d4672 100644 --- a/services/fabricv4/model_route_filters_change.go +++ b/services/fabricv4/model_route_filters_change.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_change_operation.go b/services/fabricv4/model_route_filters_change_operation.go index 9cbfa700..d6ebc3c0 100644 --- a/services/fabricv4/model_route_filters_change_operation.go +++ b/services/fabricv4/model_route_filters_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_change_type.go b/services/fabricv4/model_route_filters_change_type.go index 31d3b41b..b8ff7022 100644 --- a/services/fabricv4/model_route_filters_change_type.go +++ b/services/fabricv4/model_route_filters_change_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_data.go b/services/fabricv4/model_route_filters_data.go index 2a8b3d12..dc6bfa31 100644 --- a/services/fabricv4/model_route_filters_data.go +++ b/services/fabricv4/model_route_filters_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_data_not_matched_rule_action.go b/services/fabricv4/model_route_filters_data_not_matched_rule_action.go index c908dfda..da4f0d1a 100644 --- a/services/fabricv4/model_route_filters_data_not_matched_rule_action.go +++ b/services/fabricv4/model_route_filters_data_not_matched_rule_action.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_data_project.go b/services/fabricv4/model_route_filters_data_project.go index ad83ccbb..f40516cf 100644 --- a/services/fabricv4/model_route_filters_data_project.go +++ b/services/fabricv4/model_route_filters_data_project.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_patch_request_item.go b/services/fabricv4/model_route_filters_patch_request_item.go index d778128d..7955d36b 100644 --- a/services/fabricv4/model_route_filters_patch_request_item.go +++ b/services/fabricv4/model_route_filters_patch_request_item.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_search_base.go b/services/fabricv4/model_route_filters_search_base.go index f83ac897..4bd6bd47 100644 --- a/services/fabricv4/model_route_filters_search_base.go +++ b/services/fabricv4/model_route_filters_search_base.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_search_base_filter.go b/services/fabricv4/model_route_filters_search_base_filter.go index afa96251..5f896e38 100644 --- a/services/fabricv4/model_route_filters_search_base_filter.go +++ b/services/fabricv4/model_route_filters_search_base_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_search_filter_item.go b/services/fabricv4/model_route_filters_search_filter_item.go index 9b4aacc7..7d4268ae 100644 --- a/services/fabricv4/model_route_filters_search_filter_item.go +++ b/services/fabricv4/model_route_filters_search_filter_item.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_search_filter_item_property.go b/services/fabricv4/model_route_filters_search_filter_item_property.go index 7f45b94f..10e8a7dd 100644 --- a/services/fabricv4/model_route_filters_search_filter_item_property.go +++ b/services/fabricv4/model_route_filters_search_filter_item_property.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_filters_search_response.go b/services/fabricv4/model_route_filters_search_response.go index df616e6a..b31e869d 100644 --- a/services/fabricv4/model_route_filters_search_response.go +++ b/services/fabricv4/model_route_filters_search_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry.go b/services/fabricv4/model_route_table_entry.go index 3d115298..4cdd2fa6 100644 --- a/services/fabricv4/model_route_table_entry.go +++ b/services/fabricv4/model_route_table_entry.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,17 +17,17 @@ var _ MappedNullable = &RouteTableEntry{} // RouteTableEntry Route table entry object type RouteTableEntry struct { - Type RouteTableEntryType `json:"type"` - ProtocolType *RouteTableEntryProtocolType `json:"protocolType,omitempty"` - State RouteTableEntryState `json:"state"` - Age *string `json:"age,omitempty"` - Prefix *string `json:"prefix,omitempty"` - NextHop *string `json:"nextHop,omitempty"` - Metric *int32 `json:"metric,omitempty"` - LocalPreference *int32 `json:"localPreference,omitempty"` - AsPath []int32 `json:"asPath,omitempty"` - Connection *RouteTableEntryConnection `json:"connection,omitempty"` - ChangeLog Changelog `json:"changeLog"` + Type RouteTableEntryType `json:"type"` + ProtocolType *RouteTableEntryProtocolType `json:"protocolType,omitempty"` + State RouteTableEntryState `json:"state"` + Age *string `json:"age,omitempty"` + Prefix *string `json:"prefix,omitempty"` + NextHop *string `json:"nextHop,omitempty"` + MED *int32 `json:"MED,omitempty"` + LocalPreference *int32 `json:"localPreference,omitempty"` + AsPath []string `json:"asPath,omitempty"` + Connection *ConnectionRouteTableEntryConnection `json:"connection,omitempty"` + ChangeLog Changelog `json:"changeLog"` AdditionalProperties map[string]interface{} } @@ -230,36 +229,36 @@ func (o *RouteTableEntry) SetNextHop(v string) { o.NextHop = &v } -// GetMetric returns the Metric field value if set, zero value otherwise. -func (o *RouteTableEntry) GetMetric() int32 { - if o == nil || IsNil(o.Metric) { +// GetMED returns the MED field value if set, zero value otherwise. +func (o *RouteTableEntry) GetMED() int32 { + if o == nil || IsNil(o.MED) { var ret int32 return ret } - return *o.Metric + return *o.MED } -// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise +// GetMEDOk returns a tuple with the MED field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RouteTableEntry) GetMetricOk() (*int32, bool) { - if o == nil || IsNil(o.Metric) { +func (o *RouteTableEntry) GetMEDOk() (*int32, bool) { + if o == nil || IsNil(o.MED) { return nil, false } - return o.Metric, true + return o.MED, true } -// HasMetric returns a boolean if a field has been set. -func (o *RouteTableEntry) HasMetric() bool { - if o != nil && !IsNil(o.Metric) { +// HasMED returns a boolean if a field has been set. +func (o *RouteTableEntry) HasMED() bool { + if o != nil && !IsNil(o.MED) { return true } return false } -// SetMetric gets a reference to the given int32 and assigns it to the Metric field. -func (o *RouteTableEntry) SetMetric(v int32) { - o.Metric = &v +// SetMED gets a reference to the given int32 and assigns it to the MED field. +func (o *RouteTableEntry) SetMED(v int32) { + o.MED = &v } // GetLocalPreference returns the LocalPreference field value if set, zero value otherwise. @@ -295,9 +294,9 @@ func (o *RouteTableEntry) SetLocalPreference(v int32) { } // GetAsPath returns the AsPath field value if set, zero value otherwise. -func (o *RouteTableEntry) GetAsPath() []int32 { +func (o *RouteTableEntry) GetAsPath() []string { if o == nil || IsNil(o.AsPath) { - var ret []int32 + var ret []string return ret } return o.AsPath @@ -305,7 +304,7 @@ func (o *RouteTableEntry) GetAsPath() []int32 { // GetAsPathOk returns a tuple with the AsPath field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RouteTableEntry) GetAsPathOk() ([]int32, bool) { +func (o *RouteTableEntry) GetAsPathOk() ([]string, bool) { if o == nil || IsNil(o.AsPath) { return nil, false } @@ -321,15 +320,15 @@ func (o *RouteTableEntry) HasAsPath() bool { return false } -// SetAsPath gets a reference to the given []int32 and assigns it to the AsPath field. -func (o *RouteTableEntry) SetAsPath(v []int32) { +// SetAsPath gets a reference to the given []string and assigns it to the AsPath field. +func (o *RouteTableEntry) SetAsPath(v []string) { o.AsPath = v } // GetConnection returns the Connection field value if set, zero value otherwise. -func (o *RouteTableEntry) GetConnection() RouteTableEntryConnection { +func (o *RouteTableEntry) GetConnection() ConnectionRouteTableEntryConnection { if o == nil || IsNil(o.Connection) { - var ret RouteTableEntryConnection + var ret ConnectionRouteTableEntryConnection return ret } return *o.Connection @@ -337,7 +336,7 @@ func (o *RouteTableEntry) GetConnection() RouteTableEntryConnection { // GetConnectionOk returns a tuple with the Connection field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RouteTableEntry) GetConnectionOk() (*RouteTableEntryConnection, bool) { +func (o *RouteTableEntry) GetConnectionOk() (*ConnectionRouteTableEntryConnection, bool) { if o == nil || IsNil(o.Connection) { return nil, false } @@ -353,8 +352,8 @@ func (o *RouteTableEntry) HasConnection() bool { return false } -// SetConnection gets a reference to the given RouteTableEntryConnection and assigns it to the Connection field. -func (o *RouteTableEntry) SetConnection(v RouteTableEntryConnection) { +// SetConnection gets a reference to the given ConnectionRouteTableEntryConnection and assigns it to the Connection field. +func (o *RouteTableEntry) SetConnection(v ConnectionRouteTableEntryConnection) { o.Connection = &v } @@ -406,8 +405,8 @@ func (o RouteTableEntry) ToMap() (map[string]interface{}, error) { if !IsNil(o.NextHop) { toSerialize["nextHop"] = o.NextHop } - if !IsNil(o.Metric) { - toSerialize["metric"] = o.Metric + if !IsNil(o.MED) { + toSerialize["MED"] = o.MED } if !IsNil(o.LocalPreference) { toSerialize["localPreference"] = o.LocalPreference @@ -470,7 +469,7 @@ func (o *RouteTableEntry) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "age") delete(additionalProperties, "prefix") delete(additionalProperties, "nextHop") - delete(additionalProperties, "metric") + delete(additionalProperties, "MED") delete(additionalProperties, "localPreference") delete(additionalProperties, "asPath") delete(additionalProperties, "connection") diff --git a/services/fabricv4/model_route_table_entry_filter.go b/services/fabricv4/model_route_table_entry_filter.go index a6e701b8..65dde9f6 100644 --- a/services/fabricv4/model_route_table_entry_filter.go +++ b/services/fabricv4/model_route_table_entry_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_filters.go b/services/fabricv4/model_route_table_entry_filters.go index 0a3f1863..b52756b6 100644 --- a/services/fabricv4/model_route_table_entry_filters.go +++ b/services/fabricv4/model_route_table_entry_filters.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_or_filter.go b/services/fabricv4/model_route_table_entry_or_filter.go index 3844f24e..83bd1e2d 100644 --- a/services/fabricv4/model_route_table_entry_or_filter.go +++ b/services/fabricv4/model_route_table_entry_or_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_protocol_type.go b/services/fabricv4/model_route_table_entry_protocol_type.go index 192d6828..9d26edd1 100644 --- a/services/fabricv4/model_route_table_entry_protocol_type.go +++ b/services/fabricv4/model_route_table_entry_protocol_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_search_request.go b/services/fabricv4/model_route_table_entry_search_request.go index ba8da8f9..ab42165b 100644 --- a/services/fabricv4/model_route_table_entry_search_request.go +++ b/services/fabricv4/model_route_table_entry_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_search_response.go b/services/fabricv4/model_route_table_entry_search_response.go index 69dee640..69a7f9a4 100644 --- a/services/fabricv4/model_route_table_entry_search_response.go +++ b/services/fabricv4/model_route_table_entry_search_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_simple_expression.go b/services/fabricv4/model_route_table_entry_simple_expression.go index c61def99..a3a21e3c 100644 --- a/services/fabricv4/model_route_table_entry_simple_expression.go +++ b/services/fabricv4/model_route_table_entry_simple_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_sort_by.go b/services/fabricv4/model_route_table_entry_sort_by.go index 707ffe04..a0b0c21d 100644 --- a/services/fabricv4/model_route_table_entry_sort_by.go +++ b/services/fabricv4/model_route_table_entry_sort_by.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_sort_criteria.go b/services/fabricv4/model_route_table_entry_sort_criteria.go index 74b6d76c..ceed39e0 100644 --- a/services/fabricv4/model_route_table_entry_sort_criteria.go +++ b/services/fabricv4/model_route_table_entry_sort_criteria.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_sort_direction.go b/services/fabricv4/model_route_table_entry_sort_direction.go index 1f334c27..9b371765 100644 --- a/services/fabricv4/model_route_table_entry_sort_direction.go +++ b/services/fabricv4/model_route_table_entry_sort_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_state.go b/services/fabricv4/model_route_table_entry_state.go index 7296dde4..d9bd90e2 100644 --- a/services/fabricv4/model_route_table_entry_state.go +++ b/services/fabricv4/model_route_table_entry_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_route_table_entry_type.go b/services/fabricv4/model_route_table_entry_type.go index 3ca0f745..1a442ec3 100644 --- a/services/fabricv4/model_route_table_entry_type.go +++ b/services/fabricv4/model_route_table_entry_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_router_actions_connection.go b/services/fabricv4/model_router_actions_connection.go new file mode 100644 index 00000000..504cdd35 --- /dev/null +++ b/services/fabricv4/model_router_actions_connection.go @@ -0,0 +1,151 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the RouterActionsConnection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RouterActionsConnection{} + +// RouterActionsConnection Connection object for router actions +type RouterActionsConnection struct { + // Connection UUID + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RouterActionsConnection RouterActionsConnection + +// NewRouterActionsConnection instantiates a new RouterActionsConnection 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 NewRouterActionsConnection() *RouterActionsConnection { + this := RouterActionsConnection{} + return &this +} + +// NewRouterActionsConnectionWithDefaults instantiates a new RouterActionsConnection 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 NewRouterActionsConnectionWithDefaults() *RouterActionsConnection { + this := RouterActionsConnection{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *RouterActionsConnection) 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 *RouterActionsConnection) 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 *RouterActionsConnection) 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 *RouterActionsConnection) SetUuid(v string) { + o.Uuid = &v +} + +func (o RouterActionsConnection) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RouterActionsConnection) 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 *RouterActionsConnection) UnmarshalJSON(data []byte) (err error) { + varRouterActionsConnection := _RouterActionsConnection{} + + err = json.Unmarshal(data, &varRouterActionsConnection) + + if err != nil { + return err + } + + *o = RouterActionsConnection(varRouterActionsConnection) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRouterActionsConnection struct { + value *RouterActionsConnection + isSet bool +} + +func (v NullableRouterActionsConnection) Get() *RouterActionsConnection { + return v.value +} + +func (v *NullableRouterActionsConnection) Set(val *RouterActionsConnection) { + v.value = val + v.isSet = true +} + +func (v NullableRouterActionsConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableRouterActionsConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRouterActionsConnection(val *RouterActionsConnection) *NullableRouterActionsConnection { + return &NullableRouterActionsConnection{value: val, isSet: true} +} + +func (v NullableRouterActionsConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRouterActionsConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_router_package_code.go b/services/fabricv4/model_router_package_code.go index 32ed8f46..e5f42fdf 100644 --- a/services/fabricv4/model_router_package_code.go +++ b/services/fabricv4/model_router_package_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_base.go b/services/fabricv4/model_routing_protocol_base.go index a06ddbbb..43a3029c 100644 --- a/services/fabricv4/model_routing_protocol_base.go +++ b/services/fabricv4/model_routing_protocol_base.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_bfd.go b/services/fabricv4/model_routing_protocol_bfd.go index 91e71155..4613823c 100644 --- a/services/fabricv4/model_routing_protocol_bfd.go +++ b/services/fabricv4/model_routing_protocol_bfd.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_bgp_data.go b/services/fabricv4/model_routing_protocol_bgp_data.go index 03cfee2f..77530841 100644 --- a/services/fabricv4/model_routing_protocol_bgp_data.go +++ b/services/fabricv4/model_routing_protocol_bgp_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_bgp_data_state.go b/services/fabricv4/model_routing_protocol_bgp_data_state.go index 0b41c44f..631e223c 100644 --- a/services/fabricv4/model_routing_protocol_bgp_data_state.go +++ b/services/fabricv4/model_routing_protocol_bgp_data_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_bgp_type.go b/services/fabricv4/model_routing_protocol_bgp_type.go index 8089e72c..647ef852 100644 --- a/services/fabricv4/model_routing_protocol_bgp_type.go +++ b/services/fabricv4/model_routing_protocol_bgp_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_bgp_type_type.go b/services/fabricv4/model_routing_protocol_bgp_type_type.go index 7704f312..fcf30522 100644 --- a/services/fabricv4/model_routing_protocol_bgp_type_type.go +++ b/services/fabricv4/model_routing_protocol_bgp_type_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_change.go b/services/fabricv4/model_routing_protocol_change.go index 57797506..18811337 100644 --- a/services/fabricv4/model_routing_protocol_change.go +++ b/services/fabricv4/model_routing_protocol_change.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_change_data.go b/services/fabricv4/model_routing_protocol_change_data.go index 5da78438..029b1686 100644 --- a/services/fabricv4/model_routing_protocol_change_data.go +++ b/services/fabricv4/model_routing_protocol_change_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_change_data_response.go b/services/fabricv4/model_routing_protocol_change_data_response.go index 8a8b4610..45efd3d3 100644 --- a/services/fabricv4/model_routing_protocol_change_data_response.go +++ b/services/fabricv4/model_routing_protocol_change_data_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_change_operation.go b/services/fabricv4/model_routing_protocol_change_operation.go index 6f8c8fc2..60156ed8 100644 --- a/services/fabricv4/model_routing_protocol_change_operation.go +++ b/services/fabricv4/model_routing_protocol_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_change_operation_op.go b/services/fabricv4/model_routing_protocol_change_operation_op.go index 19134c98..9910df4e 100644 --- a/services/fabricv4/model_routing_protocol_change_operation_op.go +++ b/services/fabricv4/model_routing_protocol_change_operation_op.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_change_type.go b/services/fabricv4/model_routing_protocol_change_type.go index 0f494936..7d6808fd 100644 --- a/services/fabricv4/model_routing_protocol_change_type.go +++ b/services/fabricv4/model_routing_protocol_change_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_data.go b/services/fabricv4/model_routing_protocol_data.go index ab926d6c..33291102 100644 --- a/services/fabricv4/model_routing_protocol_data.go +++ b/services/fabricv4/model_routing_protocol_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_direct_data.go b/services/fabricv4/model_routing_protocol_direct_data.go index b8330186..a6690df6 100644 --- a/services/fabricv4/model_routing_protocol_direct_data.go +++ b/services/fabricv4/model_routing_protocol_direct_data.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_direct_type.go b/services/fabricv4/model_routing_protocol_direct_type.go index edcf47be..5fa80d6c 100644 --- a/services/fabricv4/model_routing_protocol_direct_type.go +++ b/services/fabricv4/model_routing_protocol_direct_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_direct_type_type.go b/services/fabricv4/model_routing_protocol_direct_type_type.go index 29e7406c..b3ff927a 100644 --- a/services/fabricv4/model_routing_protocol_direct_type_type.go +++ b/services/fabricv4/model_routing_protocol_direct_type_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_routing_protocol_operation.go b/services/fabricv4/model_routing_protocol_operation.go index 1462c99b..e8858fe4 100644 --- a/services/fabricv4/model_routing_protocol_operation.go +++ b/services/fabricv4/model_routing_protocol_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_search_expression.go b/services/fabricv4/model_search_expression.go index c564194e..01114bc6 100644 --- a/services/fabricv4/model_search_expression.go +++ b/services/fabricv4/model_search_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_search_field_name.go b/services/fabricv4/model_search_field_name.go index d4df302b..2bddc29e 100644 --- a/services/fabricv4/model_search_field_name.go +++ b/services/fabricv4/model_search_field_name.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_search_request.go b/services/fabricv4/model_search_request.go index 7f614534..ea2f7476 100644 --- a/services/fabricv4/model_search_request.go +++ b/services/fabricv4/model_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_search_response.go b/services/fabricv4/model_search_response.go index 4d5c78bc..3ac4d3eb 100644 --- a/services/fabricv4/model_search_response.go +++ b/services/fabricv4/model_search_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_metro.go b/services/fabricv4/model_service_metro.go index 8600291e..e395fc59 100644 --- a/services/fabricv4/model_service_metro.go +++ b/services/fabricv4/model_service_metro.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_metros.go b/services/fabricv4/model_service_metros.go index 214fb3f7..05f313e3 100644 --- a/services/fabricv4/model_service_metros.go +++ b/services/fabricv4/model_service_metros.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile.go b/services/fabricv4/model_service_profile.go index 3a787803..9fe07214 100644 --- a/services/fabricv4/model_service_profile.go +++ b/services/fabricv4/model_service_profile.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_colo.go b/services/fabricv4/model_service_profile_access_point_colo.go index 71213950..c3cc5ec2 100644 --- a/services/fabricv4/model_service_profile_access_point_colo.go +++ b/services/fabricv4/model_service_profile_access_point_colo.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_colo_type.go b/services/fabricv4/model_service_profile_access_point_colo_type.go index 9a4e4cab..747f727c 100644 --- a/services/fabricv4/model_service_profile_access_point_colo_type.go +++ b/services/fabricv4/model_service_profile_access_point_colo_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_type.go b/services/fabricv4/model_service_profile_access_point_type.go index 7b9934c5..0085a127 100644 --- a/services/fabricv4/model_service_profile_access_point_type.go +++ b/services/fabricv4/model_service_profile_access_point_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_type_colo.go b/services/fabricv4/model_service_profile_access_point_type_colo.go index 1ec7578f..afaaa1e5 100644 --- a/services/fabricv4/model_service_profile_access_point_type_colo.go +++ b/services/fabricv4/model_service_profile_access_point_type_colo.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_type_enum.go b/services/fabricv4/model_service_profile_access_point_type_enum.go index cd1602b3..3e9d99e7 100644 --- a/services/fabricv4/model_service_profile_access_point_type_enum.go +++ b/services/fabricv4/model_service_profile_access_point_type_enum.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_type_vd.go b/services/fabricv4/model_service_profile_access_point_type_vd.go index f9e5291b..b32a0748 100644 --- a/services/fabricv4/model_service_profile_access_point_type_vd.go +++ b/services/fabricv4/model_service_profile_access_point_type_vd.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_vd.go b/services/fabricv4/model_service_profile_access_point_vd.go index 598f77b9..9d335e29 100644 --- a/services/fabricv4/model_service_profile_access_point_vd.go +++ b/services/fabricv4/model_service_profile_access_point_vd.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_access_point_vd_type.go b/services/fabricv4/model_service_profile_access_point_vd_type.go index 57af7b83..44849e86 100644 --- a/services/fabricv4/model_service_profile_access_point_vd_type.go +++ b/services/fabricv4/model_service_profile_access_point_vd_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_and_filter.go b/services/fabricv4/model_service_profile_and_filter.go index 4b094124..fa905a77 100644 --- a/services/fabricv4/model_service_profile_and_filter.go +++ b/services/fabricv4/model_service_profile_and_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_filter.go b/services/fabricv4/model_service_profile_filter.go index 85d62ff4..203a4b4b 100644 --- a/services/fabricv4/model_service_profile_filter.go +++ b/services/fabricv4/model_service_profile_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_link_protocol_config.go b/services/fabricv4/model_service_profile_link_protocol_config.go index 60d53b1b..13db2049 100644 --- a/services/fabricv4/model_service_profile_link_protocol_config.go +++ b/services/fabricv4/model_service_profile_link_protocol_config.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_link_protocol_config_encapsulation.go b/services/fabricv4/model_service_profile_link_protocol_config_encapsulation.go index d675a091..aebf1647 100644 --- a/services/fabricv4/model_service_profile_link_protocol_config_encapsulation.go +++ b/services/fabricv4/model_service_profile_link_protocol_config_encapsulation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_link_protocol_config_encapsulation_strategy.go b/services/fabricv4/model_service_profile_link_protocol_config_encapsulation_strategy.go index 4182e5a9..dd71cea9 100644 --- a/services/fabricv4/model_service_profile_link_protocol_config_encapsulation_strategy.go +++ b/services/fabricv4/model_service_profile_link_protocol_config_encapsulation_strategy.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_metadata.go b/services/fabricv4/model_service_profile_metadata.go index f53cda6c..38fc01a6 100644 --- a/services/fabricv4/model_service_profile_metadata.go +++ b/services/fabricv4/model_service_profile_metadata.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_request.go b/services/fabricv4/model_service_profile_request.go index 82f15757..1c501a63 100644 --- a/services/fabricv4/model_service_profile_request.go +++ b/services/fabricv4/model_service_profile_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_search_request.go b/services/fabricv4/model_service_profile_search_request.go index e464ea13..340d1298 100644 --- a/services/fabricv4/model_service_profile_search_request.go +++ b/services/fabricv4/model_service_profile_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_simple_expression.go b/services/fabricv4/model_service_profile_simple_expression.go index 7102a804..14de6add 100644 --- a/services/fabricv4/model_service_profile_simple_expression.go +++ b/services/fabricv4/model_service_profile_simple_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_sort_by.go b/services/fabricv4/model_service_profile_sort_by.go index b5c32783..a083eae3 100644 --- a/services/fabricv4/model_service_profile_sort_by.go +++ b/services/fabricv4/model_service_profile_sort_by.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_sort_criteria.go b/services/fabricv4/model_service_profile_sort_criteria.go index ad317d8f..2a1301e8 100644 --- a/services/fabricv4/model_service_profile_sort_criteria.go +++ b/services/fabricv4/model_service_profile_sort_criteria.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_sort_direction.go b/services/fabricv4/model_service_profile_sort_direction.go index 9e9ac238..d73e7827 100644 --- a/services/fabricv4/model_service_profile_sort_direction.go +++ b/services/fabricv4/model_service_profile_sort_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_state_enum.go b/services/fabricv4/model_service_profile_state_enum.go index cb9d8bff..d38adda0 100644 --- a/services/fabricv4/model_service_profile_state_enum.go +++ b/services/fabricv4/model_service_profile_state_enum.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_type_enum.go b/services/fabricv4/model_service_profile_type_enum.go index dea73dba..8dacf0ee 100644 --- a/services/fabricv4/model_service_profile_type_enum.go +++ b/services/fabricv4/model_service_profile_type_enum.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profile_visibility_enum.go b/services/fabricv4/model_service_profile_visibility_enum.go index 7976e813..1e633c38 100644 --- a/services/fabricv4/model_service_profile_visibility_enum.go +++ b/services/fabricv4/model_service_profile_visibility_enum.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_profiles.go b/services/fabricv4/model_service_profiles.go index 7292a019..a3ce4ccf 100644 --- a/services/fabricv4/model_service_profiles.go +++ b/services/fabricv4/model_service_profiles.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_search_response.go b/services/fabricv4/model_service_search_response.go index 7ef0c5e0..95fb1757 100644 --- a/services/fabricv4/model_service_search_response.go +++ b/services/fabricv4/model_service_search_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token.go b/services/fabricv4/model_service_token.go index c4d521c6..3a989466 100644 --- a/services/fabricv4/model_service_token.go +++ b/services/fabricv4/model_service_token.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -10,7 +9,6 @@ package fabricv4 import ( "encoding/json" - "fmt" "time" ) @@ -23,7 +21,8 @@ type ServiceToken struct { // An absolute URL that is the subject of the link's context. Href *string `json:"href,omitempty"` // Equinix-assigned service token identifier - Uuid string `json:"uuid"` + Uuid *string `json:"uuid,omitempty"` + IssuerSide *ServiceTokenIssuerSide `json:"issuerSide,omitempty"` // Customer-provided service token name Name *string `json:"name,omitempty"` // Customer-provided service token description @@ -46,9 +45,8 @@ type _ServiceToken ServiceToken // 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 NewServiceToken(uuid string) *ServiceToken { +func NewServiceToken() *ServiceToken { this := ServiceToken{} - this.Uuid = uuid return &this } @@ -124,28 +122,68 @@ func (o *ServiceToken) SetHref(v string) { o.Href = &v } -// GetUuid returns the Uuid field value +// GetUuid returns the Uuid field value if set, zero value otherwise. func (o *ServiceToken) GetUuid() string { - if o == nil { + if o == nil || IsNil(o.Uuid) { var ret string return ret } - - return o.Uuid + return *o.Uuid } -// GetUuidOk returns a tuple with the Uuid field value +// 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 *ServiceToken) GetUuidOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.Uuid) { return nil, false } - return &o.Uuid, true + return o.Uuid, true } -// SetUuid sets field value +// HasUuid returns a boolean if a field has been set. +func (o *ServiceToken) 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 *ServiceToken) SetUuid(v string) { - o.Uuid = v + o.Uuid = &v +} + +// GetIssuerSide returns the IssuerSide field value if set, zero value otherwise. +func (o *ServiceToken) GetIssuerSide() ServiceTokenIssuerSide { + if o == nil || IsNil(o.IssuerSide) { + var ret ServiceTokenIssuerSide + return ret + } + return *o.IssuerSide +} + +// GetIssuerSideOk returns a tuple with the IssuerSide field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceToken) GetIssuerSideOk() (*ServiceTokenIssuerSide, bool) { + if o == nil || IsNil(o.IssuerSide) { + return nil, false + } + return o.IssuerSide, true +} + +// HasIssuerSide returns a boolean if a field has been set. +func (o *ServiceToken) HasIssuerSide() bool { + if o != nil && !IsNil(o.IssuerSide) { + return true + } + + return false +} + +// SetIssuerSide gets a reference to the given ServiceTokenIssuerSide and assigns it to the IssuerSide field. +func (o *ServiceToken) SetIssuerSide(v ServiceTokenIssuerSide) { + o.IssuerSide = &v } // GetName returns the Name field value if set, zero value otherwise. @@ -452,7 +490,12 @@ func (o ServiceToken) ToMap() (map[string]interface{}, error) { if !IsNil(o.Href) { toSerialize["href"] = o.Href } - toSerialize["uuid"] = o.Uuid + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.IssuerSide) { + toSerialize["issuerSide"] = o.IssuerSide + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -489,27 +532,6 @@ func (o ServiceToken) ToMap() (map[string]interface{}, error) { } func (o *ServiceToken) 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{ - "uuid", - } - - 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) - } - } - varServiceToken := _ServiceToken{} err = json.Unmarshal(data, &varServiceToken) @@ -526,6 +548,7 @@ func (o *ServiceToken) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "href") delete(additionalProperties, "uuid") + delete(additionalProperties, "issuerSide") delete(additionalProperties, "name") delete(additionalProperties, "description") delete(additionalProperties, "expirationDateTime") diff --git a/services/fabricv4/model_service_token_action_request.go b/services/fabricv4/model_service_token_action_request.go index ef0d071d..de1c5caf 100644 --- a/services/fabricv4/model_service_token_action_request.go +++ b/services/fabricv4/model_service_token_action_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token_actions.go b/services/fabricv4/model_service_token_actions.go index 36d3b12a..4d81b846 100644 --- a/services/fabricv4/model_service_token_actions.go +++ b/services/fabricv4/model_service_token_actions.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token_change_operation.go b/services/fabricv4/model_service_token_change_operation.go index b6c9f362..a90671f2 100644 --- a/services/fabricv4/model_service_token_change_operation.go +++ b/services/fabricv4/model_service_token_change_operation.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,7 +17,7 @@ var _ MappedNullable = &ServiceTokenChangeOperation{} // ServiceTokenChangeOperation Service Token change operation data type ServiceTokenChangeOperation struct { - Op ServiceTokenChangeOperationOp `json:"op"` + Op PrecisionTimeChangeOperationOp `json:"op"` // path inside document leading to updated parameter Path string `json:"path"` // new value for updated parameter @@ -32,7 +31,7 @@ type _ServiceTokenChangeOperation ServiceTokenChangeOperation // 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 NewServiceTokenChangeOperation(op ServiceTokenChangeOperationOp, path string, value interface{}) *ServiceTokenChangeOperation { +func NewServiceTokenChangeOperation(op PrecisionTimeChangeOperationOp, path string, value interface{}) *ServiceTokenChangeOperation { this := ServiceTokenChangeOperation{} this.Op = op this.Path = path @@ -49,9 +48,9 @@ func NewServiceTokenChangeOperationWithDefaults() *ServiceTokenChangeOperation { } // GetOp returns the Op field value -func (o *ServiceTokenChangeOperation) GetOp() ServiceTokenChangeOperationOp { +func (o *ServiceTokenChangeOperation) GetOp() PrecisionTimeChangeOperationOp { if o == nil { - var ret ServiceTokenChangeOperationOp + var ret PrecisionTimeChangeOperationOp return ret } @@ -60,7 +59,7 @@ func (o *ServiceTokenChangeOperation) GetOp() ServiceTokenChangeOperationOp { // GetOpOk returns a tuple with the Op field value // and a boolean to check if the value has been set. -func (o *ServiceTokenChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, bool) { +func (o *ServiceTokenChangeOperation) GetOpOk() (*PrecisionTimeChangeOperationOp, bool) { if o == nil { return nil, false } @@ -68,7 +67,7 @@ func (o *ServiceTokenChangeOperation) GetOpOk() (*ServiceTokenChangeOperationOp, } // SetOp sets field value -func (o *ServiceTokenChangeOperation) SetOp(v ServiceTokenChangeOperationOp) { +func (o *ServiceTokenChangeOperation) SetOp(v PrecisionTimeChangeOperationOp) { o.Op = v } diff --git a/services/fabricv4/model_service_token_change_operation_op.go b/services/fabricv4/model_service_token_change_operation_op.go deleted file mode 100644 index 0e0c341e..00000000 --- a/services/fabricv4/model_service_token_change_operation_op.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// ServiceTokenChangeOperationOp Handy shortcut for operation name -type ServiceTokenChangeOperationOp string - -// List of ServiceTokenChangeOperation_op -const ( - SERVICETOKENCHANGEOPERATIONOP_REPLACE ServiceTokenChangeOperationOp = "replace" - SERVICETOKENCHANGEOPERATIONOP_ADD ServiceTokenChangeOperationOp = "add" - SERVICETOKENCHANGEOPERATIONOP_REMOVE ServiceTokenChangeOperationOp = "remove" -) - -// All allowed values of ServiceTokenChangeOperationOp enum -var AllowedServiceTokenChangeOperationOpEnumValues = []ServiceTokenChangeOperationOp{ - "replace", - "add", - "remove", -} - -func (v *ServiceTokenChangeOperationOp) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ServiceTokenChangeOperationOp(value) - for _, existing := range AllowedServiceTokenChangeOperationOpEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ServiceTokenChangeOperationOp", value) -} - -// NewServiceTokenChangeOperationOpFromValue returns a pointer to a valid ServiceTokenChangeOperationOp -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewServiceTokenChangeOperationOpFromValue(v string) (*ServiceTokenChangeOperationOp, error) { - ev := ServiceTokenChangeOperationOp(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ServiceTokenChangeOperationOp: valid values are %v", v, AllowedServiceTokenChangeOperationOpEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ServiceTokenChangeOperationOp) IsValid() bool { - for _, existing := range AllowedServiceTokenChangeOperationOpEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ServiceTokenChangeOperation_op value -func (v ServiceTokenChangeOperationOp) Ptr() *ServiceTokenChangeOperationOp { - return &v -} - -type NullableServiceTokenChangeOperationOp struct { - value *ServiceTokenChangeOperationOp - isSet bool -} - -func (v NullableServiceTokenChangeOperationOp) Get() *ServiceTokenChangeOperationOp { - return v.value -} - -func (v *NullableServiceTokenChangeOperationOp) Set(val *ServiceTokenChangeOperationOp) { - v.value = val - v.isSet = true -} - -func (v NullableServiceTokenChangeOperationOp) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceTokenChangeOperationOp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceTokenChangeOperationOp(val *ServiceTokenChangeOperationOp) *NullableServiceTokenChangeOperationOp { - return &NullableServiceTokenChangeOperationOp{value: val, isSet: true} -} - -func (v NullableServiceTokenChangeOperationOp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceTokenChangeOperationOp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_service_token_connection.go b/services/fabricv4/model_service_token_connection.go index f71b7b40..dd5ad471 100644 --- a/services/fabricv4/model_service_token_connection.go +++ b/services/fabricv4/model_service_token_connection.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,6 +24,8 @@ type ServiceTokenConnection struct { Uuid *string `json:"uuid,omitempty"` // Authorization to connect remotely AllowRemoteConnection *bool `json:"allowRemoteConnection,omitempty"` + // Allow custom bandwidth value + AllowCustomBandwidth *bool `json:"allowCustomBandwidth,omitempty"` // Connection bandwidth limit in Mbps BandwidthLimit *int32 `json:"bandwidthLimit,omitempty"` // List of permitted bandwidths. @@ -45,6 +46,8 @@ func NewServiceTokenConnection(type_ ServiceTokenConnectionType) *ServiceTokenCo this.Type = type_ var allowRemoteConnection bool = false this.AllowRemoteConnection = &allowRemoteConnection + var allowCustomBandwidth bool = false + this.AllowCustomBandwidth = &allowCustomBandwidth return &this } @@ -55,6 +58,8 @@ func NewServiceTokenConnectionWithDefaults() *ServiceTokenConnection { this := ServiceTokenConnection{} var allowRemoteConnection bool = false this.AllowRemoteConnection = &allowRemoteConnection + var allowCustomBandwidth bool = false + this.AllowCustomBandwidth = &allowCustomBandwidth return &this } @@ -178,6 +183,38 @@ func (o *ServiceTokenConnection) SetAllowRemoteConnection(v bool) { o.AllowRemoteConnection = &v } +// GetAllowCustomBandwidth returns the AllowCustomBandwidth field value if set, zero value otherwise. +func (o *ServiceTokenConnection) GetAllowCustomBandwidth() bool { + if o == nil || IsNil(o.AllowCustomBandwidth) { + var ret bool + return ret + } + return *o.AllowCustomBandwidth +} + +// GetAllowCustomBandwidthOk returns a tuple with the AllowCustomBandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceTokenConnection) GetAllowCustomBandwidthOk() (*bool, bool) { + if o == nil || IsNil(o.AllowCustomBandwidth) { + return nil, false + } + return o.AllowCustomBandwidth, true +} + +// HasAllowCustomBandwidth returns a boolean if a field has been set. +func (o *ServiceTokenConnection) HasAllowCustomBandwidth() bool { + if o != nil && !IsNil(o.AllowCustomBandwidth) { + return true + } + + return false +} + +// SetAllowCustomBandwidth gets a reference to the given bool and assigns it to the AllowCustomBandwidth field. +func (o *ServiceTokenConnection) SetAllowCustomBandwidth(v bool) { + o.AllowCustomBandwidth = &v +} + // GetBandwidthLimit returns the BandwidthLimit field value if set, zero value otherwise. func (o *ServiceTokenConnection) GetBandwidthLimit() int32 { if o == nil || IsNil(o.BandwidthLimit) { @@ -326,6 +363,9 @@ func (o ServiceTokenConnection) ToMap() (map[string]interface{}, error) { if !IsNil(o.AllowRemoteConnection) { toSerialize["allowRemoteConnection"] = o.AllowRemoteConnection } + if !IsNil(o.AllowCustomBandwidth) { + toSerialize["allowCustomBandwidth"] = o.AllowCustomBandwidth + } if !IsNil(o.BandwidthLimit) { toSerialize["bandwidthLimit"] = o.BandwidthLimit } @@ -385,6 +425,7 @@ func (o *ServiceTokenConnection) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "href") delete(additionalProperties, "uuid") delete(additionalProperties, "allowRemoteConnection") + delete(additionalProperties, "allowCustomBandwidth") delete(additionalProperties, "bandwidthLimit") delete(additionalProperties, "supportedBandwidths") delete(additionalProperties, "aSide") diff --git a/services/fabricv4/model_service_token_connection_type.go b/services/fabricv4/model_service_token_connection_type.go index 7492a204..fc9cc3aa 100644 --- a/services/fabricv4/model_service_token_connection_type.go +++ b/services/fabricv4/model_service_token_connection_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,12 +17,18 @@ type ServiceTokenConnectionType string // List of ServiceTokenConnection_type const ( - SERVICETOKENCONNECTIONTYPE_EVPL_VC ServiceTokenConnectionType = "EVPL_VC" + SERVICETOKENCONNECTIONTYPE_EVPL_VC ServiceTokenConnectionType = "EVPL_VC" + SERVICETOKENCONNECTIONTYPE_EVPLAN_VC ServiceTokenConnectionType = "EVPLAN_VC" + SERVICETOKENCONNECTIONTYPE_EPLAN_VC ServiceTokenConnectionType = "EPLAN_VC" + SERVICETOKENCONNECTIONTYPE_IPWAN_VC ServiceTokenConnectionType = "IPWAN_VC" ) // All allowed values of ServiceTokenConnectionType enum var AllowedServiceTokenConnectionTypeEnumValues = []ServiceTokenConnectionType{ "EVPL_VC", + "EVPLAN_VC", + "EPLAN_VC", + "IPWAN_VC", } func (v *ServiceTokenConnectionType) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_service_token_issuer_side.go b/services/fabricv4/model_service_token_issuer_side.go new file mode 100644 index 00000000..acafa77d --- /dev/null +++ b/services/fabricv4/model_service_token_issuer_side.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// ServiceTokenIssuerSide information about token side +type ServiceTokenIssuerSide string + +// List of ServiceToken_issuerSide +const ( + SERVICETOKENISSUERSIDE_ASIDE ServiceTokenIssuerSide = "ASIDE" + SERVICETOKENISSUERSIDE_ZSIDE ServiceTokenIssuerSide = "ZSIDE" +) + +// All allowed values of ServiceTokenIssuerSide enum +var AllowedServiceTokenIssuerSideEnumValues = []ServiceTokenIssuerSide{ + "ASIDE", + "ZSIDE", +} + +func (v *ServiceTokenIssuerSide) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ServiceTokenIssuerSide(value) + for _, existing := range AllowedServiceTokenIssuerSideEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ServiceTokenIssuerSide", value) +} + +// NewServiceTokenIssuerSideFromValue returns a pointer to a valid ServiceTokenIssuerSide +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewServiceTokenIssuerSideFromValue(v string) (*ServiceTokenIssuerSide, error) { + ev := ServiceTokenIssuerSide(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ServiceTokenIssuerSide: valid values are %v", v, AllowedServiceTokenIssuerSideEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ServiceTokenIssuerSide) IsValid() bool { + for _, existing := range AllowedServiceTokenIssuerSideEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ServiceToken_issuerSide value +func (v ServiceTokenIssuerSide) Ptr() *ServiceTokenIssuerSide { + return &v +} + +type NullableServiceTokenIssuerSide struct { + value *ServiceTokenIssuerSide + isSet bool +} + +func (v NullableServiceTokenIssuerSide) Get() *ServiceTokenIssuerSide { + return v.value +} + +func (v *NullableServiceTokenIssuerSide) Set(val *ServiceTokenIssuerSide) { + v.value = val + v.isSet = true +} + +func (v NullableServiceTokenIssuerSide) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceTokenIssuerSide) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceTokenIssuerSide(val *ServiceTokenIssuerSide) *NullableServiceTokenIssuerSide { + return &NullableServiceTokenIssuerSide{value: val, isSet: true} +} + +func (v NullableServiceTokenIssuerSide) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceTokenIssuerSide) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_service_token_search_expression.go b/services/fabricv4/model_service_token_search_expression.go index ffd4e232..7a8f105a 100644 --- a/services/fabricv4/model_service_token_search_expression.go +++ b/services/fabricv4/model_service_token_search_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token_search_expression_operator.go b/services/fabricv4/model_service_token_search_expression_operator.go index c1131185..3c4ef500 100644 --- a/services/fabricv4/model_service_token_search_expression_operator.go +++ b/services/fabricv4/model_service_token_search_expression_operator.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token_search_field_name.go b/services/fabricv4/model_service_token_search_field_name.go index 644ac5b2..21072f46 100644 --- a/services/fabricv4/model_service_token_search_field_name.go +++ b/services/fabricv4/model_service_token_search_field_name.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token_search_request.go b/services/fabricv4/model_service_token_search_request.go index 0cecfb1f..5088cc92 100644 --- a/services/fabricv4/model_service_token_search_request.go +++ b/services/fabricv4/model_service_token_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token_side.go b/services/fabricv4/model_service_token_side.go index 00b219b8..76e0cd70 100644 --- a/services/fabricv4/model_service_token_side.go +++ b/services/fabricv4/model_service_token_side.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +14,7 @@ import ( // checks if the ServiceTokenSide type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ServiceTokenSide{} -// ServiceTokenSide Connection link protocol configuration +// ServiceTokenSide Connection link protocol,virtual device or network configuration type ServiceTokenSide struct { // List of AccessPointSelectors AccessPointSelectors []AccessPointSelector `json:"accessPointSelectors,omitempty"` diff --git a/services/fabricv4/model_service_token_state.go b/services/fabricv4/model_service_token_state.go index b9fda1a3..84496aac 100644 --- a/services/fabricv4/model_service_token_state.go +++ b/services/fabricv4/model_service_token_state.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_service_token_type.go b/services/fabricv4/model_service_token_type.go index 01672c6d..5f200e98 100644 --- a/services/fabricv4/model_service_token_type.go +++ b/services/fabricv4/model_service_token_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,12 +17,14 @@ type ServiceTokenType string // List of ServiceTokenType const ( - SERVICETOKENTYPE_VC_TOKEN ServiceTokenType = "VC_TOKEN" + SERVICETOKENTYPE_VC_TOKEN ServiceTokenType = "VC_TOKEN" + SERVICETOKENTYPE_EPL_TOKEN ServiceTokenType = "EPL_TOKEN" ) // All allowed values of ServiceTokenType enum var AllowedServiceTokenTypeEnumValues = []ServiceTokenType{ "VC_TOKEN", + "EPL_TOKEN", } func (v *ServiceTokenType) UnmarshalJSON(src []byte) error { diff --git a/services/fabricv4/model_service_tokens.go b/services/fabricv4/model_service_tokens.go index afc0bfba..3b9805bb 100644 --- a/services/fabricv4/model_service_tokens.go +++ b/services/fabricv4/model_service_tokens.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_account.go b/services/fabricv4/model_simplified_account.go index 30a70893..bde1002b 100644 --- a/services/fabricv4/model_simplified_account.go +++ b/services/fabricv4/model_simplified_account.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_account_port_response.go b/services/fabricv4/model_simplified_account_port_response.go deleted file mode 100644 index 4b7194af..00000000 --- a/services/fabricv4/model_simplified_account_port_response.go +++ /dev/null @@ -1,570 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" -) - -// checks if the SimplifiedAccountPortResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SimplifiedAccountPortResponse{} - -// SimplifiedAccountPortResponse Temporary SimplifiedAccount for PortResponse data mismatch of all strings in account -type SimplifiedAccountPortResponse struct { - // Account number - AccountNumber *string `json:"accountNumber,omitempty"` - // Customer organization identifier - OrgId *string `json:"orgId,omitempty"` - // Reseller account number - ResellerAccountNumber *string `json:"resellerAccountNumber,omitempty"` - // Reseller customer organization identifier - ResellerOrgId *string `json:"resellerOrgId,omitempty"` - // Account name - AccountName *string `json:"accountName,omitempty"` - // Customer organization name - OrganizationName *string `json:"organizationName,omitempty"` - // Global organization identifier - GlobalOrgId *string `json:"globalOrgId,omitempty"` - // Global organization name - GlobalOrganizationName *string `json:"globalOrganizationName,omitempty"` - // Account ucmId - UcmId *string `json:"ucmId,omitempty"` - // Account name - GlobalCustId *string `json:"globalCustId,omitempty"` - // Reseller account name - ResellerAccountName *string `json:"resellerAccountName,omitempty"` - // Reseller account ucmId - ResellerUcmId *string `json:"resellerUcmId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SimplifiedAccountPortResponse SimplifiedAccountPortResponse - -// NewSimplifiedAccountPortResponse instantiates a new SimplifiedAccountPortResponse 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 NewSimplifiedAccountPortResponse() *SimplifiedAccountPortResponse { - this := SimplifiedAccountPortResponse{} - return &this -} - -// NewSimplifiedAccountPortResponseWithDefaults instantiates a new SimplifiedAccountPortResponse 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 NewSimplifiedAccountPortResponseWithDefaults() *SimplifiedAccountPortResponse { - this := SimplifiedAccountPortResponse{} - return &this -} - -// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetAccountNumber() string { - if o == nil || IsNil(o.AccountNumber) { - var ret string - return ret - } - return *o.AccountNumber -} - -// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetAccountNumberOk() (*string, bool) { - if o == nil || IsNil(o.AccountNumber) { - return nil, false - } - return o.AccountNumber, true -} - -// HasAccountNumber returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasAccountNumber() bool { - if o != nil && !IsNil(o.AccountNumber) { - return true - } - - return false -} - -// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. -func (o *SimplifiedAccountPortResponse) SetAccountNumber(v string) { - o.AccountNumber = &v -} - -// GetOrgId returns the OrgId field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetOrgId() string { - if o == nil || IsNil(o.OrgId) { - var ret string - return ret - } - return *o.OrgId -} - -// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.OrgId) { - return nil, false - } - return o.OrgId, true -} - -// HasOrgId returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasOrgId() bool { - if o != nil && !IsNil(o.OrgId) { - return true - } - - return false -} - -// SetOrgId gets a reference to the given string and assigns it to the OrgId field. -func (o *SimplifiedAccountPortResponse) SetOrgId(v string) { - o.OrgId = &v -} - -// GetResellerAccountNumber returns the ResellerAccountNumber field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetResellerAccountNumber() string { - if o == nil || IsNil(o.ResellerAccountNumber) { - var ret string - return ret - } - return *o.ResellerAccountNumber -} - -// GetResellerAccountNumberOk returns a tuple with the ResellerAccountNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetResellerAccountNumberOk() (*string, bool) { - if o == nil || IsNil(o.ResellerAccountNumber) { - return nil, false - } - return o.ResellerAccountNumber, true -} - -// HasResellerAccountNumber returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasResellerAccountNumber() bool { - if o != nil && !IsNil(o.ResellerAccountNumber) { - return true - } - - return false -} - -// SetResellerAccountNumber gets a reference to the given string and assigns it to the ResellerAccountNumber field. -func (o *SimplifiedAccountPortResponse) SetResellerAccountNumber(v string) { - o.ResellerAccountNumber = &v -} - -// GetResellerOrgId returns the ResellerOrgId field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetResellerOrgId() string { - if o == nil || IsNil(o.ResellerOrgId) { - var ret string - return ret - } - return *o.ResellerOrgId -} - -// GetResellerOrgIdOk returns a tuple with the ResellerOrgId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetResellerOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.ResellerOrgId) { - return nil, false - } - return o.ResellerOrgId, true -} - -// HasResellerOrgId returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasResellerOrgId() bool { - if o != nil && !IsNil(o.ResellerOrgId) { - return true - } - - return false -} - -// SetResellerOrgId gets a reference to the given string and assigns it to the ResellerOrgId field. -func (o *SimplifiedAccountPortResponse) SetResellerOrgId(v string) { - o.ResellerOrgId = &v -} - -// GetAccountName returns the AccountName field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetAccountName() string { - if o == nil || IsNil(o.AccountName) { - var ret string - return ret - } - return *o.AccountName -} - -// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetAccountNameOk() (*string, bool) { - if o == nil || IsNil(o.AccountName) { - return nil, false - } - return o.AccountName, true -} - -// HasAccountName returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasAccountName() bool { - if o != nil && !IsNil(o.AccountName) { - return true - } - - return false -} - -// SetAccountName gets a reference to the given string and assigns it to the AccountName field. -func (o *SimplifiedAccountPortResponse) SetAccountName(v string) { - o.AccountName = &v -} - -// GetOrganizationName returns the OrganizationName field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetOrganizationName() string { - if o == nil || IsNil(o.OrganizationName) { - var ret string - return ret - } - return *o.OrganizationName -} - -// GetOrganizationNameOk returns a tuple with the OrganizationName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetOrganizationNameOk() (*string, bool) { - if o == nil || IsNil(o.OrganizationName) { - return nil, false - } - return o.OrganizationName, true -} - -// HasOrganizationName returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasOrganizationName() bool { - if o != nil && !IsNil(o.OrganizationName) { - return true - } - - return false -} - -// SetOrganizationName gets a reference to the given string and assigns it to the OrganizationName field. -func (o *SimplifiedAccountPortResponse) SetOrganizationName(v string) { - o.OrganizationName = &v -} - -// GetGlobalOrgId returns the GlobalOrgId field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetGlobalOrgId() string { - if o == nil || IsNil(o.GlobalOrgId) { - var ret string - return ret - } - return *o.GlobalOrgId -} - -// GetGlobalOrgIdOk returns a tuple with the GlobalOrgId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetGlobalOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.GlobalOrgId) { - return nil, false - } - return o.GlobalOrgId, true -} - -// HasGlobalOrgId returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasGlobalOrgId() bool { - if o != nil && !IsNil(o.GlobalOrgId) { - return true - } - - return false -} - -// SetGlobalOrgId gets a reference to the given string and assigns it to the GlobalOrgId field. -func (o *SimplifiedAccountPortResponse) SetGlobalOrgId(v string) { - o.GlobalOrgId = &v -} - -// GetGlobalOrganizationName returns the GlobalOrganizationName field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetGlobalOrganizationName() string { - if o == nil || IsNil(o.GlobalOrganizationName) { - var ret string - return ret - } - return *o.GlobalOrganizationName -} - -// GetGlobalOrganizationNameOk returns a tuple with the GlobalOrganizationName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetGlobalOrganizationNameOk() (*string, bool) { - if o == nil || IsNil(o.GlobalOrganizationName) { - return nil, false - } - return o.GlobalOrganizationName, true -} - -// HasGlobalOrganizationName returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasGlobalOrganizationName() bool { - if o != nil && !IsNil(o.GlobalOrganizationName) { - return true - } - - return false -} - -// SetGlobalOrganizationName gets a reference to the given string and assigns it to the GlobalOrganizationName field. -func (o *SimplifiedAccountPortResponse) SetGlobalOrganizationName(v string) { - o.GlobalOrganizationName = &v -} - -// GetUcmId returns the UcmId field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetUcmId() string { - if o == nil || IsNil(o.UcmId) { - var ret string - return ret - } - return *o.UcmId -} - -// GetUcmIdOk returns a tuple with the UcmId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetUcmIdOk() (*string, bool) { - if o == nil || IsNil(o.UcmId) { - return nil, false - } - return o.UcmId, true -} - -// HasUcmId returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasUcmId() bool { - if o != nil && !IsNil(o.UcmId) { - return true - } - - return false -} - -// SetUcmId gets a reference to the given string and assigns it to the UcmId field. -func (o *SimplifiedAccountPortResponse) SetUcmId(v string) { - o.UcmId = &v -} - -// GetGlobalCustId returns the GlobalCustId field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetGlobalCustId() string { - if o == nil || IsNil(o.GlobalCustId) { - var ret string - return ret - } - return *o.GlobalCustId -} - -// GetGlobalCustIdOk returns a tuple with the GlobalCustId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetGlobalCustIdOk() (*string, bool) { - if o == nil || IsNil(o.GlobalCustId) { - return nil, false - } - return o.GlobalCustId, true -} - -// HasGlobalCustId returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasGlobalCustId() bool { - if o != nil && !IsNil(o.GlobalCustId) { - return true - } - - return false -} - -// SetGlobalCustId gets a reference to the given string and assigns it to the GlobalCustId field. -func (o *SimplifiedAccountPortResponse) SetGlobalCustId(v string) { - o.GlobalCustId = &v -} - -// GetResellerAccountName returns the ResellerAccountName field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetResellerAccountName() string { - if o == nil || IsNil(o.ResellerAccountName) { - var ret string - return ret - } - return *o.ResellerAccountName -} - -// GetResellerAccountNameOk returns a tuple with the ResellerAccountName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetResellerAccountNameOk() (*string, bool) { - if o == nil || IsNil(o.ResellerAccountName) { - return nil, false - } - return o.ResellerAccountName, true -} - -// HasResellerAccountName returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasResellerAccountName() bool { - if o != nil && !IsNil(o.ResellerAccountName) { - return true - } - - return false -} - -// SetResellerAccountName gets a reference to the given string and assigns it to the ResellerAccountName field. -func (o *SimplifiedAccountPortResponse) SetResellerAccountName(v string) { - o.ResellerAccountName = &v -} - -// GetResellerUcmId returns the ResellerUcmId field value if set, zero value otherwise. -func (o *SimplifiedAccountPortResponse) GetResellerUcmId() string { - if o == nil || IsNil(o.ResellerUcmId) { - var ret string - return ret - } - return *o.ResellerUcmId -} - -// GetResellerUcmIdOk returns a tuple with the ResellerUcmId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedAccountPortResponse) GetResellerUcmIdOk() (*string, bool) { - if o == nil || IsNil(o.ResellerUcmId) { - return nil, false - } - return o.ResellerUcmId, true -} - -// HasResellerUcmId returns a boolean if a field has been set. -func (o *SimplifiedAccountPortResponse) HasResellerUcmId() bool { - if o != nil && !IsNil(o.ResellerUcmId) { - return true - } - - return false -} - -// SetResellerUcmId gets a reference to the given string and assigns it to the ResellerUcmId field. -func (o *SimplifiedAccountPortResponse) SetResellerUcmId(v string) { - o.ResellerUcmId = &v -} - -func (o SimplifiedAccountPortResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SimplifiedAccountPortResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AccountNumber) { - toSerialize["accountNumber"] = o.AccountNumber - } - if !IsNil(o.OrgId) { - toSerialize["orgId"] = o.OrgId - } - if !IsNil(o.ResellerAccountNumber) { - toSerialize["resellerAccountNumber"] = o.ResellerAccountNumber - } - if !IsNil(o.ResellerOrgId) { - toSerialize["resellerOrgId"] = o.ResellerOrgId - } - if !IsNil(o.AccountName) { - toSerialize["accountName"] = o.AccountName - } - if !IsNil(o.OrganizationName) { - toSerialize["organizationName"] = o.OrganizationName - } - if !IsNil(o.GlobalOrgId) { - toSerialize["globalOrgId"] = o.GlobalOrgId - } - if !IsNil(o.GlobalOrganizationName) { - toSerialize["globalOrganizationName"] = o.GlobalOrganizationName - } - if !IsNil(o.UcmId) { - toSerialize["ucmId"] = o.UcmId - } - if !IsNil(o.GlobalCustId) { - toSerialize["globalCustId"] = o.GlobalCustId - } - if !IsNil(o.ResellerAccountName) { - toSerialize["resellerAccountName"] = o.ResellerAccountName - } - if !IsNil(o.ResellerUcmId) { - toSerialize["resellerUcmId"] = o.ResellerUcmId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *SimplifiedAccountPortResponse) UnmarshalJSON(data []byte) (err error) { - varSimplifiedAccountPortResponse := _SimplifiedAccountPortResponse{} - - err = json.Unmarshal(data, &varSimplifiedAccountPortResponse) - - if err != nil { - return err - } - - *o = SimplifiedAccountPortResponse(varSimplifiedAccountPortResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "accountNumber") - delete(additionalProperties, "orgId") - delete(additionalProperties, "resellerAccountNumber") - delete(additionalProperties, "resellerOrgId") - delete(additionalProperties, "accountName") - delete(additionalProperties, "organizationName") - delete(additionalProperties, "globalOrgId") - delete(additionalProperties, "globalOrganizationName") - delete(additionalProperties, "ucmId") - delete(additionalProperties, "globalCustId") - delete(additionalProperties, "resellerAccountName") - delete(additionalProperties, "resellerUcmId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSimplifiedAccountPortResponse struct { - value *SimplifiedAccountPortResponse - isSet bool -} - -func (v NullableSimplifiedAccountPortResponse) Get() *SimplifiedAccountPortResponse { - return v.value -} - -func (v *NullableSimplifiedAccountPortResponse) Set(val *SimplifiedAccountPortResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSimplifiedAccountPortResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSimplifiedAccountPortResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSimplifiedAccountPortResponse(val *SimplifiedAccountPortResponse) *NullableSimplifiedAccountPortResponse { - return &NullableSimplifiedAccountPortResponse{value: val, isSet: true} -} - -func (v NullableSimplifiedAccountPortResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSimplifiedAccountPortResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_simplified_link_protocol.go b/services/fabricv4/model_simplified_link_protocol.go index 4f03962f..6570fbcd 100644 --- a/services/fabricv4/model_simplified_link_protocol.go +++ b/services/fabricv4/model_simplified_link_protocol.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_location.go b/services/fabricv4/model_simplified_location.go index d97eb86c..a2f29b14 100644 --- a/services/fabricv4/model_simplified_location.go +++ b/services/fabricv4/model_simplified_location.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,10 +16,11 @@ var _ MappedNullable = &SimplifiedLocation{} // SimplifiedLocation struct for SimplifiedLocation type SimplifiedLocation struct { - Region *string `json:"region,omitempty"` - MetroName *string `json:"metroName,omitempty"` - MetroCode *string `json:"metroCode,omitempty"` - MetroHref *string `json:"metroHref,omitempty"` + Region *string `json:"region,omitempty"` + MetroName *string `json:"metroName,omitempty"` + MetroCode *string `json:"metroCode,omitempty"` + MetroHref *string `json:"metroHref,omitempty"` + // Deprecated Ibx *string `json:"ibx,omitempty"` AdditionalProperties map[string]interface{} } @@ -173,6 +173,7 @@ func (o *SimplifiedLocation) SetMetroHref(v string) { } // GetIbx returns the Ibx field value if set, zero value otherwise. +// Deprecated func (o *SimplifiedLocation) GetIbx() string { if o == nil || IsNil(o.Ibx) { var ret string @@ -183,6 +184,7 @@ func (o *SimplifiedLocation) GetIbx() string { // GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *SimplifiedLocation) GetIbxOk() (*string, bool) { if o == nil || IsNil(o.Ibx) { return nil, false @@ -200,6 +202,7 @@ func (o *SimplifiedLocation) HasIbx() bool { } // SetIbx gets a reference to the given string and assigns it to the Ibx field. +// Deprecated func (o *SimplifiedLocation) SetIbx(v string) { o.Ibx = &v } diff --git a/services/fabricv4/model_simplified_location_without_ibx.go b/services/fabricv4/model_simplified_location_without_ibx.go index 4e8f401e..af466a7e 100644 --- a/services/fabricv4/model_simplified_location_without_ibx.go +++ b/services/fabricv4/model_simplified_location_without_ibx.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_metadata_entity.go b/services/fabricv4/model_simplified_metadata_entity.go index 5e09865e..50d5b7b7 100644 --- a/services/fabricv4/model_simplified_metadata_entity.go +++ b/services/fabricv4/model_simplified_metadata_entity.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +21,20 @@ type SimplifiedMetadataEntity struct { // Equinix assigned Identifier Uuid *string `json:"uuid,omitempty"` // Type of Port - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` + // Customer virtual port Id + CvpId *int32 `json:"cvpId,omitempty"` + // Port Bandwidth + Bandwidth *float32 `json:"bandwidth,omitempty"` + // Port Name + PortName *string `json:"portName,omitempty"` + // Port Encapsulation + EncapsulationProtocolType *string `json:"encapsulationProtocolType,omitempty"` + // Account Name + AccountName *string `json:"accountName,omitempty"` + // Port Priority + Priority *string `json:"priority,omitempty"` + Location *SimplifiedLocation `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,6 +153,230 @@ func (o *SimplifiedMetadataEntity) SetType(v string) { o.Type = &v } +// GetCvpId returns the CvpId field value if set, zero value otherwise. +func (o *SimplifiedMetadataEntity) GetCvpId() int32 { + if o == nil || IsNil(o.CvpId) { + var ret int32 + return ret + } + return *o.CvpId +} + +// GetCvpIdOk returns a tuple with the CvpId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedMetadataEntity) GetCvpIdOk() (*int32, bool) { + if o == nil || IsNil(o.CvpId) { + return nil, false + } + return o.CvpId, true +} + +// HasCvpId returns a boolean if a field has been set. +func (o *SimplifiedMetadataEntity) HasCvpId() bool { + if o != nil && !IsNil(o.CvpId) { + return true + } + + return false +} + +// SetCvpId gets a reference to the given int32 and assigns it to the CvpId field. +func (o *SimplifiedMetadataEntity) SetCvpId(v int32) { + o.CvpId = &v +} + +// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +func (o *SimplifiedMetadataEntity) GetBandwidth() float32 { + if o == nil || IsNil(o.Bandwidth) { + var ret float32 + return ret + } + return *o.Bandwidth +} + +// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedMetadataEntity) GetBandwidthOk() (*float32, bool) { + if o == nil || IsNil(o.Bandwidth) { + return nil, false + } + return o.Bandwidth, true +} + +// HasBandwidth returns a boolean if a field has been set. +func (o *SimplifiedMetadataEntity) HasBandwidth() bool { + if o != nil && !IsNil(o.Bandwidth) { + return true + } + + return false +} + +// SetBandwidth gets a reference to the given float32 and assigns it to the Bandwidth field. +func (o *SimplifiedMetadataEntity) SetBandwidth(v float32) { + o.Bandwidth = &v +} + +// GetPortName returns the PortName field value if set, zero value otherwise. +func (o *SimplifiedMetadataEntity) GetPortName() string { + if o == nil || IsNil(o.PortName) { + var ret string + return ret + } + return *o.PortName +} + +// GetPortNameOk returns a tuple with the PortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedMetadataEntity) GetPortNameOk() (*string, bool) { + if o == nil || IsNil(o.PortName) { + return nil, false + } + return o.PortName, true +} + +// HasPortName returns a boolean if a field has been set. +func (o *SimplifiedMetadataEntity) HasPortName() bool { + if o != nil && !IsNil(o.PortName) { + return true + } + + return false +} + +// SetPortName gets a reference to the given string and assigns it to the PortName field. +func (o *SimplifiedMetadataEntity) SetPortName(v string) { + o.PortName = &v +} + +// GetEncapsulationProtocolType returns the EncapsulationProtocolType field value if set, zero value otherwise. +func (o *SimplifiedMetadataEntity) GetEncapsulationProtocolType() string { + if o == nil || IsNil(o.EncapsulationProtocolType) { + var ret string + return ret + } + return *o.EncapsulationProtocolType +} + +// GetEncapsulationProtocolTypeOk returns a tuple with the EncapsulationProtocolType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedMetadataEntity) GetEncapsulationProtocolTypeOk() (*string, bool) { + if o == nil || IsNil(o.EncapsulationProtocolType) { + return nil, false + } + return o.EncapsulationProtocolType, true +} + +// HasEncapsulationProtocolType returns a boolean if a field has been set. +func (o *SimplifiedMetadataEntity) HasEncapsulationProtocolType() bool { + if o != nil && !IsNil(o.EncapsulationProtocolType) { + return true + } + + return false +} + +// SetEncapsulationProtocolType gets a reference to the given string and assigns it to the EncapsulationProtocolType field. +func (o *SimplifiedMetadataEntity) SetEncapsulationProtocolType(v string) { + o.EncapsulationProtocolType = &v +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *SimplifiedMetadataEntity) GetAccountName() string { + if o == nil || IsNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedMetadataEntity) GetAccountNameOk() (*string, bool) { + if o == nil || IsNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *SimplifiedMetadataEntity) HasAccountName() bool { + if o != nil && !IsNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *SimplifiedMetadataEntity) SetAccountName(v string) { + o.AccountName = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *SimplifiedMetadataEntity) GetPriority() string { + if o == nil || IsNil(o.Priority) { + var ret string + 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 *SimplifiedMetadataEntity) GetPriorityOk() (*string, 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 *SimplifiedMetadataEntity) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *SimplifiedMetadataEntity) SetPriority(v string) { + o.Priority = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SimplifiedMetadataEntity) GetLocation() SimplifiedLocation { + if o == nil || IsNil(o.Location) { + var ret SimplifiedLocation + return ret + } + return *o.Location +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedMetadataEntity) GetLocationOk() (*SimplifiedLocation, bool) { + if o == nil || IsNil(o.Location) { + return nil, false + } + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *SimplifiedMetadataEntity) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given SimplifiedLocation and assigns it to the Location field. +func (o *SimplifiedMetadataEntity) SetLocation(v SimplifiedLocation) { + o.Location = &v +} + func (o SimplifiedMetadataEntity) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -160,6 +396,27 @@ func (o SimplifiedMetadataEntity) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.CvpId) { + toSerialize["cvpId"] = o.CvpId + } + if !IsNil(o.Bandwidth) { + toSerialize["bandwidth"] = o.Bandwidth + } + if !IsNil(o.PortName) { + toSerialize["portName"] = o.PortName + } + if !IsNil(o.EncapsulationProtocolType) { + toSerialize["encapsulationProtocolType"] = o.EncapsulationProtocolType + } + if !IsNil(o.AccountName) { + toSerialize["accountName"] = o.AccountName + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -185,6 +442,13 @@ func (o *SimplifiedMetadataEntity) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "href") delete(additionalProperties, "uuid") delete(additionalProperties, "type") + delete(additionalProperties, "cvpId") + delete(additionalProperties, "bandwidth") + delete(additionalProperties, "portName") + delete(additionalProperties, "encapsulationProtocolType") + delete(additionalProperties, "accountName") + delete(additionalProperties, "priority") + delete(additionalProperties, "location") o.AdditionalProperties = additionalProperties } diff --git a/services/fabricv4/model_simplified_network.go b/services/fabricv4/model_simplified_network.go index b0d7ab4d..656936f4 100644 --- a/services/fabricv4/model_simplified_network.go +++ b/services/fabricv4/model_simplified_network.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_network_change.go b/services/fabricv4/model_simplified_network_change.go index 32a06e51..4665eec0 100644 --- a/services/fabricv4/model_simplified_network_change.go +++ b/services/fabricv4/model_simplified_network_change.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_notification.go b/services/fabricv4/model_simplified_notification.go index 03c8843e..94b6f7e4 100644 --- a/services/fabricv4/model_simplified_notification.go +++ b/services/fabricv4/model_simplified_notification.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_notification_type.go b/services/fabricv4/model_simplified_notification_type.go index 9e1355c9..91f87262 100644 --- a/services/fabricv4/model_simplified_notification_type.go +++ b/services/fabricv4/model_simplified_notification_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_port.go b/services/fabricv4/model_simplified_port.go index 98733027..b1fb8f3c 100644 --- a/services/fabricv4/model_simplified_port.go +++ b/services/fabricv4/model_simplified_port.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -31,20 +30,19 @@ type SimplifiedPort struct { // Physical Ports Speed in Mbps PhysicalPortsSpeed *int32 `json:"physicalPortsSpeed,omitempty"` // Equinix assigned response attribute for Connection count - ConnectionsCount *int32 `json:"connectionsCount,omitempty"` - Project *Project `json:"project,omitempty"` - State *PortState `json:"state,omitempty"` - // Equinix assigned response attribute for Unique ID for a virtual port. - CvpId *string `json:"cvpId,omitempty"` - Operation *PortOperation `json:"operation,omitempty"` - Account *SimplifiedAccount `json:"account,omitempty"` - ServiceType *PortResponseServiceType `json:"serviceType,omitempty"` + ConnectionsCount *int32 `json:"connectionsCount,omitempty"` + Project *Project `json:"project,omitempty"` + State *PortState `json:"state,omitempty"` + Operation *PortOperation `json:"operation,omitempty"` + Account *SimplifiedAccount `json:"account,omitempty"` + // Deprecated + ServiceType *PortServiceType `json:"serviceType,omitempty"` // Equinix assigned response attribute for Port bandwidth in Mbps - Bandwidth *int32 `json:"bandwidth,omitempty"` + Bandwidth *int64 `json:"bandwidth,omitempty"` // Equinix assigned response attribute for Port available bandwidth in Mbps - AvailableBandwidth *int32 `json:"availableBandwidth,omitempty"` + AvailableBandwidth *int64 `json:"availableBandwidth,omitempty"` // Equinix assigned response attribute for Port used bandwidth in Mbps - UsedBandwidth *int32 `json:"usedBandwidth,omitempty"` + UsedBandwidth *int64 `json:"usedBandwidth,omitempty"` Location *SimplifiedLocation `json:"location,omitempty"` Device *PortDevice `json:"device,omitempty"` Interface *PortInterface `json:"interface,omitempty"` @@ -54,6 +52,7 @@ type SimplifiedPort struct { Encapsulation *PortEncapsulation `json:"encapsulation,omitempty"` // If LAG enabled LagEnabled *bool `json:"lagEnabled,omitempty"` + Package *Package `json:"package,omitempty"` Settings *PortSettings `json:"settings,omitempty"` // Number of physical ports PhysicalPortQuantity *int32 `json:"physicalPortQuantity,omitempty"` @@ -403,38 +402,6 @@ func (o *SimplifiedPort) SetState(v PortState) { o.State = &v } -// GetCvpId returns the CvpId field value if set, zero value otherwise. -func (o *SimplifiedPort) GetCvpId() string { - if o == nil || IsNil(o.CvpId) { - var ret string - return ret - } - return *o.CvpId -} - -// GetCvpIdOk returns a tuple with the CvpId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SimplifiedPort) GetCvpIdOk() (*string, bool) { - if o == nil || IsNil(o.CvpId) { - return nil, false - } - return o.CvpId, true -} - -// HasCvpId returns a boolean if a field has been set. -func (o *SimplifiedPort) HasCvpId() bool { - if o != nil && !IsNil(o.CvpId) { - return true - } - - return false -} - -// SetCvpId gets a reference to the given string and assigns it to the CvpId field. -func (o *SimplifiedPort) SetCvpId(v string) { - o.CvpId = &v -} - // GetOperation returns the Operation field value if set, zero value otherwise. func (o *SimplifiedPort) GetOperation() PortOperation { if o == nil || IsNil(o.Operation) { @@ -500,9 +467,10 @@ func (o *SimplifiedPort) SetAccount(v SimplifiedAccount) { } // GetServiceType returns the ServiceType field value if set, zero value otherwise. -func (o *SimplifiedPort) GetServiceType() PortResponseServiceType { +// Deprecated +func (o *SimplifiedPort) GetServiceType() PortServiceType { if o == nil || IsNil(o.ServiceType) { - var ret PortResponseServiceType + var ret PortServiceType return ret } return *o.ServiceType @@ -510,7 +478,8 @@ func (o *SimplifiedPort) GetServiceType() PortResponseServiceType { // GetServiceTypeOk returns a tuple with the ServiceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SimplifiedPort) GetServiceTypeOk() (*PortResponseServiceType, bool) { +// Deprecated +func (o *SimplifiedPort) GetServiceTypeOk() (*PortServiceType, bool) { if o == nil || IsNil(o.ServiceType) { return nil, false } @@ -526,15 +495,16 @@ func (o *SimplifiedPort) HasServiceType() bool { return false } -// SetServiceType gets a reference to the given PortResponseServiceType and assigns it to the ServiceType field. -func (o *SimplifiedPort) SetServiceType(v PortResponseServiceType) { +// SetServiceType gets a reference to the given PortServiceType and assigns it to the ServiceType field. +// Deprecated +func (o *SimplifiedPort) SetServiceType(v PortServiceType) { o.ServiceType = &v } // GetBandwidth returns the Bandwidth field value if set, zero value otherwise. -func (o *SimplifiedPort) GetBandwidth() int32 { +func (o *SimplifiedPort) GetBandwidth() int64 { if o == nil || IsNil(o.Bandwidth) { - var ret int32 + var ret int64 return ret } return *o.Bandwidth @@ -542,7 +512,7 @@ func (o *SimplifiedPort) GetBandwidth() int32 { // GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SimplifiedPort) GetBandwidthOk() (*int32, bool) { +func (o *SimplifiedPort) GetBandwidthOk() (*int64, bool) { if o == nil || IsNil(o.Bandwidth) { return nil, false } @@ -558,15 +528,15 @@ func (o *SimplifiedPort) HasBandwidth() bool { return false } -// SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. -func (o *SimplifiedPort) SetBandwidth(v int32) { +// SetBandwidth gets a reference to the given int64 and assigns it to the Bandwidth field. +func (o *SimplifiedPort) SetBandwidth(v int64) { o.Bandwidth = &v } // GetAvailableBandwidth returns the AvailableBandwidth field value if set, zero value otherwise. -func (o *SimplifiedPort) GetAvailableBandwidth() int32 { +func (o *SimplifiedPort) GetAvailableBandwidth() int64 { if o == nil || IsNil(o.AvailableBandwidth) { - var ret int32 + var ret int64 return ret } return *o.AvailableBandwidth @@ -574,7 +544,7 @@ func (o *SimplifiedPort) GetAvailableBandwidth() int32 { // GetAvailableBandwidthOk returns a tuple with the AvailableBandwidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SimplifiedPort) GetAvailableBandwidthOk() (*int32, bool) { +func (o *SimplifiedPort) GetAvailableBandwidthOk() (*int64, bool) { if o == nil || IsNil(o.AvailableBandwidth) { return nil, false } @@ -590,15 +560,15 @@ func (o *SimplifiedPort) HasAvailableBandwidth() bool { return false } -// SetAvailableBandwidth gets a reference to the given int32 and assigns it to the AvailableBandwidth field. -func (o *SimplifiedPort) SetAvailableBandwidth(v int32) { +// SetAvailableBandwidth gets a reference to the given int64 and assigns it to the AvailableBandwidth field. +func (o *SimplifiedPort) SetAvailableBandwidth(v int64) { o.AvailableBandwidth = &v } // GetUsedBandwidth returns the UsedBandwidth field value if set, zero value otherwise. -func (o *SimplifiedPort) GetUsedBandwidth() int32 { +func (o *SimplifiedPort) GetUsedBandwidth() int64 { if o == nil || IsNil(o.UsedBandwidth) { - var ret int32 + var ret int64 return ret } return *o.UsedBandwidth @@ -606,7 +576,7 @@ func (o *SimplifiedPort) GetUsedBandwidth() int32 { // GetUsedBandwidthOk returns a tuple with the UsedBandwidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SimplifiedPort) GetUsedBandwidthOk() (*int32, bool) { +func (o *SimplifiedPort) GetUsedBandwidthOk() (*int64, bool) { if o == nil || IsNil(o.UsedBandwidth) { return nil, false } @@ -622,8 +592,8 @@ func (o *SimplifiedPort) HasUsedBandwidth() bool { return false } -// SetUsedBandwidth gets a reference to the given int32 and assigns it to the UsedBandwidth field. -func (o *SimplifiedPort) SetUsedBandwidth(v int32) { +// SetUsedBandwidth gets a reference to the given int64 and assigns it to the UsedBandwidth field. +func (o *SimplifiedPort) SetUsedBandwidth(v int64) { o.UsedBandwidth = &v } @@ -883,6 +853,38 @@ func (o *SimplifiedPort) SetLagEnabled(v bool) { o.LagEnabled = &v } +// GetPackage returns the Package field value if set, zero value otherwise. +func (o *SimplifiedPort) GetPackage() Package { + if o == nil || IsNil(o.Package) { + var ret Package + return ret + } + return *o.Package +} + +// GetPackageOk returns a tuple with the Package field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedPort) GetPackageOk() (*Package, bool) { + if o == nil || IsNil(o.Package) { + return nil, false + } + return o.Package, true +} + +// HasPackage returns a boolean if a field has been set. +func (o *SimplifiedPort) HasPackage() bool { + if o != nil && !IsNil(o.Package) { + return true + } + + return false +} + +// SetPackage gets a reference to the given Package and assigns it to the Package field. +func (o *SimplifiedPort) SetPackage(v Package) { + o.Package = &v +} + // GetSettings returns the Settings field value if set, zero value otherwise. func (o *SimplifiedPort) GetSettings() PortSettings { if o == nil || IsNil(o.Settings) { @@ -1051,9 +1053,6 @@ func (o SimplifiedPort) ToMap() (map[string]interface{}, error) { if !IsNil(o.State) { toSerialize["state"] = o.State } - if !IsNil(o.CvpId) { - toSerialize["cvpId"] = o.CvpId - } if !IsNil(o.Operation) { toSerialize["operation"] = o.Operation } @@ -1096,6 +1095,9 @@ func (o SimplifiedPort) ToMap() (map[string]interface{}, error) { if !IsNil(o.LagEnabled) { toSerialize["lagEnabled"] = o.LagEnabled } + if !IsNil(o.Package) { + toSerialize["package"] = o.Package + } if !IsNil(o.Settings) { toSerialize["settings"] = o.Settings } @@ -1140,7 +1142,6 @@ func (o *SimplifiedPort) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "connectionsCount") delete(additionalProperties, "project") delete(additionalProperties, "state") - delete(additionalProperties, "cvpId") delete(additionalProperties, "operation") delete(additionalProperties, "account") delete(additionalProperties, "serviceType") @@ -1155,6 +1156,7 @@ func (o *SimplifiedPort) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "redundancy") delete(additionalProperties, "encapsulation") delete(additionalProperties, "lagEnabled") + delete(additionalProperties, "package") delete(additionalProperties, "settings") delete(additionalProperties, "physicalPortQuantity") delete(additionalProperties, "additionalInfo") diff --git a/services/fabricv4/model_simplified_service_profile.go b/services/fabricv4/model_simplified_service_profile.go index 2fd3fedc..332498b8 100644 --- a/services/fabricv4/model_simplified_service_profile.go +++ b/services/fabricv4/model_simplified_service_profile.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_simplified_token_network.go b/services/fabricv4/model_simplified_token_network.go new file mode 100644 index 00000000..c19f4cf6 --- /dev/null +++ b/services/fabricv4/model_simplified_token_network.go @@ -0,0 +1,338 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the SimplifiedTokenNetwork type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SimplifiedTokenNetwork{} + +// SimplifiedTokenNetwork struct for SimplifiedTokenNetwork +type SimplifiedTokenNetwork struct { + // url to entity + Href *string `json:"href,omitempty"` + // Network Identifier + Uuid *string `json:"uuid,omitempty"` + Type *SimplifiedTokenNetworkType `json:"type,omitempty"` + // Network Name + Name *string `json:"name,omitempty"` + Scope *SimplifiedTokenNetworkScope `json:"scope,omitempty"` + Location *SimplifiedLocation `json:"location,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SimplifiedTokenNetwork SimplifiedTokenNetwork + +// NewSimplifiedTokenNetwork instantiates a new SimplifiedTokenNetwork 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 NewSimplifiedTokenNetwork() *SimplifiedTokenNetwork { + this := SimplifiedTokenNetwork{} + return &this +} + +// NewSimplifiedTokenNetworkWithDefaults instantiates a new SimplifiedTokenNetwork 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 NewSimplifiedTokenNetworkWithDefaults() *SimplifiedTokenNetwork { + this := SimplifiedTokenNetwork{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) SetHref(v string) { + o.Href = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) 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 *SimplifiedTokenNetwork) SetUuid(v string) { + o.Uuid = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SimplifiedTokenNetwork) GetType() SimplifiedTokenNetworkType { + if o == nil || IsNil(o.Type) { + var ret SimplifiedTokenNetworkType + 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 *SimplifiedTokenNetwork) GetTypeOk() (*SimplifiedTokenNetworkType, 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 *SimplifiedTokenNetwork) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given SimplifiedTokenNetworkType and assigns it to the Type field. +func (o *SimplifiedTokenNetwork) SetType(v SimplifiedTokenNetworkType) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SimplifiedTokenNetwork) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedTokenNetwork) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SimplifiedTokenNetwork) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SimplifiedTokenNetwork) SetName(v string) { + o.Name = &v +} + +// GetScope returns the Scope field value if set, zero value otherwise. +func (o *SimplifiedTokenNetwork) GetScope() SimplifiedTokenNetworkScope { + if o == nil || IsNil(o.Scope) { + var ret SimplifiedTokenNetworkScope + return ret + } + return *o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedTokenNetwork) GetScopeOk() (*SimplifiedTokenNetworkScope, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *SimplifiedTokenNetwork) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given SimplifiedTokenNetworkScope and assigns it to the Scope field. +func (o *SimplifiedTokenNetwork) SetScope(v SimplifiedTokenNetworkScope) { + o.Scope = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SimplifiedTokenNetwork) GetLocation() SimplifiedLocation { + if o == nil || IsNil(o.Location) { + var ret SimplifiedLocation + return ret + } + return *o.Location +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedTokenNetwork) GetLocationOk() (*SimplifiedLocation, bool) { + if o == nil || IsNil(o.Location) { + return nil, false + } + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *SimplifiedTokenNetwork) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given SimplifiedLocation and assigns it to the Location field. +func (o *SimplifiedTokenNetwork) SetLocation(v SimplifiedLocation) { + o.Location = &v +} + +func (o SimplifiedTokenNetwork) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SimplifiedTokenNetwork) 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 + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Scope) { + toSerialize["scope"] = o.Scope + } + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SimplifiedTokenNetwork) UnmarshalJSON(data []byte) (err error) { + varSimplifiedTokenNetwork := _SimplifiedTokenNetwork{} + + err = json.Unmarshal(data, &varSimplifiedTokenNetwork) + + if err != nil { + return err + } + + *o = SimplifiedTokenNetwork(varSimplifiedTokenNetwork) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") + delete(additionalProperties, "uuid") + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "scope") + delete(additionalProperties, "location") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSimplifiedTokenNetwork struct { + value *SimplifiedTokenNetwork + isSet bool +} + +func (v NullableSimplifiedTokenNetwork) Get() *SimplifiedTokenNetwork { + return v.value +} + +func (v *NullableSimplifiedTokenNetwork) Set(val *SimplifiedTokenNetwork) { + v.value = val + v.isSet = true +} + +func (v NullableSimplifiedTokenNetwork) IsSet() bool { + return v.isSet +} + +func (v *NullableSimplifiedTokenNetwork) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSimplifiedTokenNetwork(val *SimplifiedTokenNetwork) *NullableSimplifiedTokenNetwork { + return &NullableSimplifiedTokenNetwork{value: val, isSet: true} +} + +func (v NullableSimplifiedTokenNetwork) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSimplifiedTokenNetwork) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_simplified_token_network_scope.go b/services/fabricv4/model_simplified_token_network_scope.go new file mode 100644 index 00000000..506bdba5 --- /dev/null +++ b/services/fabricv4/model_simplified_token_network_scope.go @@ -0,0 +1,109 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// SimplifiedTokenNetworkScope scope of Network +type SimplifiedTokenNetworkScope string + +// List of SimplifiedTokenNetwork_scope +const ( + SIMPLIFIEDTOKENNETWORKSCOPE_LOCAL SimplifiedTokenNetworkScope = "LOCAL" + SIMPLIFIEDTOKENNETWORKSCOPE_REGIONAL SimplifiedTokenNetworkScope = "REGIONAL" + SIMPLIFIEDTOKENNETWORKSCOPE_GLOBAL SimplifiedTokenNetworkScope = "GLOBAL" +) + +// All allowed values of SimplifiedTokenNetworkScope enum +var AllowedSimplifiedTokenNetworkScopeEnumValues = []SimplifiedTokenNetworkScope{ + "LOCAL", + "REGIONAL", + "GLOBAL", +} + +func (v *SimplifiedTokenNetworkScope) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SimplifiedTokenNetworkScope(value) + for _, existing := range AllowedSimplifiedTokenNetworkScopeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SimplifiedTokenNetworkScope", value) +} + +// NewSimplifiedTokenNetworkScopeFromValue returns a pointer to a valid SimplifiedTokenNetworkScope +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSimplifiedTokenNetworkScopeFromValue(v string) (*SimplifiedTokenNetworkScope, error) { + ev := SimplifiedTokenNetworkScope(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SimplifiedTokenNetworkScope: valid values are %v", v, AllowedSimplifiedTokenNetworkScopeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SimplifiedTokenNetworkScope) IsValid() bool { + for _, existing := range AllowedSimplifiedTokenNetworkScopeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SimplifiedTokenNetwork_scope value +func (v SimplifiedTokenNetworkScope) Ptr() *SimplifiedTokenNetworkScope { + return &v +} + +type NullableSimplifiedTokenNetworkScope struct { + value *SimplifiedTokenNetworkScope + isSet bool +} + +func (v NullableSimplifiedTokenNetworkScope) Get() *SimplifiedTokenNetworkScope { + return v.value +} + +func (v *NullableSimplifiedTokenNetworkScope) Set(val *SimplifiedTokenNetworkScope) { + v.value = val + v.isSet = true +} + +func (v NullableSimplifiedTokenNetworkScope) IsSet() bool { + return v.isSet +} + +func (v *NullableSimplifiedTokenNetworkScope) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSimplifiedTokenNetworkScope(val *SimplifiedTokenNetworkScope) *NullableSimplifiedTokenNetworkScope { + return &NullableSimplifiedTokenNetworkScope{value: val, isSet: true} +} + +func (v NullableSimplifiedTokenNetworkScope) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSimplifiedTokenNetworkScope) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_simplified_token_network_type.go b/services/fabricv4/model_simplified_token_network_type.go new file mode 100644 index 00000000..6380c3b8 --- /dev/null +++ b/services/fabricv4/model_simplified_token_network_type.go @@ -0,0 +1,109 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// SimplifiedTokenNetworkType Type of Network +type SimplifiedTokenNetworkType string + +// List of SimplifiedTokenNetwork_type +const ( + SIMPLIFIEDTOKENNETWORKTYPE_EVPLAN SimplifiedTokenNetworkType = "EVPLAN" + SIMPLIFIEDTOKENNETWORKTYPE_EPLAN SimplifiedTokenNetworkType = "EPLAN" + SIMPLIFIEDTOKENNETWORKTYPE_IPWAN SimplifiedTokenNetworkType = "IPWAN" +) + +// All allowed values of SimplifiedTokenNetworkType enum +var AllowedSimplifiedTokenNetworkTypeEnumValues = []SimplifiedTokenNetworkType{ + "EVPLAN", + "EPLAN", + "IPWAN", +} + +func (v *SimplifiedTokenNetworkType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SimplifiedTokenNetworkType(value) + for _, existing := range AllowedSimplifiedTokenNetworkTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SimplifiedTokenNetworkType", value) +} + +// NewSimplifiedTokenNetworkTypeFromValue returns a pointer to a valid SimplifiedTokenNetworkType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSimplifiedTokenNetworkTypeFromValue(v string) (*SimplifiedTokenNetworkType, error) { + ev := SimplifiedTokenNetworkType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SimplifiedTokenNetworkType: valid values are %v", v, AllowedSimplifiedTokenNetworkTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SimplifiedTokenNetworkType) IsValid() bool { + for _, existing := range AllowedSimplifiedTokenNetworkTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SimplifiedTokenNetwork_type value +func (v SimplifiedTokenNetworkType) Ptr() *SimplifiedTokenNetworkType { + return &v +} + +type NullableSimplifiedTokenNetworkType struct { + value *SimplifiedTokenNetworkType + isSet bool +} + +func (v NullableSimplifiedTokenNetworkType) Get() *SimplifiedTokenNetworkType { + return v.value +} + +func (v *NullableSimplifiedTokenNetworkType) Set(val *SimplifiedTokenNetworkType) { + v.value = val + v.isSet = true +} + +func (v NullableSimplifiedTokenNetworkType) IsSet() bool { + return v.isSet +} + +func (v *NullableSimplifiedTokenNetworkType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSimplifiedTokenNetworkType(val *SimplifiedTokenNetworkType) *NullableSimplifiedTokenNetworkType { + return &NullableSimplifiedTokenNetworkType{value: val, isSet: true} +} + +func (v NullableSimplifiedTokenNetworkType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSimplifiedTokenNetworkType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_simplified_virtual_device.go b/services/fabricv4/model_simplified_virtual_device.go new file mode 100644 index 00000000..028adc05 --- /dev/null +++ b/services/fabricv4/model_simplified_virtual_device.go @@ -0,0 +1,302 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the SimplifiedVirtualDevice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SimplifiedVirtualDevice{} + +// SimplifiedVirtualDevice struct for SimplifiedVirtualDevice +type SimplifiedVirtualDevice struct { + // url to entity + Href *string `json:"href,omitempty"` + // Network Edge assigned Virtual Device Identifier + Uuid *string `json:"uuid,omitempty"` + Type *SimplifiedVirtualDeviceType `json:"type,omitempty"` + // Customer-assigned Virtual Device name + Name *string `json:"name,omitempty"` + // Virtual Device Cluster Information + Cluster *string `json:"cluster,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SimplifiedVirtualDevice SimplifiedVirtualDevice + +// NewSimplifiedVirtualDevice instantiates a new SimplifiedVirtualDevice 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 NewSimplifiedVirtualDevice() *SimplifiedVirtualDevice { + this := SimplifiedVirtualDevice{} + return &this +} + +// NewSimplifiedVirtualDeviceWithDefaults instantiates a new SimplifiedVirtualDevice 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 NewSimplifiedVirtualDeviceWithDefaults() *SimplifiedVirtualDevice { + this := SimplifiedVirtualDevice{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) SetHref(v string) { + o.Href = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) 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 *SimplifiedVirtualDevice) SetUuid(v string) { + o.Uuid = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SimplifiedVirtualDevice) GetType() SimplifiedVirtualDeviceType { + if o == nil || IsNil(o.Type) { + var ret SimplifiedVirtualDeviceType + 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 *SimplifiedVirtualDevice) GetTypeOk() (*SimplifiedVirtualDeviceType, 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 *SimplifiedVirtualDevice) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given SimplifiedVirtualDeviceType and assigns it to the Type field. +func (o *SimplifiedVirtualDevice) SetType(v SimplifiedVirtualDeviceType) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SimplifiedVirtualDevice) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedVirtualDevice) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SimplifiedVirtualDevice) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SimplifiedVirtualDevice) SetName(v string) { + o.Name = &v +} + +// GetCluster returns the Cluster field value if set, zero value otherwise. +func (o *SimplifiedVirtualDevice) GetCluster() string { + if o == nil || IsNil(o.Cluster) { + var ret string + return ret + } + return *o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SimplifiedVirtualDevice) GetClusterOk() (*string, bool) { + if o == nil || IsNil(o.Cluster) { + return nil, false + } + return o.Cluster, true +} + +// HasCluster returns a boolean if a field has been set. +func (o *SimplifiedVirtualDevice) HasCluster() bool { + if o != nil && !IsNil(o.Cluster) { + return true + } + + return false +} + +// SetCluster gets a reference to the given string and assigns it to the Cluster field. +func (o *SimplifiedVirtualDevice) SetCluster(v string) { + o.Cluster = &v +} + +func (o SimplifiedVirtualDevice) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SimplifiedVirtualDevice) 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 + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Cluster) { + toSerialize["cluster"] = o.Cluster + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SimplifiedVirtualDevice) UnmarshalJSON(data []byte) (err error) { + varSimplifiedVirtualDevice := _SimplifiedVirtualDevice{} + + err = json.Unmarshal(data, &varSimplifiedVirtualDevice) + + if err != nil { + return err + } + + *o = SimplifiedVirtualDevice(varSimplifiedVirtualDevice) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") + delete(additionalProperties, "uuid") + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "cluster") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSimplifiedVirtualDevice struct { + value *SimplifiedVirtualDevice + isSet bool +} + +func (v NullableSimplifiedVirtualDevice) Get() *SimplifiedVirtualDevice { + return v.value +} + +func (v *NullableSimplifiedVirtualDevice) Set(val *SimplifiedVirtualDevice) { + v.value = val + v.isSet = true +} + +func (v NullableSimplifiedVirtualDevice) IsSet() bool { + return v.isSet +} + +func (v *NullableSimplifiedVirtualDevice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSimplifiedVirtualDevice(val *SimplifiedVirtualDevice) *NullableSimplifiedVirtualDevice { + return &NullableSimplifiedVirtualDevice{value: val, isSet: true} +} + +func (v NullableSimplifiedVirtualDevice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSimplifiedVirtualDevice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_simplified_virtual_device_type.go b/services/fabricv4/model_simplified_virtual_device_type.go new file mode 100644 index 00000000..d1b6bc96 --- /dev/null +++ b/services/fabricv4/model_simplified_virtual_device_type.go @@ -0,0 +1,105 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// SimplifiedVirtualDeviceType Type of Virtual Device +type SimplifiedVirtualDeviceType string + +// List of SimplifiedVirtualDevice_type +const ( + SIMPLIFIEDVIRTUALDEVICETYPE_EDGE SimplifiedVirtualDeviceType = "EDGE" +) + +// All allowed values of SimplifiedVirtualDeviceType enum +var AllowedSimplifiedVirtualDeviceTypeEnumValues = []SimplifiedVirtualDeviceType{ + "EDGE", +} + +func (v *SimplifiedVirtualDeviceType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SimplifiedVirtualDeviceType(value) + for _, existing := range AllowedSimplifiedVirtualDeviceTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SimplifiedVirtualDeviceType", value) +} + +// NewSimplifiedVirtualDeviceTypeFromValue returns a pointer to a valid SimplifiedVirtualDeviceType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSimplifiedVirtualDeviceTypeFromValue(v string) (*SimplifiedVirtualDeviceType, error) { + ev := SimplifiedVirtualDeviceType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SimplifiedVirtualDeviceType: valid values are %v", v, AllowedSimplifiedVirtualDeviceTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SimplifiedVirtualDeviceType) IsValid() bool { + for _, existing := range AllowedSimplifiedVirtualDeviceTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SimplifiedVirtualDevice_type value +func (v SimplifiedVirtualDeviceType) Ptr() *SimplifiedVirtualDeviceType { + return &v +} + +type NullableSimplifiedVirtualDeviceType struct { + value *SimplifiedVirtualDeviceType + isSet bool +} + +func (v NullableSimplifiedVirtualDeviceType) Get() *SimplifiedVirtualDeviceType { + return v.value +} + +func (v *NullableSimplifiedVirtualDeviceType) Set(val *SimplifiedVirtualDeviceType) { + v.value = val + v.isSet = true +} + +func (v NullableSimplifiedVirtualDeviceType) IsSet() bool { + return v.isSet +} + +func (v *NullableSimplifiedVirtualDeviceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSimplifiedVirtualDeviceType(val *SimplifiedVirtualDeviceType) *NullableSimplifiedVirtualDeviceType { + return &NullableSimplifiedVirtualDeviceType{value: val, isSet: true} +} + +func (v NullableSimplifiedVirtualDeviceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSimplifiedVirtualDeviceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_sort.go b/services/fabricv4/model_sort.go index c75cd58b..2d62e808 100644 --- a/services/fabricv4/model_sort.go +++ b/services/fabricv4/model_sort.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_sort_by.go b/services/fabricv4/model_sort_by.go index a629242d..171d3a85 100644 --- a/services/fabricv4/model_sort_by.go +++ b/services/fabricv4/model_sort_by.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_sort_criteria.go b/services/fabricv4/model_sort_criteria.go index cbdc1d9c..ce90aa0f 100644 --- a/services/fabricv4/model_sort_criteria.go +++ b/services/fabricv4/model_sort_criteria.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_sort_criteria_response.go b/services/fabricv4/model_sort_criteria_response.go index decf1e95..e3f9c1b2 100644 --- a/services/fabricv4/model_sort_criteria_response.go +++ b/services/fabricv4/model_sort_criteria_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_sort_direction.go b/services/fabricv4/model_sort_direction.go index 9d97a5b4..aed823ee 100644 --- a/services/fabricv4/model_sort_direction.go +++ b/services/fabricv4/model_sort_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_sort_item.go b/services/fabricv4/model_sort_item.go index f00d1f09..a922a473 100644 --- a/services/fabricv4/model_sort_item.go +++ b/services/fabricv4/model_sort_item.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_sort_item_direction.go b/services/fabricv4/model_sort_item_direction.go index ff17786b..4733ff51 100644 --- a/services/fabricv4/model_sort_item_direction.go +++ b/services/fabricv4/model_sort_item_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_sort_item_property.go b/services/fabricv4/model_sort_item_property.go index 6dc60b91..c0f18c3f 100644 --- a/services/fabricv4/model_sort_item_property.go +++ b/services/fabricv4/model_sort_item_property.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_statistics.go b/services/fabricv4/model_statistics.go index 62992a6e..188238d7 100644 --- a/services/fabricv4/model_statistics.go +++ b/services/fabricv4/model_statistics.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_statistics_view_point.go b/services/fabricv4/model_statistics_view_point.go index ab2c76ad..d793bb5f 100644 --- a/services/fabricv4/model_statistics_view_point.go +++ b/services/fabricv4/model_statistics_view_point.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_stream.go b/services/fabricv4/model_stream.go new file mode 100644 index 00000000..ce108505 --- /dev/null +++ b/services/fabricv4/model_stream.go @@ -0,0 +1,528 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the Stream type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Stream{} + +// Stream Stream object +type Stream struct { + // Stream URI + Href *string `json:"href,omitempty"` + // Equinix-assigned access point identifier + Uuid *string `json:"uuid,omitempty"` + // Stream provision state + State *string `json:"state,omitempty"` + // Stream assets count + AssetsCount *int32 `json:"assetsCount,omitempty"` + // Stream subscriptions count + StreamSubscriptionsCount *int32 `json:"streamSubscriptionsCount,omitempty"` + Changelog *Changelog `json:"changelog,omitempty"` + Type *StreamPostRequestType `json:"type,omitempty"` + // Customer-provided stream name + Name *string `json:"name,omitempty"` + // Customer-provided stream description + Description *string `json:"description,omitempty"` + Project *Project `json:"project,omitempty"` + // Stream enabled status + Enabled *bool `json:"enabled,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Stream Stream + +// NewStream instantiates a new Stream 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 NewStream() *Stream { + this := Stream{} + return &this +} + +// NewStreamWithDefaults instantiates a new Stream 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 NewStreamWithDefaults() *Stream { + this := Stream{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Stream) 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 *Stream) 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 *Stream) 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 *Stream) SetHref(v string) { + o.Href = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *Stream) 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 *Stream) 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 *Stream) 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 *Stream) SetUuid(v string) { + o.Uuid = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *Stream) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stream) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *Stream) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *Stream) SetState(v string) { + o.State = &v +} + +// GetAssetsCount returns the AssetsCount field value if set, zero value otherwise. +func (o *Stream) GetAssetsCount() int32 { + if o == nil || IsNil(o.AssetsCount) { + var ret int32 + return ret + } + return *o.AssetsCount +} + +// GetAssetsCountOk returns a tuple with the AssetsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stream) GetAssetsCountOk() (*int32, bool) { + if o == nil || IsNil(o.AssetsCount) { + return nil, false + } + return o.AssetsCount, true +} + +// HasAssetsCount returns a boolean if a field has been set. +func (o *Stream) HasAssetsCount() bool { + if o != nil && !IsNil(o.AssetsCount) { + return true + } + + return false +} + +// SetAssetsCount gets a reference to the given int32 and assigns it to the AssetsCount field. +func (o *Stream) SetAssetsCount(v int32) { + o.AssetsCount = &v +} + +// GetStreamSubscriptionsCount returns the StreamSubscriptionsCount field value if set, zero value otherwise. +func (o *Stream) GetStreamSubscriptionsCount() int32 { + if o == nil || IsNil(o.StreamSubscriptionsCount) { + var ret int32 + return ret + } + return *o.StreamSubscriptionsCount +} + +// GetStreamSubscriptionsCountOk returns a tuple with the StreamSubscriptionsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stream) GetStreamSubscriptionsCountOk() (*int32, bool) { + if o == nil || IsNil(o.StreamSubscriptionsCount) { + return nil, false + } + return o.StreamSubscriptionsCount, true +} + +// HasStreamSubscriptionsCount returns a boolean if a field has been set. +func (o *Stream) HasStreamSubscriptionsCount() bool { + if o != nil && !IsNil(o.StreamSubscriptionsCount) { + return true + } + + return false +} + +// SetStreamSubscriptionsCount gets a reference to the given int32 and assigns it to the StreamSubscriptionsCount field. +func (o *Stream) SetStreamSubscriptionsCount(v int32) { + o.StreamSubscriptionsCount = &v +} + +// GetChangelog returns the Changelog field value if set, zero value otherwise. +func (o *Stream) GetChangelog() Changelog { + if o == nil || IsNil(o.Changelog) { + var ret Changelog + return ret + } + return *o.Changelog +} + +// GetChangelogOk returns a tuple with the Changelog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stream) GetChangelogOk() (*Changelog, bool) { + if o == nil || IsNil(o.Changelog) { + return nil, false + } + return o.Changelog, true +} + +// HasChangelog returns a boolean if a field has been set. +func (o *Stream) HasChangelog() bool { + if o != nil && !IsNil(o.Changelog) { + return true + } + + return false +} + +// SetChangelog gets a reference to the given Changelog and assigns it to the Changelog field. +func (o *Stream) SetChangelog(v Changelog) { + o.Changelog = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Stream) GetType() StreamPostRequestType { + if o == nil || IsNil(o.Type) { + var ret StreamPostRequestType + 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 *Stream) GetTypeOk() (*StreamPostRequestType, 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 *Stream) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given StreamPostRequestType and assigns it to the Type field. +func (o *Stream) SetType(v StreamPostRequestType) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Stream) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stream) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Stream) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Stream) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Stream) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stream) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Stream) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Stream) SetDescription(v string) { + o.Description = &v +} + +// GetProject returns the Project field value if set, zero value otherwise. +func (o *Stream) 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 *Stream) 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 *Stream) 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 *Stream) SetProject(v Project) { + o.Project = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *Stream) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stream) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *Stream) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *Stream) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o Stream) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Stream) 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.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.AssetsCount) { + toSerialize["assetsCount"] = o.AssetsCount + } + if !IsNil(o.StreamSubscriptionsCount) { + toSerialize["streamSubscriptionsCount"] = o.StreamSubscriptionsCount + } + if !IsNil(o.Changelog) { + toSerialize["changelog"] = o.Changelog + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Project) { + toSerialize["project"] = o.Project + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Stream) UnmarshalJSON(data []byte) (err error) { + varStream := _Stream{} + + err = json.Unmarshal(data, &varStream) + + if err != nil { + return err + } + + *o = Stream(varStream) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") + delete(additionalProperties, "uuid") + delete(additionalProperties, "state") + delete(additionalProperties, "assetsCount") + delete(additionalProperties, "streamSubscriptionsCount") + delete(additionalProperties, "changelog") + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "project") + delete(additionalProperties, "enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStream struct { + value *Stream + isSet bool +} + +func (v NullableStream) Get() *Stream { + return v.value +} + +func (v *NullableStream) Set(val *Stream) { + v.value = val + v.isSet = true +} + +func (v NullableStream) IsSet() bool { + return v.isSet +} + +func (v *NullableStream) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStream(val *Stream) *NullableStream { + return &NullableStream{value: val, isSet: true} +} + +func (v NullableStream) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStream) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset.go b/services/fabricv4/model_stream_asset.go new file mode 100644 index 00000000..692cd4dc --- /dev/null +++ b/services/fabricv4/model_stream_asset.go @@ -0,0 +1,264 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamAsset type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamAsset{} + +// StreamAsset Stream object +type StreamAsset struct { + // Stream Asset URI + Href *string `json:"href,omitempty"` + // Equinix-assigned access point identifier + Uuid *string `json:"uuid,omitempty"` + // enable metric + MetricsEnabled *bool `json:"metricsEnabled,omitempty"` + AttachmentStatus *StreamAssetAttachmentStatus `json:"attachmentStatus,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamAsset StreamAsset + +// NewStreamAsset instantiates a new StreamAsset 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 NewStreamAsset() *StreamAsset { + this := StreamAsset{} + return &this +} + +// NewStreamAssetWithDefaults instantiates a new StreamAsset 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 NewStreamAssetWithDefaults() *StreamAsset { + this := StreamAsset{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *StreamAsset) 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 *StreamAsset) 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 *StreamAsset) 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 *StreamAsset) SetHref(v string) { + o.Href = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *StreamAsset) 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 *StreamAsset) 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 *StreamAsset) 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 *StreamAsset) SetUuid(v string) { + o.Uuid = &v +} + +// GetMetricsEnabled returns the MetricsEnabled field value if set, zero value otherwise. +func (o *StreamAsset) GetMetricsEnabled() bool { + if o == nil || IsNil(o.MetricsEnabled) { + var ret bool + return ret + } + return *o.MetricsEnabled +} + +// GetMetricsEnabledOk returns a tuple with the MetricsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamAsset) GetMetricsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.MetricsEnabled) { + return nil, false + } + return o.MetricsEnabled, true +} + +// HasMetricsEnabled returns a boolean if a field has been set. +func (o *StreamAsset) HasMetricsEnabled() bool { + if o != nil && !IsNil(o.MetricsEnabled) { + return true + } + + return false +} + +// SetMetricsEnabled gets a reference to the given bool and assigns it to the MetricsEnabled field. +func (o *StreamAsset) SetMetricsEnabled(v bool) { + o.MetricsEnabled = &v +} + +// GetAttachmentStatus returns the AttachmentStatus field value if set, zero value otherwise. +func (o *StreamAsset) GetAttachmentStatus() StreamAssetAttachmentStatus { + if o == nil || IsNil(o.AttachmentStatus) { + var ret StreamAssetAttachmentStatus + return ret + } + return *o.AttachmentStatus +} + +// GetAttachmentStatusOk returns a tuple with the AttachmentStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamAsset) GetAttachmentStatusOk() (*StreamAssetAttachmentStatus, bool) { + if o == nil || IsNil(o.AttachmentStatus) { + return nil, false + } + return o.AttachmentStatus, true +} + +// HasAttachmentStatus returns a boolean if a field has been set. +func (o *StreamAsset) HasAttachmentStatus() bool { + if o != nil && !IsNil(o.AttachmentStatus) { + return true + } + + return false +} + +// SetAttachmentStatus gets a reference to the given StreamAssetAttachmentStatus and assigns it to the AttachmentStatus field. +func (o *StreamAsset) SetAttachmentStatus(v StreamAssetAttachmentStatus) { + o.AttachmentStatus = &v +} + +func (o StreamAsset) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamAsset) 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.MetricsEnabled) { + toSerialize["metricsEnabled"] = o.MetricsEnabled + } + if !IsNil(o.AttachmentStatus) { + toSerialize["attachmentStatus"] = o.AttachmentStatus + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamAsset) UnmarshalJSON(data []byte) (err error) { + varStreamAsset := _StreamAsset{} + + err = json.Unmarshal(data, &varStreamAsset) + + if err != nil { + return err + } + + *o = StreamAsset(varStreamAsset) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") + delete(additionalProperties, "uuid") + delete(additionalProperties, "metricsEnabled") + delete(additionalProperties, "attachmentStatus") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamAsset struct { + value *StreamAsset + isSet bool +} + +func (v NullableStreamAsset) Get() *StreamAsset { + return v.value +} + +func (v *NullableStreamAsset) Set(val *StreamAsset) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAsset) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAsset) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAsset(val *StreamAsset) *NullableStreamAsset { + return &NullableStreamAsset{value: val, isSet: true} +} + +func (v NullableStreamAsset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAsset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_attachment_status.go b/services/fabricv4/model_stream_asset_attachment_status.go new file mode 100644 index 00000000..90a610fb --- /dev/null +++ b/services/fabricv4/model_stream_asset_attachment_status.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" +) + +// StreamAssetAttachmentStatus asset status +type StreamAssetAttachmentStatus string + +// List of StreamAsset_attachmentStatus +const ( + STREAMASSETATTACHMENTSTATUS_ATTACHING StreamAssetAttachmentStatus = "ATTACHING" + STREAMASSETATTACHMENTSTATUS_ATTACHED StreamAssetAttachmentStatus = "ATTACHED" + STREAMASSETATTACHMENTSTATUS_DETACHED StreamAssetAttachmentStatus = "DETACHED" + STREAMASSETATTACHMENTSTATUS_DETACHING StreamAssetAttachmentStatus = "DETACHING" + STREAMASSETATTACHMENTSTATUS_FAILED StreamAssetAttachmentStatus = "FAILED" +) + +// All allowed values of StreamAssetAttachmentStatus enum +var AllowedStreamAssetAttachmentStatusEnumValues = []StreamAssetAttachmentStatus{ + "ATTACHING", + "ATTACHED", + "DETACHED", + "DETACHING", + "FAILED", +} + +func (v *StreamAssetAttachmentStatus) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamAssetAttachmentStatus(value) + for _, existing := range AllowedStreamAssetAttachmentStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamAssetAttachmentStatus", value) +} + +// NewStreamAssetAttachmentStatusFromValue returns a pointer to a valid StreamAssetAttachmentStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamAssetAttachmentStatusFromValue(v string) (*StreamAssetAttachmentStatus, error) { + ev := StreamAssetAttachmentStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamAssetAttachmentStatus: valid values are %v", v, AllowedStreamAssetAttachmentStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamAssetAttachmentStatus) IsValid() bool { + for _, existing := range AllowedStreamAssetAttachmentStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamAsset_attachmentStatus value +func (v StreamAssetAttachmentStatus) Ptr() *StreamAssetAttachmentStatus { + return &v +} + +type NullableStreamAssetAttachmentStatus struct { + value *StreamAssetAttachmentStatus + isSet bool +} + +func (v NullableStreamAssetAttachmentStatus) Get() *StreamAssetAttachmentStatus { + return v.value +} + +func (v *NullableStreamAssetAttachmentStatus) Set(val *StreamAssetAttachmentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetAttachmentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetAttachmentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetAttachmentStatus(val *StreamAssetAttachmentStatus) *NullableStreamAssetAttachmentStatus { + return &NullableStreamAssetAttachmentStatus{value: val, isSet: true} +} + +func (v NullableStreamAssetAttachmentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetAttachmentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_filter.go b/services/fabricv4/model_stream_asset_filter.go new file mode 100644 index 00000000..cd5e2bc5 --- /dev/null +++ b/services/fabricv4/model_stream_asset_filter.go @@ -0,0 +1,100 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamAssetFilter struct for StreamAssetFilter +type StreamAssetFilter struct { + StreamAssetOrFilter *StreamAssetOrFilter + StreamAssetSimpleExpression *StreamAssetSimpleExpression +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *StreamAssetFilter) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into StreamAssetOrFilter + err = json.Unmarshal(data, &dst.StreamAssetOrFilter) + if err == nil { + jsonStreamAssetOrFilter, _ := json.Marshal(dst.StreamAssetOrFilter) + if string(jsonStreamAssetOrFilter) == "{}" { // empty struct + dst.StreamAssetOrFilter = nil + } else { + return nil // data stored in dst.StreamAssetOrFilter, return on the first match + } + } else { + dst.StreamAssetOrFilter = nil + } + + // try to unmarshal JSON data into StreamAssetSimpleExpression + err = json.Unmarshal(data, &dst.StreamAssetSimpleExpression) + if err == nil { + jsonStreamAssetSimpleExpression, _ := json.Marshal(dst.StreamAssetSimpleExpression) + if string(jsonStreamAssetSimpleExpression) == "{}" { // empty struct + dst.StreamAssetSimpleExpression = nil + } else { + return nil // data stored in dst.StreamAssetSimpleExpression, return on the first match + } + } else { + dst.StreamAssetSimpleExpression = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(StreamAssetFilter)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *StreamAssetFilter) MarshalJSON() ([]byte, error) { + if src.StreamAssetOrFilter != nil { + return json.Marshal(&src.StreamAssetOrFilter) + } + + if src.StreamAssetSimpleExpression != nil { + return json.Marshal(&src.StreamAssetSimpleExpression) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableStreamAssetFilter struct { + value *StreamAssetFilter + isSet bool +} + +func (v NullableStreamAssetFilter) Get() *StreamAssetFilter { + return v.value +} + +func (v *NullableStreamAssetFilter) Set(val *StreamAssetFilter) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetFilter(val *StreamAssetFilter) *NullableStreamAssetFilter { + return &NullableStreamAssetFilter{value: val, isSet: true} +} + +func (v NullableStreamAssetFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_filters.go b/services/fabricv4/model_stream_asset_filters.go new file mode 100644 index 00000000..d34311cb --- /dev/null +++ b/services/fabricv4/model_stream_asset_filters.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 StreamAssetFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamAssetFilters{} + +// StreamAssetFilters struct for StreamAssetFilters +type StreamAssetFilters struct { + And []StreamAssetFilter `json:"and,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamAssetFilters StreamAssetFilters + +// NewStreamAssetFilters instantiates a new StreamAssetFilters 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 NewStreamAssetFilters() *StreamAssetFilters { + this := StreamAssetFilters{} + return &this +} + +// NewStreamAssetFiltersWithDefaults instantiates a new StreamAssetFilters 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 NewStreamAssetFiltersWithDefaults() *StreamAssetFilters { + this := StreamAssetFilters{} + return &this +} + +// GetAnd returns the And field value if set, zero value otherwise. +func (o *StreamAssetFilters) GetAnd() []StreamAssetFilter { + if o == nil || IsNil(o.And) { + var ret []StreamAssetFilter + 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 *StreamAssetFilters) GetAndOk() ([]StreamAssetFilter, 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 *StreamAssetFilters) HasAnd() bool { + if o != nil && !IsNil(o.And) { + return true + } + + return false +} + +// SetAnd gets a reference to the given []StreamAssetFilter and assigns it to the And field. +func (o *StreamAssetFilters) SetAnd(v []StreamAssetFilter) { + o.And = v +} + +func (o StreamAssetFilters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamAssetFilters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.And) { + toSerialize["and"] = o.And + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamAssetFilters) UnmarshalJSON(data []byte) (err error) { + varStreamAssetFilters := _StreamAssetFilters{} + + err = json.Unmarshal(data, &varStreamAssetFilters) + + if err != nil { + return err + } + + *o = StreamAssetFilters(varStreamAssetFilters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "and") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamAssetFilters struct { + value *StreamAssetFilters + isSet bool +} + +func (v NullableStreamAssetFilters) Get() *StreamAssetFilters { + return v.value +} + +func (v *NullableStreamAssetFilters) Set(val *StreamAssetFilters) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetFilters(val *StreamAssetFilters) *NullableStreamAssetFilters { + return &NullableStreamAssetFilters{value: val, isSet: true} +} + +func (v NullableStreamAssetFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_or_filter.go b/services/fabricv4/model_stream_asset_or_filter.go new file mode 100644 index 00000000..ba565a87 --- /dev/null +++ b/services/fabricv4/model_stream_asset_or_filter.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 StreamAssetOrFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamAssetOrFilter{} + +// StreamAssetOrFilter struct for StreamAssetOrFilter +type StreamAssetOrFilter struct { + Or []StreamAssetSimpleExpression `json:"or,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamAssetOrFilter StreamAssetOrFilter + +// NewStreamAssetOrFilter instantiates a new StreamAssetOrFilter 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 NewStreamAssetOrFilter() *StreamAssetOrFilter { + this := StreamAssetOrFilter{} + return &this +} + +// NewStreamAssetOrFilterWithDefaults instantiates a new StreamAssetOrFilter 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 NewStreamAssetOrFilterWithDefaults() *StreamAssetOrFilter { + this := StreamAssetOrFilter{} + return &this +} + +// GetOr returns the Or field value if set, zero value otherwise. +func (o *StreamAssetOrFilter) GetOr() []StreamAssetSimpleExpression { + if o == nil || IsNil(o.Or) { + var ret []StreamAssetSimpleExpression + 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 *StreamAssetOrFilter) GetOrOk() ([]StreamAssetSimpleExpression, 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 *StreamAssetOrFilter) HasOr() bool { + if o != nil && !IsNil(o.Or) { + return true + } + + return false +} + +// SetOr gets a reference to the given []StreamAssetSimpleExpression and assigns it to the Or field. +func (o *StreamAssetOrFilter) SetOr(v []StreamAssetSimpleExpression) { + o.Or = v +} + +func (o StreamAssetOrFilter) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamAssetOrFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Or) { + toSerialize["or"] = o.Or + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamAssetOrFilter) UnmarshalJSON(data []byte) (err error) { + varStreamAssetOrFilter := _StreamAssetOrFilter{} + + err = json.Unmarshal(data, &varStreamAssetOrFilter) + + if err != nil { + return err + } + + *o = StreamAssetOrFilter(varStreamAssetOrFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "or") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamAssetOrFilter struct { + value *StreamAssetOrFilter + isSet bool +} + +func (v NullableStreamAssetOrFilter) Get() *StreamAssetOrFilter { + return v.value +} + +func (v *NullableStreamAssetOrFilter) Set(val *StreamAssetOrFilter) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetOrFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetOrFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetOrFilter(val *StreamAssetOrFilter) *NullableStreamAssetOrFilter { + return &NullableStreamAssetOrFilter{value: val, isSet: true} +} + +func (v NullableStreamAssetOrFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetOrFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_put_request.go b/services/fabricv4/model_stream_asset_put_request.go new file mode 100644 index 00000000..8afd3c48 --- /dev/null +++ b/services/fabricv4/model_stream_asset_put_request.go @@ -0,0 +1,151 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamAssetPutRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamAssetPutRequest{} + +// StreamAssetPutRequest Update Stream Asset +type StreamAssetPutRequest struct { + // enable metric + MetricsEnabled *bool `json:"metricsEnabled,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamAssetPutRequest StreamAssetPutRequest + +// NewStreamAssetPutRequest instantiates a new StreamAssetPutRequest 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 NewStreamAssetPutRequest() *StreamAssetPutRequest { + this := StreamAssetPutRequest{} + return &this +} + +// NewStreamAssetPutRequestWithDefaults instantiates a new StreamAssetPutRequest 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 NewStreamAssetPutRequestWithDefaults() *StreamAssetPutRequest { + this := StreamAssetPutRequest{} + return &this +} + +// GetMetricsEnabled returns the MetricsEnabled field value if set, zero value otherwise. +func (o *StreamAssetPutRequest) GetMetricsEnabled() bool { + if o == nil || IsNil(o.MetricsEnabled) { + var ret bool + return ret + } + return *o.MetricsEnabled +} + +// GetMetricsEnabledOk returns a tuple with the MetricsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamAssetPutRequest) GetMetricsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.MetricsEnabled) { + return nil, false + } + return o.MetricsEnabled, true +} + +// HasMetricsEnabled returns a boolean if a field has been set. +func (o *StreamAssetPutRequest) HasMetricsEnabled() bool { + if o != nil && !IsNil(o.MetricsEnabled) { + return true + } + + return false +} + +// SetMetricsEnabled gets a reference to the given bool and assigns it to the MetricsEnabled field. +func (o *StreamAssetPutRequest) SetMetricsEnabled(v bool) { + o.MetricsEnabled = &v +} + +func (o StreamAssetPutRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamAssetPutRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MetricsEnabled) { + toSerialize["metricsEnabled"] = o.MetricsEnabled + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamAssetPutRequest) UnmarshalJSON(data []byte) (err error) { + varStreamAssetPutRequest := _StreamAssetPutRequest{} + + err = json.Unmarshal(data, &varStreamAssetPutRequest) + + if err != nil { + return err + } + + *o = StreamAssetPutRequest(varStreamAssetPutRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "metricsEnabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamAssetPutRequest struct { + value *StreamAssetPutRequest + isSet bool +} + +func (v NullableStreamAssetPutRequest) Get() *StreamAssetPutRequest { + return v.value +} + +func (v *NullableStreamAssetPutRequest) Set(val *StreamAssetPutRequest) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetPutRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetPutRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetPutRequest(val *StreamAssetPutRequest) *NullableStreamAssetPutRequest { + return &NullableStreamAssetPutRequest{value: val, isSet: true} +} + +func (v NullableStreamAssetPutRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetPutRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_search_request.go b/services/fabricv4/model_stream_asset_search_request.go new file mode 100644 index 00000000..ae3646d8 --- /dev/null +++ b/services/fabricv4/model_stream_asset_search_request.go @@ -0,0 +1,224 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamAssetSearchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamAssetSearchRequest{} + +// StreamAssetSearchRequest Search requests containing criteria +type StreamAssetSearchRequest struct { + Filter *StreamAssetFilters `json:"filter,omitempty"` + Pagination *PaginationRequest `json:"pagination,omitempty"` + Sort []StreamAssetSortCriteria `json:"sort,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamAssetSearchRequest StreamAssetSearchRequest + +// NewStreamAssetSearchRequest instantiates a new StreamAssetSearchRequest 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 NewStreamAssetSearchRequest() *StreamAssetSearchRequest { + this := StreamAssetSearchRequest{} + return &this +} + +// NewStreamAssetSearchRequestWithDefaults instantiates a new StreamAssetSearchRequest 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 NewStreamAssetSearchRequestWithDefaults() *StreamAssetSearchRequest { + this := StreamAssetSearchRequest{} + return &this +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *StreamAssetSearchRequest) GetFilter() StreamAssetFilters { + if o == nil || IsNil(o.Filter) { + var ret StreamAssetFilters + 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 *StreamAssetSearchRequest) GetFilterOk() (*StreamAssetFilters, 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 *StreamAssetSearchRequest) HasFilter() bool { + if o != nil && !IsNil(o.Filter) { + return true + } + + return false +} + +// SetFilter gets a reference to the given StreamAssetFilters and assigns it to the Filter field. +func (o *StreamAssetSearchRequest) SetFilter(v StreamAssetFilters) { + o.Filter = &v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *StreamAssetSearchRequest) GetPagination() PaginationRequest { + if o == nil || IsNil(o.Pagination) { + var ret PaginationRequest + 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 *StreamAssetSearchRequest) GetPaginationOk() (*PaginationRequest, 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 *StreamAssetSearchRequest) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationRequest and assigns it to the Pagination field. +func (o *StreamAssetSearchRequest) SetPagination(v PaginationRequest) { + o.Pagination = &v +} + +// GetSort returns the Sort field value if set, zero value otherwise. +func (o *StreamAssetSearchRequest) GetSort() []StreamAssetSortCriteria { + if o == nil || IsNil(o.Sort) { + var ret []StreamAssetSortCriteria + return ret + } + return o.Sort +} + +// GetSortOk returns a tuple with the Sort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamAssetSearchRequest) GetSortOk() ([]StreamAssetSortCriteria, bool) { + if o == nil || IsNil(o.Sort) { + return nil, false + } + return o.Sort, true +} + +// HasSort returns a boolean if a field has been set. +func (o *StreamAssetSearchRequest) HasSort() bool { + if o != nil && !IsNil(o.Sort) { + return true + } + + return false +} + +// SetSort gets a reference to the given []StreamAssetSortCriteria and assigns it to the Sort field. +func (o *StreamAssetSearchRequest) SetSort(v []StreamAssetSortCriteria) { + o.Sort = v +} + +func (o StreamAssetSearchRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamAssetSearchRequest) 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 + } + if !IsNil(o.Sort) { + toSerialize["sort"] = o.Sort + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamAssetSearchRequest) UnmarshalJSON(data []byte) (err error) { + varStreamAssetSearchRequest := _StreamAssetSearchRequest{} + + err = json.Unmarshal(data, &varStreamAssetSearchRequest) + + if err != nil { + return err + } + + *o = StreamAssetSearchRequest(varStreamAssetSearchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "filter") + delete(additionalProperties, "pagination") + delete(additionalProperties, "sort") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamAssetSearchRequest struct { + value *StreamAssetSearchRequest + isSet bool +} + +func (v NullableStreamAssetSearchRequest) Get() *StreamAssetSearchRequest { + return v.value +} + +func (v *NullableStreamAssetSearchRequest) Set(val *StreamAssetSearchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetSearchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetSearchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetSearchRequest(val *StreamAssetSearchRequest) *NullableStreamAssetSearchRequest { + return &NullableStreamAssetSearchRequest{value: val, isSet: true} +} + +func (v NullableStreamAssetSearchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetSearchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_simple_expression.go b/services/fabricv4/model_stream_asset_simple_expression.go new file mode 100644 index 00000000..23e8f6f4 --- /dev/null +++ b/services/fabricv4/model_stream_asset_simple_expression.go @@ -0,0 +1,226 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamAssetSimpleExpression type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamAssetSimpleExpression{} + +// StreamAssetSimpleExpression struct for StreamAssetSimpleExpression +type StreamAssetSimpleExpression struct { + // Possible field names to use on filters: * `/uuid` - Asset uuid * `/streamUuid` - Stream uuid * `/projectId` - Asset projectId * `/_*` - all-category search + Property *string `json:"property,omitempty"` + // Possible operators to use on filters: * `=` - equal * `!=` - not equal * `>` - greater than * `>=` - greater than or equal to * `<` - less than * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in * `ILIKE` - case-insensitive like + Operator *string `json:"operator,omitempty"` + Values []string `json:"values,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamAssetSimpleExpression StreamAssetSimpleExpression + +// NewStreamAssetSimpleExpression instantiates a new StreamAssetSimpleExpression 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 NewStreamAssetSimpleExpression() *StreamAssetSimpleExpression { + this := StreamAssetSimpleExpression{} + return &this +} + +// NewStreamAssetSimpleExpressionWithDefaults instantiates a new StreamAssetSimpleExpression 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 NewStreamAssetSimpleExpressionWithDefaults() *StreamAssetSimpleExpression { + this := StreamAssetSimpleExpression{} + return &this +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *StreamAssetSimpleExpression) GetProperty() string { + if o == nil || IsNil(o.Property) { + var ret string + 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 *StreamAssetSimpleExpression) GetPropertyOk() (*string, 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 *StreamAssetSimpleExpression) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given string and assigns it to the Property field. +func (o *StreamAssetSimpleExpression) SetProperty(v string) { + o.Property = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *StreamAssetSimpleExpression) GetOperator() string { + if o == nil || IsNil(o.Operator) { + var ret string + 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 *StreamAssetSimpleExpression) GetOperatorOk() (*string, 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 *StreamAssetSimpleExpression) HasOperator() bool { + if o != nil && !IsNil(o.Operator) { + return true + } + + return false +} + +// SetOperator gets a reference to the given string and assigns it to the Operator field. +func (o *StreamAssetSimpleExpression) SetOperator(v string) { + o.Operator = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *StreamAssetSimpleExpression) 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 *StreamAssetSimpleExpression) 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 *StreamAssetSimpleExpression) 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 *StreamAssetSimpleExpression) SetValues(v []string) { + o.Values = v +} + +func (o StreamAssetSimpleExpression) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamAssetSimpleExpression) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + 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 *StreamAssetSimpleExpression) UnmarshalJSON(data []byte) (err error) { + varStreamAssetSimpleExpression := _StreamAssetSimpleExpression{} + + err = json.Unmarshal(data, &varStreamAssetSimpleExpression) + + if err != nil { + return err + } + + *o = StreamAssetSimpleExpression(varStreamAssetSimpleExpression) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "property") + delete(additionalProperties, "operator") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamAssetSimpleExpression struct { + value *StreamAssetSimpleExpression + isSet bool +} + +func (v NullableStreamAssetSimpleExpression) Get() *StreamAssetSimpleExpression { + return v.value +} + +func (v *NullableStreamAssetSimpleExpression) Set(val *StreamAssetSimpleExpression) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetSimpleExpression) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetSimpleExpression) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetSimpleExpression(val *StreamAssetSimpleExpression) *NullableStreamAssetSimpleExpression { + return &NullableStreamAssetSimpleExpression{value: val, isSet: true} +} + +func (v NullableStreamAssetSimpleExpression) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetSimpleExpression) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_sort_by.go b/services/fabricv4/model_stream_asset_sort_by.go new file mode 100644 index 00000000..2d4d8b87 --- /dev/null +++ b/services/fabricv4/model_stream_asset_sort_by.go @@ -0,0 +1,105 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamAssetSortBy Possible field names to use on sorting +type StreamAssetSortBy string + +// List of StreamAssetSortBy +const ( + STREAMASSETSORTBY_UUID StreamAssetSortBy = "/uuid" +) + +// All allowed values of StreamAssetSortBy enum +var AllowedStreamAssetSortByEnumValues = []StreamAssetSortBy{ + "/uuid", +} + +func (v *StreamAssetSortBy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamAssetSortBy(value) + for _, existing := range AllowedStreamAssetSortByEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamAssetSortBy", value) +} + +// NewStreamAssetSortByFromValue returns a pointer to a valid StreamAssetSortBy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamAssetSortByFromValue(v string) (*StreamAssetSortBy, error) { + ev := StreamAssetSortBy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamAssetSortBy: valid values are %v", v, AllowedStreamAssetSortByEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamAssetSortBy) IsValid() bool { + for _, existing := range AllowedStreamAssetSortByEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamAssetSortBy value +func (v StreamAssetSortBy) Ptr() *StreamAssetSortBy { + return &v +} + +type NullableStreamAssetSortBy struct { + value *StreamAssetSortBy + isSet bool +} + +func (v NullableStreamAssetSortBy) Get() *StreamAssetSortBy { + return v.value +} + +func (v *NullableStreamAssetSortBy) Set(val *StreamAssetSortBy) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetSortBy) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetSortBy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetSortBy(val *StreamAssetSortBy) *NullableStreamAssetSortBy { + return &NullableStreamAssetSortBy{value: val, isSet: true} +} + +func (v NullableStreamAssetSortBy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetSortBy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_sort_criteria.go b/services/fabricv4/model_stream_asset_sort_criteria.go new file mode 100644 index 00000000..dec84d93 --- /dev/null +++ b/services/fabricv4/model_stream_asset_sort_criteria.go @@ -0,0 +1,195 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamAssetSortCriteria type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamAssetSortCriteria{} + +// StreamAssetSortCriteria struct for StreamAssetSortCriteria +type StreamAssetSortCriteria struct { + Direction *StreamAssetSortDirection `json:"direction,omitempty"` + Property *StreamAssetSortBy `json:"property,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamAssetSortCriteria StreamAssetSortCriteria + +// NewStreamAssetSortCriteria instantiates a new StreamAssetSortCriteria 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 NewStreamAssetSortCriteria() *StreamAssetSortCriteria { + this := StreamAssetSortCriteria{} + var direction StreamAssetSortDirection = STREAMASSETSORTDIRECTION_DESC + this.Direction = &direction + var property StreamAssetSortBy = STREAMASSETSORTBY_UUID + this.Property = &property + return &this +} + +// NewStreamAssetSortCriteriaWithDefaults instantiates a new StreamAssetSortCriteria 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 NewStreamAssetSortCriteriaWithDefaults() *StreamAssetSortCriteria { + this := StreamAssetSortCriteria{} + var direction StreamAssetSortDirection = STREAMASSETSORTDIRECTION_DESC + this.Direction = &direction + var property StreamAssetSortBy = STREAMASSETSORTBY_UUID + this.Property = &property + return &this +} + +// GetDirection returns the Direction field value if set, zero value otherwise. +func (o *StreamAssetSortCriteria) GetDirection() StreamAssetSortDirection { + if o == nil || IsNil(o.Direction) { + var ret StreamAssetSortDirection + return ret + } + return *o.Direction +} + +// GetDirectionOk returns a tuple with the Direction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamAssetSortCriteria) GetDirectionOk() (*StreamAssetSortDirection, bool) { + if o == nil || IsNil(o.Direction) { + return nil, false + } + return o.Direction, true +} + +// HasDirection returns a boolean if a field has been set. +func (o *StreamAssetSortCriteria) HasDirection() bool { + if o != nil && !IsNil(o.Direction) { + return true + } + + return false +} + +// SetDirection gets a reference to the given StreamAssetSortDirection and assigns it to the Direction field. +func (o *StreamAssetSortCriteria) SetDirection(v StreamAssetSortDirection) { + o.Direction = &v +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *StreamAssetSortCriteria) GetProperty() StreamAssetSortBy { + if o == nil || IsNil(o.Property) { + var ret StreamAssetSortBy + 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 *StreamAssetSortCriteria) GetPropertyOk() (*StreamAssetSortBy, 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 *StreamAssetSortCriteria) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given StreamAssetSortBy and assigns it to the Property field. +func (o *StreamAssetSortCriteria) SetProperty(v StreamAssetSortBy) { + o.Property = &v +} + +func (o StreamAssetSortCriteria) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamAssetSortCriteria) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Direction) { + toSerialize["direction"] = o.Direction + } + if !IsNil(o.Property) { + toSerialize["property"] = o.Property + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamAssetSortCriteria) UnmarshalJSON(data []byte) (err error) { + varStreamAssetSortCriteria := _StreamAssetSortCriteria{} + + err = json.Unmarshal(data, &varStreamAssetSortCriteria) + + if err != nil { + return err + } + + *o = StreamAssetSortCriteria(varStreamAssetSortCriteria) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "direction") + delete(additionalProperties, "property") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamAssetSortCriteria struct { + value *StreamAssetSortCriteria + isSet bool +} + +func (v NullableStreamAssetSortCriteria) Get() *StreamAssetSortCriteria { + return v.value +} + +func (v *NullableStreamAssetSortCriteria) Set(val *StreamAssetSortCriteria) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetSortCriteria) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetSortCriteria) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetSortCriteria(val *StreamAssetSortCriteria) *NullableStreamAssetSortCriteria { + return &NullableStreamAssetSortCriteria{value: val, isSet: true} +} + +func (v NullableStreamAssetSortCriteria) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetSortCriteria) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_asset_sort_direction.go b/services/fabricv4/model_stream_asset_sort_direction.go new file mode 100644 index 00000000..01b8210b --- /dev/null +++ b/services/fabricv4/model_stream_asset_sort_direction.go @@ -0,0 +1,107 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamAssetSortDirection Sorting direction +type StreamAssetSortDirection string + +// List of StreamAssetSortDirection +const ( + STREAMASSETSORTDIRECTION_DESC StreamAssetSortDirection = "DESC" + STREAMASSETSORTDIRECTION_ASC StreamAssetSortDirection = "ASC" +) + +// All allowed values of StreamAssetSortDirection enum +var AllowedStreamAssetSortDirectionEnumValues = []StreamAssetSortDirection{ + "DESC", + "ASC", +} + +func (v *StreamAssetSortDirection) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamAssetSortDirection(value) + for _, existing := range AllowedStreamAssetSortDirectionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamAssetSortDirection", value) +} + +// NewStreamAssetSortDirectionFromValue returns a pointer to a valid StreamAssetSortDirection +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamAssetSortDirectionFromValue(v string) (*StreamAssetSortDirection, error) { + ev := StreamAssetSortDirection(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamAssetSortDirection: valid values are %v", v, AllowedStreamAssetSortDirectionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamAssetSortDirection) IsValid() bool { + for _, existing := range AllowedStreamAssetSortDirectionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamAssetSortDirection value +func (v StreamAssetSortDirection) Ptr() *StreamAssetSortDirection { + return &v +} + +type NullableStreamAssetSortDirection struct { + value *StreamAssetSortDirection + isSet bool +} + +func (v NullableStreamAssetSortDirection) Get() *StreamAssetSortDirection { + return v.value +} + +func (v *NullableStreamAssetSortDirection) Set(val *StreamAssetSortDirection) { + v.value = val + v.isSet = true +} + +func (v NullableStreamAssetSortDirection) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamAssetSortDirection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamAssetSortDirection(val *StreamAssetSortDirection) *NullableStreamAssetSortDirection { + return &NullableStreamAssetSortDirection{value: val, isSet: true} +} + +func (v NullableStreamAssetSortDirection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamAssetSortDirection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_filter.go b/services/fabricv4/model_stream_filter.go new file mode 100644 index 00000000..cd21d42f --- /dev/null +++ b/services/fabricv4/model_stream_filter.go @@ -0,0 +1,100 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamFilter struct for StreamFilter +type StreamFilter struct { + StreamFilterOrFilter *StreamFilterOrFilter + StreamFilterSimpleExpression *StreamFilterSimpleExpression +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *StreamFilter) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into StreamFilterOrFilter + err = json.Unmarshal(data, &dst.StreamFilterOrFilter) + if err == nil { + jsonStreamFilterOrFilter, _ := json.Marshal(dst.StreamFilterOrFilter) + if string(jsonStreamFilterOrFilter) == "{}" { // empty struct + dst.StreamFilterOrFilter = nil + } else { + return nil // data stored in dst.StreamFilterOrFilter, return on the first match + } + } else { + dst.StreamFilterOrFilter = nil + } + + // try to unmarshal JSON data into StreamFilterSimpleExpression + err = json.Unmarshal(data, &dst.StreamFilterSimpleExpression) + if err == nil { + jsonStreamFilterSimpleExpression, _ := json.Marshal(dst.StreamFilterSimpleExpression) + if string(jsonStreamFilterSimpleExpression) == "{}" { // empty struct + dst.StreamFilterSimpleExpression = nil + } else { + return nil // data stored in dst.StreamFilterSimpleExpression, return on the first match + } + } else { + dst.StreamFilterSimpleExpression = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(StreamFilter)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src *StreamFilter) MarshalJSON() ([]byte, error) { + if src.StreamFilterOrFilter != nil { + return json.Marshal(&src.StreamFilterOrFilter) + } + + if src.StreamFilterSimpleExpression != nil { + return json.Marshal(&src.StreamFilterSimpleExpression) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableStreamFilter struct { + value *StreamFilter + isSet bool +} + +func (v NullableStreamFilter) Get() *StreamFilter { + return v.value +} + +func (v *NullableStreamFilter) Set(val *StreamFilter) { + v.value = val + v.isSet = true +} + +func (v NullableStreamFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamFilter(val *StreamFilter) *NullableStreamFilter { + return &NullableStreamFilter{value: val, isSet: true} +} + +func (v NullableStreamFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_filter_or_filter.go b/services/fabricv4/model_stream_filter_or_filter.go new file mode 100644 index 00000000..bc45e837 --- /dev/null +++ b/services/fabricv4/model_stream_filter_or_filter.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 StreamFilterOrFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamFilterOrFilter{} + +// StreamFilterOrFilter struct for StreamFilterOrFilter +type StreamFilterOrFilter struct { + Or []StreamFilterSimpleExpression `json:"or,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamFilterOrFilter StreamFilterOrFilter + +// NewStreamFilterOrFilter instantiates a new StreamFilterOrFilter 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 NewStreamFilterOrFilter() *StreamFilterOrFilter { + this := StreamFilterOrFilter{} + return &this +} + +// NewStreamFilterOrFilterWithDefaults instantiates a new StreamFilterOrFilter 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 NewStreamFilterOrFilterWithDefaults() *StreamFilterOrFilter { + this := StreamFilterOrFilter{} + return &this +} + +// GetOr returns the Or field value if set, zero value otherwise. +func (o *StreamFilterOrFilter) GetOr() []StreamFilterSimpleExpression { + if o == nil || IsNil(o.Or) { + var ret []StreamFilterSimpleExpression + 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 *StreamFilterOrFilter) GetOrOk() ([]StreamFilterSimpleExpression, 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 *StreamFilterOrFilter) HasOr() bool { + if o != nil && !IsNil(o.Or) { + return true + } + + return false +} + +// SetOr gets a reference to the given []StreamFilterSimpleExpression and assigns it to the Or field. +func (o *StreamFilterOrFilter) SetOr(v []StreamFilterSimpleExpression) { + o.Or = v +} + +func (o StreamFilterOrFilter) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamFilterOrFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Or) { + toSerialize["or"] = o.Or + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamFilterOrFilter) UnmarshalJSON(data []byte) (err error) { + varStreamFilterOrFilter := _StreamFilterOrFilter{} + + err = json.Unmarshal(data, &varStreamFilterOrFilter) + + if err != nil { + return err + } + + *o = StreamFilterOrFilter(varStreamFilterOrFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "or") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamFilterOrFilter struct { + value *StreamFilterOrFilter + isSet bool +} + +func (v NullableStreamFilterOrFilter) Get() *StreamFilterOrFilter { + return v.value +} + +func (v *NullableStreamFilterOrFilter) Set(val *StreamFilterOrFilter) { + v.value = val + v.isSet = true +} + +func (v NullableStreamFilterOrFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamFilterOrFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamFilterOrFilter(val *StreamFilterOrFilter) *NullableStreamFilterOrFilter { + return &NullableStreamFilterOrFilter{value: val, isSet: true} +} + +func (v NullableStreamFilterOrFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamFilterOrFilter) 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 new file mode 100644 index 00000000..ffadbeb8 --- /dev/null +++ b/services/fabricv4/model_stream_filter_simple_expression.go @@ -0,0 +1,226 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamFilterSimpleExpression type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamFilterSimpleExpression{} + +// StreamFilterSimpleExpression struct for StreamFilterSimpleExpression +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"` + Values []string `json:"values,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamFilterSimpleExpression StreamFilterSimpleExpression + +// NewStreamFilterSimpleExpression instantiates a new StreamFilterSimpleExpression 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 NewStreamFilterSimpleExpression() *StreamFilterSimpleExpression { + this := StreamFilterSimpleExpression{} + return &this +} + +// NewStreamFilterSimpleExpressionWithDefaults instantiates a new StreamFilterSimpleExpression 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 NewStreamFilterSimpleExpressionWithDefaults() *StreamFilterSimpleExpression { + this := StreamFilterSimpleExpression{} + return &this +} + +// GetProperty returns the Property field value if set, zero value otherwise. +func (o *StreamFilterSimpleExpression) GetProperty() string { + if o == nil || IsNil(o.Property) { + var ret string + 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 *StreamFilterSimpleExpression) GetPropertyOk() (*string, 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 *StreamFilterSimpleExpression) HasProperty() bool { + if o != nil && !IsNil(o.Property) { + return true + } + + return false +} + +// SetProperty gets a reference to the given string and assigns it to the Property field. +func (o *StreamFilterSimpleExpression) SetProperty(v string) { + o.Property = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *StreamFilterSimpleExpression) GetOperator() string { + if o == nil || IsNil(o.Operator) { + var ret string + 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 *StreamFilterSimpleExpression) GetOperatorOk() (*string, 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 *StreamFilterSimpleExpression) HasOperator() bool { + if o != nil && !IsNil(o.Operator) { + return true + } + + return false +} + +// SetOperator gets a reference to the given string and assigns it to the Operator field. +func (o *StreamFilterSimpleExpression) SetOperator(v string) { + o.Operator = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *StreamFilterSimpleExpression) 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 *StreamFilterSimpleExpression) 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 *StreamFilterSimpleExpression) 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 *StreamFilterSimpleExpression) SetValues(v []string) { + o.Values = v +} + +func (o StreamFilterSimpleExpression) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamFilterSimpleExpression) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + 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 *StreamFilterSimpleExpression) UnmarshalJSON(data []byte) (err error) { + varStreamFilterSimpleExpression := _StreamFilterSimpleExpression{} + + err = json.Unmarshal(data, &varStreamFilterSimpleExpression) + + if err != nil { + return err + } + + *o = StreamFilterSimpleExpression(varStreamFilterSimpleExpression) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "property") + delete(additionalProperties, "operator") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamFilterSimpleExpression struct { + value *StreamFilterSimpleExpression + isSet bool +} + +func (v NullableStreamFilterSimpleExpression) Get() *StreamFilterSimpleExpression { + return v.value +} + +func (v *NullableStreamFilterSimpleExpression) Set(val *StreamFilterSimpleExpression) { + v.value = val + v.isSet = true +} + +func (v NullableStreamFilterSimpleExpression) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamFilterSimpleExpression) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamFilterSimpleExpression(val *StreamFilterSimpleExpression) *NullableStreamFilterSimpleExpression { + return &NullableStreamFilterSimpleExpression{value: val, isSet: true} +} + +func (v NullableStreamFilterSimpleExpression) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamFilterSimpleExpression) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_get_subscriptions.go b/services/fabricv4/model_stream_get_subscriptions.go new file mode 100644 index 00000000..837f9b9a --- /dev/null +++ b/services/fabricv4/model_stream_get_subscriptions.go @@ -0,0 +1,226 @@ +/* +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 new file mode 100644 index 00000000..1b3c842d --- /dev/null +++ b/services/fabricv4/model_stream_get_subscriptions_type.go @@ -0,0 +1,105 @@ +/* +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_post_request.go b/services/fabricv4/model_stream_post_request.go new file mode 100644 index 00000000..63943bec --- /dev/null +++ b/services/fabricv4/model_stream_post_request.go @@ -0,0 +1,301 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamPostRequest{} + +// StreamPostRequest Create Stream +type StreamPostRequest struct { + Type *StreamPostRequestType `json:"type,omitempty"` + // Customer-provided stream name + Name *string `json:"name,omitempty"` + // Customer-provided stream description + Description *string `json:"description,omitempty"` + Project *Project `json:"project,omitempty"` + // Stream enabled status + Enabled *bool `json:"enabled,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamPostRequest StreamPostRequest + +// NewStreamPostRequest instantiates a new StreamPostRequest 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 NewStreamPostRequest() *StreamPostRequest { + this := StreamPostRequest{} + return &this +} + +// NewStreamPostRequestWithDefaults instantiates a new StreamPostRequest 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 NewStreamPostRequestWithDefaults() *StreamPostRequest { + this := StreamPostRequest{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *StreamPostRequest) GetType() StreamPostRequestType { + if o == nil || IsNil(o.Type) { + var ret StreamPostRequestType + 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 *StreamPostRequest) GetTypeOk() (*StreamPostRequestType, 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 *StreamPostRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given StreamPostRequestType and assigns it to the Type field. +func (o *StreamPostRequest) SetType(v StreamPostRequestType) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *StreamPostRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamPostRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *StreamPostRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *StreamPostRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *StreamPostRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamPostRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *StreamPostRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *StreamPostRequest) SetDescription(v string) { + o.Description = &v +} + +// GetProject returns the Project field value if set, zero value otherwise. +func (o *StreamPostRequest) 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 *StreamPostRequest) 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 *StreamPostRequest) 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 *StreamPostRequest) SetProject(v Project) { + o.Project = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *StreamPostRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamPostRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *StreamPostRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *StreamPostRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o StreamPostRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Project) { + toSerialize["project"] = o.Project + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamPostRequest) UnmarshalJSON(data []byte) (err error) { + varStreamPostRequest := _StreamPostRequest{} + + err = json.Unmarshal(data, &varStreamPostRequest) + + if err != nil { + return err + } + + *o = StreamPostRequest(varStreamPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "project") + delete(additionalProperties, "enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamPostRequest struct { + value *StreamPostRequest + isSet bool +} + +func (v NullableStreamPostRequest) Get() *StreamPostRequest { + return v.value +} + +func (v *NullableStreamPostRequest) Set(val *StreamPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableStreamPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamPostRequest(val *StreamPostRequest) *NullableStreamPostRequest { + return &NullableStreamPostRequest{value: val, isSet: true} +} + +func (v NullableStreamPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_post_request_type.go b/services/fabricv4/model_stream_post_request_type.go new file mode 100644 index 00000000..d22200f9 --- /dev/null +++ b/services/fabricv4/model_stream_post_request_type.go @@ -0,0 +1,105 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamPostRequestType the model 'StreamPostRequestType' +type StreamPostRequestType string + +// List of StreamPostRequest_type +const ( + STREAMPOSTREQUESTTYPE_TELEMETRY_STREAM StreamPostRequestType = "TELEMETRY_STREAM" +) + +// All allowed values of StreamPostRequestType enum +var AllowedStreamPostRequestTypeEnumValues = []StreamPostRequestType{ + "TELEMETRY_STREAM", +} + +func (v *StreamPostRequestType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamPostRequestType(value) + for _, existing := range AllowedStreamPostRequestTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamPostRequestType", value) +} + +// NewStreamPostRequestTypeFromValue returns a pointer to a valid StreamPostRequestType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamPostRequestTypeFromValue(v string) (*StreamPostRequestType, error) { + ev := StreamPostRequestType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamPostRequestType: valid values are %v", v, AllowedStreamPostRequestTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamPostRequestType) IsValid() bool { + for _, existing := range AllowedStreamPostRequestTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamPostRequest_type value +func (v StreamPostRequestType) Ptr() *StreamPostRequestType { + return &v +} + +type NullableStreamPostRequestType struct { + value *StreamPostRequestType + isSet bool +} + +func (v NullableStreamPostRequestType) Get() *StreamPostRequestType { + return v.value +} + +func (v *NullableStreamPostRequestType) Set(val *StreamPostRequestType) { + v.value = val + v.isSet = true +} + +func (v NullableStreamPostRequestType) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamPostRequestType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamPostRequestType(val *StreamPostRequestType) *NullableStreamPostRequestType { + return &NullableStreamPostRequestType{value: val, isSet: true} +} + +func (v NullableStreamPostRequestType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamPostRequestType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_put_request.go b/services/fabricv4/model_stream_put_request.go new file mode 100644 index 00000000..73af5113 --- /dev/null +++ b/services/fabricv4/model_stream_put_request.go @@ -0,0 +1,227 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamPutRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamPutRequest{} + +// StreamPutRequest Update Stream +type StreamPutRequest struct { + // Customer-provided stream name + Name *string `json:"name,omitempty"` + // Customer-provided stream description + Description *string `json:"description,omitempty"` + // stream state + Enabled *bool `json:"enabled,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamPutRequest StreamPutRequest + +// NewStreamPutRequest instantiates a new StreamPutRequest 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 NewStreamPutRequest() *StreamPutRequest { + this := StreamPutRequest{} + return &this +} + +// NewStreamPutRequestWithDefaults instantiates a new StreamPutRequest 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 NewStreamPutRequestWithDefaults() *StreamPutRequest { + this := StreamPutRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *StreamPutRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamPutRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *StreamPutRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *StreamPutRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *StreamPutRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamPutRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *StreamPutRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *StreamPutRequest) SetDescription(v string) { + o.Description = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *StreamPutRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamPutRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *StreamPutRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *StreamPutRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o StreamPutRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamPutRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamPutRequest) UnmarshalJSON(data []byte) (err error) { + varStreamPutRequest := _StreamPutRequest{} + + err = json.Unmarshal(data, &varStreamPutRequest) + + if err != nil { + return err + } + + *o = StreamPutRequest(varStreamPutRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "enabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamPutRequest struct { + value *StreamPutRequest + isSet bool +} + +func (v NullableStreamPutRequest) Get() *StreamPutRequest { + return v.value +} + +func (v *NullableStreamPutRequest) Set(val *StreamPutRequest) { + v.value = val + v.isSet = true +} + +func (v NullableStreamPutRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamPutRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamPutRequest(val *StreamPutRequest) *NullableStreamPutRequest { + return &NullableStreamPutRequest{value: val, isSet: true} +} + +func (v NullableStreamPutRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamPutRequest) 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 new file mode 100644 index 00000000..44a966b8 --- /dev/null +++ b/services/fabricv4/model_stream_subscription.go @@ -0,0 +1,562 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamSubscription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamSubscription{} + +// StreamSubscription Stream Subscription object +type StreamSubscription struct { + // Stream Subscription URI + Href *string `json:"href,omitempty"` + // Equinix-assigned access point identifier + Uuid *string `json:"uuid,omitempty"` + Type *StreamSubscriptionType `json:"type,omitempty"` + // Customer-provided subscription name + 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"` + Sink *StreamSubscriptionSink `json:"sink,omitempty"` + Changelog *Changelog `json:"changelog,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamSubscription StreamSubscription + +// NewStreamSubscription instantiates a new StreamSubscription 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 NewStreamSubscription() *StreamSubscription { + this := StreamSubscription{} + return &this +} + +// NewStreamSubscriptionWithDefaults instantiates a new StreamSubscription 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 NewStreamSubscriptionWithDefaults() *StreamSubscription { + this := StreamSubscription{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *StreamSubscription) 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 *StreamSubscription) 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 *StreamSubscription) 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 *StreamSubscription) SetHref(v string) { + o.Href = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *StreamSubscription) 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 *StreamSubscription) 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 *StreamSubscription) 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 *StreamSubscription) SetUuid(v string) { + o.Uuid = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *StreamSubscription) GetType() StreamSubscriptionType { + if o == nil || IsNil(o.Type) { + var ret StreamSubscriptionType + 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 *StreamSubscription) GetTypeOk() (*StreamSubscriptionType, 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 *StreamSubscription) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given StreamSubscriptionType and assigns it to the Type field. +func (o *StreamSubscription) SetType(v StreamSubscriptionType) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *StreamSubscription) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscription) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *StreamSubscription) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *StreamSubscription) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *StreamSubscription) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscription) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *StreamSubscription) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +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) { + var ret StreamSubscriptionState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscription) GetStateOk() (*StreamSubscriptionState, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *StreamSubscription) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given StreamSubscriptionState and assigns it to the State field. +func (o *StreamSubscription) SetState(v StreamSubscriptionState) { + o.State = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *StreamSubscription) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscription) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *StreamSubscription) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +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) { + var ret StreamSubscriptionFilter + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscription) GetFiltersOk() (*StreamSubscriptionFilter, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *StreamSubscription) HasFilters() bool { + if o != nil && !IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given StreamSubscriptionFilter and assigns it to the Filters field. +func (o *StreamSubscription) SetFilters(v StreamSubscriptionFilter) { + o.Filters = &v +} + +// GetSink returns the Sink field value if set, zero value otherwise. +func (o *StreamSubscription) GetSink() StreamSubscriptionSink { + if o == nil || IsNil(o.Sink) { + var ret StreamSubscriptionSink + return ret + } + return *o.Sink +} + +// GetSinkOk returns a tuple with the Sink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscription) GetSinkOk() (*StreamSubscriptionSink, bool) { + if o == nil || IsNil(o.Sink) { + return nil, false + } + return o.Sink, true +} + +// HasSink returns a boolean if a field has been set. +func (o *StreamSubscription) HasSink() bool { + if o != nil && !IsNil(o.Sink) { + return true + } + + return false +} + +// SetSink gets a reference to the given StreamSubscriptionSink and assigns it to the Sink field. +func (o *StreamSubscription) SetSink(v StreamSubscriptionSink) { + o.Sink = &v +} + +// GetChangelog returns the Changelog field value if set, zero value otherwise. +func (o *StreamSubscription) GetChangelog() Changelog { + if o == nil || IsNil(o.Changelog) { + var ret Changelog + return ret + } + return *o.Changelog +} + +// GetChangelogOk returns a tuple with the Changelog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscription) GetChangelogOk() (*Changelog, bool) { + if o == nil || IsNil(o.Changelog) { + return nil, false + } + return o.Changelog, true +} + +// HasChangelog returns a boolean if a field has been set. +func (o *StreamSubscription) HasChangelog() bool { + if o != nil && !IsNil(o.Changelog) { + return true + } + + return false +} + +// SetChangelog gets a reference to the given Changelog and assigns it to the Changelog field. +func (o *StreamSubscription) SetChangelog(v Changelog) { + o.Changelog = &v +} + +func (o StreamSubscription) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamSubscription) 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 + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + 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 + } + if !IsNil(o.Sink) { + toSerialize["sink"] = o.Sink + } + if !IsNil(o.Changelog) { + toSerialize["changelog"] = o.Changelog + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamSubscription) UnmarshalJSON(data []byte) (err error) { + varStreamSubscription := _StreamSubscription{} + + err = json.Unmarshal(data, &varStreamSubscription) + + if err != nil { + return err + } + + *o = StreamSubscription(varStreamSubscription) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") + delete(additionalProperties, "uuid") + 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, "sink") + delete(additionalProperties, "changelog") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamSubscription struct { + value *StreamSubscription + isSet bool +} + +func (v NullableStreamSubscription) Get() *StreamSubscription { + return v.value +} + +func (v *NullableStreamSubscription) Set(val *StreamSubscription) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscription(val *StreamSubscription) *NullableStreamSubscription { + return &NullableStreamSubscription{value: val, isSet: true} +} + +func (v NullableStreamSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_filter.go b/services/fabricv4/model_stream_subscription_filter.go new file mode 100644 index 00000000..f967ced6 --- /dev/null +++ b/services/fabricv4/model_stream_subscription_filter.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 StreamSubscriptionFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamSubscriptionFilter{} + +// StreamSubscriptionFilter struct for StreamSubscriptionFilter +type StreamSubscriptionFilter struct { + And []StreamFilter `json:"and,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamSubscriptionFilter StreamSubscriptionFilter + +// NewStreamSubscriptionFilter instantiates a new StreamSubscriptionFilter 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 NewStreamSubscriptionFilter() *StreamSubscriptionFilter { + this := StreamSubscriptionFilter{} + return &this +} + +// NewStreamSubscriptionFilterWithDefaults instantiates a new StreamSubscriptionFilter 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 NewStreamSubscriptionFilterWithDefaults() *StreamSubscriptionFilter { + this := StreamSubscriptionFilter{} + return &this +} + +// GetAnd returns the And field value if set, zero value otherwise. +func (o *StreamSubscriptionFilter) GetAnd() []StreamFilter { + if o == nil || IsNil(o.And) { + var ret []StreamFilter + 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 *StreamSubscriptionFilter) GetAndOk() ([]StreamFilter, 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 *StreamSubscriptionFilter) HasAnd() bool { + if o != nil && !IsNil(o.And) { + return true + } + + return false +} + +// SetAnd gets a reference to the given []StreamFilter and assigns it to the And field. +func (o *StreamSubscriptionFilter) SetAnd(v []StreamFilter) { + o.And = v +} + +func (o StreamSubscriptionFilter) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamSubscriptionFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.And) { + toSerialize["and"] = o.And + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamSubscriptionFilter) UnmarshalJSON(data []byte) (err error) { + varStreamSubscriptionFilter := _StreamSubscriptionFilter{} + + err = json.Unmarshal(data, &varStreamSubscriptionFilter) + + if err != nil { + return err + } + + *o = StreamSubscriptionFilter(varStreamSubscriptionFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "and") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamSubscriptionFilter struct { + value *StreamSubscriptionFilter + isSet bool +} + +func (v NullableStreamSubscriptionFilter) Get() *StreamSubscriptionFilter { + return v.value +} + +func (v *NullableStreamSubscriptionFilter) Set(val *StreamSubscriptionFilter) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionFilter(val *StreamSubscriptionFilter) *NullableStreamSubscriptionFilter { + return &NullableStreamSubscriptionFilter{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_post_request.go b/services/fabricv4/model_stream_subscription_post_request.go new file mode 100644 index 00000000..a791f992 --- /dev/null +++ b/services/fabricv4/model_stream_subscription_post_request.go @@ -0,0 +1,412 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamSubscriptionPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamSubscriptionPostRequest{} + +// StreamSubscriptionPostRequest Create Stream Subscription +type StreamSubscriptionPostRequest struct { + Type *StreamSubscriptionPostRequestType `json:"type,omitempty"` + // 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"` + // Stream subscription enabled status + Enabled *bool `json:"enabled,omitempty"` + Stream *StreamTarget `json:"stream,omitempty"` + Filters *StreamSubscriptionFilter `json:"filters,omitempty"` + Sink *StreamSubscriptionSink `json:"sink,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamSubscriptionPostRequest StreamSubscriptionPostRequest + +// NewStreamSubscriptionPostRequest instantiates a new StreamSubscriptionPostRequest 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 NewStreamSubscriptionPostRequest() *StreamSubscriptionPostRequest { + this := StreamSubscriptionPostRequest{} + return &this +} + +// NewStreamSubscriptionPostRequestWithDefaults instantiates a new StreamSubscriptionPostRequest 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 NewStreamSubscriptionPostRequestWithDefaults() *StreamSubscriptionPostRequest { + this := StreamSubscriptionPostRequest{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *StreamSubscriptionPostRequest) GetType() StreamSubscriptionPostRequestType { + if o == nil || IsNil(o.Type) { + var ret StreamSubscriptionPostRequestType + 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 *StreamSubscriptionPostRequest) GetTypeOk() (*StreamSubscriptionPostRequestType, 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 *StreamSubscriptionPostRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given StreamSubscriptionPostRequestType and assigns it to the Type field. +func (o *StreamSubscriptionPostRequest) SetType(v StreamSubscriptionPostRequestType) { + o.Type = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *StreamSubscriptionPostRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPostRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *StreamSubscriptionPostRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *StreamSubscriptionPostRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *StreamSubscriptionPostRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPostRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *StreamSubscriptionPostRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +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) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPostRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *StreamSubscriptionPostRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +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) { + var ret StreamSubscriptionFilter + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPostRequest) GetFiltersOk() (*StreamSubscriptionFilter, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *StreamSubscriptionPostRequest) HasFilters() bool { + if o != nil && !IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given StreamSubscriptionFilter and assigns it to the Filters field. +func (o *StreamSubscriptionPostRequest) SetFilters(v StreamSubscriptionFilter) { + o.Filters = &v +} + +// GetSink returns the Sink field value if set, zero value otherwise. +func (o *StreamSubscriptionPostRequest) GetSink() StreamSubscriptionSink { + if o == nil || IsNil(o.Sink) { + var ret StreamSubscriptionSink + return ret + } + return *o.Sink +} + +// GetSinkOk returns a tuple with the Sink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPostRequest) GetSinkOk() (*StreamSubscriptionSink, bool) { + if o == nil || IsNil(o.Sink) { + return nil, false + } + return o.Sink, true +} + +// HasSink returns a boolean if a field has been set. +func (o *StreamSubscriptionPostRequest) HasSink() bool { + if o != nil && !IsNil(o.Sink) { + return true + } + + return false +} + +// SetSink gets a reference to the given StreamSubscriptionSink and assigns it to the Sink field. +func (o *StreamSubscriptionPostRequest) SetSink(v StreamSubscriptionSink) { + o.Sink = &v +} + +func (o StreamSubscriptionPostRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamSubscriptionPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + 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 + } + if !IsNil(o.Sink) { + toSerialize["sink"] = o.Sink + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamSubscriptionPostRequest) UnmarshalJSON(data []byte) (err error) { + varStreamSubscriptionPostRequest := _StreamSubscriptionPostRequest{} + + err = json.Unmarshal(data, &varStreamSubscriptionPostRequest) + + if err != nil { + return err + } + + *o = StreamSubscriptionPostRequest(varStreamSubscriptionPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "project") + delete(additionalProperties, "enabled") + delete(additionalProperties, "stream") + delete(additionalProperties, "filters") + delete(additionalProperties, "sink") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamSubscriptionPostRequest struct { + value *StreamSubscriptionPostRequest + isSet bool +} + +func (v NullableStreamSubscriptionPostRequest) Get() *StreamSubscriptionPostRequest { + return v.value +} + +func (v *NullableStreamSubscriptionPostRequest) Set(val *StreamSubscriptionPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionPostRequest(val *StreamSubscriptionPostRequest) *NullableStreamSubscriptionPostRequest { + return &NullableStreamSubscriptionPostRequest{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_post_request_type.go b/services/fabricv4/model_stream_subscription_post_request_type.go new file mode 100644 index 00000000..45bbd2aa --- /dev/null +++ b/services/fabricv4/model_stream_subscription_post_request_type.go @@ -0,0 +1,105 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamSubscriptionPostRequestType the model 'StreamSubscriptionPostRequestType' +type StreamSubscriptionPostRequestType string + +// List of StreamSubscriptionPostRequest_type +const ( + STREAMSUBSCRIPTIONPOSTREQUESTTYPE_STREAM_SUBSCRIPTION StreamSubscriptionPostRequestType = "STREAM_SUBSCRIPTION" +) + +// All allowed values of StreamSubscriptionPostRequestType enum +var AllowedStreamSubscriptionPostRequestTypeEnumValues = []StreamSubscriptionPostRequestType{ + "STREAM_SUBSCRIPTION", +} + +func (v *StreamSubscriptionPostRequestType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamSubscriptionPostRequestType(value) + for _, existing := range AllowedStreamSubscriptionPostRequestTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamSubscriptionPostRequestType", value) +} + +// NewStreamSubscriptionPostRequestTypeFromValue returns a pointer to a valid StreamSubscriptionPostRequestType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamSubscriptionPostRequestTypeFromValue(v string) (*StreamSubscriptionPostRequestType, error) { + ev := StreamSubscriptionPostRequestType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamSubscriptionPostRequestType: valid values are %v", v, AllowedStreamSubscriptionPostRequestTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamSubscriptionPostRequestType) IsValid() bool { + for _, existing := range AllowedStreamSubscriptionPostRequestTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamSubscriptionPostRequest_type value +func (v StreamSubscriptionPostRequestType) Ptr() *StreamSubscriptionPostRequestType { + return &v +} + +type NullableStreamSubscriptionPostRequestType struct { + value *StreamSubscriptionPostRequestType + isSet bool +} + +func (v NullableStreamSubscriptionPostRequestType) Get() *StreamSubscriptionPostRequestType { + return v.value +} + +func (v *NullableStreamSubscriptionPostRequestType) Set(val *StreamSubscriptionPostRequestType) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionPostRequestType) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionPostRequestType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionPostRequestType(val *StreamSubscriptionPostRequestType) *NullableStreamSubscriptionPostRequestType { + return &NullableStreamSubscriptionPostRequestType{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionPostRequestType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionPostRequestType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_put_request.go b/services/fabricv4/model_stream_subscription_put_request.go new file mode 100644 index 00000000..a4e95cbe --- /dev/null +++ b/services/fabricv4/model_stream_subscription_put_request.go @@ -0,0 +1,338 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamSubscriptionPutRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamSubscriptionPutRequest{} + +// StreamSubscriptionPutRequest Update Stream Subscription +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"` + // Stream subscription enabled status + Enabled *bool `json:"enabled,omitempty"` + Filters *StreamSubscriptionFilter `json:"filters,omitempty"` + Sink *StreamSubscriptionSink `json:"sink,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamSubscriptionPutRequest StreamSubscriptionPutRequest + +// NewStreamSubscriptionPutRequest instantiates a new StreamSubscriptionPutRequest 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 NewStreamSubscriptionPutRequest() *StreamSubscriptionPutRequest { + this := StreamSubscriptionPutRequest{} + return &this +} + +// NewStreamSubscriptionPutRequestWithDefaults instantiates a new StreamSubscriptionPutRequest 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 NewStreamSubscriptionPutRequestWithDefaults() *StreamSubscriptionPutRequest { + this := StreamSubscriptionPutRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *StreamSubscriptionPutRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPutRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *StreamSubscriptionPutRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *StreamSubscriptionPutRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *StreamSubscriptionPutRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPutRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *StreamSubscriptionPutRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +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) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPutRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *StreamSubscriptionPutRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *StreamSubscriptionPutRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *StreamSubscriptionPutRequest) GetFilters() StreamSubscriptionFilter { + if o == nil || IsNil(o.Filters) { + var ret StreamSubscriptionFilter + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPutRequest) GetFiltersOk() (*StreamSubscriptionFilter, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *StreamSubscriptionPutRequest) HasFilters() bool { + if o != nil && !IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given StreamSubscriptionFilter and assigns it to the Filters field. +func (o *StreamSubscriptionPutRequest) SetFilters(v StreamSubscriptionFilter) { + o.Filters = &v +} + +// GetSink returns the Sink field value if set, zero value otherwise. +func (o *StreamSubscriptionPutRequest) GetSink() StreamSubscriptionSink { + if o == nil || IsNil(o.Sink) { + var ret StreamSubscriptionSink + return ret + } + return *o.Sink +} + +// GetSinkOk returns a tuple with the Sink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionPutRequest) GetSinkOk() (*StreamSubscriptionSink, bool) { + if o == nil || IsNil(o.Sink) { + return nil, false + } + return o.Sink, true +} + +// HasSink returns a boolean if a field has been set. +func (o *StreamSubscriptionPutRequest) HasSink() bool { + if o != nil && !IsNil(o.Sink) { + return true + } + + return false +} + +// SetSink gets a reference to the given StreamSubscriptionSink and assigns it to the Sink field. +func (o *StreamSubscriptionPutRequest) SetSink(v StreamSubscriptionSink) { + o.Sink = &v +} + +func (o StreamSubscriptionPutRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamSubscriptionPutRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Stream) { + toSerialize["stream"] = o.Stream + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Filters) { + toSerialize["filters"] = o.Filters + } + if !IsNil(o.Sink) { + toSerialize["sink"] = o.Sink + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamSubscriptionPutRequest) UnmarshalJSON(data []byte) (err error) { + varStreamSubscriptionPutRequest := _StreamSubscriptionPutRequest{} + + err = json.Unmarshal(data, &varStreamSubscriptionPutRequest) + + if err != nil { + return err + } + + *o = StreamSubscriptionPutRequest(varStreamSubscriptionPutRequest) + + additionalProperties := make(map[string]interface{}) + + 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, "sink") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamSubscriptionPutRequest struct { + value *StreamSubscriptionPutRequest + isSet bool +} + +func (v NullableStreamSubscriptionPutRequest) Get() *StreamSubscriptionPutRequest { + return v.value +} + +func (v *NullableStreamSubscriptionPutRequest) Set(val *StreamSubscriptionPutRequest) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionPutRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionPutRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionPutRequest(val *StreamSubscriptionPutRequest) *NullableStreamSubscriptionPutRequest { + return &NullableStreamSubscriptionPutRequest{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionPutRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionPutRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_sink.go b/services/fabricv4/model_stream_subscription_sink.go new file mode 100644 index 00000000..5ce00774 --- /dev/null +++ b/services/fabricv4/model_stream_subscription_sink.go @@ -0,0 +1,376 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamSubscriptionSink type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamSubscriptionSink{} + +// StreamSubscriptionSink Create Stream destination +type StreamSubscriptionSink struct { + // any publicly reachable http endpoint + Uri *string `json:"uri,omitempty"` + Type *StreamSubscriptionSinkType `json:"type,omitempty"` + // batch mode on/off + BatchEnabled *bool `json:"batchEnabled,omitempty"` + // 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"` + AdditionalProperties map[string]interface{} +} + +type _StreamSubscriptionSink StreamSubscriptionSink + +// NewStreamSubscriptionSink instantiates a new StreamSubscriptionSink 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 NewStreamSubscriptionSink() *StreamSubscriptionSink { + this := StreamSubscriptionSink{} + return &this +} + +// NewStreamSubscriptionSinkWithDefaults instantiates a new StreamSubscriptionSink 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 NewStreamSubscriptionSinkWithDefaults() *StreamSubscriptionSink { + this := StreamSubscriptionSink{} + return &this +} + +// GetUri returns the Uri field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetUri() string { + if o == nil || IsNil(o.Uri) { + var ret string + return ret + } + return *o.Uri +} + +// GetUriOk returns a tuple with the Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSink) GetUriOk() (*string, bool) { + if o == nil || IsNil(o.Uri) { + return nil, false + } + return o.Uri, true +} + +// HasUri returns a boolean if a field has been set. +func (o *StreamSubscriptionSink) HasUri() bool { + if o != nil && !IsNil(o.Uri) { + return true + } + + return false +} + +// SetUri gets a reference to the given string and assigns it to the Uri field. +func (o *StreamSubscriptionSink) SetUri(v string) { + o.Uri = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetType() StreamSubscriptionSinkType { + if o == nil || IsNil(o.Type) { + var ret StreamSubscriptionSinkType + 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 *StreamSubscriptionSink) GetTypeOk() (*StreamSubscriptionSinkType, 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 *StreamSubscriptionSink) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given StreamSubscriptionSinkType and assigns it to the Type field. +func (o *StreamSubscriptionSink) SetType(v StreamSubscriptionSinkType) { + o.Type = &v +} + +// GetBatchEnabled returns the BatchEnabled field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetBatchEnabled() bool { + if o == nil || IsNil(o.BatchEnabled) { + var ret bool + return ret + } + return *o.BatchEnabled +} + +// GetBatchEnabledOk returns a tuple with the BatchEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSink) GetBatchEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.BatchEnabled) { + return nil, false + } + return o.BatchEnabled, true +} + +// HasBatchEnabled returns a boolean if a field has been set. +func (o *StreamSubscriptionSink) HasBatchEnabled() bool { + if o != nil && !IsNil(o.BatchEnabled) { + return true + } + + return false +} + +// SetBatchEnabled gets a reference to the given bool and assigns it to the BatchEnabled field. +func (o *StreamSubscriptionSink) SetBatchEnabled(v bool) { + o.BatchEnabled = &v +} + +// GetBatchSizeMax returns the BatchSizeMax field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetBatchSizeMax() int32 { + if o == nil || IsNil(o.BatchSizeMax) { + var ret int32 + return ret + } + return *o.BatchSizeMax +} + +// GetBatchSizeMaxOk returns a tuple with the BatchSizeMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSink) GetBatchSizeMaxOk() (*int32, bool) { + if o == nil || IsNil(o.BatchSizeMax) { + return nil, false + } + return o.BatchSizeMax, true +} + +// HasBatchSizeMax returns a boolean if a field has been set. +func (o *StreamSubscriptionSink) HasBatchSizeMax() bool { + if o != nil && !IsNil(o.BatchSizeMax) { + return true + } + + return false +} + +// SetBatchSizeMax gets a reference to the given int32 and assigns it to the BatchSizeMax field. +func (o *StreamSubscriptionSink) SetBatchSizeMax(v int32) { + o.BatchSizeMax = &v +} + +// GetBatchWaitTimeMax returns the BatchWaitTimeMax field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetBatchWaitTimeMax() int32 { + if o == nil || IsNil(o.BatchWaitTimeMax) { + var ret int32 + return ret + } + return *o.BatchWaitTimeMax +} + +// GetBatchWaitTimeMaxOk returns a tuple with the BatchWaitTimeMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSink) GetBatchWaitTimeMaxOk() (*int32, bool) { + if o == nil || IsNil(o.BatchWaitTimeMax) { + return nil, false + } + return o.BatchWaitTimeMax, true +} + +// HasBatchWaitTimeMax returns a boolean if a field has been set. +func (o *StreamSubscriptionSink) HasBatchWaitTimeMax() bool { + if o != nil && !IsNil(o.BatchWaitTimeMax) { + return true + } + + return false +} + +// SetBatchWaitTimeMax gets a reference to the given int32 and assigns it to the BatchWaitTimeMax field. +func (o *StreamSubscriptionSink) SetBatchWaitTimeMax(v int32) { + o.BatchWaitTimeMax = &v +} + +// GetCredential returns the Credential field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetCredential() StreamSubscriptionSinkCredential { + if o == nil || IsNil(o.Credential) { + var ret StreamSubscriptionSinkCredential + return ret + } + return *o.Credential +} + +// GetCredentialOk returns a tuple with the Credential field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSink) GetCredentialOk() (*StreamSubscriptionSinkCredential, bool) { + if o == nil || IsNil(o.Credential) { + return nil, false + } + return o.Credential, true +} + +// HasCredential returns a boolean if a field has been set. +func (o *StreamSubscriptionSink) HasCredential() bool { + if o != nil && !IsNil(o.Credential) { + return true + } + + return false +} + +// SetCredential gets a reference to the given StreamSubscriptionSinkCredential and assigns it to the Credential field. +func (o *StreamSubscriptionSink) SetCredential(v StreamSubscriptionSinkCredential) { + o.Credential = &v +} + +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *StreamSubscriptionSink) GetSettings() StreamSubscriptionSinkSetting { + if o == nil || IsNil(o.Settings) { + var ret StreamSubscriptionSinkSetting + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSink) GetSettingsOk() (*StreamSubscriptionSinkSetting, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *StreamSubscriptionSink) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given StreamSubscriptionSinkSetting and assigns it to the Settings field. +func (o *StreamSubscriptionSink) SetSettings(v StreamSubscriptionSinkSetting) { + o.Settings = &v +} + +func (o StreamSubscriptionSink) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamSubscriptionSink) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uri) { + toSerialize["uri"] = o.Uri + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.BatchEnabled) { + toSerialize["batchEnabled"] = o.BatchEnabled + } + if !IsNil(o.BatchSizeMax) { + toSerialize["batchSizeMax"] = o.BatchSizeMax + } + if !IsNil(o.BatchWaitTimeMax) { + toSerialize["batchWaitTimeMax"] = o.BatchWaitTimeMax + } + if !IsNil(o.Credential) { + toSerialize["credential"] = o.Credential + } + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamSubscriptionSink) UnmarshalJSON(data []byte) (err error) { + varStreamSubscriptionSink := _StreamSubscriptionSink{} + + err = json.Unmarshal(data, &varStreamSubscriptionSink) + + if err != nil { + return err + } + + *o = StreamSubscriptionSink(varStreamSubscriptionSink) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uri") + delete(additionalProperties, "type") + delete(additionalProperties, "batchEnabled") + delete(additionalProperties, "batchSizeMax") + delete(additionalProperties, "batchWaitTimeMax") + delete(additionalProperties, "credential") + delete(additionalProperties, "settings") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamSubscriptionSink struct { + value *StreamSubscriptionSink + isSet bool +} + +func (v NullableStreamSubscriptionSink) Get() *StreamSubscriptionSink { + return v.value +} + +func (v *NullableStreamSubscriptionSink) Set(val *StreamSubscriptionSink) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionSink) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionSink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionSink(val *StreamSubscriptionSink) *NullableStreamSubscriptionSink { + return &NullableStreamSubscriptionSink{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionSink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionSink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_sink_credential.go b/services/fabricv4/model_stream_subscription_sink_credential.go new file mode 100644 index 00000000..974ed4dd --- /dev/null +++ b/services/fabricv4/model_stream_subscription_sink_credential.go @@ -0,0 +1,264 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamSubscriptionSinkCredential type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamSubscriptionSinkCredential{} + +// StreamSubscriptionSinkCredential Stream subscription sink credentials +type StreamSubscriptionSinkCredential struct { + Type *StreamSubscriptionSinkCredentialType `json:"type,omitempty"` + // passed as Authorization header value + AccessToken *string `json:"accessToken,omitempty"` + // passed as Authorization header value + IntegrationKey *string `json:"integrationKey,omitempty"` + // passed as Authorization header value + ApiKey *string `json:"apiKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamSubscriptionSinkCredential StreamSubscriptionSinkCredential + +// NewStreamSubscriptionSinkCredential instantiates a new StreamSubscriptionSinkCredential 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 NewStreamSubscriptionSinkCredential() *StreamSubscriptionSinkCredential { + this := StreamSubscriptionSinkCredential{} + return &this +} + +// NewStreamSubscriptionSinkCredentialWithDefaults instantiates a new StreamSubscriptionSinkCredential 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 NewStreamSubscriptionSinkCredentialWithDefaults() *StreamSubscriptionSinkCredential { + this := StreamSubscriptionSinkCredential{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkCredential) GetType() StreamSubscriptionSinkCredentialType { + if o == nil || IsNil(o.Type) { + var ret StreamSubscriptionSinkCredentialType + 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 *StreamSubscriptionSinkCredential) GetTypeOk() (*StreamSubscriptionSinkCredentialType, 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 *StreamSubscriptionSinkCredential) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given StreamSubscriptionSinkCredentialType and assigns it to the Type field. +func (o *StreamSubscriptionSinkCredential) SetType(v StreamSubscriptionSinkCredentialType) { + o.Type = &v +} + +// GetAccessToken returns the AccessToken field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkCredential) GetAccessToken() string { + if o == nil || IsNil(o.AccessToken) { + var ret string + return ret + } + return *o.AccessToken +} + +// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkCredential) GetAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.AccessToken) { + return nil, false + } + return o.AccessToken, true +} + +// HasAccessToken returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkCredential) HasAccessToken() bool { + if o != nil && !IsNil(o.AccessToken) { + return true + } + + return false +} + +// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. +func (o *StreamSubscriptionSinkCredential) SetAccessToken(v string) { + o.AccessToken = &v +} + +// GetIntegrationKey returns the IntegrationKey field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkCredential) GetIntegrationKey() string { + if o == nil || IsNil(o.IntegrationKey) { + var ret string + return ret + } + return *o.IntegrationKey +} + +// GetIntegrationKeyOk returns a tuple with the IntegrationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkCredential) GetIntegrationKeyOk() (*string, bool) { + if o == nil || IsNil(o.IntegrationKey) { + return nil, false + } + return o.IntegrationKey, true +} + +// HasIntegrationKey returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkCredential) HasIntegrationKey() bool { + if o != nil && !IsNil(o.IntegrationKey) { + return true + } + + return false +} + +// SetIntegrationKey gets a reference to the given string and assigns it to the IntegrationKey field. +func (o *StreamSubscriptionSinkCredential) SetIntegrationKey(v string) { + o.IntegrationKey = &v +} + +// GetApiKey returns the ApiKey field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkCredential) GetApiKey() string { + if o == nil || IsNil(o.ApiKey) { + var ret string + return ret + } + return *o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkCredential) GetApiKeyOk() (*string, bool) { + if o == nil || IsNil(o.ApiKey) { + return nil, false + } + return o.ApiKey, true +} + +// HasApiKey returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkCredential) HasApiKey() bool { + if o != nil && !IsNil(o.ApiKey) { + return true + } + + return false +} + +// SetApiKey gets a reference to the given string and assigns it to the ApiKey field. +func (o *StreamSubscriptionSinkCredential) SetApiKey(v string) { + o.ApiKey = &v +} + +func (o StreamSubscriptionSinkCredential) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamSubscriptionSinkCredential) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.AccessToken) { + toSerialize["accessToken"] = o.AccessToken + } + if !IsNil(o.IntegrationKey) { + toSerialize["integrationKey"] = o.IntegrationKey + } + if !IsNil(o.ApiKey) { + toSerialize["apiKey"] = o.ApiKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamSubscriptionSinkCredential) UnmarshalJSON(data []byte) (err error) { + varStreamSubscriptionSinkCredential := _StreamSubscriptionSinkCredential{} + + err = json.Unmarshal(data, &varStreamSubscriptionSinkCredential) + + if err != nil { + return err + } + + *o = StreamSubscriptionSinkCredential(varStreamSubscriptionSinkCredential) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "accessToken") + delete(additionalProperties, "integrationKey") + delete(additionalProperties, "apiKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamSubscriptionSinkCredential struct { + value *StreamSubscriptionSinkCredential + isSet bool +} + +func (v NullableStreamSubscriptionSinkCredential) Get() *StreamSubscriptionSinkCredential { + return v.value +} + +func (v *NullableStreamSubscriptionSinkCredential) Set(val *StreamSubscriptionSinkCredential) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionSinkCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionSinkCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionSinkCredential(val *StreamSubscriptionSinkCredential) *NullableStreamSubscriptionSinkCredential { + return &NullableStreamSubscriptionSinkCredential{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionSinkCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionSinkCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_sink_credential_type.go b/services/fabricv4/model_stream_subscription_sink_credential_type.go new file mode 100644 index 00000000..817363ad --- /dev/null +++ b/services/fabricv4/model_stream_subscription_sink_credential_type.go @@ -0,0 +1,109 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamSubscriptionSinkCredentialType credential type +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" +) + +// All allowed values of StreamSubscriptionSinkCredentialType enum +var AllowedStreamSubscriptionSinkCredentialTypeEnumValues = []StreamSubscriptionSinkCredentialType{ + "ACCESS_TOKEN", + "INTEGRATION_KEY", + "API_KEY", +} + +func (v *StreamSubscriptionSinkCredentialType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamSubscriptionSinkCredentialType(value) + for _, existing := range AllowedStreamSubscriptionSinkCredentialTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamSubscriptionSinkCredentialType", value) +} + +// NewStreamSubscriptionSinkCredentialTypeFromValue returns a pointer to a valid StreamSubscriptionSinkCredentialType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamSubscriptionSinkCredentialTypeFromValue(v string) (*StreamSubscriptionSinkCredentialType, error) { + ev := StreamSubscriptionSinkCredentialType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamSubscriptionSinkCredentialType: valid values are %v", v, AllowedStreamSubscriptionSinkCredentialTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamSubscriptionSinkCredentialType) IsValid() bool { + for _, existing := range AllowedStreamSubscriptionSinkCredentialTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamSubscriptionSinkCredential_type value +func (v StreamSubscriptionSinkCredentialType) Ptr() *StreamSubscriptionSinkCredentialType { + return &v +} + +type NullableStreamSubscriptionSinkCredentialType struct { + value *StreamSubscriptionSinkCredentialType + isSet bool +} + +func (v NullableStreamSubscriptionSinkCredentialType) Get() *StreamSubscriptionSinkCredentialType { + return v.value +} + +func (v *NullableStreamSubscriptionSinkCredentialType) Set(val *StreamSubscriptionSinkCredentialType) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionSinkCredentialType) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionSinkCredentialType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionSinkCredentialType(val *StreamSubscriptionSinkCredentialType) *NullableStreamSubscriptionSinkCredentialType { + return &NullableStreamSubscriptionSinkCredentialType{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionSinkCredentialType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionSinkCredentialType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_sink_setting.go b/services/fabricv4/model_stream_subscription_sink_setting.go new file mode 100644 index 00000000..d9febfee --- /dev/null +++ b/services/fabricv4/model_stream_subscription_sink_setting.go @@ -0,0 +1,265 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the StreamSubscriptionSinkSetting type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StreamSubscriptionSinkSetting{} + +// StreamSubscriptionSinkSetting Stream subscription sink settings +type StreamSubscriptionSinkSetting struct { + // event index + EventIndex *string `json:"eventIndex,omitempty"` + // metric index + MetricIndex *string `json:"metricIndex,omitempty"` + // source + Source *string `json:"source,omitempty"` + // Application key + ApplicationKey *string `json:"applicationKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StreamSubscriptionSinkSetting StreamSubscriptionSinkSetting + +// NewStreamSubscriptionSinkSetting instantiates a new StreamSubscriptionSinkSetting 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 NewStreamSubscriptionSinkSetting() *StreamSubscriptionSinkSetting { + this := StreamSubscriptionSinkSetting{} + return &this +} + +// NewStreamSubscriptionSinkSettingWithDefaults instantiates a new StreamSubscriptionSinkSetting 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 NewStreamSubscriptionSinkSettingWithDefaults() *StreamSubscriptionSinkSetting { + this := StreamSubscriptionSinkSetting{} + return &this +} + +// GetEventIndex returns the EventIndex field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkSetting) GetEventIndex() string { + if o == nil || IsNil(o.EventIndex) { + var ret string + return ret + } + return *o.EventIndex +} + +// GetEventIndexOk returns a tuple with the EventIndex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkSetting) GetEventIndexOk() (*string, bool) { + if o == nil || IsNil(o.EventIndex) { + return nil, false + } + return o.EventIndex, true +} + +// HasEventIndex returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkSetting) HasEventIndex() bool { + if o != nil && !IsNil(o.EventIndex) { + return true + } + + return false +} + +// SetEventIndex gets a reference to the given string and assigns it to the EventIndex field. +func (o *StreamSubscriptionSinkSetting) SetEventIndex(v string) { + o.EventIndex = &v +} + +// GetMetricIndex returns the MetricIndex field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkSetting) GetMetricIndex() string { + if o == nil || IsNil(o.MetricIndex) { + var ret string + return ret + } + return *o.MetricIndex +} + +// GetMetricIndexOk returns a tuple with the MetricIndex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkSetting) GetMetricIndexOk() (*string, bool) { + if o == nil || IsNil(o.MetricIndex) { + return nil, false + } + return o.MetricIndex, true +} + +// HasMetricIndex returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkSetting) HasMetricIndex() bool { + if o != nil && !IsNil(o.MetricIndex) { + return true + } + + return false +} + +// SetMetricIndex gets a reference to the given string and assigns it to the MetricIndex field. +func (o *StreamSubscriptionSinkSetting) SetMetricIndex(v string) { + o.MetricIndex = &v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkSetting) GetSource() string { + if o == nil || IsNil(o.Source) { + var ret string + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkSetting) GetSourceOk() (*string, bool) { + if o == nil || IsNil(o.Source) { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkSetting) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given string and assigns it to the Source field. +func (o *StreamSubscriptionSinkSetting) SetSource(v string) { + o.Source = &v +} + +// GetApplicationKey returns the ApplicationKey field value if set, zero value otherwise. +func (o *StreamSubscriptionSinkSetting) GetApplicationKey() string { + if o == nil || IsNil(o.ApplicationKey) { + var ret string + return ret + } + return *o.ApplicationKey +} + +// GetApplicationKeyOk returns a tuple with the ApplicationKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StreamSubscriptionSinkSetting) GetApplicationKeyOk() (*string, bool) { + if o == nil || IsNil(o.ApplicationKey) { + return nil, false + } + return o.ApplicationKey, true +} + +// HasApplicationKey returns a boolean if a field has been set. +func (o *StreamSubscriptionSinkSetting) HasApplicationKey() bool { + if o != nil && !IsNil(o.ApplicationKey) { + return true + } + + return false +} + +// SetApplicationKey gets a reference to the given string and assigns it to the ApplicationKey field. +func (o *StreamSubscriptionSinkSetting) SetApplicationKey(v string) { + o.ApplicationKey = &v +} + +func (o StreamSubscriptionSinkSetting) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StreamSubscriptionSinkSetting) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EventIndex) { + toSerialize["eventIndex"] = o.EventIndex + } + if !IsNil(o.MetricIndex) { + toSerialize["metricIndex"] = o.MetricIndex + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.ApplicationKey) { + toSerialize["applicationKey"] = o.ApplicationKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StreamSubscriptionSinkSetting) UnmarshalJSON(data []byte) (err error) { + varStreamSubscriptionSinkSetting := _StreamSubscriptionSinkSetting{} + + err = json.Unmarshal(data, &varStreamSubscriptionSinkSetting) + + if err != nil { + return err + } + + *o = StreamSubscriptionSinkSetting(varStreamSubscriptionSinkSetting) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "eventIndex") + delete(additionalProperties, "metricIndex") + delete(additionalProperties, "source") + delete(additionalProperties, "applicationKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStreamSubscriptionSinkSetting struct { + value *StreamSubscriptionSinkSetting + isSet bool +} + +func (v NullableStreamSubscriptionSinkSetting) Get() *StreamSubscriptionSinkSetting { + return v.value +} + +func (v *NullableStreamSubscriptionSinkSetting) Set(val *StreamSubscriptionSinkSetting) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionSinkSetting) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionSinkSetting) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionSinkSetting(val *StreamSubscriptionSinkSetting) *NullableStreamSubscriptionSinkSetting { + return &NullableStreamSubscriptionSinkSetting{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionSinkSetting) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionSinkSetting) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_sink_type.go b/services/fabricv4/model_stream_subscription_sink_type.go new file mode 100644 index 00000000..87cbaed8 --- /dev/null +++ b/services/fabricv4/model_stream_subscription_sink_type.go @@ -0,0 +1,115 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamSubscriptionSinkType destination type +type StreamSubscriptionSinkType string + +// List of StreamSubscriptionSink_type +const ( + STREAMSUBSCRIPTIONSINKTYPE_DATADOG StreamSubscriptionSinkType = "DATADOG" + STREAMSUBSCRIPTIONSINKTYPE_PAGERDUTY StreamSubscriptionSinkType = "PAGERDUTY" + STREAMSUBSCRIPTIONSINKTYPE_SPLUNK_HEC StreamSubscriptionSinkType = "SPLUNK_HEC" + STREAMSUBSCRIPTIONSINKTYPE_SLACK StreamSubscriptionSinkType = "SLACK" + STREAMSUBSCRIPTIONSINKTYPE_TEAMS StreamSubscriptionSinkType = "TEAMS" + STREAMSUBSCRIPTIONSINKTYPE_CUSTOM StreamSubscriptionSinkType = "CUSTOM" +) + +// All allowed values of StreamSubscriptionSinkType enum +var AllowedStreamSubscriptionSinkTypeEnumValues = []StreamSubscriptionSinkType{ + "DATADOG", + "PAGERDUTY", + "SPLUNK_HEC", + "SLACK", + "TEAMS", + "CUSTOM", +} + +func (v *StreamSubscriptionSinkType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamSubscriptionSinkType(value) + for _, existing := range AllowedStreamSubscriptionSinkTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamSubscriptionSinkType", value) +} + +// NewStreamSubscriptionSinkTypeFromValue returns a pointer to a valid StreamSubscriptionSinkType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamSubscriptionSinkTypeFromValue(v string) (*StreamSubscriptionSinkType, error) { + ev := StreamSubscriptionSinkType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamSubscriptionSinkType: valid values are %v", v, AllowedStreamSubscriptionSinkTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamSubscriptionSinkType) IsValid() bool { + for _, existing := range AllowedStreamSubscriptionSinkTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamSubscriptionSink_type value +func (v StreamSubscriptionSinkType) Ptr() *StreamSubscriptionSinkType { + return &v +} + +type NullableStreamSubscriptionSinkType struct { + value *StreamSubscriptionSinkType + isSet bool +} + +func (v NullableStreamSubscriptionSinkType) Get() *StreamSubscriptionSinkType { + return v.value +} + +func (v *NullableStreamSubscriptionSinkType) Set(val *StreamSubscriptionSinkType) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionSinkType) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionSinkType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionSinkType(val *StreamSubscriptionSinkType) *NullableStreamSubscriptionSinkType { + return &NullableStreamSubscriptionSinkType{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionSinkType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionSinkType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_state.go b/services/fabricv4/model_stream_subscription_state.go new file mode 100644 index 00000000..393879d5 --- /dev/null +++ b/services/fabricv4/model_stream_subscription_state.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" +) + +// StreamSubscriptionState Steam subscription provision state +type StreamSubscriptionState string + +// List of StreamSubscription_state +const ( + STREAMSUBSCRIPTIONSTATE_PROVISIONING StreamSubscriptionState = "PROVISIONING" + STREAMSUBSCRIPTIONSTATE_PROVISIONED StreamSubscriptionState = "PROVISIONED" + STREAMSUBSCRIPTIONSTATE_DEPROVISIONING StreamSubscriptionState = "DEPROVISIONING" + STREAMSUBSCRIPTIONSTATE_DEPROVISIONED StreamSubscriptionState = "DEPROVISIONED" + STREAMSUBSCRIPTIONSTATE_FAILED StreamSubscriptionState = "FAILED" +) + +// All allowed values of StreamSubscriptionState enum +var AllowedStreamSubscriptionStateEnumValues = []StreamSubscriptionState{ + "PROVISIONING", + "PROVISIONED", + "DEPROVISIONING", + "DEPROVISIONED", + "FAILED", +} + +func (v *StreamSubscriptionState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamSubscriptionState(value) + for _, existing := range AllowedStreamSubscriptionStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamSubscriptionState", value) +} + +// NewStreamSubscriptionStateFromValue returns a pointer to a valid StreamSubscriptionState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamSubscriptionStateFromValue(v string) (*StreamSubscriptionState, error) { + ev := StreamSubscriptionState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamSubscriptionState: valid values are %v", v, AllowedStreamSubscriptionStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamSubscriptionState) IsValid() bool { + for _, existing := range AllowedStreamSubscriptionStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamSubscription_state value +func (v StreamSubscriptionState) Ptr() *StreamSubscriptionState { + return &v +} + +type NullableStreamSubscriptionState struct { + value *StreamSubscriptionState + isSet bool +} + +func (v NullableStreamSubscriptionState) Get() *StreamSubscriptionState { + return v.value +} + +func (v *NullableStreamSubscriptionState) Set(val *StreamSubscriptionState) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionState) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionState(val *StreamSubscriptionState) *NullableStreamSubscriptionState { + return &NullableStreamSubscriptionState{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_subscription_type.go b/services/fabricv4/model_stream_subscription_type.go new file mode 100644 index 00000000..1c45710a --- /dev/null +++ b/services/fabricv4/model_stream_subscription_type.go @@ -0,0 +1,105 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// StreamSubscriptionType type +type StreamSubscriptionType string + +// List of StreamSubscription_type +const ( + STREAMSUBSCRIPTIONTYPE_STREAM_SUBSCRIPTION StreamSubscriptionType = "STREAM_SUBSCRIPTION" +) + +// All allowed values of StreamSubscriptionType enum +var AllowedStreamSubscriptionTypeEnumValues = []StreamSubscriptionType{ + "STREAM_SUBSCRIPTION", +} + +func (v *StreamSubscriptionType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StreamSubscriptionType(value) + for _, existing := range AllowedStreamSubscriptionTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StreamSubscriptionType", value) +} + +// NewStreamSubscriptionTypeFromValue returns a pointer to a valid StreamSubscriptionType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStreamSubscriptionTypeFromValue(v string) (*StreamSubscriptionType, error) { + ev := StreamSubscriptionType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StreamSubscriptionType: valid values are %v", v, AllowedStreamSubscriptionTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StreamSubscriptionType) IsValid() bool { + for _, existing := range AllowedStreamSubscriptionTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StreamSubscription_type value +func (v StreamSubscriptionType) Ptr() *StreamSubscriptionType { + return &v +} + +type NullableStreamSubscriptionType struct { + value *StreamSubscriptionType + isSet bool +} + +func (v NullableStreamSubscriptionType) Get() *StreamSubscriptionType { + return v.value +} + +func (v *NullableStreamSubscriptionType) Set(val *StreamSubscriptionType) { + v.value = val + v.isSet = true +} + +func (v NullableStreamSubscriptionType) IsSet() bool { + return v.isSet +} + +func (v *NullableStreamSubscriptionType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStreamSubscriptionType(val *StreamSubscriptionType) *NullableStreamSubscriptionType { + return &NullableStreamSubscriptionType{value: val, isSet: true} +} + +func (v NullableStreamSubscriptionType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStreamSubscriptionType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_stream_target.go b/services/fabricv4/model_stream_target.go new file mode 100644 index 00000000..1eb13163 --- /dev/null +++ b/services/fabricv4/model_stream_target.go @@ -0,0 +1,151 @@ +/* +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/model_sub_interface.go b/services/fabricv4/model_sub_interface.go index 0406dc7d..7e01bac7 100644 --- a/services/fabricv4/model_sub_interface.go +++ b/services/fabricv4/model_sub_interface.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_subscription_asset.go b/services/fabricv4/model_subscription_asset.go index 855fc8b6..e748b584 100644 --- a/services/fabricv4/model_subscription_asset.go +++ b/services/fabricv4/model_subscription_asset.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,9 +16,11 @@ var _ MappedNullable = &SubscriptionAsset{} // SubscriptionAsset Asset information type SubscriptionAsset struct { - Type *SubscriptionAssetType `json:"type,omitempty"` - Package *SubscriptionRouterPackageType `json:"package,omitempty"` - Bandwidth *int32 `json:"bandwidth,omitempty"` + // Type of the subscription asset ( XF_ROUTER ,IP_VC, IPWAN_VC ) + Type *string `json:"type,omitempty"` + Package *SubscriptionRouterPackageType `json:"package,omitempty"` + // Bandwidth of the asset in Mbps + Bandwidth *int32 `json:"bandwidth,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,9 +44,9 @@ func NewSubscriptionAssetWithDefaults() *SubscriptionAsset { } // GetType returns the Type field value if set, zero value otherwise. -func (o *SubscriptionAsset) GetType() SubscriptionAssetType { +func (o *SubscriptionAsset) GetType() string { if o == nil || IsNil(o.Type) { - var ret SubscriptionAssetType + var ret string return ret } return *o.Type @@ -53,7 +54,7 @@ func (o *SubscriptionAsset) GetType() SubscriptionAssetType { // 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 *SubscriptionAsset) GetTypeOk() (*SubscriptionAssetType, bool) { +func (o *SubscriptionAsset) GetTypeOk() (*string, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -69,8 +70,8 @@ func (o *SubscriptionAsset) HasType() bool { return false } -// SetType gets a reference to the given SubscriptionAssetType and assigns it to the Type field. -func (o *SubscriptionAsset) SetType(v SubscriptionAssetType) { +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *SubscriptionAsset) SetType(v string) { o.Type = &v } diff --git a/services/fabricv4/model_subscription_asset_type.go b/services/fabricv4/model_subscription_asset_type.go deleted file mode 100644 index 75edb5d4..00000000 --- a/services/fabricv4/model_subscription_asset_type.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// SubscriptionAssetType the model 'SubscriptionAssetType' -type SubscriptionAssetType string - -// List of SubscriptionAssetType -const ( - SUBSCRIPTIONASSETTYPE_XF_ROUTER SubscriptionAssetType = "XF_ROUTER" - SUBSCRIPTIONASSETTYPE_IP_VC SubscriptionAssetType = "IP_VC" -) - -// All allowed values of SubscriptionAssetType enum -var AllowedSubscriptionAssetTypeEnumValues = []SubscriptionAssetType{ - "XF_ROUTER", - "IP_VC", -} - -func (v *SubscriptionAssetType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := SubscriptionAssetType(value) - for _, existing := range AllowedSubscriptionAssetTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid SubscriptionAssetType", value) -} - -// NewSubscriptionAssetTypeFromValue returns a pointer to a valid SubscriptionAssetType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewSubscriptionAssetTypeFromValue(v string) (*SubscriptionAssetType, error) { - ev := SubscriptionAssetType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for SubscriptionAssetType: valid values are %v", v, AllowedSubscriptionAssetTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v SubscriptionAssetType) IsValid() bool { - for _, existing := range AllowedSubscriptionAssetTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to SubscriptionAssetType value -func (v SubscriptionAssetType) Ptr() *SubscriptionAssetType { - return &v -} - -type NullableSubscriptionAssetType struct { - value *SubscriptionAssetType - isSet bool -} - -func (v NullableSubscriptionAssetType) Get() *SubscriptionAssetType { - return v.value -} - -func (v *NullableSubscriptionAssetType) Set(val *SubscriptionAssetType) { - v.value = val - v.isSet = true -} - -func (v NullableSubscriptionAssetType) IsSet() bool { - return v.isSet -} - -func (v *NullableSubscriptionAssetType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSubscriptionAssetType(val *SubscriptionAssetType) *NullableSubscriptionAssetType { - return &NullableSubscriptionAssetType{value: val, isSet: true} -} - -func (v NullableSubscriptionAssetType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSubscriptionAssetType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_subscription_entitlement_response.go b/services/fabricv4/model_subscription_entitlement_response.go index d26bdb85..8240fb40 100644 --- a/services/fabricv4/model_subscription_entitlement_response.go +++ b/services/fabricv4/model_subscription_entitlement_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,9 +17,12 @@ var _ MappedNullable = &SubscriptionEntitlementResponse{} // SubscriptionEntitlementResponse Subscription entitlement type SubscriptionEntitlementResponse struct { // Subscription Entitlement Id - Uuid *string `json:"uuid,omitempty"` - QuantityEntitled *int32 `json:"quantityEntitled,omitempty"` - QuantityConsumed *int32 `json:"quantityConsumed,omitempty"` + Uuid *string `json:"uuid,omitempty"` + // Quantity entitled for the subscription + QuantityEntitled *int32 `json:"quantityEntitled,omitempty"` + // Quantity consumed from the entitlement + QuantityConsumed *int32 `json:"quantityConsumed,omitempty"` + // Quantity available from the entitlement QuantityAvailable *int32 `json:"quantityAvailable,omitempty"` Asset *SubscriptionAsset `json:"asset,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/fabricv4/model_subscription_response.go b/services/fabricv4/model_subscription_response.go index fdd55d44..a78411d8 100644 --- a/services/fabricv4/model_subscription_response.go +++ b/services/fabricv4/model_subscription_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -10,23 +9,30 @@ package fabricv4 import ( "encoding/json" + "fmt" ) // checks if the SubscriptionResponse type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SubscriptionResponse{} -// SubscriptionResponse Subscription +// SubscriptionResponse Subscription Response type SubscriptionResponse struct { - Href *string `json:"href,omitempty"` - Uuid *string `json:"uuid,omitempty"` - Status *SubscriptionStatus `json:"status,omitempty"` - Marketplace *SubscriptionResponseMarketplace `json:"marketplace,omitempty"` - OfferType *SubscriptionResponseOfferType `json:"offerType,omitempty"` - IsAutoRenew *bool `json:"isAutoRenew,omitempty"` - OfferId *string `json:"offerId,omitempty"` - Trial *SubscriptionTrial `json:"trial,omitempty"` - SubscriptionKey *string `json:"subscriptionKey,omitempty"` - Entitlements []SubscriptionEntitlementResponse `json:"entitlements,omitempty"` + // Subscription URL + Href *string `json:"href,omitempty"` + // Unique identifier of the Subscription + Uuid *string `json:"uuid,omitempty"` + State SubscriptionState `json:"state"` + Marketplace SubscriptionResponseMarketplace `json:"marketplace"` + OfferType *SubscriptionResponseOfferType `json:"offerType,omitempty"` + // Is Auto Renewal Enabled + IsAutoRenew *bool `json:"isAutoRenew,omitempty"` + // Marketplace Offer Id + OfferId *string `json:"offerId,omitempty"` + Trial *SubscriptionTrial `json:"trial,omitempty"` + // Subscription Key + SubscriptionKey *string `json:"subscriptionKey,omitempty"` + // List of entitlements associated with the subscription + Entitlements []SubscriptionEntitlementResponse `json:"entitlements"` Changelog *Changelog `json:"changelog,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,8 +43,11 @@ type _SubscriptionResponse SubscriptionResponse // 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 NewSubscriptionResponse() *SubscriptionResponse { +func NewSubscriptionResponse(state SubscriptionState, marketplace SubscriptionResponseMarketplace, entitlements []SubscriptionEntitlementResponse) *SubscriptionResponse { this := SubscriptionResponse{} + this.State = state + this.Marketplace = marketplace + this.Entitlements = entitlements return &this } @@ -114,68 +123,52 @@ func (o *SubscriptionResponse) SetUuid(v string) { o.Uuid = &v } -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *SubscriptionResponse) GetStatus() SubscriptionStatus { - if o == nil || IsNil(o.Status) { - var ret SubscriptionStatus +// GetState returns the State field value +func (o *SubscriptionResponse) GetState() SubscriptionState { + if o == nil { + var ret SubscriptionState return ret } - return *o.Status + + return o.State } -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. -func (o *SubscriptionResponse) GetStatusOk() (*SubscriptionStatus, bool) { - if o == nil || IsNil(o.Status) { +func (o *SubscriptionResponse) GetStateOk() (*SubscriptionState, bool) { + if o == nil { return nil, false } - return o.Status, true + return &o.State, true } -// HasStatus returns a boolean if a field has been set. -func (o *SubscriptionResponse) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false +// SetState sets field value +func (o *SubscriptionResponse) SetState(v SubscriptionState) { + o.State = v } -// SetStatus gets a reference to the given SubscriptionStatus and assigns it to the Status field. -func (o *SubscriptionResponse) SetStatus(v SubscriptionStatus) { - o.Status = &v -} - -// GetMarketplace returns the Marketplace field value if set, zero value otherwise. +// GetMarketplace returns the Marketplace field value func (o *SubscriptionResponse) GetMarketplace() SubscriptionResponseMarketplace { - if o == nil || IsNil(o.Marketplace) { + if o == nil { var ret SubscriptionResponseMarketplace return ret } - return *o.Marketplace + + return o.Marketplace } -// GetMarketplaceOk returns a tuple with the Marketplace field value if set, nil otherwise +// GetMarketplaceOk returns a tuple with the Marketplace field value // and a boolean to check if the value has been set. func (o *SubscriptionResponse) GetMarketplaceOk() (*SubscriptionResponseMarketplace, bool) { - if o == nil || IsNil(o.Marketplace) { + if o == nil { return nil, false } - return o.Marketplace, true + return &o.Marketplace, true } -// HasMarketplace returns a boolean if a field has been set. -func (o *SubscriptionResponse) HasMarketplace() bool { - if o != nil && !IsNil(o.Marketplace) { - return true - } - - return false -} - -// SetMarketplace gets a reference to the given SubscriptionResponseMarketplace and assigns it to the Marketplace field. +// SetMarketplace sets field value func (o *SubscriptionResponse) SetMarketplace(v SubscriptionResponseMarketplace) { - o.Marketplace = &v + o.Marketplace = v } // GetOfferType returns the OfferType field value if set, zero value otherwise. @@ -338,34 +331,26 @@ func (o *SubscriptionResponse) SetSubscriptionKey(v string) { o.SubscriptionKey = &v } -// GetEntitlements returns the Entitlements field value if set, zero value otherwise. +// GetEntitlements returns the Entitlements field value func (o *SubscriptionResponse) GetEntitlements() []SubscriptionEntitlementResponse { - if o == nil || IsNil(o.Entitlements) { + if o == nil { var ret []SubscriptionEntitlementResponse return ret } + return o.Entitlements } -// GetEntitlementsOk returns a tuple with the Entitlements field value if set, nil otherwise +// GetEntitlementsOk returns a tuple with the Entitlements field value // and a boolean to check if the value has been set. func (o *SubscriptionResponse) GetEntitlementsOk() ([]SubscriptionEntitlementResponse, bool) { - if o == nil || IsNil(o.Entitlements) { + if o == nil { return nil, false } return o.Entitlements, true } -// HasEntitlements returns a boolean if a field has been set. -func (o *SubscriptionResponse) HasEntitlements() bool { - if o != nil && !IsNil(o.Entitlements) { - return true - } - - return false -} - -// SetEntitlements gets a reference to the given []SubscriptionEntitlementResponse and assigns it to the Entitlements field. +// SetEntitlements sets field value func (o *SubscriptionResponse) SetEntitlements(v []SubscriptionEntitlementResponse) { o.Entitlements = v } @@ -418,12 +403,8 @@ func (o SubscriptionResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Uuid) { toSerialize["uuid"] = o.Uuid } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Marketplace) { - toSerialize["marketplace"] = o.Marketplace - } + toSerialize["state"] = o.State + toSerialize["marketplace"] = o.Marketplace if !IsNil(o.OfferType) { toSerialize["offerType"] = o.OfferType } @@ -439,9 +420,7 @@ func (o SubscriptionResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.SubscriptionKey) { toSerialize["subscriptionKey"] = o.SubscriptionKey } - if !IsNil(o.Entitlements) { - toSerialize["entitlements"] = o.Entitlements - } + toSerialize["entitlements"] = o.Entitlements if !IsNil(o.Changelog) { toSerialize["changelog"] = o.Changelog } @@ -454,6 +433,29 @@ func (o SubscriptionResponse) ToMap() (map[string]interface{}, error) { } func (o *SubscriptionResponse) 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{ + "state", + "marketplace", + "entitlements", + } + + 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) + } + } + varSubscriptionResponse := _SubscriptionResponse{} err = json.Unmarshal(data, &varSubscriptionResponse) @@ -469,7 +471,7 @@ func (o *SubscriptionResponse) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "href") delete(additionalProperties, "uuid") - delete(additionalProperties, "status") + delete(additionalProperties, "state") delete(additionalProperties, "marketplace") delete(additionalProperties, "offerType") delete(additionalProperties, "isAutoRenew") diff --git a/services/fabricv4/model_subscription_response_marketplace.go b/services/fabricv4/model_subscription_response_marketplace.go index e74e5306..4bcf4f62 100644 --- a/services/fabricv4/model_subscription_response_marketplace.go +++ b/services/fabricv4/model_subscription_response_marketplace.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +12,7 @@ import ( "fmt" ) -// SubscriptionResponseMarketplace the model 'SubscriptionResponseMarketplace' +// SubscriptionResponseMarketplace Marketplace Type type SubscriptionResponseMarketplace string // List of SubscriptionResponse_marketplace diff --git a/services/fabricv4/model_subscription_response_offer_type.go b/services/fabricv4/model_subscription_response_offer_type.go index 9f5a690c..c992a166 100644 --- a/services/fabricv4/model_subscription_response_offer_type.go +++ b/services/fabricv4/model_subscription_response_offer_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +12,7 @@ import ( "fmt" ) -// SubscriptionResponseOfferType the model 'SubscriptionResponseOfferType' +// SubscriptionResponseOfferType Marketplace Offer Type type SubscriptionResponseOfferType string // List of SubscriptionResponse_offerType diff --git a/services/fabricv4/model_subscription_router_package_type.go b/services/fabricv4/model_subscription_router_package_type.go index 20731ad6..c8b9b9b1 100644 --- a/services/fabricv4/model_subscription_router_package_type.go +++ b/services/fabricv4/model_subscription_router_package_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_subscription_router_package_type_code.go b/services/fabricv4/model_subscription_router_package_type_code.go index 9816695e..151dca87 100644 --- a/services/fabricv4/model_subscription_router_package_type_code.go +++ b/services/fabricv4/model_subscription_router_package_type_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_subscription_state.go b/services/fabricv4/model_subscription_state.go new file mode 100644 index 00000000..e2277fad --- /dev/null +++ b/services/fabricv4/model_subscription_state.go @@ -0,0 +1,111 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// SubscriptionState Subscription State +type SubscriptionState string + +// List of SubscriptionState +const ( + SUBSCRIPTIONSTATE_ACTIVE SubscriptionState = "ACTIVE" + SUBSCRIPTIONSTATE_EXPIRED SubscriptionState = "EXPIRED" + SUBSCRIPTIONSTATE_CANCELLED SubscriptionState = "CANCELLED" + SUBSCRIPTIONSTATE_GRACE_PERIOD SubscriptionState = "GRACE_PERIOD" +) + +// All allowed values of SubscriptionState enum +var AllowedSubscriptionStateEnumValues = []SubscriptionState{ + "ACTIVE", + "EXPIRED", + "CANCELLED", + "GRACE_PERIOD", +} + +func (v *SubscriptionState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SubscriptionState(value) + for _, existing := range AllowedSubscriptionStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SubscriptionState", value) +} + +// NewSubscriptionStateFromValue returns a pointer to a valid SubscriptionState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSubscriptionStateFromValue(v string) (*SubscriptionState, error) { + ev := SubscriptionState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SubscriptionState: valid values are %v", v, AllowedSubscriptionStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SubscriptionState) IsValid() bool { + for _, existing := range AllowedSubscriptionStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SubscriptionState value +func (v SubscriptionState) Ptr() *SubscriptionState { + return &v +} + +type NullableSubscriptionState struct { + value *SubscriptionState + isSet bool +} + +func (v NullableSubscriptionState) Get() *SubscriptionState { + return v.value +} + +func (v *NullableSubscriptionState) Set(val *SubscriptionState) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionState) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionState(val *SubscriptionState) *NullableSubscriptionState { + return &NullableSubscriptionState{value: val, isSet: true} +} + +func (v NullableSubscriptionState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_subscription_status.go b/services/fabricv4/model_subscription_status.go deleted file mode 100644 index 61ca3067..00000000 --- a/services/fabricv4/model_subscription_status.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -Equinix Fabric API v4 - -Contact: api-support@equinix.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package fabricv4 - -import ( - "encoding/json" - "fmt" -) - -// SubscriptionStatus the model 'SubscriptionStatus' -type SubscriptionStatus string - -// List of SubscriptionStatus -const ( - SUBSCRIPTIONSTATUS_ACTIVE SubscriptionStatus = "ACTIVE" - SUBSCRIPTIONSTATUS_EXPIRED SubscriptionStatus = "EXPIRED" - SUBSCRIPTIONSTATUS_CANCELLED SubscriptionStatus = "CANCELLED" - SUBSCRIPTIONSTATUS_GRACE_PERIOD SubscriptionStatus = "GRACE_PERIOD" -) - -// All allowed values of SubscriptionStatus enum -var AllowedSubscriptionStatusEnumValues = []SubscriptionStatus{ - "ACTIVE", - "EXPIRED", - "CANCELLED", - "GRACE_PERIOD", -} - -func (v *SubscriptionStatus) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := SubscriptionStatus(value) - for _, existing := range AllowedSubscriptionStatusEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid SubscriptionStatus", value) -} - -// NewSubscriptionStatusFromValue returns a pointer to a valid SubscriptionStatus -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewSubscriptionStatusFromValue(v string) (*SubscriptionStatus, error) { - ev := SubscriptionStatus(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for SubscriptionStatus: valid values are %v", v, AllowedSubscriptionStatusEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v SubscriptionStatus) IsValid() bool { - for _, existing := range AllowedSubscriptionStatusEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to SubscriptionStatus value -func (v SubscriptionStatus) Ptr() *SubscriptionStatus { - return &v -} - -type NullableSubscriptionStatus struct { - value *SubscriptionStatus - isSet bool -} - -func (v NullableSubscriptionStatus) Get() *SubscriptionStatus { - return v.value -} - -func (v *NullableSubscriptionStatus) Set(val *SubscriptionStatus) { - v.value = val - v.isSet = true -} - -func (v NullableSubscriptionStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableSubscriptionStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSubscriptionStatus(val *SubscriptionStatus) *NullableSubscriptionStatus { - return &NullableSubscriptionStatus{value: val, isSet: true} -} - -func (v NullableSubscriptionStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSubscriptionStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/fabricv4/model_subscription_trial.go b/services/fabricv4/model_subscription_trial.go index 8e1ce139..767a06e3 100644 --- a/services/fabricv4/model_subscription_trial.go +++ b/services/fabricv4/model_subscription_trial.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,9 +15,11 @@ import ( // checks if the SubscriptionTrial type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SubscriptionTrial{} -// SubscriptionTrial Trial +// SubscriptionTrial Free Trial Subscription type SubscriptionTrial struct { - Enabled *bool `json:"enabled,omitempty"` + // Free Trial Enabled + Enabled *bool `json:"enabled,omitempty"` + // Free Trial Expiry Date ExpiryDateTime *time.Time `json:"expiryDateTime,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/fabricv4/model_time_service_filter.go b/services/fabricv4/model_time_service_filter.go index fbaf9e50..4c25126f 100644 --- a/services/fabricv4/model_time_service_filter.go +++ b/services/fabricv4/model_time_service_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_time_service_filters.go b/services/fabricv4/model_time_service_filters.go index 74ac35f0..b47c3d2d 100644 --- a/services/fabricv4/model_time_service_filters.go +++ b/services/fabricv4/model_time_service_filters.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_time_service_or_filter.go b/services/fabricv4/model_time_service_or_filter.go index d6966315..76ffc35d 100644 --- a/services/fabricv4/model_time_service_or_filter.go +++ b/services/fabricv4/model_time_service_or_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_time_service_simple_expression.go b/services/fabricv4/model_time_service_simple_expression.go index 19e5b24b..7bd3d081 100644 --- a/services/fabricv4/model_time_service_simple_expression.go +++ b/services/fabricv4/model_time_service_simple_expression.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_time_service_sort_by.go b/services/fabricv4/model_time_service_sort_by.go index baaff3e9..26a0ba36 100644 --- a/services/fabricv4/model_time_service_sort_by.go +++ b/services/fabricv4/model_time_service_sort_by.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_time_service_sort_criteria.go b/services/fabricv4/model_time_service_sort_criteria.go index f80f920d..550765fc 100644 --- a/services/fabricv4/model_time_service_sort_criteria.go +++ b/services/fabricv4/model_time_service_sort_criteria.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_time_service_sort_direction.go b/services/fabricv4/model_time_service_sort_direction.go index ad5c0c19..0e0c1e1d 100644 --- a/services/fabricv4/model_time_service_sort_direction.go +++ b/services/fabricv4/model_time_service_sort_direction.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_time_services_search_request.go b/services/fabricv4/model_time_services_search_request.go index 7dab1ae8..3d559f31 100644 --- a/services/fabricv4/model_time_services_search_request.go +++ b/services/fabricv4/model_time_services_search_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_top_utilized_statistics.go b/services/fabricv4/model_top_utilized_statistics.go index 0b6087cc..7c7c0d12 100644 --- a/services/fabricv4/model_top_utilized_statistics.go +++ b/services/fabricv4/model_top_utilized_statistics.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_validate_connection_response.go b/services/fabricv4/model_validate_connection_response.go new file mode 100644 index 00000000..8ea59ef7 --- /dev/null +++ b/services/fabricv4/model_validate_connection_response.go @@ -0,0 +1,300 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the ValidateConnectionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ValidateConnectionResponse{} + +// ValidateConnectionResponse Validate Connection specification +type ValidateConnectionResponse struct { + // Equinix-assigned connection identifier + Uuid *string `json:"uuid,omitempty"` + // Connection bandwidth in Mbps + Bandwidth *int32 `json:"bandwidth,omitempty"` + Redundancy *ConnectionRedundancy `json:"redundancy,omitempty"` + ASide *ConnectionSide `json:"aSide,omitempty"` + ZSide *ConnectionSide `json:"zSide,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ValidateConnectionResponse ValidateConnectionResponse + +// NewValidateConnectionResponse instantiates a new ValidateConnectionResponse 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 NewValidateConnectionResponse() *ValidateConnectionResponse { + this := ValidateConnectionResponse{} + return &this +} + +// NewValidateConnectionResponseWithDefaults instantiates a new ValidateConnectionResponse 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 NewValidateConnectionResponseWithDefaults() *ValidateConnectionResponse { + this := ValidateConnectionResponse{} + return &this +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *ValidateConnectionResponse) 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 *ValidateConnectionResponse) 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 *ValidateConnectionResponse) 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 *ValidateConnectionResponse) SetUuid(v string) { + o.Uuid = &v +} + +// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +func (o *ValidateConnectionResponse) GetBandwidth() int32 { + if o == nil || IsNil(o.Bandwidth) { + var ret int32 + return ret + } + return *o.Bandwidth +} + +// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ValidateConnectionResponse) GetBandwidthOk() (*int32, bool) { + if o == nil || IsNil(o.Bandwidth) { + return nil, false + } + return o.Bandwidth, true +} + +// HasBandwidth returns a boolean if a field has been set. +func (o *ValidateConnectionResponse) HasBandwidth() bool { + if o != nil && !IsNil(o.Bandwidth) { + return true + } + + return false +} + +// SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. +func (o *ValidateConnectionResponse) SetBandwidth(v int32) { + o.Bandwidth = &v +} + +// GetRedundancy returns the Redundancy field value if set, zero value otherwise. +func (o *ValidateConnectionResponse) GetRedundancy() ConnectionRedundancy { + if o == nil || IsNil(o.Redundancy) { + var ret ConnectionRedundancy + 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 *ValidateConnectionResponse) GetRedundancyOk() (*ConnectionRedundancy, 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 *ValidateConnectionResponse) HasRedundancy() bool { + if o != nil && !IsNil(o.Redundancy) { + return true + } + + return false +} + +// SetRedundancy gets a reference to the given ConnectionRedundancy and assigns it to the Redundancy field. +func (o *ValidateConnectionResponse) SetRedundancy(v ConnectionRedundancy) { + o.Redundancy = &v +} + +// GetASide returns the ASide field value if set, zero value otherwise. +func (o *ValidateConnectionResponse) GetASide() ConnectionSide { + if o == nil || IsNil(o.ASide) { + var ret ConnectionSide + return ret + } + return *o.ASide +} + +// GetASideOk returns a tuple with the ASide field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ValidateConnectionResponse) GetASideOk() (*ConnectionSide, bool) { + if o == nil || IsNil(o.ASide) { + return nil, false + } + return o.ASide, true +} + +// HasASide returns a boolean if a field has been set. +func (o *ValidateConnectionResponse) HasASide() bool { + if o != nil && !IsNil(o.ASide) { + return true + } + + return false +} + +// SetASide gets a reference to the given ConnectionSide and assigns it to the ASide field. +func (o *ValidateConnectionResponse) SetASide(v ConnectionSide) { + o.ASide = &v +} + +// GetZSide returns the ZSide field value if set, zero value otherwise. +func (o *ValidateConnectionResponse) GetZSide() ConnectionSide { + if o == nil || IsNil(o.ZSide) { + var ret ConnectionSide + return ret + } + return *o.ZSide +} + +// GetZSideOk returns a tuple with the ZSide field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ValidateConnectionResponse) GetZSideOk() (*ConnectionSide, bool) { + if o == nil || IsNil(o.ZSide) { + return nil, false + } + return o.ZSide, true +} + +// HasZSide returns a boolean if a field has been set. +func (o *ValidateConnectionResponse) HasZSide() bool { + if o != nil && !IsNil(o.ZSide) { + return true + } + + return false +} + +// SetZSide gets a reference to the given ConnectionSide and assigns it to the ZSide field. +func (o *ValidateConnectionResponse) SetZSide(v ConnectionSide) { + o.ZSide = &v +} + +func (o ValidateConnectionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ValidateConnectionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + if !IsNil(o.Bandwidth) { + toSerialize["bandwidth"] = o.Bandwidth + } + if !IsNil(o.Redundancy) { + toSerialize["redundancy"] = o.Redundancy + } + if !IsNil(o.ASide) { + toSerialize["aSide"] = o.ASide + } + if !IsNil(o.ZSide) { + toSerialize["zSide"] = o.ZSide + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ValidateConnectionResponse) UnmarshalJSON(data []byte) (err error) { + varValidateConnectionResponse := _ValidateConnectionResponse{} + + err = json.Unmarshal(data, &varValidateConnectionResponse) + + if err != nil { + return err + } + + *o = ValidateConnectionResponse(varValidateConnectionResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "uuid") + delete(additionalProperties, "bandwidth") + delete(additionalProperties, "redundancy") + delete(additionalProperties, "aSide") + delete(additionalProperties, "zSide") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableValidateConnectionResponse struct { + value *ValidateConnectionResponse + isSet bool +} + +func (v NullableValidateConnectionResponse) Get() *ValidateConnectionResponse { + return v.value +} + +func (v *NullableValidateConnectionResponse) Set(val *ValidateConnectionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableValidateConnectionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableValidateConnectionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValidateConnectionResponse(val *ValidateConnectionResponse) *NullableValidateConnectionResponse { + return &NullableValidateConnectionResponse{value: val, isSet: true} +} + +func (v NullableValidateConnectionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValidateConnectionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_validate_request.go b/services/fabricv4/model_validate_request.go index 707184ce..3de421b2 100644 --- a/services/fabricv4/model_validate_request.go +++ b/services/fabricv4/model_validate_request.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_validate_request_filter.go b/services/fabricv4/model_validate_request_filter.go index d2fd36d8..271fdfe7 100644 --- a/services/fabricv4/model_validate_request_filter.go +++ b/services/fabricv4/model_validate_request_filter.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_validate_request_filter_and.go b/services/fabricv4/model_validate_request_filter_and.go index 9c37796e..4641d601 100644 --- a/services/fabricv4/model_validate_request_filter_and.go +++ b/services/fabricv4/model_validate_request_filter_and.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_validate_subnet_response.go b/services/fabricv4/model_validate_subnet_response.go index 81b8c1ef..4d04d482 100644 --- a/services/fabricv4/model_validate_subnet_response.go +++ b/services/fabricv4/model_validate_subnet_response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_view_point.go b/services/fabricv4/model_view_point.go index da306955..85f20c5b 100644 --- a/services/fabricv4/model_view_point.go +++ b/services/fabricv4/model_view_point.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_bridge_package_code.go b/services/fabricv4/model_virtual_connection_bridge_package_code.go index 3b7b0da4..7cb85bf2 100644 --- a/services/fabricv4/model_virtual_connection_bridge_package_code.go +++ b/services/fabricv4/model_virtual_connection_bridge_package_code.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price.go b/services/fabricv4/model_virtual_connection_price.go index 35689739..91cb3007 100644 --- a/services/fabricv4/model_virtual_connection_price.go +++ b/services/fabricv4/model_virtual_connection_price.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_a_side.go b/services/fabricv4/model_virtual_connection_price_a_side.go index a295bada..b8470a8a 100644 --- a/services/fabricv4/model_virtual_connection_price_a_side.go +++ b/services/fabricv4/model_virtual_connection_price_a_side.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_a_side_access_point.go b/services/fabricv4/model_virtual_connection_price_a_side_access_point.go index b22e085a..596d0ca3 100644 --- a/services/fabricv4/model_virtual_connection_price_a_side_access_point.go +++ b/services/fabricv4/model_virtual_connection_price_a_side_access_point.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_a_side_access_point_port.go b/services/fabricv4/model_virtual_connection_price_a_side_access_point_port.go index 902e2ac2..bee3f871 100644 --- a/services/fabricv4/model_virtual_connection_price_a_side_access_point_port.go +++ b/services/fabricv4/model_virtual_connection_price_a_side_access_point_port.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_a_side_access_point_port_settings.go b/services/fabricv4/model_virtual_connection_price_a_side_access_point_port_settings.go index 32a3fb17..6f4bb06e 100644 --- a/services/fabricv4/model_virtual_connection_price_a_side_access_point_port_settings.go +++ b/services/fabricv4/model_virtual_connection_price_a_side_access_point_port_settings.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_access_point_type.go b/services/fabricv4/model_virtual_connection_price_access_point_type.go index bad6591f..da4c33a4 100644 --- a/services/fabricv4/model_virtual_connection_price_access_point_type.go +++ b/services/fabricv4/model_virtual_connection_price_access_point_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_connection_type.go b/services/fabricv4/model_virtual_connection_price_connection_type.go index 11d2c351..599c3abe 100644 --- a/services/fabricv4/model_virtual_connection_price_connection_type.go +++ b/services/fabricv4/model_virtual_connection_price_connection_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_z_side.go b/services/fabricv4/model_virtual_connection_price_z_side.go index d750fb1c..f49ca358 100644 --- a/services/fabricv4/model_virtual_connection_price_z_side.go +++ b/services/fabricv4/model_virtual_connection_price_z_side.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_z_side_access_point.go b/services/fabricv4/model_virtual_connection_price_z_side_access_point.go index 2876ccd7..3b9ce542 100644 --- a/services/fabricv4/model_virtual_connection_price_z_side_access_point.go +++ b/services/fabricv4/model_virtual_connection_price_z_side_access_point.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge.go b/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge.go index 542d08a4..d07e72f6 100644 --- a/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge.go +++ b/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge_package.go b/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge_package.go index 3b4bd0d9..5139a5f6 100644 --- a/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge_package.go +++ b/services/fabricv4/model_virtual_connection_price_z_side_access_point_bridge_package.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_price_z_side_access_point_profile.go b/services/fabricv4/model_virtual_connection_price_z_side_access_point_profile.go index 468932c7..f3fd05b8 100644 --- a/services/fabricv4/model_virtual_connection_price_z_side_access_point_profile.go +++ b/services/fabricv4/model_virtual_connection_price_z_side_access_point_profile.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_connection_side.go b/services/fabricv4/model_virtual_connection_side.go new file mode 100644 index 00000000..599f255b --- /dev/null +++ b/services/fabricv4/model_virtual_connection_side.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 VirtualConnectionSide type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualConnectionSide{} + +// VirtualConnectionSide Fabric Connection access point object. +type VirtualConnectionSide struct { + AccessPoint *AccessPoint `json:"accessPoint,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualConnectionSide VirtualConnectionSide + +// NewVirtualConnectionSide instantiates a new VirtualConnectionSide 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 NewVirtualConnectionSide() *VirtualConnectionSide { + this := VirtualConnectionSide{} + return &this +} + +// NewVirtualConnectionSideWithDefaults instantiates a new VirtualConnectionSide 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 NewVirtualConnectionSideWithDefaults() *VirtualConnectionSide { + this := VirtualConnectionSide{} + return &this +} + +// GetAccessPoint returns the AccessPoint field value if set, zero value otherwise. +func (o *VirtualConnectionSide) GetAccessPoint() AccessPoint { + if o == nil || IsNil(o.AccessPoint) { + var ret AccessPoint + return ret + } + return *o.AccessPoint +} + +// GetAccessPointOk returns a tuple with the AccessPoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualConnectionSide) GetAccessPointOk() (*AccessPoint, bool) { + if o == nil || IsNil(o.AccessPoint) { + return nil, false + } + return o.AccessPoint, true +} + +// HasAccessPoint returns a boolean if a field has been set. +func (o *VirtualConnectionSide) HasAccessPoint() bool { + if o != nil && !IsNil(o.AccessPoint) { + return true + } + + return false +} + +// SetAccessPoint gets a reference to the given AccessPoint and assigns it to the AccessPoint field. +func (o *VirtualConnectionSide) SetAccessPoint(v AccessPoint) { + o.AccessPoint = &v +} + +func (o VirtualConnectionSide) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualConnectionSide) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessPoint) { + toSerialize["accessPoint"] = o.AccessPoint + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualConnectionSide) UnmarshalJSON(data []byte) (err error) { + varVirtualConnectionSide := _VirtualConnectionSide{} + + err = json.Unmarshal(data, &varVirtualConnectionSide) + + if err != nil { + return err + } + + *o = VirtualConnectionSide(varVirtualConnectionSide) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accessPoint") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualConnectionSide struct { + value *VirtualConnectionSide + isSet bool +} + +func (v NullableVirtualConnectionSide) Get() *VirtualConnectionSide { + return v.value +} + +func (v *NullableVirtualConnectionSide) Set(val *VirtualConnectionSide) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualConnectionSide) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualConnectionSide) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualConnectionSide(val *VirtualConnectionSide) *NullableVirtualConnectionSide { + return &NullableVirtualConnectionSide{value: val, isSet: true} +} + +func (v NullableVirtualConnectionSide) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualConnectionSide) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_virtual_connection_time_service_response.go b/services/fabricv4/model_virtual_connection_time_service_response.go new file mode 100644 index 00000000..426107e7 --- /dev/null +++ b/services/fabricv4/model_virtual_connection_time_service_response.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" + "fmt" +) + +// checks if the VirtualConnectionTimeServiceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualConnectionTimeServiceResponse{} + +// VirtualConnectionTimeServiceResponse Fabric Connection Precision Time Service Response Object +type VirtualConnectionTimeServiceResponse struct { + // Connection URI + Href string `json:"href"` + // Connection Type. + Type string `json:"type"` + // Connection UUID. + Uuid string `json:"uuid"` + ASide *VirtualConnectionSide `json:"aSide,omitempty"` + ZSide *VirtualConnectionSide `json:"zSide,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualConnectionTimeServiceResponse VirtualConnectionTimeServiceResponse + +// NewVirtualConnectionTimeServiceResponse instantiates a new VirtualConnectionTimeServiceResponse 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 NewVirtualConnectionTimeServiceResponse(href string, type_ string, uuid string) *VirtualConnectionTimeServiceResponse { + this := VirtualConnectionTimeServiceResponse{} + this.Href = href + this.Type = type_ + this.Uuid = uuid + return &this +} + +// NewVirtualConnectionTimeServiceResponseWithDefaults instantiates a new VirtualConnectionTimeServiceResponse 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 NewVirtualConnectionTimeServiceResponseWithDefaults() *VirtualConnectionTimeServiceResponse { + this := VirtualConnectionTimeServiceResponse{} + return &this +} + +// GetHref returns the Href field value +func (o *VirtualConnectionTimeServiceResponse) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *VirtualConnectionTimeServiceResponse) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *VirtualConnectionTimeServiceResponse) SetHref(v string) { + o.Href = v +} + +// GetType returns the Type field value +func (o *VirtualConnectionTimeServiceResponse) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *VirtualConnectionTimeServiceResponse) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *VirtualConnectionTimeServiceResponse) SetType(v string) { + o.Type = v +} + +// GetUuid returns the Uuid field value +func (o *VirtualConnectionTimeServiceResponse) GetUuid() string { + if o == nil { + var ret string + return ret + } + + return o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value +// and a boolean to check if the value has been set. +func (o *VirtualConnectionTimeServiceResponse) GetUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uuid, true +} + +// SetUuid sets field value +func (o *VirtualConnectionTimeServiceResponse) SetUuid(v string) { + o.Uuid = v +} + +// GetASide returns the ASide field value if set, zero value otherwise. +func (o *VirtualConnectionTimeServiceResponse) GetASide() VirtualConnectionSide { + if o == nil || IsNil(o.ASide) { + var ret VirtualConnectionSide + return ret + } + return *o.ASide +} + +// GetASideOk returns a tuple with the ASide field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualConnectionTimeServiceResponse) GetASideOk() (*VirtualConnectionSide, bool) { + if o == nil || IsNil(o.ASide) { + return nil, false + } + return o.ASide, true +} + +// HasASide returns a boolean if a field has been set. +func (o *VirtualConnectionTimeServiceResponse) HasASide() bool { + if o != nil && !IsNil(o.ASide) { + return true + } + + return false +} + +// SetASide gets a reference to the given VirtualConnectionSide and assigns it to the ASide field. +func (o *VirtualConnectionTimeServiceResponse) SetASide(v VirtualConnectionSide) { + o.ASide = &v +} + +// GetZSide returns the ZSide field value if set, zero value otherwise. +func (o *VirtualConnectionTimeServiceResponse) GetZSide() VirtualConnectionSide { + if o == nil || IsNil(o.ZSide) { + var ret VirtualConnectionSide + return ret + } + return *o.ZSide +} + +// GetZSideOk returns a tuple with the ZSide field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualConnectionTimeServiceResponse) GetZSideOk() (*VirtualConnectionSide, bool) { + if o == nil || IsNil(o.ZSide) { + return nil, false + } + return o.ZSide, true +} + +// HasZSide returns a boolean if a field has been set. +func (o *VirtualConnectionTimeServiceResponse) HasZSide() bool { + if o != nil && !IsNil(o.ZSide) { + return true + } + + return false +} + +// SetZSide gets a reference to the given VirtualConnectionSide and assigns it to the ZSide field. +func (o *VirtualConnectionTimeServiceResponse) SetZSide(v VirtualConnectionSide) { + o.ZSide = &v +} + +func (o VirtualConnectionTimeServiceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualConnectionTimeServiceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["href"] = o.Href + toSerialize["type"] = o.Type + toSerialize["uuid"] = o.Uuid + if !IsNil(o.ASide) { + toSerialize["aSide"] = o.ASide + } + if !IsNil(o.ZSide) { + toSerialize["zSide"] = o.ZSide + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualConnectionTimeServiceResponse) 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{ + "href", + "type", + "uuid", + } + + 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) + } + } + + varVirtualConnectionTimeServiceResponse := _VirtualConnectionTimeServiceResponse{} + + err = json.Unmarshal(data, &varVirtualConnectionTimeServiceResponse) + + if err != nil { + return err + } + + *o = VirtualConnectionTimeServiceResponse(varVirtualConnectionTimeServiceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "href") + delete(additionalProperties, "type") + delete(additionalProperties, "uuid") + delete(additionalProperties, "aSide") + delete(additionalProperties, "zSide") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualConnectionTimeServiceResponse struct { + value *VirtualConnectionTimeServiceResponse + isSet bool +} + +func (v NullableVirtualConnectionTimeServiceResponse) Get() *VirtualConnectionTimeServiceResponse { + return v.value +} + +func (v *NullableVirtualConnectionTimeServiceResponse) Set(val *VirtualConnectionTimeServiceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualConnectionTimeServiceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualConnectionTimeServiceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualConnectionTimeServiceResponse(val *VirtualConnectionTimeServiceResponse) *NullableVirtualConnectionTimeServiceResponse { + return &NullableVirtualConnectionTimeServiceResponse{value: val, isSet: true} +} + +func (v NullableVirtualConnectionTimeServiceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualConnectionTimeServiceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_fabric_connection_uuid.go b/services/fabricv4/model_virtual_connection_uuid.go similarity index 60% rename from services/fabricv4/model_fabric_connection_uuid.go rename to services/fabricv4/model_virtual_connection_uuid.go index b9da59c3..571585d6 100644 --- a/services/fabricv4/model_fabric_connection_uuid.go +++ b/services/fabricv4/model_virtual_connection_uuid.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,65 +12,42 @@ import ( "fmt" ) -// checks if the FabricConnectionUuid type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FabricConnectionUuid{} - -// FabricConnectionUuid UUID of the Fabric Connection Instance -type FabricConnectionUuid struct { - // uuid of the Fabric L2 connection - Uuid string `json:"uuid"` - // the href for the L2 connection - Href *string `json:"href,omitempty"` - Type *string `json:"type,omitempty"` +// checks if the VirtualConnectionUuid type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualConnectionUuid{} + +// VirtualConnectionUuid UUID of the Fabric Connection Instance +type VirtualConnectionUuid struct { + // Connection URI + Href *string `json:"href,omitempty"` + // Connection Type + Type *string `json:"type,omitempty"` + // Connection UUID. + Uuid string `json:"uuid"` AdditionalProperties map[string]interface{} } -type _FabricConnectionUuid FabricConnectionUuid +type _VirtualConnectionUuid VirtualConnectionUuid -// NewFabricConnectionUuid instantiates a new FabricConnectionUuid object +// NewVirtualConnectionUuid instantiates a new VirtualConnectionUuid 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 NewFabricConnectionUuid(uuid string) *FabricConnectionUuid { - this := FabricConnectionUuid{} +func NewVirtualConnectionUuid(uuid string) *VirtualConnectionUuid { + this := VirtualConnectionUuid{} this.Uuid = uuid return &this } -// NewFabricConnectionUuidWithDefaults instantiates a new FabricConnectionUuid object +// NewVirtualConnectionUuidWithDefaults instantiates a new VirtualConnectionUuid 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 NewFabricConnectionUuidWithDefaults() *FabricConnectionUuid { - this := FabricConnectionUuid{} +func NewVirtualConnectionUuidWithDefaults() *VirtualConnectionUuid { + this := VirtualConnectionUuid{} return &this } -// GetUuid returns the Uuid field value -func (o *FabricConnectionUuid) GetUuid() string { - if o == nil { - var ret string - return ret - } - - return o.Uuid -} - -// GetUuidOk returns a tuple with the Uuid field value -// and a boolean to check if the value has been set. -func (o *FabricConnectionUuid) GetUuidOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Uuid, true -} - -// SetUuid sets field value -func (o *FabricConnectionUuid) SetUuid(v string) { - o.Uuid = v -} - // GetHref returns the Href field value if set, zero value otherwise. -func (o *FabricConnectionUuid) GetHref() string { +func (o *VirtualConnectionUuid) GetHref() string { if o == nil || IsNil(o.Href) { var ret string return ret @@ -81,7 +57,7 @@ func (o *FabricConnectionUuid) GetHref() string { // 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 *FabricConnectionUuid) GetHrefOk() (*string, bool) { +func (o *VirtualConnectionUuid) GetHrefOk() (*string, bool) { if o == nil || IsNil(o.Href) { return nil, false } @@ -89,7 +65,7 @@ func (o *FabricConnectionUuid) GetHrefOk() (*string, bool) { } // HasHref returns a boolean if a field has been set. -func (o *FabricConnectionUuid) HasHref() bool { +func (o *VirtualConnectionUuid) HasHref() bool { if o != nil && !IsNil(o.Href) { return true } @@ -98,12 +74,12 @@ func (o *FabricConnectionUuid) HasHref() bool { } // SetHref gets a reference to the given string and assigns it to the Href field. -func (o *FabricConnectionUuid) SetHref(v string) { +func (o *VirtualConnectionUuid) SetHref(v string) { o.Href = &v } // GetType returns the Type field value if set, zero value otherwise. -func (o *FabricConnectionUuid) GetType() string { +func (o *VirtualConnectionUuid) GetType() string { if o == nil || IsNil(o.Type) { var ret string return ret @@ -113,7 +89,7 @@ func (o *FabricConnectionUuid) GetType() string { // 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 *FabricConnectionUuid) GetTypeOk() (*string, bool) { +func (o *VirtualConnectionUuid) GetTypeOk() (*string, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -121,7 +97,7 @@ func (o *FabricConnectionUuid) GetTypeOk() (*string, bool) { } // HasType returns a boolean if a field has been set. -func (o *FabricConnectionUuid) HasType() bool { +func (o *VirtualConnectionUuid) HasType() bool { if o != nil && !IsNil(o.Type) { return true } @@ -130,11 +106,35 @@ func (o *FabricConnectionUuid) HasType() bool { } // SetType gets a reference to the given string and assigns it to the Type field. -func (o *FabricConnectionUuid) SetType(v string) { +func (o *VirtualConnectionUuid) SetType(v string) { o.Type = &v } -func (o FabricConnectionUuid) MarshalJSON() ([]byte, error) { +// GetUuid returns the Uuid field value +func (o *VirtualConnectionUuid) GetUuid() string { + if o == nil { + var ret string + return ret + } + + return o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value +// and a boolean to check if the value has been set. +func (o *VirtualConnectionUuid) GetUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uuid, true +} + +// SetUuid sets field value +func (o *VirtualConnectionUuid) SetUuid(v string) { + o.Uuid = v +} + +func (o VirtualConnectionUuid) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -142,15 +142,15 @@ func (o FabricConnectionUuid) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FabricConnectionUuid) ToMap() (map[string]interface{}, error) { +func (o VirtualConnectionUuid) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["uuid"] = o.Uuid if !IsNil(o.Href) { toSerialize["href"] = o.Href } if !IsNil(o.Type) { toSerialize["type"] = o.Type } + toSerialize["uuid"] = o.Uuid for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,7 +159,7 @@ func (o FabricConnectionUuid) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FabricConnectionUuid) UnmarshalJSON(data []byte) (err error) { +func (o *VirtualConnectionUuid) 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. @@ -181,60 +181,60 @@ func (o *FabricConnectionUuid) UnmarshalJSON(data []byte) (err error) { } } - varFabricConnectionUuid := _FabricConnectionUuid{} + varVirtualConnectionUuid := _VirtualConnectionUuid{} - err = json.Unmarshal(data, &varFabricConnectionUuid) + err = json.Unmarshal(data, &varVirtualConnectionUuid) if err != nil { return err } - *o = FabricConnectionUuid(varFabricConnectionUuid) + *o = VirtualConnectionUuid(varVirtualConnectionUuid) additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "uuid") delete(additionalProperties, "href") delete(additionalProperties, "type") + delete(additionalProperties, "uuid") o.AdditionalProperties = additionalProperties } return err } -type NullableFabricConnectionUuid struct { - value *FabricConnectionUuid +type NullableVirtualConnectionUuid struct { + value *VirtualConnectionUuid isSet bool } -func (v NullableFabricConnectionUuid) Get() *FabricConnectionUuid { +func (v NullableVirtualConnectionUuid) Get() *VirtualConnectionUuid { return v.value } -func (v *NullableFabricConnectionUuid) Set(val *FabricConnectionUuid) { +func (v *NullableVirtualConnectionUuid) Set(val *VirtualConnectionUuid) { v.value = val v.isSet = true } -func (v NullableFabricConnectionUuid) IsSet() bool { +func (v NullableVirtualConnectionUuid) IsSet() bool { return v.isSet } -func (v *NullableFabricConnectionUuid) Unset() { +func (v *NullableVirtualConnectionUuid) Unset() { v.value = nil v.isSet = false } -func NewNullableFabricConnectionUuid(val *FabricConnectionUuid) *NullableFabricConnectionUuid { - return &NullableFabricConnectionUuid{value: val, isSet: true} +func NewNullableVirtualConnectionUuid(val *VirtualConnectionUuid) *NullableVirtualConnectionUuid { + return &NullableVirtualConnectionUuid{value: val, isSet: true} } -func (v NullableFabricConnectionUuid) MarshalJSON() ([]byte, error) { +func (v NullableVirtualConnectionUuid) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFabricConnectionUuid) UnmarshalJSON(src []byte) error { +func (v *NullableVirtualConnectionUuid) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/services/fabricv4/model_virtual_device.go b/services/fabricv4/model_virtual_device.go index 103f24d5..20916a43 100644 --- a/services/fabricv4/model_virtual_device.go +++ b/services/fabricv4/model_virtual_device.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_device_interface.go b/services/fabricv4/model_virtual_device_interface.go new file mode 100644 index 00000000..4ce02537 --- /dev/null +++ b/services/fabricv4/model_virtual_device_interface.go @@ -0,0 +1,226 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceInterface type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceInterface{} + +// VirtualDeviceInterface Virtual Device Interface Information +type VirtualDeviceInterface struct { + Type *VirtualDeviceInterfaceType `json:"type,omitempty"` + // Network Edge assigned identifier + Id *int32 `json:"id,omitempty"` + // Interface identifier + Uuid *string `json:"uuid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceInterface VirtualDeviceInterface + +// NewVirtualDeviceInterface instantiates a new VirtualDeviceInterface 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 NewVirtualDeviceInterface() *VirtualDeviceInterface { + this := VirtualDeviceInterface{} + return &this +} + +// NewVirtualDeviceInterfaceWithDefaults instantiates a new VirtualDeviceInterface 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 NewVirtualDeviceInterfaceWithDefaults() *VirtualDeviceInterface { + this := VirtualDeviceInterface{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *VirtualDeviceInterface) GetType() VirtualDeviceInterfaceType { + if o == nil || IsNil(o.Type) { + var ret VirtualDeviceInterfaceType + 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 *VirtualDeviceInterface) GetTypeOk() (*VirtualDeviceInterfaceType, 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 *VirtualDeviceInterface) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given VirtualDeviceInterfaceType and assigns it to the Type field. +func (o *VirtualDeviceInterface) SetType(v VirtualDeviceInterfaceType) { + o.Type = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *VirtualDeviceInterface) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceInterface) GetIdOk() (*int32, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *VirtualDeviceInterface) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *VirtualDeviceInterface) SetId(v int32) { + o.Id = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *VirtualDeviceInterface) 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 *VirtualDeviceInterface) 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 *VirtualDeviceInterface) 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 *VirtualDeviceInterface) SetUuid(v string) { + o.Uuid = &v +} + +func (o VirtualDeviceInterface) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceInterface) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Uuid) { + toSerialize["uuid"] = o.Uuid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceInterface) UnmarshalJSON(data []byte) (err error) { + varVirtualDeviceInterface := _VirtualDeviceInterface{} + + err = json.Unmarshal(data, &varVirtualDeviceInterface) + + if err != nil { + return err + } + + *o = VirtualDeviceInterface(varVirtualDeviceInterface) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "id") + delete(additionalProperties, "uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceInterface struct { + value *VirtualDeviceInterface + isSet bool +} + +func (v NullableVirtualDeviceInterface) Get() *VirtualDeviceInterface { + return v.value +} + +func (v *NullableVirtualDeviceInterface) Set(val *VirtualDeviceInterface) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceInterface) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceInterface) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceInterface(val *VirtualDeviceInterface) *NullableVirtualDeviceInterface { + return &NullableVirtualDeviceInterface{value: val, isSet: true} +} + +func (v NullableVirtualDeviceInterface) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceInterface) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_virtual_device_interface_type.go b/services/fabricv4/model_virtual_device_interface_type.go new file mode 100644 index 00000000..31b52dd3 --- /dev/null +++ b/services/fabricv4/model_virtual_device_interface_type.go @@ -0,0 +1,105 @@ +/* +Equinix Fabric API v4 + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package fabricv4 + +import ( + "encoding/json" + "fmt" +) + +// VirtualDeviceInterfaceType Type of interface +type VirtualDeviceInterfaceType string + +// List of VirtualDeviceInterface_type +const ( + VIRTUALDEVICEINTERFACETYPE_NETWORK VirtualDeviceInterfaceType = "NETWORK" +) + +// All allowed values of VirtualDeviceInterfaceType enum +var AllowedVirtualDeviceInterfaceTypeEnumValues = []VirtualDeviceInterfaceType{ + "NETWORK", +} + +func (v *VirtualDeviceInterfaceType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VirtualDeviceInterfaceType(value) + for _, existing := range AllowedVirtualDeviceInterfaceTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VirtualDeviceInterfaceType", value) +} + +// NewVirtualDeviceInterfaceTypeFromValue returns a pointer to a valid VirtualDeviceInterfaceType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVirtualDeviceInterfaceTypeFromValue(v string) (*VirtualDeviceInterfaceType, error) { + ev := VirtualDeviceInterfaceType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VirtualDeviceInterfaceType: valid values are %v", v, AllowedVirtualDeviceInterfaceTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VirtualDeviceInterfaceType) IsValid() bool { + for _, existing := range AllowedVirtualDeviceInterfaceTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to VirtualDeviceInterface_type value +func (v VirtualDeviceInterfaceType) Ptr() *VirtualDeviceInterfaceType { + return &v +} + +type NullableVirtualDeviceInterfaceType struct { + value *VirtualDeviceInterfaceType + isSet bool +} + +func (v NullableVirtualDeviceInterfaceType) Get() *VirtualDeviceInterfaceType { + return v.value +} + +func (v *NullableVirtualDeviceInterfaceType) Set(val *VirtualDeviceInterfaceType) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceInterfaceType) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceInterfaceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceInterfaceType(val *VirtualDeviceInterfaceType) *NullableVirtualDeviceInterfaceType { + return &NullableVirtualDeviceInterfaceType{value: val, isSet: true} +} + +func (v NullableVirtualDeviceInterfaceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceInterfaceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/fabricv4/model_virtual_device_type.go b/services/fabricv4/model_virtual_device_type.go index 82e6f7fb..1762387d 100644 --- a/services/fabricv4/model_virtual_device_type.go +++ b/services/fabricv4/model_virtual_device_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_network.go b/services/fabricv4/model_virtual_network.go index 2c450526..9466aa23 100644 --- a/services/fabricv4/model_virtual_network.go +++ b/services/fabricv4/model_virtual_network.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_port_configuration.go b/services/fabricv4/model_virtual_port_configuration.go index 5863b3c6..f3bed003 100644 --- a/services/fabricv4/model_virtual_port_configuration.go +++ b/services/fabricv4/model_virtual_port_configuration.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_port_location.go b/services/fabricv4/model_virtual_port_location.go index 69140433..9840c0ec 100644 --- a/services/fabricv4/model_virtual_port_location.go +++ b/services/fabricv4/model_virtual_port_location.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_port_price.go b/services/fabricv4/model_virtual_port_price.go index 93f20310..b2c92206 100644 --- a/services/fabricv4/model_virtual_port_price.go +++ b/services/fabricv4/model_virtual_port_price.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_port_redundancy.go b/services/fabricv4/model_virtual_port_redundancy.go index 905a7d66..eca0fae9 100644 --- a/services/fabricv4/model_virtual_port_redundancy.go +++ b/services/fabricv4/model_virtual_port_redundancy.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_port_service_type.go b/services/fabricv4/model_virtual_port_service_type.go index 9850cafd..a8f0027b 100644 --- a/services/fabricv4/model_virtual_port_service_type.go +++ b/services/fabricv4/model_virtual_port_service_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_virtual_port_type.go b/services/fabricv4/model_virtual_port_type.go index b725d051..30258328 100644 --- a/services/fabricv4/model_virtual_port_type.go +++ b/services/fabricv4/model_virtual_port_type.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/model_vpic_interface.go b/services/fabricv4/model_vpic_interface.go index e4ac8223..767c09f5 100644 --- a/services/fabricv4/model_vpic_interface.go +++ b/services/fabricv4/model_vpic_interface.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/response.go b/services/fabricv4/response.go index e0cd9e79..da43dc96 100644 --- a/services/fabricv4/response.go +++ b/services/fabricv4/response.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/fabricv4/test/api_cloud_routers_test.go b/services/fabricv4/test/api_cloud_routers_test.go index eaf24681..519e8077 100644 --- a/services/fabricv4/test/api_cloud_routers_test.go +++ b/services/fabricv4/test/api_cloud_routers_test.go @@ -67,6 +67,19 @@ func Test_fabricv4_CloudRoutersApiService(t *testing.T) { assert.Equal(t, 200, httpRes.StatusCode) }) + t.Run("Test CloudRoutersApiService GetCloudRouterActionsByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var routerId string + var actionId string + + resp, httpRes, err := apiClient.CloudRoutersApi.GetCloudRouterActionsByUuid(context.Background(), routerId, actionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + t.Run("Test CloudRoutersApiService GetCloudRouterByUuid", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -123,6 +136,42 @@ func Test_fabricv4_CloudRoutersApiService(t *testing.T) { assert.Equal(t, 200, httpRes.StatusCode) }) + t.Run("Test CloudRoutersApiService SearchConnectionAdvertisedRoutes", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var connectionId string + + resp, httpRes, err := apiClient.CloudRoutersApi.SearchConnectionAdvertisedRoutes(context.Background(), connectionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CloudRoutersApiService SearchConnectionReceivedRoutes", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var connectionId string + + resp, httpRes, err := apiClient.CloudRoutersApi.SearchConnectionReceivedRoutes(context.Background(), connectionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test CloudRoutersApiService SearchRouterActions", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var routerId string + + resp, httpRes, err := apiClient.CloudRoutersApi.SearchRouterActions(context.Background(), routerId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + t.Run("Test CloudRoutersApiService UpdateCloudRouterByUuid", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/services/fabricv4/test/api_precision_time_test.go b/services/fabricv4/test/api_precision_time_test.go index c14d65ae..8d1e7977 100644 --- a/services/fabricv4/test/api_precision_time_test.go +++ b/services/fabricv4/test/api_precision_time_test.go @@ -44,6 +44,18 @@ func Test_fabricv4_PrecisionTimeApiService(t *testing.T) { assert.Equal(t, 200, httpRes.StatusCode) }) + t.Run("Test PrecisionTimeApiService FulfillTimeServices", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PrecisionTimeApi.FulfillTimeServices(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + t.Run("Test PrecisionTimeApiService GetTimeServicesById", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/services/fabricv4/test/api_service_tokens_test.go b/services/fabricv4/test/api_service_tokens_test.go index 152fd213..c43abffd 100644 --- a/services/fabricv4/test/api_service_tokens_test.go +++ b/services/fabricv4/test/api_service_tokens_test.go @@ -49,9 +49,10 @@ func Test_fabricv4_ServiceTokensApiService(t *testing.T) { var serviceTokenId string - httpRes, err := apiClient.ServiceTokensApi.DeleteServiceTokenByUuid(context.Background(), serviceTokenId).Execute() + resp, httpRes, err := apiClient.ServiceTokensApi.DeleteServiceTokenByUuid(context.Background(), serviceTokenId).Execute() require.Nil(t, err) + require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) diff --git a/services/fabricv4/test/api_stream_subscriptions_test.go b/services/fabricv4/test/api_stream_subscriptions_test.go new file mode 100644 index 00000000..160cc76c --- /dev/null +++ b/services/fabricv4/test/api_stream_subscriptions_test.go @@ -0,0 +1,80 @@ +/* +Equinix Fabric API v4 + +Testing StreamSubscriptionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package fabricv4 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_fabricv4_StreamSubscriptionsApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamSubscriptionsApiService DeleteStreamSubscriptionByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var streamSubscriptionId string + + resp, httpRes, err := apiClient.StreamSubscriptionsApi.DeleteStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamSubscriptionsApiService GetStreamSubscriptionByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var streamSubscriptionId string + + resp, httpRes, err := apiClient.StreamSubscriptionsApi.GetStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamSubscriptionsApiService UpdateStreamSubscriptionByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var streamSubscriptionId string + + resp, httpRes, err := apiClient.StreamSubscriptionsApi.UpdateStreamSubscriptionByUuid(context.Background(), streamSubscriptionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/fabricv4/test/api_streams_test.go b/services/fabricv4/test/api_streams_test.go new file mode 100644 index 00000000..ca429c7e --- /dev/null +++ b/services/fabricv4/test/api_streams_test.go @@ -0,0 +1,144 @@ +/* +Equinix Fabric API v4 + +Testing StreamsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package fabricv4 + +import ( + "context" + "testing" + + openapiclient "github.com/equinix/equinix-sdk-go/services/fabricv4" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func Test_fabricv4_StreamsApiService(t *testing.T) { + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test StreamsApiService CreateStreams", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StreamsApi.CreateStreams(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamsApiService DeleteStreamAssetByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var assetId string + var asset openapiclient.Asset + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.DeleteStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamsApiService DeleteStreamByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.DeleteStreamByUuid(context.Background(), streamId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamsApiService GetStreamAssetByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var assetId string + var asset openapiclient.Asset + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.GetStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamsApiService GetStreamByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.GetStreamByUuid(context.Background(), streamId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamsApiService GetStreams", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StreamsApi.GetStreams(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamsApiService GetStreamsAssets", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StreamsApi.GetStreamsAssets(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + 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 + + var assetId string + var asset openapiclient.Asset + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.UpdateStreamAssetByUuid(context.Background(), assetId, asset, streamId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) + + t.Run("Test StreamsApiService UpdateStreamByUuid", func(t *testing.T) { + t.Skip("skip test") // remove to run test + + var streamId string + + resp, httpRes, err := apiClient.StreamsApi.UpdateStreamByUuid(context.Background(), streamId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + }) +} diff --git a/services/fabricv4/utils.go b/services/fabricv4/utils.go index 9eb15c0a..ed6ee3d8 100644 --- a/services/fabricv4/utils.go +++ b/services/fabricv4/utils.go @@ -1,7 +1,6 @@ /* Equinix Fabric API v4 -Contact: api-support@equinix.com */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/spec/services/fabricv4/oas3.fetched/swagger.yaml b/spec/services/fabricv4/oas3.fetched/swagger.yaml index 6eaccf64..1a5d2d64 100644 --- a/spec/services/fabricv4/oas3.fetched/swagger.yaml +++ b/spec/services/fabricv4/oas3.fetched/swagger.yaml @@ -1,16 +1,15 @@ openapi: 3.0.3 info: title: Equinix Fabric API v4 - description: 'Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to:
1. Cloud Service Providers - Clouds, network and other service providers.
2. Enterprises - Other Equinix customers, vendors and partners.
3. Myself - Another customer instance deployed at Equinix.

Integrations (SDKs, Tools) links:
Fabric Java SDK
Fabric Go SDK
Equinix Terraform Provider
Fabric Terraform Modules
Equinix Pulumi Provider
' + description: 'Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to:
1. Cloud Service Providers - Clouds, network and other service providers.
2. Enterprises - Other Equinix customers, vendors and partners.
3. Myself - Another customer instance deployed at Equinix.

Integrations (SDKs, Tools) links:
Fabric Java SDK
Fabric Go SDK
Fabric Python SDK
Equinix Terraform Provider
Fabric Terraform Modules
Equinix Pulumi Provider
' termsOfService: https://www.equinix.com/about/legal/terms contact: name: Equinix API Support - url: https://equinix.com/about/ - email: api-support@equinix.com + url: https://docs.equinix.com/api-support.htm license: name: Equinix Inc url: https://developer.equinix.com/agreement - version: '4.15' + version: "4.17" externalDocs: description: Find more information on Equinix Developer Portal url: https://developer.equinix.com @@ -40,6 +39,10 @@ tags: description: Service Tokens - name: Statistics description: Statistics + - name: Stream Subscriptions + description: Stream Subscriptions Beta + - name: Streams + description: Streams Beta paths: /fabric/v4/connections: post: @@ -592,6 +595,140 @@ paths: examples: example: $ref: "#/components/examples/404" + "/fabric/v4/connections/{connectionId}/advertisedRoutes/search": + post: + tags: + - Cloud Routers + summary: search advertised + description: The API provides capability to get list of user's advertised routes using search criteria, including optional filtering, pagination and sorting + operationId: searchConnectionAdvertisedRoutes + parameters: + - name: connectionId + in: path + description: Connection Id + required: true + schema: + $ref: "#/components/schemas/ConnectionId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteSearchRequest" + examples: + ConnectionRoutesSearchType: + $ref: "#/components/examples/ConnectionRoutesSearchByType" + ConnectionRoutesSearchByState: + $ref: "#/components/examples/ConnectionRoutesSearchByState" + ConnectionRoutesSearchByMed: + $ref: "#/components/examples/ConnectionRoutesSearchByMed" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteTableEntrySearchResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400" + "401": + description: Unauthorized + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + "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" + "/fabric/v4/connections/{connectionId}/receivedRoutes/search": + post: + tags: + - Cloud Routers + summary: Search received + description: The API provides capability to get list of received routes using search criteria, including optional filtering, pagination and sorting + operationId: searchConnectionReceivedRoutes + parameters: + - name: connectionId + in: path + description: Connection Id + required: true + schema: + $ref: "#/components/schemas/ConnectionId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteSearchRequest" + examples: + ConnectionRoutesSearchType: + $ref: "#/components/examples/ConnectionRoutesSearchByType" + ConnectionRoutesSearchByState: + $ref: "#/components/examples/ConnectionRoutesSearchByState" + ConnectionRoutesSearchByMed: + $ref: "#/components/examples/ConnectionRoutesSearchByMed" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteTableEntrySearchResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400" + "401": + description: Unauthorized + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + "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" "/fabric/v4/connections/{connectionId}/routingProtocols": get: tags: @@ -2793,8 +2930,10 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceToken" - tokenCrhExample: - $ref: "#/components/examples/getServiceToken-CRH" + tokenVDExample: + $ref: "#/components/examples/getServiceToken-VD" + tokenNetworkExample: + $ref: "#/components/examples/getServiceToken-Network" "400": description: Bad request content: @@ -2836,8 +2975,19 @@ paths: schema: $ref: "#/components/schemas/ServiceTokenUUID" responses: - "204": - description: Deleted Service Token Successfully + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ServiceToken" + examples: + tokenExample: + $ref: "#/components/examples/getServiceToken" + tokenVDExample: + $ref: "#/components/examples/getServiceToken-VD" + tokenNetworkExample: + $ref: "#/components/examples/getServiceToken-Network" "400": description: Bad request content: @@ -2847,15 +2997,24 @@ paths: examples: example: $ref: "#/components/examples/400_UUID" - "401": - description: Unauthorized + "403": + description: Forbidden content: application/json: schema: $ref: "#/components/schemas/ErrorList" examples: example: - $ref: "#/components/examples/401" + $ref: "#/components/examples/403" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" patch: tags: - Service Tokens @@ -2898,8 +3057,10 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceToken" - tokenCrhExample: - $ref: "#/components/examples/getServiceToken-CRH" + tokenVDExample: + $ref: "#/components/examples/getServiceToken-VD" + tokenNetworkExample: + $ref: "#/components/examples/getServiceToken-Network" "400": description: Bad request content: @@ -2918,6 +3079,15 @@ paths: 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/serviceTokens: get: tags: @@ -2946,8 +3116,6 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceTokens" - tokenCrhExample: - $ref: "#/components/examples/getServiceTokens-CRH" "403": description: Forbidden content: @@ -2963,6 +3131,7 @@ paths: summary: Create Service Token description: Create Service Tokens generates Equinix Fabric? service tokens. These tokens authorize users to access protected resources and services. operationId: createServiceToken + parameters: [] requestBody: content: application/json: @@ -2983,6 +3152,10 @@ paths: $ref: "#/components/examples/createZsideServiceTokenWithDot1Q" ZsideTokenWithVxlanExample: $ref: "#/components/examples/createZsideServiceTokenWithVxlan" + ZsideTokenWithVDExample: + $ref: "#/components/examples/createZsideServiceTokenWithVD" + ZsideTokenWithNetworkExample: + $ref: "#/components/examples/createZsideServiceTokenWithNetwork" required: true responses: "201": @@ -2994,8 +3167,6 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceToken" - tokenCrhExample: - $ref: "#/components/examples/getServiceToken-CRH" "400": description: Bad request content: @@ -3096,7 +3267,17 @@ paths: summary: Search servicetokens description: The API provides capability to get list of user's servicetokens using search criteria, including optional filtering, pagination and sorting operationId: searchServiceTokens - parameters: [] + parameters: + - name: offset + in: query + description: offset + schema: + type: number + - name: limit + in: query + description: number of records to fetch + schema: + type: number requestBody: content: application/json: @@ -3311,7 +3492,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Port" + $ref: "#/components/schemas/PortRequest" examples: COLOSinglePortNonLag: $ref: "#/components/examples/COLOSinglePortNonLag" @@ -3372,7 +3553,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkPort" + $ref: "#/components/schemas/BulkPortRequest" examples: COLOBulkPort: $ref: "#/components/examples/COLOBulkPort" @@ -3383,7 +3564,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AllPortsResponse" + $ref: "#/components/schemas/BulkPort" examples: bulkPortExample: $ref: "#/components/examples/COLOBulkPortResponse" @@ -5825,6 +6006,10 @@ paths: examples: RouteEntriesStatusUpdate: $ref: "#/components/examples/RouteEntriesStatusUpdate" + ReceivedRouteEntriesStatusUpdate: + $ref: "#/components/examples/ReceivedRouteEntriesStatusUpdate" + AdvertisedRouteEntriesStatusUpdate: + $ref: "#/components/examples/AdvertisedRouteEntriesStatusUpdate" required: true responses: "202": @@ -5836,6 +6021,10 @@ paths: examples: cloudRouterActionExample: $ref: "#/components/examples/CloudRouterActionResponse" + receivedRouteEntriesExample: + $ref: "#/components/examples/CloudRouterReceivedRoutesActionResponse" + advertisedRouteEntriesExample: + $ref: "#/components/examples/CloudRouterAdvertisedRoutesActionResponse" "400": description: Bad request content: @@ -5890,13 +6079,13 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/routers/{routerId}/routes/search": + "/fabric/v4/routers/{routerId}/actions/search": post: tags: - Cloud Routers - summary: Search Route Table - description: The API provides capability to get list of user's Fabric Cloud Router route table entries using search criteria, including optional filtering, pagination and sorting - operationId: searchCloudRouterRoutes + summary: Search actions + description: This API provides capability to refresh route table and bgp session summary information + operationId: searchRouterActions parameters: - name: routerId in: path @@ -5908,18 +6097,10 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RouteTableEntrySearchRequest" + $ref: "#/components/schemas/CloudRouterActionsSearchRequest" examples: - SearchFilterByNextHop: - $ref: "#/components/examples/SearchFilterByNextHop" - SearchFilterByPrefix: - $ref: "#/components/examples/SearchFilterByPrefix" - SearchFilterByType: - $ref: "#/components/examples/SearchFilterByType" - SearchFilterByStatus: - $ref: "#/components/examples/SearchFilterByStatus" - SearchFilterOrAnd: - $ref: "#/components/examples/SearchFilterOrAnd" + CloudRouterActionsSearchByType: + $ref: "#/components/examples/CloudRouterActionsSearchByType" required: true responses: "200": @@ -5927,7 +6108,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RouteTableEntrySearchResponse" + $ref: "#/components/schemas/CloudRouterActionsSearchResponse" "400": description: Bad request content: @@ -5982,41 +6163,41 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/routers/{routerId}/validate": - post: + "/fabric/v4/routers/{routerId}/actions/{actionId}": + get: tags: - - Routing Protocols - summary: Validate Subnet - description: This API provides capability to validate all subnets associated with any connection in the given FCR - operationId: validateRoutingProtocol + - Cloud Routers + summary: Get actions + description: This API provides capability to fetch action status + operationId: getCloudRouterActionsByUuid parameters: - name: routerId in: path - description: Cloud Router UUID + description: Router UUID required: true schema: - $ref: "#/components/schemas/RouterId" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ValidateRequest" - examples: - ValidateDirectIpv4: - $ref: "#/components/examples/Request-direct-ipv4" - ValidateDirectIpv6: - $ref: "#/components/examples/Request-direct-ipv6" - required: true + $ref: "#/components/schemas/RouterId_1" + - name: actionId + in: path + description: Action UUID + required: true + schema: + $ref: "#/components/schemas/ActionId_1" + - name: state + in: query + description: Action state + schema: + $ref: "#/components/schemas/ActionState" responses: "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/ValidateSubnetResponse" + $ref: "#/components/schemas/CloudRouterActionResponse" examples: - ValidateSubnet: - $ref: "#/components/examples/Response-200" + routerActionExample: + $ref: "#/components/examples/CloudRouterActionResponse" "400": description: Bad request content: @@ -6024,43 +6205,224 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - Bad Request: - $ref: "#/components/examples/error-400" - Subnet Overlapping: - $ref: "#/components/examples/error-400-overlappingSubnet" - /fabric/v4/routers/search: - post: - tags: - - Cloud Routers - summary: Search Routers - description: The API provides capability to get list of user's Cloud Routers using search criteria, including optional filtering, pagination and sorting - operationId: searchCloudRouters - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CloudRouterSearchRequest" - examples: - SearchFilterByStatus: - $ref: "#/components/examples/SearchFilterByStatus" - SearchFilterByNameAndMetroName: - $ref: "#/components/examples/SearchFilterByNameAndMetroName" - SearchFilterOrAnd: - $ref: "#/components/examples/SearchFilterOrAnd" - required: true - responses: - "200": - description: Successful operation - content: - application/json: - schema: - $ref: "#/components/schemas/SearchResponse" - examples: - Example: - $ref: "#/components/examples/search-example" - "400": - description: Bad request + example: + $ref: "#/components/examples/400_invalid_operation" + "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" + "415": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/routers/{routerId}/routes/search": + post: + tags: + - Cloud Routers + summary: Search Route Table + description: The API provides capability to get list of user's Fabric Cloud Router route table entries using search criteria, including optional filtering, pagination and sorting + operationId: searchCloudRouterRoutes + parameters: + - name: routerId + in: path + description: Router UUID + required: true + schema: + $ref: "#/components/schemas/RouterId_1" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RouteTableEntrySearchRequest" + examples: + SearchFilterByNextHop: + $ref: "#/components/examples/SearchFilterByNextHop" + SearchFilterByPrefix: + $ref: "#/components/examples/SearchFilterByPrefix" + SearchFilterByType: + $ref: "#/components/examples/SearchFilterByType" + SearchFilterByStatus: + $ref: "#/components/examples/SearchFilterByStatus" + SearchFilterOrAnd: + $ref: "#/components/examples/SearchFilterOrAnd" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/RouteTableEntrySearchResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400_invalid_sorting" + "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" + "415": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/routers/{routerId}/validate": + post: + tags: + - Routing Protocols + summary: Validate Subnet + description: This API provides capability to validate all subnets associated with any connection in the given FCR + operationId: validateRoutingProtocol + parameters: + - name: routerId + in: path + description: Cloud Router UUID + required: true + schema: + $ref: "#/components/schemas/RouterId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ValidateRequest" + examples: + ValidateDirectIpv4: + $ref: "#/components/examples/Request-direct-ipv4" + ValidateDirectIpv6: + $ref: "#/components/examples/Request-direct-ipv6" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ValidateSubnetResponse" + examples: + ValidateSubnet: + $ref: "#/components/examples/Response-200" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + Bad Request: + $ref: "#/components/examples/error-400" + Subnet Overlapping: + $ref: "#/components/examples/error-400-overlappingSubnet" + /fabric/v4/routers/search: + post: + tags: + - Cloud Routers + summary: Search Routers + description: The API provides capability to get list of user's Cloud Routers using search criteria, including optional filtering, pagination and sorting + operationId: searchCloudRouters + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CloudRouterSearchRequest" + examples: + SearchFilterByStatus: + $ref: "#/components/examples/SearchFilterByStatus" + SearchFilterByNameAndMetroName: + $ref: "#/components/examples/SearchFilterByNameAndMetroName" + SearchFilterOrAnd: + $ref: "#/components/examples/SearchFilterOrAnd" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/SearchResponse" + examples: + Example: + $ref: "#/components/examples/search-example" + "400": + description: Bad request content: application/json: schema: @@ -6846,30 +7208,51 @@ paths: examples: example: $ref: "#/components/examples/404" - "/fabric/v4/timeServices/{serviceId}": - get: + /fabric/v4/timeServices: + post: tags: - Precision Time - summary: Get Time Service - description: The API provides capability to get precision timing service's details - operationId: getTimeServicesById - parameters: - - name: serviceId - in: path - description: Service UUID - required: true - schema: - $ref: "#/components/schemas/ServiceId" + summary: Create Time Service + description: The API provides capability to create Precision Time service + operationId: createTimeServices + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/precisionTimeServiceRequest" + examples: + ntpStandard: + $ref: "#/components/examples/ntpStandardService" + ptpStandard: + $ref: "#/components/examples/ptpStandardService" + ntpEnterprise: + $ref: "#/components/examples/ntpEnterpriseService" + ptpEnterprise: + $ref: "#/components/examples/ptpEnterpriseService" + ptpStandardWithAdvancedConfiguration: + $ref: "#/components/examples/ptpStandardWithAdvancedConfiguration" + ptpEnterpriseWithAdvancedConfiguration: + $ref: "#/components/examples/ptpEnterpriseWithAdvancedConfiguration" + ntpEnterpriseWithAdvancedConfiguration: + $ref: "#/components/examples/ntpEnterpriseWithAdvancedConfiguration" + required: true responses: - "200": - description: Successful operation + "202": + description: Successful Accepted operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" examples: - NtpStandard: + ntpStandard: $ref: "#/components/examples/ntpStandardCreateResponse" + ntpEnterprise: + $ref: "#/components/examples/ntpEnterpriseCreateResponse" + ptpStandard: + $ref: "#/components/examples/ptpStandardCreateResponse" + ptpEnterprise: + $ref: "#/components/examples/ptpEnterpriseCreateResponse" "400": description: Bad request content: @@ -6877,8 +7260,6 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - MandatoryName: - $ref: "#/components/examples/400-Mandatory-Name" InvalidName: $ref: "#/components/examples/400-Invalid-Name" ValidateName: @@ -7001,12 +7382,13 @@ paths: examples: example: $ref: "#/components/examples/500" - delete: + "/fabric/v4/timeServices/{serviceId}": + get: tags: - Precision Time - summary: Delete time service - description: Delete EPT service by it's uuid - operationId: deleteTimeServiceById + summary: Get Service By ID. + description: The API provides capability to get Precision Time Service details + operationId: getTimeServicesById parameters: - name: serviceId in: path @@ -7015,15 +7397,37 @@ paths: schema: $ref: "#/components/schemas/ServiceId" responses: - "202": + "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" - examples: - NtpStandard: - $ref: "#/components/examples/ntpStandardCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" + examples: + ntpStandardOriginPort: + $ref: "#/components/examples/ntpStandardResponseASidePort" + ntpStandardOriginVirtualDevice: + $ref: "#/components/examples/ntpStandardResponseASideVirtualDevice" + ntpStandardOriginCloudRouter: + $ref: "#/components/examples/ntpStandardResponseASideCloudRouter" + ntpEnterpriseOriginPort: + $ref: "#/components/examples/ntpEnterpriseWOMD5ResponseASidePort" + ntpEnterpriseWithAdvConfigOriginPort: + $ref: "#/components/examples/ntpEnterpriseResponseASidePort" + ntpEnterpriseWithAdvConfigOriginVirtualDevice: + $ref: "#/components/examples/ntpEnterpriseResponseASideVirtualDevice" + ntpEnterpriseWithAdvConfigOriginCloudRouter: + $ref: "#/components/examples/ntpEnterpriseResponseASideCloudRouter" + ptpStandardOriginPort: + $ref: "#/components/examples/ptpStandardResponse" + ptpEnterpriseOriginPort: + $ref: "#/components/examples/ptpEnterpriseResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" "401": description: Unauthorized content: @@ -7042,6 +7446,15 @@ paths: examples: example: $ref: "#/components/examples/403" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" "415": description: Unsupported Media Type content: @@ -7060,12 +7473,12 @@ paths: examples: example: $ref: "#/components/examples/500" - patch: + put: tags: - Precision Time - summary: Patch time service - description: The API provides capability to update timing service - operationId: updateTimeServicesById + summary: Configure Service. + description: The API provides capability to Configure/Fulfill the Precision Time Service. + operationId: fulfillTimeServices parameters: - name: serviceId in: path @@ -7075,29 +7488,29 @@ paths: $ref: "#/components/schemas/ServiceId" requestBody: content: - application/json-patch+json: + application/json: schema: - maxItems: 1 - minItems: 1 - type: array - items: - $ref: "#/components/schemas/precisionTimeChangeOperation" + $ref: "#/components/schemas/precisionTimeServiceRequest" examples: - editName: - $ref: "#/components/examples/editName" - editPackageCode: - $ref: "#/components/examples/editPackageCode" + ntpStandard: + $ref: "#/components/examples/configureStandardService" + ptpStandard: + $ref: "#/components/examples/configureStandardService" + ntpEnterpriseWithAdvanceConfiguration: + $ref: "#/components/examples/configureNtpEnterpriseAdvancedConfig" + ptpEnterpriseWithAdvanceConfiguration: + $ref: "#/components/examples/configurePtpWithAdvancedConfig" required: true responses: "202": - description: Successful operation + description: Successful Accepted operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" examples: - NtpStandard: - $ref: "#/components/examples/ntpStandardCreateResponse" + ntpStandard: + $ref: "#/components/examples/ntpStandardConfigureResponse" "400": description: Bad request content: @@ -7105,8 +7518,6 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - MandatoryName: - $ref: "#/components/examples/400-Mandatory-Name" InvalidName: $ref: "#/components/examples/400-Invalid-Name" ValidateName: @@ -7211,6 +7622,15 @@ paths: examples: example: $ref: "#/components/examples/403" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" "415": description: Unsupported Media Type content: @@ -7229,39 +7649,118 @@ paths: examples: example: $ref: "#/components/examples/500" - /fabric/v4/timeServices: - post: + delete: tags: - Precision Time - summary: Create Time Service - description: The API provides capability to create timing service - operationId: createTimeServices - parameters: [] + summary: Delete by ID. + description: The API provides capability to delete Precision Time Service by service id. + operationId: deleteTimeServiceById + parameters: + - name: serviceId + in: path + description: Service UUID + required: true + schema: + $ref: "#/components/schemas/ServiceId" + responses: + "202": + description: Successful Delete + content: + application/json: + schema: + $ref: "#/components/schemas/precisionTimeServiceResponse" + examples: + ntpStandard: + $ref: "#/components/examples/ntpStandardDeletingResponse" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + patch: + tags: + - Precision Time + summary: Update By ID. + description: The API provides capability to update Precision Time Service by service id. + operationId: updateTimeServicesById + parameters: + - name: serviceId + in: path + description: Service UUID + required: true + schema: + $ref: "#/components/schemas/ServiceId" requestBody: content: - application/json: + application/json-patch+json: schema: - $ref: "#/components/schemas/precisionTimeServiceRequest" + maxItems: 1 + minItems: 1 + type: array + items: + $ref: "#/components/schemas/precisionTimeChangeOperation" examples: - ntpStandard: - $ref: "#/components/examples/ntpStandard" - ptpStandard: - $ref: "#/components/examples/ptpStandard" - ptpEnterpriseWithAdvanceConfiguration: - $ref: "#/components/examples/ptpEnterpriseWithAdvanceConfiguration" - ntpEnterpriseWithAdvanceConfiguration: - $ref: "#/components/examples/ntpEnterpriseWithAdvanceConfiguration" + updateName: + $ref: "#/components/examples/updateName" + updatePackageCode: + $ref: "#/components/examples/updatePackageCode" + updateNetworkInformation: + $ref: "#/components/examples/updateNetworkInformation" + updatePtpAdvancedConfiguration: + $ref: "#/components/examples/updatePtpAdvancedConfiguration" + updateNtpAdvancedConfiguration: + $ref: "#/components/examples/updateNtpAdvancedConfiguration" required: true responses: "202": - description: Successful operation + description: Successful Accepted operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" examples: - NtpStandard: - $ref: "#/components/examples/ntpStandardCreateResponse" + ntpStandard: + $ref: "#/components/examples/ntpStandardReprovisionResponse" "400": description: Bad request content: @@ -7269,8 +7768,6 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - MandatoryName: - $ref: "#/components/examples/400-Mandatory-Name" InvalidName: $ref: "#/components/examples/400-Invalid-Name" ValidateName: @@ -7375,6 +7872,15 @@ paths: examples: example: $ref: "#/components/examples/403" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" "415": description: Unsupported Media Type content: @@ -7673,128 +8179,1235 @@ paths: example: $ref: "#/components/examples/500" x-preview: false -components: - schemas: - ConnectionPostRequest: - required: - - aSide - - bandwidth - - name - - notifications - - type - - zSide - type: object - properties: - type: - $ref: "#/components/schemas/ConnectionType" - name: - type: string - description: Customer-provided connection name - order: - $ref: "#/components/schemas/Order" - notifications: - type: array - description: Preferences for notifications on connection configuration or status changes - items: - $ref: "#/components/schemas/SimplifiedNotification" - bandwidth: - maximum: 50000 - minimum: 0 - type: integer - description: Connection bandwidth in Mbps - geoScope: - $ref: "#/components/schemas/GeoScopeType" - redundancy: - $ref: "#/components/schemas/ConnectionRedundancy" - aSide: - $ref: "#/components/schemas/ConnectionSide" - zSide: - $ref: "#/components/schemas/ConnectionSide" - project: - $ref: "#/components/schemas/Project" - additionalInfo: - type: array - description: Connection additional information - items: - $ref: "#/components/schemas/ConnectionSideAdditionalInfo" - marketplaceSubscription: - $ref: "#/components/schemas/marketplaceSubscription" - description: Create connection post request - Connection: - required: - - aSide - - bandwidth - - name - - type - - zSide - type: object - properties: - type: - $ref: "#/components/schemas/ConnectionType" - href: - type: string - description: Connection URI - format: uri - readOnly: true - uuid: - type: string - description: Equinix-assigned connection identifier - name: - type: string - description: Customer-provided connection name - description: - type: string - description: Customer-provided connection description - state: - $ref: "#/components/schemas/ConnectionState" - change: - $ref: "#/components/schemas/Change" - operation: - $ref: "#/components/schemas/ConnectionOperation" - order: - $ref: "#/components/schemas/Order" - notifications: - type: array - description: Preferences for notifications on connection configuration or status changes - items: - $ref: "#/components/schemas/SimplifiedNotification" - account: - $ref: "#/components/schemas/SimplifiedAccount" - changeLog: - $ref: "#/components/schemas/Changelog" - bandwidth: - maximum: 10000 - minimum: 0 - type: integer - description: Connection bandwidth in Mbps - geoScope: - $ref: "#/components/schemas/GeoScopeType" - redundancy: - $ref: "#/components/schemas/ConnectionRedundancy" - isRemote: - type: boolean - description: Connection property derived from access point locations - direction: - $ref: "#/components/schemas/ConnectionDirection" - aSide: - $ref: "#/components/schemas/ConnectionSide" - zSide: - $ref: "#/components/schemas/ConnectionSide" - marketplaceSubscription: - $ref: "#/components/schemas/marketplaceSubscription" - additionalInfo: - type: array - description: Connection additional information - items: - $ref: "#/components/schemas/ConnectionSideAdditionalInfo" - project: - $ref: "#/components/schemas/Project" - description: Connection specification - ErrorList: - type: array - description: List of Error Message - items: - $ref: "#/components/schemas/Error" + /fabric/v4/streams: + get: + tags: + - Streams + summary: Get Streams + description: This API provides capability to retrieve streams + operationId: getStreams + 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 + content: + application/json: + schema: + $ref: "#/components/schemas/GetAllStreamResponse" + examples: + Example: + $ref: "#/components/examples/stream-get-all-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" + post: + tags: + - Streams + summary: Create Stream + description: This API provides capability to create user's stream + operationId: createStreams + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamPostRequest" + examples: + CreateStream: + $ref: "#/components/examples/StreamPostRequestExample" + required: true + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamResponseExample" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/streams/{streamId}": + get: + tags: + - Streams + summary: Get Stream + description: This API provides capability to get user's stream + operationId: getStreamByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "200": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamResponseExample" + "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: + - Streams + summary: Update Stream + description: This API provides capability to update user's stream + operationId: updateStreamByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamPutRequest" + examples: + UpdateStream: + $ref: "#/components/examples/StreamPutRequestExample" + required: true + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamResponse: + $ref: "#/components/examples/StreamResponseExample" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + delete: + tags: + - Streams + summary: Delete Stream + description: This API provides capability to delete user's stream + operationId: deleteStreamByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamDeleteRequestExample" + "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" + /fabric/v4/streamAssets/search: + post: + tags: + - Streams + summary: Get Assets + description: This API provides capability to retrieve stream assets + operationId: getStreamsAssets + 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 + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAssetSearchRequest" + examples: + SearchAssets: + $ref: "#/components/examples/StreamAssetSearchRequestExample" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/GetAllStreamAssetResponse" + examples: + Example: + $ref: "#/components/examples/stream-asset-get-all-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/streams/{streamId}/{asset}/{assetId}": + get: + tags: + - Streams + summary: Get Asset + description: This API provides capability to get user's assets attached to a stream + operationId: getStreamAssetByUuid + parameters: + - name: assetId + in: path + description: asset UUID + required: true + schema: + $ref: "#/components/schemas/AssetId" + - name: asset + in: path + description: asset + required: true + schema: + $ref: "#/components/schemas/Asset" + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "200": + description: Stream asset object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAsset" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamConnectionAssetResponseExample" + "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: + - Streams + summary: Attach Asset + description: This API provides capability to attach an asset to a stream + operationId: updateStreamAssetByUuid + parameters: + - name: assetId + in: path + description: asset UUID + required: true + schema: + $ref: "#/components/schemas/AssetId" + - name: asset + in: path + description: asset + required: true + schema: + $ref: "#/components/schemas/Asset" + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAssetPutRequest" + examples: + UpdateStream: + $ref: "#/components/examples/StreamAssetPutRequestExample" + required: true + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAsset" + examples: + StreamAssetResponse: + $ref: "#/components/examples/StreamRouterAssetAttachResponseExample" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + delete: + tags: + - Streams + summary: Detach Asset + description: This API provides capability to detach an asset from a stream + operationId: deleteStreamAssetByUuid + parameters: + - name: assetId + in: path + description: asset UUID + required: true + schema: + $ref: "#/components/schemas/AssetId" + - name: asset + in: path + description: asset + required: true + schema: + $ref: "#/components/schemas/Asset" + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAsset" + examples: + StreamAssetResponse: + $ref: "#/components/examples/StreamRouterAssetDetachResponseExample" + "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" + "/fabric/v4/streams/{streamId}/streamSubscriptions": + get: + tags: + - Streams + summary: Get Stream's Subs + description: This API provides capability to retrieve subscriptions in a stream + operationId: getSubscriptionsInStream + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + - 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 + 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 + content: + application/json: + schema: + $ref: "#/components/schemas/GetAllStreamSubscriptionResponse" + examples: + Example: + $ref: "#/components/examples/stream-subscription-get-all-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" + post: + tags: + - Stream Subscriptions + summary: Create Subscription + description: This API provides capability to create user's Stream Subscriptions + operationId: createStreamSubscriptions + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscriptionPostRequest" + examples: + CreateStreamSubscription_Splunk: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSplunk" + CreateStreamSubscription_Slack: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSlack" + CreateStreamSubscription_Pagerduty: + $ref: "#/components/examples/StreamSubscriptionPostRequestExamplePagerduty" + CreateStreamSubscription_Datadog: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleDatadog" + required: true + responses: + "202": + 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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/streamSubscriptions/{streamSubscriptionId}": + get: + tags: + - Stream Subscriptions + summary: Get Subscription + description: This API provides capability to delete user's get Stream Subscriptions + operationId: getStreamSubscriptionByUuid + parameters: + - name: streamSubscriptionId + in: path + description: Stream Subscription 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 + 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: + 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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + delete: + tags: + - Stream Subscriptions + summary: Delete Subscription + description: This API provides capability to delete user's Stream Subscriptions + operationId: deleteStreamSubscriptionByUuid + parameters: + - name: streamSubscriptionId + in: path + description: Stream Subscription UUID + required: true + schema: + $ref: "#/components/schemas/StreamSubscriptionId" + responses: + "202": + description: Stream Subscription object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscription" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamSubscriptionDeleteResponseExample" + "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" +components: + schemas: + ConnectionPostRequest: + required: + - aSide + - bandwidth + - name + - notifications + - type + - zSide + type: object + properties: + type: + $ref: "#/components/schemas/ConnectionType" + name: + type: string + description: Customer-provided connection name + order: + $ref: "#/components/schemas/Order" + notifications: + type: array + description: Preferences for notifications on connection configuration or status changes + items: + $ref: "#/components/schemas/SimplifiedNotification" + bandwidth: + maximum: 50000 + minimum: 0 + type: integer + description: Connection bandwidth in Mbps + geoScope: + $ref: "#/components/schemas/GeoScopeType" + redundancy: + $ref: "#/components/schemas/ConnectionRedundancy" + aSide: + $ref: "#/components/schemas/ConnectionSide" + zSide: + $ref: "#/components/schemas/ConnectionSide" + project: + $ref: "#/components/schemas/Project" + additionalInfo: + type: array + description: Connection additional information + items: + $ref: "#/components/schemas/ConnectionSideAdditionalInfo" + marketplaceSubscription: + $ref: "#/components/schemas/marketplaceSubscription" + description: Create connection post request + Connection: + required: + - aSide + - bandwidth + - name + - type + - zSide + type: object + properties: + href: + type: string + description: Connection URI + format: uri + readOnly: true + type: + $ref: "#/components/schemas/ConnectionType" + uuid: + type: string + description: Equinix-assigned connection identifier + name: + type: string + description: Customer-provided connection name + description: + type: string + description: Customer-provided connection description + state: + $ref: "#/components/schemas/ConnectionState" + change: + $ref: "#/components/schemas/Change" + operation: + $ref: "#/components/schemas/ConnectionOperation" + order: + $ref: "#/components/schemas/Order" + notifications: + type: array + description: Preferences for notifications on connection configuration or status changes + items: + $ref: "#/components/schemas/SimplifiedNotification" + account: + $ref: "#/components/schemas/SimplifiedAccount" + changeLog: + $ref: "#/components/schemas/Changelog" + bandwidth: + maximum: 10000 + minimum: 0 + type: integer + description: Connection bandwidth in Mbps + geoScope: + $ref: "#/components/schemas/GeoScopeType" + redundancy: + $ref: "#/components/schemas/ConnectionRedundancy" + isRemote: + type: boolean + description: Connection property derived from access point locations + direction: + $ref: "#/components/schemas/ConnectionDirection" + aSide: + $ref: "#/components/schemas/ConnectionSide" + zSide: + $ref: "#/components/schemas/ConnectionSide" + marketplaceSubscription: + $ref: "#/components/schemas/marketplaceSubscription" + additionalInfo: + type: array + description: Connection additional information + items: + $ref: "#/components/schemas/ConnectionSideAdditionalInfo" + project: + $ref: "#/components/schemas/Project" + description: Connection specification + ErrorList: + type: array + description: List of Error Message + items: + $ref: "#/components/schemas/Error" ConnectionId: type: string description: Connection UUID @@ -7824,7 +9437,7 @@ components: $ref: "#/components/schemas/Actions" description: type: string - description: Connection rejection reason datail + description: Connection rejection reason detail data: $ref: "#/components/schemas/ConnectionAcceptanceData" description: Connection action request @@ -7854,6 +9467,108 @@ components: changeLog: $ref: "#/components/schemas/Changelog" description: Connection action + ConnectionRouteSearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/ConnectionRouteEntryFilters" + pagination: + $ref: "#/components/schemas/PaginationRequest" + sort: + type: array + items: + $ref: "#/components/schemas/ConnectionRouteSortCriteria" + description: Search requests containing criteria + ConnectionRouteEntryFilters: + type: object + properties: + and: + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/ConnectionRouteEntryFilter" + ConnectionRouteEntryFilter: + type: object + anyOf: + - $ref: "#/components/schemas/ConnectionRouteEntrySimpleExpression" + - $ref: "#/components/schemas/ConnectionRouteEntryOrFilter" + ConnectionRouteEntrySimpleExpression: + type: object + properties: + property: + type: string + description: | + Possible field names to use on filters: + * `/type` - Route table entry type + * `/state` - Route table entry state + * `/prefix` - Route table entry prefix + * `/nextHop` - Route table entry nextHop + * `/*` - all-category search + example: /type + operator: + type: string + description: | + Possible operators to use on filters: + * `=` - equal + * `!=` - not equal + * `>` - greater than + * `>=` - greater than or equal to + * `<` - less than + * `<=` - less than or equal to + * `[NOT] BETWEEN` - (not) between + * `[NOT] LIKE` - (not) like + * `[NOT] IN` - (not) in + * `~*` - case-insensitive like + example: = + values: + type: array + items: + type: string + example: IPv4_BGP_ROUTE + ConnectionRouteEntryOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/ConnectionRouteEntrySimpleExpression" + ConnectionRouteSortCriteria: + type: object + properties: + direction: + $ref: "#/components/schemas/ConnectionRouteEntrySortDirection" + property: + $ref: "#/components/schemas/ConnectionRouteEntrySortBy" + ConnectionRouteEntrySortDirection: + type: string + description: Sorting direction + default: DESC + enum: + - DESC + - ASC + ConnectionRouteEntrySortBy: + type: string + description: Possible field names to use on sorting + default: /changeLog/updatedDateTime + enum: + - /changeLog/createdDateTime + - /changeLog/updatedDateTime + - /med + - /connection/name + - /type + - /prefix + - /nextHop + ConnectionRouteTableEntrySearchResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + description: Data returned from the API call. + items: + $ref: "#/components/schemas/ConnectionRouteTableEntry" GetResponse: type: object properties: @@ -9017,8 +10732,6 @@ components: description: Service Token UUID format: uuid ServiceToken: - required: - - uuid type: object properties: type: @@ -9032,6 +10745,12 @@ components: type: string description: Equinix-assigned service token identifier format: uuid + issuerSide: + type: string + description: information about token side + enum: + - ASIDE + - ZSIDE name: type: string description: Customer-provided service token name @@ -9262,27 +10981,18 @@ components: $ref: "#/components/schemas/Port" description: GET All User Port Across Fabric Metros Port: - required: - - account - - connectivitySourceType - - encapsulation - - location - - physicalPortsSpeed - - physicalPortsType - - settings - - type type: object properties: - type: - $ref: "#/components/schemas/PortType" - id: - type: integer - description: Equinix assigned response attribute for Port Id href: type: string description: Equinix assigned response attribute for an absolute URL that is the subject of the link's context. format: uri readOnly: true + type: + $ref: "#/components/schemas/PortType" + id: + type: integer + description: Equinix assigned response attribute for Port Id uuid: type: string description: Equinix assigned response attribute for port identifier @@ -9330,18 +11040,17 @@ components: $ref: "#/components/schemas/PortState" order: $ref: "#/components/schemas/PortOrder" - cvpId: - type: string - description: Equinix assigned response attribute for Unique ID for a virtual port. operation: - $ref: "#/components/schemas/PortOperation" + allOf: + - $ref: "#/components/schemas/PortOperation" account: $ref: "#/components/schemas/SimplifiedAccount" - changelog: + changeLog: $ref: "#/components/schemas/Changelog" serviceType: type: string description: Port service Type + deprecated: true enum: - EPL - MSP @@ -9349,6 +11058,7 @@ components: minimum: 0 type: integer description: Equinix assigned response attribute for Port bandwidth in Mbps + deprecated: true availableBandwidth: minimum: 0 type: integer @@ -9379,10 +11089,13 @@ components: type: boolean description: If LAG enabled lag: - $ref: "#/components/schemas/PortLag" + allOf: + - $ref: "#/components/schemas/PortLag" asn: type: integer description: Port ASN + package: + $ref: "#/components/schemas/Package" settings: $ref: "#/components/schemas/PortSettings" physicalPortQuantity: @@ -9412,16 +11125,17 @@ components: PhysicalPort: type: object properties: - type: - $ref: "#/components/schemas/PhysicalPortType" - id: - type: integer - description: Equinix assigned response attribute for Physical Port Id href: type: string description: Equinix assigned response attribute for an absolute URL that is the subject of the link's context. format: uri readOnly: true + type: + $ref: "#/components/schemas/PhysicalPortType" + id: + type: integer + description: Equinix assigned response attribute for Physical Port Id + deprecated: true state: $ref: "#/components/schemas/PortState" account: @@ -9433,10 +11147,18 @@ components: interfaceType: type: string description: Physical Port Interface Type + uuid: + type: string + description: Equinix assigned response attribute for physical port identifier + format: uuid tether: $ref: "#/components/schemas/PortTether" demarcationPoint: $ref: "#/components/schemas/PortDemarcationPoint" + settings: + $ref: "#/components/schemas/PhysicalPortSettings" + interface: + $ref: "#/components/schemas/PortInterface" notifications: type: array description: Notification preferences @@ -9457,14 +11179,37 @@ components: items: $ref: "#/components/schemas/PortLoa" description: Physical Port specification + PortRequest: + required: + - account + - connectivitySourceType + - encapsulation + - location + - physicalPortsSpeed + - physicalPortsType + - settings + - type + type: object + description: PortRequest is the Request Object for creating single and bulk fabric ports + allOf: + - $ref: "#/components/schemas/Port" + BulkPortRequest: + type: object + properties: + data: + type: array + items: + $ref: "#/components/schemas/PortRequest" + description: Create bulk port request BulkPort: type: object properties: data: type: array + description: Ports that are part of BulkPort items: $ref: "#/components/schemas/Port" - description: Create bulk port request + description: Bulk Port specification BulkPhysicalPort: type: object properties: @@ -10030,7 +11775,7 @@ components: type: string description: Cloud Router action state enum: - - DONE + - SUCCEEDED - FAILED - PENDING CloudRouterActionResponse: @@ -10054,15 +11799,127 @@ components: $ref: "#/components/schemas/CloudRouterActionState" changeLog: $ref: "#/components/schemas/Changelog" + href: + type: string + example: https://api.equinix.com//fabric/v4/routers/a1c6b7fd-aead-410a-96b4-b1dfa1071700/actions/1e9414f1-763e-4c0a-86c6-0bc8336048d9 + connection: + $ref: "#/components/schemas/RouterActionsConnection" + operation: + $ref: "#/components/schemas/Operation" description: Cloud Router actions response object CloudRouterActionRequest: required: - type type: object properties: - type: - $ref: "#/components/schemas/CloudRouterActionType" - description: Cloud Router action request + type: + $ref: "#/components/schemas/CloudRouterActionType" + connection: + $ref: "#/components/schemas/RouterActionsConnection" + description: Cloud Router action request + CloudRouterActionsSearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/CloudRouterActionsSearchFilters" + pagination: + $ref: "#/components/schemas/PaginationRequest" + sort: + type: array + items: + $ref: "#/components/schemas/CloudRouterActionsSearchSortCriteria" + description: Search requests containing criteria + CloudRouterActionsSearchFilters: + type: object + properties: + and: + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/CloudRouterActionsSearchFilter" + CloudRouterActionsSearchFilter: + type: object + anyOf: + - $ref: "#/components/schemas/CloudRouterActionsSearchExpression" + - $ref: "#/components/schemas/CloudRouterActionsSearchOrFilter" + CloudRouterActionsSearchExpression: + type: object + properties: + property: + type: string + description: | + Possible field names to use on filters: + * `/type` - type of update + * `/state` - action state + * `/connection/uuid` - connection uuid associated + * `/*` - all-category search + example: /type + operator: + type: string + description: | + Possible operators to use on filters: + * `=` - equal + * `!=` - not equal + * `>` - greater than + * `>=` - greater than or equal to + * `<` - less than + * `<=` - less than or equal to + * `[NOT] BETWEEN` - (not) between + * `[NOT] LIKE` - (not) like + * `[NOT] IN` - (not) in + * `~*` - case-insensitive like + example: = + values: + type: array + items: + type: string + example: ROUTE_TABLE_ENTRY_UPDATE + CloudRouterActionsSearchOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/CloudRouterActionsSearchExpression" + CloudRouterActionsSearchSortCriteria: + type: object + properties: + direction: + $ref: "#/components/schemas/CloudRouterActionsSearchSortDirection" + property: + $ref: "#/components/schemas/CloudRouterActionsSearchSortBy" + CloudRouterActionsSearchSortDirection: + type: string + description: Sorting direction + default: DESC + enum: + - DESC + - ASC + CloudRouterActionsSearchSortBy: + type: string + description: Possible field names to use on sorting + default: /changeLog/updatedDateTime + enum: + - /changeLog/createdDateTime + - /changeLog/updatedDateTime + - /connection/name + - /type + CloudRouterActionsSearchResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + description: Data returned from the API call. + items: + $ref: "#/components/schemas/CloudRouterActionResponse" + ActionId_1: + type: string + description: Action UUID + format: uuid + example: 457400f8-d360-11e9-bb65-2a2ae2dbcced RouteTableEntrySearchRequest: type: object properties: @@ -10413,7 +12270,7 @@ components: type: array description: Connection response data items: - $ref: "#/components/schemas/Connection" + $ref: "#/components/schemas/ValidateConnectionResponse" description: ValidateResponse Pagination: required: @@ -10445,403 +12302,819 @@ components: NetworkPostRequest: required: - name - - notifications - - scope + - notifications + - scope + - type + type: object + properties: + type: + $ref: "#/components/schemas/NetworkType" + name: + type: string + description: Customer-provided network name + scope: + $ref: "#/components/schemas/NetworkScope" + location: + $ref: "#/components/schemas/SimplifiedLocation" + project: + $ref: "#/components/schemas/Project" + notifications: + type: array + description: Preferences for notifications on network configuration or status changes + items: + $ref: "#/components/schemas/SimplifiedNotification" + description: Create Network + Network: + type: object + description: Network specification + allOf: + - required: + - changeLog + - href + - state + - uuid + type: object + properties: + href: + type: string + description: Network URI + format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/networks/92dc376a-a932-43aa-a6a2-c806dedbd784 + uuid: + type: string + description: Equinix-assigned network identifier + format: uuid + example: 92dc376a-a932-43aa-a6a2-c806dedbd784 + state: + $ref: "#/components/schemas/NetworkState" + connectionsCount: + type: number + description: number of connections created on the network + account: + $ref: "#/components/schemas/SimplifiedAccount" + change: + $ref: "#/components/schemas/SimplifiedNetworkChange" + operation: + $ref: "#/components/schemas/NetworkOperation" + changeLog: + $ref: "#/components/schemas/Changelog" + links: + type: array + description: Network sub-resources links + readOnly: true + items: + $ref: "#/components/schemas/Link" + - $ref: "#/components/schemas/NetworkPostRequest" + NetworkId: + type: string + description: Network UUID + format: uuid + example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + NetworkUpdateRequest: + minItems: 1 + type: array + description: Fabric Network Update Request + items: + $ref: "#/components/schemas/NetworkChangeOperation" + NetworkSearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/NetworkFilter" + pagination: + $ref: "#/components/schemas/PaginationRequest" + sort: + type: array + items: + $ref: "#/components/schemas/NetworkSortCriteria" + description: Search requests containing criteria + NetworkFilter: + type: object + properties: + and: + $ref: "#/components/schemas/NetworkSimpleExpression" + or: + $ref: "#/components/schemas/NetworkSimpleExpression" + property: + $ref: "#/components/schemas/NetworkSearchFieldName" + operator: + type: string + example: = + enum: + - = + - "!=" + - ">" + - ">=" + - < + - <= + - BETWEEN + - NOT BETWEEN + - LIKE + - NOT LIKE + - ILIKE + - NOT ILIKE + - IN + - NOT IN + values: + type: array + items: + type: string + example: Network-1 + NetworkSimpleExpression: + type: array + items: + $ref: "#/components/schemas/NetworkFilter" + NetworkSearchFieldName: + type: string + description: Possible field names to use on filters + example: /name + enum: + - /name + - /uuid + - /scope + - /type + - /operation/equinixStatus + - /location/region + - /project/projectId + - /account/globalCustId + - /account/orgId + - /deletedDate + - /* + NetworkSortCriteria: + type: object + properties: + direction: + $ref: "#/components/schemas/NetworkSortDirection" + property: + $ref: "#/components/schemas/NetworkSortBy" + NetworkSortDirection: + type: string + description: Sorting direction + default: DESC + enum: + - DESC + - ASC + NetworkSortBy: + type: string + description: Possible field names to use on sorting + default: /changeLog/updatedDateTime + enum: + - /name + - /uuid + - /scope + - /operation/equinixStatus + - /location/region + - /changeLog/createdDateTime + - /changeLog/updatedDateTime + NetworkSearchResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + sort: + type: array + items: + $ref: "#/components/schemas/NetworkSortCriteriaResponse" + data: + type: array + items: + $ref: "#/components/schemas/Network" + description: List of networks + NetworkConnections: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + items: + $ref: "#/components/schemas/Connection" + description: List of network changes + NetworkChangeResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + items: + $ref: "#/components/schemas/NetworkChange" + description: List of network changes + ChangeId_3: + type: string + description: Network Change UUID + format: uuid + example: 6d500177-9404-41f2-99e8-2bf1a84d8db5 + NetworkChange: + type: object + properties: + href: + type: string + description: Network URI + format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 + uuid: + type: string + description: Uniquely identifies a change + format: uuid + example: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 + type: + $ref: "#/components/schemas/NetworkChangeType" + status: + $ref: "#/components/schemas/NetworkChangeStatus" + createdDateTime: + type: string + description: Set when change flow starts + format: date-time + example: 2020-11-06T07:00:00Z + updatedDateTime: + type: string + description: Set when change object is updated + format: date-time + example: 2020-11-06T07:00:00Z + data: + type: array + items: + $ref: "#/components/schemas/NetworkChangeOperation" + description: Current state of latest network change + precisionTimeServiceRequest: + title: precisionTimeServiceRequest + required: + - connections + - ipv4 + - name + - package - type type: object properties: type: - $ref: "#/components/schemas/NetworkType" + type: string + description: Precision Time Service Type refers to the corresponding Protocol. + enum: + - NTP + - PTP name: type: string - description: Customer-provided network name - scope: - $ref: "#/components/schemas/NetworkScope" - location: - $ref: "#/components/schemas/SimplifiedLocation" + description: Precision Time Service name. + package: + $ref: "#/components/schemas/precisionTimePackageRequest" + connections: + type: array + items: + $ref: "#/components/schemas/virtualConnectionUuid" + ipv4: + $ref: "#/components/schemas/ipv4" + ntpAdvancedConfiguration: + $ref: "#/components/schemas/ntpAdvanceConfiguration" + ptpAdvancedConfiguration: + $ref: "#/components/schemas/ptpAdvanceConfiguration" project: $ref: "#/components/schemas/Project" - notifications: + order: + $ref: "#/components/schemas/precisionTimeOrder" + description: Create Precision Time Service Request Schema. + precisionTimeServiceResponse: + title: precisionTimeServiceResponse + required: + - href + - package + - state + - type + - uuid + type: object + properties: + href: + type: string + description: Precision Time Service URI. + format: uri + type: + type: string + description: Precision Time Service type refers to the corresponding protocol. + enum: + - NTP + - PTP + name: + type: string + description: Precision Time Service Name. + uuid: + type: string + description: Precision Time Service UUID. + format: uuid + state: + type: string + description: Precision Time Service Status. + enum: + - CANCELLED + - CONFIGURING + - CONFIGURING_FAILED + - DRAFT + - DEPROVISIONING + - DEPROVISIONING_FAILED + - DEPROVISIONED + - PROVISIONED + - PROVISIONING + - PROVISIONING_FAILED + - REPROVISIONING + - REPROVISIONING_FAILED + package: + $ref: "#/components/schemas/precisionTimePackageResponse" + connections: + maxItems: 2 + minItems: 1 + uniqueItems: true type: array - description: Preferences for notifications on network configuration or status changes + description: Fabric Connections associated with Precision Time Service. items: - $ref: "#/components/schemas/SimplifiedNotification" - description: Create Network - Network: - type: object - description: Network specification - allOf: - - required: - - changeLog - - href - - state - - uuid - type: object - properties: - href: - type: string - description: Network URI - format: uri - readOnly: true - example: https://api.equinix.com/fabric/v4/networks/92dc376a-a932-43aa-a6a2-c806dedbd784 - uuid: - type: string - description: Equinix-assigned network identifier - format: uuid - example: 92dc376a-a932-43aa-a6a2-c806dedbd784 - state: - $ref: "#/components/schemas/NetworkState" - connectionsCount: - type: number - description: number of connections created on the network - account: - $ref: "#/components/schemas/SimplifiedAccount" - change: - $ref: "#/components/schemas/SimplifiedNetworkChange" - operation: - $ref: "#/components/schemas/NetworkOperation" - changeLog: - $ref: "#/components/schemas/Changelog" - links: - type: array - description: Network sub-resources links - readOnly: true - items: - $ref: "#/components/schemas/Link" - - $ref: "#/components/schemas/NetworkPostRequest" - NetworkId: + $ref: "#/components/schemas/virtualConnectionTimeServiceResponse" + ipv4: + $ref: "#/components/schemas/ipv4" + ntpAdvancedConfiguration: + $ref: "#/components/schemas/ntpAdvanceConfiguration" + ptpAdvancedConfiguration: + $ref: "#/components/schemas/ptpAdvanceConfiguration" + project: + $ref: "#/components/schemas/Project" + account: + $ref: "#/components/schemas/SimplifiedAccount" + order: + $ref: "#/components/schemas/precisionTimeOrder" + changeLog: + $ref: "#/components/schemas/Changelog" + description: Precision Time Service Response Schema. + ServiceId: type: string - description: Network UUID + description: Precision Time Service UUID format: uuid example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 - NetworkUpdateRequest: - minItems: 1 - type: array - description: Fabric Network Update Request - items: - $ref: "#/components/schemas/NetworkChangeOperation" - NetworkSearchRequest: + precisionTimeChangeOperation: + required: + - op + - path + - value + type: object + properties: + op: + type: string + description: Handy shortcut for operation name + enum: + - replace + - add + - remove + path: + type: string + description: path inside document leading to updated parameter + enum: + - /name + - /package/code + - /ipv4 + - /ntpAdvancedConfiguration + - /ptpAdvancedConfiguration + value: + type: object + description: new value for updated parameter + description: Fabric Precision Timing change operation data + TimeServicesSearchRequest: type: object properties: filter: - $ref: "#/components/schemas/NetworkFilter" + $ref: "#/components/schemas/TimeServiceFilters" pagination: $ref: "#/components/schemas/PaginationRequest" sort: type: array items: - $ref: "#/components/schemas/NetworkSortCriteria" + $ref: "#/components/schemas/TimeServiceSortCriteria" description: Search requests containing criteria - NetworkFilter: + TimeServiceFilters: type: object properties: and: - $ref: "#/components/schemas/NetworkSimpleExpression" - or: - $ref: "#/components/schemas/NetworkSimpleExpression" + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/TimeServiceFilter" + TimeServiceFilter: + type: object + anyOf: + - $ref: "#/components/schemas/TimeServiceSimpleExpression" + - $ref: "#/components/schemas/TimeServiceOrFilter" + TimeServiceSimpleExpression: + type: object + properties: property: - $ref: "#/components/schemas/NetworkSearchFieldName" + type: string + description: | + Possible field names to use on filters: + * `/project/projectId` - project id (mandatory) + * `/name` - Precision Time Service name + * `/uuid` - Precision Time Service uuid + * `/type` - Precision Time Service protocol + * `/state` - Precision Time Service status + * `/account/accountNumber` - Precision Time Service account number + * `/package/code` - Precision Time Service package + * `/*` - all-category search + example: /name operator: type: string - example: = - enum: - - = - - "!=" - - ">" - - ">=" - - < - - <= - - BETWEEN - - NOT BETWEEN - - LIKE - - NOT LIKE - - ILIKE - - NOT ILIKE - - IN - - NOT IN - values: - type: array - items: - type: string - example: Network-1 - NetworkSimpleExpression: - type: array - items: - $ref: "#/components/schemas/NetworkFilter" - NetworkSearchFieldName: - type: string - description: Possible field names to use on filters - example: /name - enum: - - /name - - /uuid - - /scope - - /type - - /operation/equinixStatus - - /location/region - - /project/projectId - - /account/globalCustId - - /account/orgId - - /deletedDate - - /* - NetworkSortCriteria: + description: | + Possible operators to use on filters: + * `=` - equal + * `!=` - not equal + * `[NOT] BETWEEN` - (not) between + * `[NOT] LIKE` - (not) like + * `[NOT] IN` - (not) in + * `ILIKE` - case-insensitive like + example: = + values: + type: array + items: + type: string + example: FabricPrecisionTimeService-1 + TimeServiceOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/TimeServiceSimpleExpression" + TimeServiceSortCriteria: type: object properties: direction: - $ref: "#/components/schemas/NetworkSortDirection" + $ref: "#/components/schemas/TimeServiceSortDirection" property: - $ref: "#/components/schemas/NetworkSortBy" - NetworkSortDirection: + $ref: "#/components/schemas/TimeServiceSortBy" + TimeServiceSortDirection: type: string description: Sorting direction default: DESC enum: - DESC - ASC - NetworkSortBy: + TimeServiceSortBy: type: string description: Possible field names to use on sorting default: /changeLog/updatedDateTime enum: - /name - /uuid - - /scope - - /operation/equinixStatus - - /location/region + - /state + - /type + - /package/code - /changeLog/createdDateTime - /changeLog/updatedDateTime - NetworkSearchResponse: + ServiceSearchResponse: type: object properties: pagination: $ref: "#/components/schemas/Pagination" - sort: - type: array - items: - $ref: "#/components/schemas/NetworkSortCriteriaResponse" data: type: array + description: Data returned from the API call. items: - $ref: "#/components/schemas/Network" - description: List of networks - NetworkConnections: + $ref: "#/components/schemas/precisionTimeServiceResponse" + precisionTimeServiceConnectionsResponse: + title: precisionTimeServiceConnectionResponse type: object properties: pagination: $ref: "#/components/schemas/Pagination" data: type: array + description: Data returned from the API call items: - $ref: "#/components/schemas/Connection" - description: List of network changes - NetworkChangeResponse: + $ref: "#/components/schemas/connectionLink" + description: EPT service instance's L2 connections + precisionTimeServicePackagesResponse: + title: precisionTimeServicePackagesResponse type: object properties: pagination: $ref: "#/components/schemas/Pagination" data: type: array + description: Data returned from the API call items: - $ref: "#/components/schemas/NetworkChange" - description: List of network changes - ChangeId_3: - type: string - description: Network Change UUID - format: uuid - example: 6d500177-9404-41f2-99e8-2bf1a84d8db5 - NetworkChange: + $ref: "#/components/schemas/precisionTimePackageResponse" + description: Precision Packages + precisionTimePackageResponse: + title: precisionTimePackageRespose + required: + - bandwidth + - code + - type type: object properties: href: type: string - description: Network URI format: uri - readOnly: true - example: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 - uuid: - type: string - description: Uniquely identifies a change - format: uuid - example: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 type: - $ref: "#/components/schemas/NetworkChangeType" - status: - $ref: "#/components/schemas/NetworkChangeStatus" - createdDateTime: type: string - description: Set when change flow starts - format: date-time - example: 2020-11-06T07:00:00Z - updatedDateTime: + enum: + - TIME_SERVICE_PACKAGE + code: type: string - description: Set when change object is updated - format: date-time - example: 2020-11-06T07:00:00Z - data: - type: array - items: - $ref: "#/components/schemas/NetworkChangeOperation" - description: Current state of latest network change - ServiceId: + enum: + - NTP_STANDARD + - NTP_ENTERPRISE + - PTP_STANDARD + - PTP_ENTERPRISE + bandwidth: + type: integer + description: Connection bandwidth in Mbps. + example: 10 + clientsPerSecondMax: + minimum: 0 + type: integer + description: Max. number of clients that can be synchronized per second at a packet rate of 1 per second. + example: 100 + redundancySupported: + type: boolean + description: Is Redundant virtual connection supported for the package code. + example: false + multiSubnetSupported: + type: boolean + description: Is Multiple subnet supported for the package code. + example: true + accuracySlaUnit: + type: string + description: Accuracy SLA unit. + example: microseconds + accuracySla: + type: integer + description: Accuracy SLA for the package code, -1 value denotes the accuracySla is not published. + example: 50 + accuracySlaMin: + minimum: 1 + type: integer + description: Typical minimum Accuracy for the package code. + example: 1 + accuracySlaMax: + minimum: 1 + type: integer + description: Typical maximum Accuracy for the package code. + example: 10 + changelog: + $ref: "#/components/schemas/Changelog" + description: EPT Service Package Information + example: + href: https://api.equinix.com/fabric/v4/timeServicePackage/NTP_STANDARD + type: TIME_SERVICE_PACKAGE + code: NTP_STANDARD + bandwidth: 10 + accuracySlaUnit: microseconds + accuracySla: 50 + accuracySlaMin: 1 + accuracySlaMax: 10 + clientsPerSecondMax: 100 + redundancySupported: true + multiSubnetSupported: true + changeLog: + createdDateTime: 2023-05-16T07:50:49.749Z + updatedDateTime: 2023-05-17T07:50:49.749Z + SubscriptionId: type: string - description: Precision Time Service UUID + description: Subscription Id format: uuid example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 - precisionTimeServiceCreateResponse: - title: precisionTimeServiceResponse + SubscriptionResponse: required: - - href - - ipv4 - - package + - entitlements + - marketplace - state - - type - - uuid type: object properties: - type: - type: string - enum: - - NTP - - PTP href: type: string + description: Subscription URL format: uri uuid: type: string - description: uuid of the ept service + description: Unique identifier of the Subscription format: uuid - name: - type: string - description: name of the ept service - description: - type: string state: + $ref: "#/components/schemas/SubscriptionState" + marketplace: type: string - description: indicate service state + description: Marketplace Type enum: - - PROVISIONED - - PROVISIONING - - PROVISIONING_FAILED - - CONFIGURING - - CANCELLED - - DEPROVISIONING_FAILED - - PENDING_CONFIGURATION - - DEPROVISIONED - - CONFIGURING_FAILED - - DEPROVISIONING + - AWS + - GCP + - AZURE + - REDHAT + offerType: + type: string + description: Marketplace Offer Type + enum: + - PUBLIC + - PRIVATE_OFFER + isAutoRenew: + type: boolean + description: Is Auto Renewal Enabled + example: true + offerId: + type: string + description: Marketplace Offer Id + trial: + $ref: "#/components/schemas/SubscriptionTrial" + subscriptionKey: + type: string + description: Subscription Key + entitlements: + type: array + description: List of entitlements associated with the subscription + items: + $ref: "#/components/schemas/SubscriptionEntitlementResponse" + changelog: + $ref: "#/components/schemas/Changelog" + description: Subscription Response + x-preview: false + SubscriptionState: + type: string + description: Subscription State + enum: + - ACTIVE + - EXPIRED + - CANCELLED + - GRACE_PERIOD + SubscriptionTrial: + type: object + properties: + enabled: + type: boolean + description: Free Trial Enabled + expiryDateTime: + type: string + description: Free Trial Expiry Date + format: date-time + description: Free Trial Subscription + SubscriptionEntitlementResponse: + type: object + properties: + uuid: + type: string + description: Subscription Entitlement Id + format: uuid + quantityEntitled: + minimum: 0 + type: integer + description: Quantity entitled for the subscription + quantityConsumed: + minimum: 0 + type: integer + description: Quantity consumed from the entitlement + quantityAvailable: + minimum: 0 + type: integer + description: Quantity available from the entitlement + asset: + $ref: "#/components/schemas/SubscriptionAsset" + description: Subscription entitlement + SubscriptionAsset: + type: object + properties: + type: + type: string + description: Type of the subscription asset ( XF_ROUTER ,IP_VC, IPWAN_VC ) package: - $ref: "#/components/schemas/precisionTimePackageResponse" - connections: - maxItems: 2 - minItems: 1 - uniqueItems: true + $ref: "#/components/schemas/SubscriptionRouterPackageType" + bandwidth: + type: integer + description: Bandwidth of the asset in Mbps + description: Asset information + SubscriptionRouterPackageType: + type: object + properties: + code: + type: string + description: Cloud Router package code + enum: + - ADVANCED + - STANDARD + description: Cloud Router Package Type + GetAllStreamResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: type: array - description: fabric l2 connections used for the ept service + description: Data returned from the API call. items: - $ref: "#/components/schemas/fabricConnectionUuid" - ipv4: - $ref: "#/components/schemas/ipv4" - account: - $ref: "#/components/schemas/account" - advanceConfiguration: - $ref: "#/components/schemas/advanceConfiguration" - project: - $ref: "#/components/schemas/Project" - description: EPT service instance - precisionTimeChangeOperation: - required: - - op - - path - - value + $ref: "#/components/schemas/Stream" + StreamPostRequest: type: object properties: - op: + type: type: string - description: Handy shortcut for operation name enum: - - replace - path: + - TELEMETRY_STREAM + name: type: string - description: path inside document leading to updated parameter - enum: - - /name - - /package/code - value: - type: object - description: new value for updated parameter - description: Fabric Precision Timing change operation data - precisionTimeServiceRequest: - title: precisionTimeServiceRequest - required: - - connections - - ipv4 - - name - - package - - type + description: Customer-provided stream name + description: + type: string + description: Customer-provided stream description + project: + $ref: "#/components/schemas/Project" + enabled: + type: boolean + description: Stream enabled status + example: true + description: Create Stream + Stream: type: object properties: - type: + href: + type: string + description: Stream URI + format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/streams/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + uuid: + type: string + description: Equinix-assigned access point identifier + format: uuid + example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + state: type: string - description: Indicate the entity is EPT service + description: Stream provision state enum: - - NTP - - PTP + - PROVISIONING + - PROVISIONED + - DEPROVISIONING + - DEPROVISIONED + - FAILED + assetsCount: + type: integer + description: Stream assets count + example: 1 + streamSubscriptionsCount: + type: integer + description: Stream subscriptions count + example: 2 + changelog: + $ref: "#/components/schemas/Changelog" + description: Stream object + allOf: + - $ref: "#/components/schemas/StreamPostRequest" + StreamId: + type: string + description: Stream UUID + format: uuid + example: 657400f8-d360-11e9-bb65-2a2ae2dbcce5 + StreamPutRequest: + type: object + properties: name: type: string + description: Customer-provided stream name description: type: string - package: - $ref: "#/components/schemas/precisionTimePackageRequest" - connections: - type: array - items: - $ref: "#/components/schemas/fabricConnectionUuid" - ipv4: - $ref: "#/components/schemas/ipv4" - advanceConfiguration: - $ref: "#/components/schemas/advanceConfiguration" - project: - $ref: "#/components/schemas/Project" - description: EPT service instance - TimeServicesSearchRequest: + description: Customer-provided stream description + enabled: + type: boolean + description: stream state + example: true + description: Update Stream + StreamAssetSearchRequest: type: object properties: filter: - $ref: "#/components/schemas/TimeServiceFilters" + $ref: "#/components/schemas/StreamAssetFilters" pagination: $ref: "#/components/schemas/PaginationRequest" sort: type: array items: - $ref: "#/components/schemas/TimeServiceSortCriteria" + $ref: "#/components/schemas/StreamAssetSortCriteria" description: Search requests containing criteria - TimeServiceFilters: + StreamAssetFilters: type: object properties: and: maxItems: 8 type: array items: - $ref: "#/components/schemas/TimeServiceFilter" - TimeServiceFilter: + $ref: "#/components/schemas/StreamAssetFilter" + StreamAssetFilter: type: object anyOf: - - $ref: "#/components/schemas/TimeServiceSimpleExpression" - - $ref: "#/components/schemas/TimeServiceOrFilter" - TimeServiceSimpleExpression: + - $ref: "#/components/schemas/StreamAssetSimpleExpression" + - $ref: "#/components/schemas/StreamAssetOrFilter" + StreamAssetSimpleExpression: type: object properties: property: type: string description: | Possible field names to use on filters: - * `/project/projectId` - project id (mandatory) - * `/name` - Precision Time Service name - * `/uuid` - Precision Time Service uuid - * `/type` - Precision Time Service protocol - * `/state` - Precision Time Service status - * `/account/accountNumber` - Precision Time Service account number - * `/package/code` - Precision Time Service package + * `/uuid` - Asset uuid + * `/streamUuid` - Stream uuid + * `/projectId` - Asset projectId * `/*` - all-category search example: /name operator: @@ -10850,6 +13123,10 @@ components: Possible operators to use on filters: * `=` - equal * `!=` - not equal + * `>` - greater than + * `>=` - greater than or equal to + * `<` - less than + * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in @@ -10859,42 +13136,36 @@ components: type: array items: type: string - example: FabricPrecisionTimeService-1 - TimeServiceOrFilter: + example: FabricStreamAsset-1 + StreamAssetOrFilter: type: object properties: or: maxItems: 3 type: array items: - $ref: "#/components/schemas/TimeServiceSimpleExpression" - TimeServiceSortCriteria: + $ref: "#/components/schemas/StreamAssetSimpleExpression" + StreamAssetSortCriteria: type: object properties: direction: - $ref: "#/components/schemas/TimeServiceSortDirection" + $ref: "#/components/schemas/StreamAssetSortDirection" property: - $ref: "#/components/schemas/TimeServiceSortBy" - TimeServiceSortDirection: + $ref: "#/components/schemas/StreamAssetSortBy" + StreamAssetSortDirection: type: string description: Sorting direction default: DESC enum: - DESC - ASC - TimeServiceSortBy: + StreamAssetSortBy: type: string description: Possible field names to use on sorting - default: /changeLog/updatedDateTime + default: /uuid enum: - - /name - /uuid - - /state - - /type - - /package/code - - /changeLog/createdDateTime - - /changeLog/updatedDateTime - ServiceSearchResponse: + GetAllStreamAssetResponse: type: object properties: pagination: @@ -10903,198 +13174,284 @@ components: type: array description: Data returned from the API call. items: - $ref: "#/components/schemas/precisionTimeServiceResponse" - precisionTimeServiceConnectionsResponse: - title: precisionTimeServiceConnectionResponse + $ref: "#/components/schemas/StreamAsset" + AssetId: + type: string + description: Stream Asset UUID + format: uuid + example: 757400f8-d360-11e9-bb65-2a2ae2dbcce6 + Asset: + type: string + enum: + - ports + - connections + - routers + - metros + StreamAsset: + type: object + properties: + href: + type: string + description: Stream Asset URI + format: uri + readOnly: true + uuid: + type: string + description: Equinix-assigned access point identifier + format: uuid + example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + metricsEnabled: + type: boolean + description: enable metric + example: false + attachmentStatus: + type: string + description: asset status + enum: + - ATTACHING + - ATTACHED + - DETACHED + - DETACHING + - FAILED + description: Stream object + StreamAssetPutRequest: + type: object + properties: + metricsEnabled: + type: boolean + 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 + description: Data returned from the API call. items: - $ref: "#/components/schemas/connectionLink" - description: EPT service instance's L2 connections - precisionTimeServicePackagesResponse: - title: precisionTimeServicePackagesResponse + $ref: "#/components/schemas/StreamGetSubscriptions" + GetAllStreamSubscriptionResponse: type: object properties: pagination: $ref: "#/components/schemas/Pagination" data: type: array - description: Data returned from the API call + description: Data returned from the API call. items: - $ref: "#/components/schemas/precisionTimePackageResponse" - description: Precision Packages - precisionTimePackageResponse: - title: precisionTimePackageRespose - required: - - code + $ref: "#/components/schemas/StreamSubscription" + StreamSubscriptionPostRequest: type: object properties: - href: - type: string - format: uri - code: - type: string - enum: - - NTP_STANDARD - - NTP_ENTERPRISE - - PTP_STANDARD - - PTP_ENTERPRISE type: type: string enum: - - TIME_SERVICE_PACKAGE - bandwidth: - type: integer - example: 10 - clientsPerSecondMax: - type: integer - example: 100 - redundancySupported: - type: boolean - example: true - multiSubnetSupported: + - STREAM_SUBSCRIPTION + name: + type: string + description: Customer-provided stream subscription name + description: + type: string + description: Customer-provided stream subscription description + project: + $ref: "#/components/schemas/Project" + enabled: type: boolean + description: Stream subscription enabled status example: true - accuracyUnit: - type: string - example: microseconds - accuracySla: - type: integer - example: 50 - accuracyAvgMin: - type: integer - example: 1 - accuracyAvgMax: - type: integer - example: 10 - changelog: - $ref: "#/components/schemas/Changelog" - description: EPT Service Package Information - example: - href: https://api.equinix.com/fabric/v4/timeServicePackage/NTP_STANDARD - code: NTP_STANDARD - type: TIME_SERVICE_PACKAGE - bandwidth: 10 - accuracyUnit: microseconds - accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 - clientsPerSecondMax: 100 - redundancySupported: true - multiSubnetSupported: true - changeLog: - createdDateTime: 2023-05-16T07:50:49.749Z - updatedDateTime: 2023-05-17T07:50:49.749Z - SubscriptionId: - type: string - description: Subscription Id - format: uuid - example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 - SubscriptionResponse: + stream: + $ref: "#/components/schemas/StreamTarget" + filters: + $ref: "#/components/schemas/StreamSubscriptionFilter" + sink: + $ref: "#/components/schemas/StreamSubscriptionSink" + description: Create Stream Subscription + StreamSubscriptionFilter: type: object properties: - href: + and: + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/StreamFilter" + StreamFilter: + type: object + anyOf: + - $ref: "#/components/schemas/StreamFilterSimpleExpression" + - $ref: "#/components/schemas/StreamFilterOrFilter" + StreamFilterSimpleExpression: + type: object + properties: + property: type: string - format: uri - uuid: + description: | + Possible field names to use on filters: + * `/subject` - subject + * `/type` - type + example: /equinixproject + operator: + type: string + description: | + Possible operators to use on filters: + * `=` - equal + * `in` - in + * `LIKE` - case-sensitive like + * `ILIKE` - case-insensitive like + example: = + values: + type: array + items: + type: string + StreamFilterOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/StreamFilterSimpleExpression" + StreamSubscriptionSink: + type: object + properties: + uri: type: string - format: uuid - status: - $ref: "#/components/schemas/SubscriptionStatus" - marketplace: + description: any publicly reachable http endpoint + type: type: string + description: destination type enum: - - AWS - - GCP - - AZURE - - REDHAT - offerType: + - DATADOG + - PAGERDUTY + - SPLUNK_HEC + - SLACK + - TEAMS + - CUSTOM + batchEnabled: + type: boolean + description: batch mode on/off + example: false + batchSizeMax: + type: integer + description: maximum batch size + batchWaitTimeMax: + type: integer + description: maximum batch waiting time + credential: + $ref: "#/components/schemas/StreamSubscriptionSinkCredential" + settings: + $ref: "#/components/schemas/StreamSubscriptionSinkSetting" + description: Create Stream destination + StreamSubscriptionSinkCredential: + type: object + properties: + type: type: string + description: credential type enum: - - PUBLIC - - PRIVATE_OFFER - isAutoRenew: - type: boolean - example: true - offerId: + - ACCESS_TOKEN + - INTEGRATION_KEY + - API_KEY + accessToken: type: string - trial: - $ref: "#/components/schemas/SubscriptionTrial" - subscriptionKey: + description: passed as Authorization header value + integrationKey: type: string - entitlements: - type: array - items: - $ref: "#/components/schemas/SubscriptionEntitlementResponse" - changelog: - $ref: "#/components/schemas/Changelog" - description: Subscription - x-preview: false - SubscriptionStatus: - type: string - enum: - - ACTIVE - - EXPIRED - - CANCELLED - - GRACE_PERIOD - SubscriptionTrial: + description: passed as Authorization header value + apiKey: + type: string + description: passed as Authorization header value + description: Stream subscription sink credentials + StreamSubscriptionSinkSetting: type: object properties: - enabled: - type: boolean - expiryDateTime: + eventIndex: type: string - format: date-time - description: Trial - SubscriptionEntitlementResponse: + description: event index + metricIndex: + type: string + description: metric index + source: + type: string + description: source + applicationKey: + type: string + description: Application key + description: Stream subscription sink settings + StreamSubscription: type: object properties: + href: + type: string + description: Stream Subscription URI + format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/streamSubscription/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 uuid: type: string - description: Subscription Entitlement Id + description: Equinix-assigned access point identifier format: uuid - quantityEntitled: - minimum: 0 - type: integer - quantityConsumed: - minimum: 0 - type: integer - quantityAvailable: - minimum: 0 - type: integer - asset: - $ref: "#/components/schemas/SubscriptionAsset" - description: Subscription entitlement - SubscriptionAsset: - type: object - properties: + example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 type: - $ref: "#/components/schemas/SubscriptionAssetType" - package: - $ref: "#/components/schemas/SubscriptionRouterPackageType" - bandwidth: - type: integer - description: Asset information - SubscriptionAssetType: + type: string + description: type + enum: + - STREAM_SUBSCRIPTION + name: + type: string + description: Customer-provided subscription name + description: + type: string + description: Customer-provided subscription description + project: + $ref: "#/components/schemas/Project" + state: + type: string + description: Steam subscription provision state + enum: + - PROVISIONING + - PROVISIONED + - DEPROVISIONING + - DEPROVISIONED + - FAILED + enabled: + type: boolean + description: Stream subscription enabled status + stream: + $ref: "#/components/schemas/StreamTarget" + filters: + $ref: "#/components/schemas/StreamSubscriptionFilter" + sink: + $ref: "#/components/schemas/StreamSubscriptionSink" + changelog: + $ref: "#/components/schemas/Changelog" + description: Stream Subscription object + StreamSubscriptionId: type: string - enum: - - XF_ROUTER - - IP_VC - SubscriptionRouterPackageType: + description: Stream Subscription UUID + format: uuid + example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + StreamSubscriptionPutRequest: type: object properties: - code: + name: type: string - description: Cloud Router package code - enum: - - ADVANCED - - STANDARD - description: Cloud Router Package Type + description: Customer-provided stream subscription name + description: + type: string + description: Customer-provided stream subscription description + stream: + $ref: "#/components/schemas/StreamTarget" + enabled: + type: boolean + description: Stream subscription enabled status + example: true + filters: + $ref: "#/components/schemas/StreamSubscriptionFilter" + sink: + $ref: "#/components/schemas/StreamSubscriptionSink" + description: Update Stream Subscription ConnectionType: type: string description: Connection type @@ -11470,6 +13827,61 @@ components: description: Authorization key bandwidth in Mbps readOnly: true description: Connection acceptance data + PaginationRequest: + type: object + properties: + offset: + minimum: 0 + type: integer + description: Index of the first element. + default: 0 + limit: + minimum: 1 + type: integer + description: Number of elements to be requested per page. Number must be between 1 and 100, and the default is 20. + default: 20 + description: Pagination request information + ConnectionRouteTableEntry: + required: + - changeLog + - state + - type + type: object + properties: + type: + $ref: "#/components/schemas/RouteTableEntryType" + protocolType: + $ref: "#/components/schemas/RouteTableEntryProtocolType" + state: + type: string + example: ACTIVE + enum: + - ACTIVE + - INACTIVE + age: + type: string + example: PT5M30S + prefix: + type: string + example: 192.168.10.0/24 + nextHop: + type: string + example: 10.10.10.5 + MED: + type: integer + example: 5 + localPreference: + type: integer + example: 200 + asPath: + type: array + items: + type: string + connection: + $ref: "#/components/schemas/ConnectionRouteTableEntry_connection" + changeLog: + $ref: "#/components/schemas/Changelog" + description: Adv/Rec Route table entry object BGPConnectionIpv4: required: - customerPeerIp @@ -11494,14 +13906,19 @@ components: example: 3 inboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Inbound Multi Exit Discriminator attribute format: int64 example: 1000 outboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Outbound Multi Exit Discriminator attribute format: int64 example: 2000 + routesMax: + type: integer + description: Maximum learnt prefixes limit + format: int64 + example: 1000 operation: $ref: "#/components/schemas/BGPConnectionOperation" BGPConnectionIpv6: @@ -11528,14 +13945,19 @@ components: example: 3 inboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Inbound Multi Exit Discriminator attribute format: int64 example: 1000 outboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Outbound Multi Exit Discriminator attribute format: int64 example: 2000 + routesMax: + type: integer + description: Maximum learnt prefixes limit + format: int64 + example: 1000 operation: $ref: "#/components/schemas/BGPConnectionOperation" RoutingProtocolBFD: @@ -11722,20 +14144,6 @@ components: value: $ref: "#/components/schemas/RoutingProtocolBase" description: Routing Protocol change operation data - PaginationRequest: - type: object - properties: - offset: - minimum: 0 - type: integer - description: Index of the first element. - default: 0 - limit: - minimum: 1 - type: integer - description: Number of elements to be requested per page. Number must be between 1 and 100, and the default is 20. - default: 20 - description: Pagination request information SortDirection: type: string description: Sorting direction @@ -11855,6 +14263,7 @@ components: ibx: type: string example: AM1 + deprecated: true ServiceProfileStateEnum: type: string description: Equinix assigned state. @@ -11869,6 +14278,7 @@ components: description: Type of Service Token enum: - VC_TOKEN + - EPL_TOKEN ServiceTokenConnection: required: - type @@ -11879,6 +14289,9 @@ components: description: Type of Connection enum: - EVPL_VC + - EVPLAN_VC + - EPLAN_VC + - IPWAN_VC href: type: string description: An absolute URL that is the subject of the link's context. @@ -11892,6 +14305,10 @@ components: type: boolean description: Authorization to connect remotely default: false + allowCustomBandwidth: + type: boolean + description: Allow custom bandwidth value + default: false bandwidthLimit: maximum: 100000 minimum: 0 @@ -11980,7 +14397,7 @@ components: description: Order Reference Number uuid: type: string - description: Equinix-assigned order identifier + description: Equinix-assigned order identifier, this is a derived response atrribute format: uuid signature: $ref: "#/components/schemas/PortOrder_signature" @@ -11993,9 +14410,23 @@ components: enum: - UP - DOWN + - PARTIAL connectionCount: type: integer description: Total number of connections. + format: int64 + evplVCCount: + type: integer + description: Total number of connections. + format: int64 + fgVCCount: + type: integer + description: Total number of connections. + format: int64 + accessVCCount: + type: integer + description: Total number of connections. + format: int64 opStatusChangedAt: type: string description: Date and time at which port availability changed. @@ -12017,12 +14448,6 @@ components: type: type: string description: Port interface type - ifIndex: - type: string - description: Port interface index - name: - type: string - description: Port interface name description: Port interface PortDemarcationPoint: type: object @@ -12062,6 +14487,7 @@ components: group: type: string description: Port UUID of respective primary port + deprecated: true priority: $ref: "#/components/schemas/PortPriority" description: Port redundancy configuration @@ -12089,6 +14515,7 @@ components: enabled: type: boolean description: enabled + deprecated: true name: type: string description: name @@ -12096,22 +14523,38 @@ components: type: string description: member status description: Port Lag - PortSettings: + Package: type: object properties: - product: + code: + type: string + description: Type of Port Package + enum: + - STANDARD + - UNLIMITED + - UNLIMITED_PLUS + type: type: string - description: Product name + description: Port service Type + enum: + - EPL + - MSP + description: Package settings for port + PortSettings: + type: object + properties: buyout: type: boolean + deprecated: true viewPortPermission: type: boolean + deprecated: true placeVcOrderPermission: type: boolean + deprecated: true layer3Enabled: type: boolean - productCode: - type: string + deprecated: true sharedPortType: type: boolean sharedPortProduct: @@ -12124,11 +14567,11 @@ components: packageType: type: string description: Type of Port Package + deprecated: true enum: - STANDARD - - UNTAGGED - UNLIMITED - - UNLIMITED PLUS + - UNLIMITED_PLUS description: Port configuration settings PortNotification: required: @@ -12206,6 +14649,15 @@ components: type: string description: z-side/Equinix IBX description: Port physical connection + PhysicalPortSettings: + type: object + properties: + errorMessage: + type: string + packageType: + type: string + deprecated: true + description: Physical Port configuration settings LinkProtocolResponse: type: object properties: @@ -12488,7 +14940,7 @@ components: - PROVISIONING - DEPROVISIONING - DEPROVISIONED - - LOCKED + - REPROVISIONING - NOT_PROVISIONED - NOT_DEPROVISIONED CloudRouterChange: @@ -12556,6 +15008,28 @@ components: enum: - BGP_SESSION_STATUS_UPDATE - ROUTE_TABLE_ENTRY_UPDATE + - RECEIVED_ROUTE_ENTRY_UPDATE + - ADVERTISED_ROUTE_ENTRY_UPDATE + RouterActionsConnection: + type: object + properties: + uuid: + type: string + description: Connection UUID + example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + description: Connection object for router actions + Operation: + type: object + properties: + bgpIpv4RoutesCount: + type: integer + description: IPV4 Route Count + example: 6 + bgpIpv6RoutesCount: + type: integer + description: IPV6 Route Count + example: 6 + description: Operation object for router actions RouteTableEntry: required: - changeLog @@ -12578,7 +15052,7 @@ components: nextHop: type: string example: 10.10.10.5 - metric: + MED: type: integer example: 5 localPreference: @@ -12587,9 +15061,9 @@ components: asPath: type: array items: - type: integer + type: string connection: - $ref: "#/components/schemas/RouteTableEntry_connection" + $ref: "#/components/schemas/ConnectionRouteTableEntry_connection" changeLog: $ref: "#/components/schemas/Changelog" description: Route table entry object @@ -12627,6 +15101,24 @@ components: type: string description: service status change date description: Available services details + ValidateConnectionResponse: + type: object + properties: + uuid: + type: string + description: Equinix-assigned connection identifier + bandwidth: + maximum: 50000 + minimum: 0 + type: integer + description: Connection bandwidth in Mbps + redundancy: + $ref: "#/components/schemas/ConnectionRedundancy" + aSide: + $ref: "#/components/schemas/ConnectionSide" + zSide: + $ref: "#/components/schemas/ConnectionSide" + description: Validate Connection specification NetworkType: type: string description: Network type @@ -12738,40 +15230,67 @@ components: - REJECTED - REQUESTED - SUBMITTED_FOR_APPROVAL - fabricConnectionUuid: + precisionTimePackageRequest: + title: precisionTimePackageRequest + required: + - code + type: object + properties: + code: + type: string + description: Precision Time Service Level + enum: + - NTP_STANDARD + - NTP_ENTERPRISE + - PTP_STANDARD + - PTP_ENTERPRISE + description: Precision Time Service Level Request + example: + code: NTP_STANDARD + virtualConnectionUuid: title: fabricConnectionUuid required: - uuid type: object properties: - uuid: - type: string - description: uuid of the Fabric L2 connection - format: uuid href: type: string - description: the href for the L2 connection + description: Connection URI format: uri + readOnly: true type: type: string + description: Connection Type + uuid: + type: string + description: Connection UUID. + format: uuid description: UUID of the Fabric Connection Instance example: uuid: 095be615-a8ad-4c33-8e9c-c7612fbf6c9f ipv4: title: ipv4 + required: + - networkMask + - primary + - secondary type: object properties: primary: type: string + description: Primary Timing Server IP Address format: ipv4 secondary: type: string + description: Secondary Timing Server IP Address format: ipv4 networkMask: type: string + description: Network Mask format: ipv4 defaultGateway: type: string + description: Gateway Interface IP address format: ipv4 description: EPT service network information example: @@ -12779,113 +15298,125 @@ components: secondary: 10.0.0.2 networkMask: 255.255.255.240 defaultGateway: 10.0.0.3 - account: - required: - - accountNumber + ntpAdvanceConfiguration: + type: array + description: NTP Advanced configuration - MD5 Authentication. + items: + $ref: "#/components/schemas/md5" + ptpAdvanceConfiguration: type: object properties: - accountNumber: - type: integer - isResellerAccount: - type: boolean - orgId: + timeScale: type: string - globalOrgId: + description: Time Scale value, ARB denotes Arbitrary and PTP denotes Precision Time Protocol. + example: ARB + enum: + - ARB + - PTP + domain: + maximum: 127 + minimum: 0 + type: integer + description: The PTP domain value. + example: 0 + priority1: + maximum: 248 + minimum: 0 + type: integer + description: The priority1 value determines the best primary clock, Lower value indicates higher priority. + example: 128 + priority2: + maximum: 248 + minimum: 0 + type: integer + description: The priority2 value differentiates and prioritizes the primary clock to avoid confusion when priority1-value is the same for different primary clocks in a network. + example: 128 + logAnnounceInterval: + type: integer + description: Logarithmic value that controls the rate of PTP Announce packets from the PTP time server. Default is 1 (1 packet every 2 seconds), Unit packets/second. + example: 1 + enum: + - -3 + - -2 + - -1 + - 0 + - 1 + logSyncInterval: + type: integer + description: Logarithmic value that controls the rate of PTP Sync packets. Default is -4 (16 packets per second), Unit packets/second.. + example: -4 + enum: + - -5 + - -4 + - -3 + - -2 + - -1 + - 0 + - 1 + logDelayReqInterval: + type: integer + description: Logarithmic value that controls the rate of PTP DelayReq packets. Default is -4 (16 packets per second), Unit packets/second.. + example: -4 + enum: + - -5 + - -4 + - -3 + - -2 + - -1 + - 0 + - 1 + transportMode: type: string - description: Account model, includes account number and flag to indicate if this account is reseller - example: - accountNumber: 123456 - advanceConfiguration: - type: object - properties: - ntp: - $ref: "#/components/schemas/ntpAdvanceConfiguration" - ptp: - $ref: "#/components/schemas/ptpAdvanceConfiguration" - description: Advance Configuration for NTP/PTP - precisionTimePackageRequest: - title: precisionTimePackageRequest - required: - - code + enum: + - MULTICAST + - UNICAST + - HYBRID + grantTime: + maximum: 7200 + minimum: 30 + type: integer + description: Unicast Grant Time in seconds. For Multicast and Hybrid transport modes, grant time defaults to 300 seconds. For Unicast mode, grant time can be between 30 to 7200. + example: 300 + description: PTP Advanced Configuration. + precisionTimeOrder: + title: precisionTimeOrder type: object properties: - href: + purchaseOrderNumber: type: string - format: uri - code: + description: Purchase order number + customerReferenceNumber: type: string - enum: - - NTP_STANDARD - - NTP_ENTERPRISE - - PTP_STANDARD - - PTP_ENTERPRISE - description: EPT Package Request - example: - code: NTP_STANDARD - precisionTimeServiceResponse: - title: precisionTimeServiceResponse + description: Customer reference number + orderNumber: + type: string + description: Order Reference Number + description: Precision Time Order + virtualConnectionTimeServiceResponse: + title: fabricConnectionResponse required: - href - - ipv4 - - order - - package - - state - type - uuid type: object properties: - type: - type: string - enum: - - NTP - - PTP href: type: string + description: Connection URI format: uri + readOnly: true + type: + type: string + description: Connection Type. uuid: type: string - description: uuid of the ept service + description: Connection UUID. format: uuid - name: - type: string - description: name of the ept service - description: - type: string - state: - type: string - description: indicate service state - enum: - - PROVISIONED - - PROVISIONING - - PROVISIONING_FAILED - - CONFIGURING - - CANCELLED - - DEPROVISIONING_FAILED - - PENDING_CONFIGURATION - - DEPROVISIONED - - CONFIGURING_FAILED - - DEPROVISIONING - package: - $ref: "#/components/schemas/precisionTimePackageResponse" - connections: - maxItems: 2 - minItems: 1 - uniqueItems: true - type: array - description: fabric l2 connections used for the ept service - items: - $ref: "#/components/schemas/fabricConnectionUuid" - order: - $ref: "#/components/schemas/Order" - ipv4: - $ref: "#/components/schemas/ipv4" - advanceConfiguration: - $ref: "#/components/schemas/advanceConfiguration" - project: - $ref: "#/components/schemas/Project" - account: - $ref: "#/components/schemas/account" - description: EPT service instance + aSide: + $ref: "#/components/schemas/virtualConnectionSide" + zSide: + $ref: "#/components/schemas/virtualConnectionSide" + description: Fabric Connection Precision Time Service Response Object connectionLink: type: object properties: @@ -12900,6 +15431,31 @@ 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 @@ -13045,6 +15601,23 @@ components: - DRAFT - CANCELLED - PENDING_INTERFACE_CONFIGURATION + RouteTableEntryType: + type: string + description: Route table entry type + enum: + - IPv4_BGP_ROUTE + - IPv4_STATIC_ROUTE + - IPv4_DIRECT_ROUTE + - IPv6_BGP_ROUTE + - IPv6_STATIC_ROUTE + - IPv6_DIRECT_ROUTE + RouteTableEntryProtocolType: + type: string + description: Route table entry protocol type + enum: + - BGP + - STATIC + - DIRECT BGPConnectionOperation: type: object properties: @@ -13177,7 +15750,7 @@ components: description: List of AccessPointSelectors items: $ref: "#/components/schemas/AccessPointSelector" - description: Connection link protocol configuration + description: Connection link protocol,virtual device or network configuration PortDeviceRedundancy: type: object properties: @@ -13261,23 +15834,6 @@ components: format: int64 example: 1000 description: Service Token details of Link Protocol - RouteTableEntryType: - type: string - description: Route table entry type - enum: - - IPv4_BGP_ROUTE - - IPv4_STATIC_ROUTE - - IPv4_DIRECT_ROUTE - - IPv6_BGP_ROUTE - - IPv6_STATIC_ROUTE - - IPv6_DIRECT_ROUTE - RouteTableEntryProtocolType: - type: string - description: Route table entry protocol type - enum: - - BGP - - STATIC - - DIRECT RouteTableEntryState: type: string description: Route table entry state @@ -13313,58 +15869,32 @@ components: - /location/region - /changeLog/createdDateTime - /changeLog/updatedDateTime - ntpAdvanceConfiguration: - type: array - items: - $ref: "#/components/schemas/md5" - ptpAdvanceConfiguration: + md5: type: object properties: - timeScale: - type: string - description: Time Scale value, ARB denotes Arbitrary and PTP denotes Precision Time Protocol. - example: ARB - enum: - - ARB - - PTP - domain: - maximum: 127 - minimum: 0 - type: integer - example: 0 - priority1: - maximum: 248 - minimum: 0 - type: integer - example: 0 - priority2: - maximum: 248 - minimum: 0 - type: integer - example: 0 - logAnnounceInterval: - type: integer - description: The mean time interval between Announce messages. A shorter interval makes ptp4l react faster to the changes in the master-slave hierarchy. The interval should be the same in the whole domain. It's specified as a power of two in seconds. The default is 1 (2 seconds). - example: 0 - logSyncInterval: - type: integer - description: The mean time interval between Sync messages. A shorter interval may improve accuracy of the local clock. It's specified as a power of two in seconds. The default is 0 (1 second). - example: 0 - logDelayReqInterval: - type: integer - example: 0 - transportMode: + type: type: string enum: - - Multicast - - Unicast - - Hybrid - grantTime: - maximum: 7200 - minimum: 30 + - ASCII + - HEX + keyNumber: + maximum: 65534 + minimum: 1 type: integer - description: Unicast Grant Time in seconds. For Multicast and Hybrid transport modes, grant time defaults to 300 seconds. For Unicast mode, grant time can be between 30 to 7200. - example: 300 + description: The authentication Key ID. + example: 10 + key: + maxLength: 40 + minLength: 10 + type: string + description: The plaintext authentication key. For ASCII type, the key must contain printable ASCII characters, range 10-20 characters. For HEX type, range should be 10-40 characters. + virtualConnectionSide: + title: fabricConnectionAccessPoint + type: object + properties: + accessPoint: + $ref: "#/components/schemas/AccessPoint" + description: Fabric Connection access point object. AccessPointType: type: string description: Access point type @@ -13414,9 +15944,6 @@ components: $ref: "#/components/schemas/Project" state: $ref: "#/components/schemas/PortState" - cvpId: - type: string - description: Equinix assigned response attribute for Unique ID for a virtual port. operation: $ref: "#/components/schemas/PortOperation" account: @@ -13424,6 +15951,7 @@ components: serviceType: type: string description: Port service Type + deprecated: true enum: - EPL - MSP @@ -13431,14 +15959,17 @@ components: minimum: 0 type: integer description: Equinix assigned response attribute for Port bandwidth in Mbps + format: int64 availableBandwidth: minimum: 0 type: integer description: Equinix assigned response attribute for Port available bandwidth in Mbps + format: int64 usedBandwidth: minimum: 0 type: integer description: Equinix assigned response attribute for Port used bandwidth in Mbps + format: int64 location: $ref: "#/components/schemas/SimplifiedLocation" device: @@ -13456,6 +15987,8 @@ components: lagEnabled: type: boolean description: If LAG enabled + package: + $ref: "#/components/schemas/Package" settings: $ref: "#/components/schemas/PortSettings" physicalPortQuantity: @@ -13724,23 +16257,19 @@ components: description: Type of Access point enum: - COLO + - VD + - NETWORK port: $ref: "#/components/schemas/SimplifiedMetadataEntity" linkProtocol: - $ref: "#/components/schemas/LinkProtocol" + $ref: "#/components/schemas/SimplifiedLinkProtocol" + virtualDevice: + $ref: "#/components/schemas/SimplifiedVirtualDevice" + interface: + $ref: "#/components/schemas/VirtualDeviceInterface" + network: + $ref: "#/components/schemas/SimplifiedTokenNetwork" description: List of criteria for selecting network access points with optimal efficiency, security, compatibility, and availability. - md5: - type: object - properties: - type: - type: string - enum: - - ASCII - - HEX - id: - type: integer - password: - type: string LinkProtocolType: type: string description: Type of Link Protocol @@ -13797,131 +16326,95 @@ components: type: type: string description: Type of Port + cvpId: + type: integer + description: Customer virtual port Id + bandwidth: + type: number + description: Port Bandwidth + portName: + type: string + description: Port Name + encapsulationProtocolType: + type: string + description: Port Encapsulation + accountName: + type: string + description: Account Name + priority: + type: string + description: Port Priority + location: + $ref: "#/components/schemas/SimplifiedLocation" description: Configuration details for port used at the access point. - LinkProtocol: - required: - - type - type: object - description: Connection link protocol Configuration - discriminator: - propertyName: type - mapping: - UNTAGGED: "#/components/schemas/LinkProtocolUntagged" - DOT1Q: "#/components/schemas/LinkProtocolDot1q" - QINQ: "#/components/schemas/LinkProtocolQinq" - VXLAN: "#/components/schemas/LinkProtocolVxlan" - EVPN_VXLAN: "#/components/schemas/LinkProtocolEvpnVxlan" - oneOf: - - $ref: "#/components/schemas/LinkProtocolUntagged" - - $ref: "#/components/schemas/LinkProtocolDot1q" - - $ref: "#/components/schemas/LinkProtocolQinq" - - $ref: "#/components/schemas/LinkProtocolVxlan" - - $ref: "#/components/schemas/LinkProtocolEvpnVxlan" - LinkProtocolUntagged: + SimplifiedVirtualDevice: type: object properties: - type: - $ref: "#/components/schemas/LinkProtocolType" - ipv4: - $ref: "#/components/schemas/LinkProtocolIpv4Ipv6Config" - ipv6: - $ref: "#/components/schemas/LinkProtocolIpv4Ipv6Config" - description: Connection link protocol configuration - UNTAGGED - LinkProtocolDot1q: - required: - - vlanTag - type: object - properties: - type: - $ref: "#/components/schemas/LinkProtocolType" - tagProtocolId: + href: type: string - description: Tag protocol identifier - vlanTag: + description: url to entity + format: uri + uuid: type: string - description: VLAN tag - vlanTagMin: - type: integer - description: VLAN tag Min value specified for DOT1Q connections - vlanTagMax: - type: integer - description: VLAN tag Max value specified for DOT1Q connections - description: Connection link protocol configuration - DOT1Q - LinkProtocolQinq: - required: - - innerTagProtocolId - - outerTagProtocolId - - vlanCTag - - vlanSTag - type: object - properties: + description: Network Edge assigned Virtual Device Identifier + format: uuid type: - $ref: "#/components/schemas/LinkProtocolType" - innerTagProtocolId: - type: integer - description: Inner tag protocol identifier - outerTagProtocolId: - type: integer - description: Outer tag protocol identifier - vlanCTag: - type: integer - description: Inner tag, i.e., C-VLAN tag - vlanSTag: - type: integer - description: Outer tag, i.e., S-VLAN tag - vlanCTagMin: - type: integer - description: Outer tag Min value specified for QINQ connections - vlanCTagMax: - type: integer - description: Outer tag Max value specified for QINQ connections - subInterface: - type: integer - description: Subinterface identifier - description: Connection link protocol configuration - QINQ - LinkProtocolVxlan: - required: - - vni + type: string + description: Type of Virtual Device + enum: + - EDGE + name: + type: string + description: Customer-assigned Virtual Device name + cluster: + type: string + description: Virtual Device Cluster Information + VirtualDeviceInterface: type: object properties: type: - $ref: "#/components/schemas/LinkProtocolType" - vni: - maximum: 16777215 - minimum: 4097 + type: string + description: Type of interface + enum: + - NETWORK + id: type: integer - description: Virtual Network Identifier - description: Connection link protocol configuration - VXLAN - LinkProtocolEvpnVxlan: - required: - - type5vni - - vnid + description: Network Edge assigned identifier + uuid: + type: string + description: Interface identifier + format: uuid + description: Virtual Device Interface Information + SimplifiedTokenNetwork: type: object properties: + href: + type: string + description: url to entity + format: uri + uuid: + type: string + description: Network Identifier + format: uuid type: - $ref: "#/components/schemas/LinkProtocolType" - vnid: - maximum: 40000 - minimum: 20001 - type: integer - description: Virtual Network Identifier - type5vni: - type: integer - description: Type 5 VNI identifier - description: Connection link protocol configuration - EVPN_VXLAN - LinkProtocolIpv4Ipv6Config: - type: object - properties: - linkPrefix: type: string - description: Link subnet prefix - localIfaceIp: + description: Type of Network + enum: + - EVPLAN + - EPLAN + - IPWAN + name: type: string - description: Prefix datatype when linkPrefix not specified - remoteIfaceIp: + description: Network Name + scope: type: string - description: Equinix-side link interface address - description: IPv4 or IPv6 specific configuration + description: scope of Network + enum: + - LOCAL + - REGIONAL + - GLOBAL + location: + $ref: "#/components/schemas/SimplifiedLocation" PriceError_additionalInfo: type: object properties: @@ -13971,6 +16464,15 @@ components: items: $ref: "#/components/schemas/ValidateRequest_filter_and" description: Filters + ConnectionRouteTableEntry_connection: + type: object + properties: + uuid: + type: string + example: 81331c52-04c0-4656-a4a7-18c52669348f + name: + type: string + example: connection_1 PortOrder_purchaseOrder: type: object properties: @@ -13990,6 +16492,14 @@ components: type: string format: uuid selectionType: + type: string + deprecated: true + enum: + - EXEMPTION + - EXISTING + - NEW + - BLANKET + type: type: string enum: - EXEMPTION @@ -14023,15 +16533,6 @@ components: delegate: $ref: "#/components/schemas/PortOrder_signature_delegate" description: Port signature Type - RouteTableEntry_connection: - type: object - properties: - uuid: - type: string - example: 81331c52-04c0-4656-a4a7-18c52669348f - name: - type: string - example: connection_1 VirtualConnectionPriceASide_accessPoint_port_settings: type: object properties: @@ -18930,8 +21431,14 @@ components: ConnectionMigrationAsideVirtualDeviceRequest: value: - op: replace - path: /aSide/accessPoint/virtualDevice/uuid - value: 5e7fd31d-f1e8-46fe-b6ad-6f5f2306cfd8 + path: /aSide/accessPoint + value: + virtualDevice: + type: EDGE + uuid: 207667ba-3211-452c-b0a8-8b9046e122a5 + interface: + type: CLOUD + id: 4 ConnectionPatchResponse: value: href: https://api.equinix.com/fabric/v4/connections/3a58dd05-f46d-4b1d-a154-2e85c396ea62 @@ -19071,6 +21578,48 @@ components: changeLog: createdDateTime: 2020-04-21T10:30:00Z updatedDateTime: 2020-05-21T10:30:00Z + ConnectionRoutesSearchByType: + value: + filter: + and: + - property: /type + operator: = + values: + - IPv4_BGP_ROUTE + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime + ConnectionRoutesSearchByState: + value: + filter: + and: + - property: /state + operator: = + values: + - ACTIVE + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime + ConnectionRoutesSearchByMed: + value: + filter: + and: + - property: /med + operator: = + values: + - 200 + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime RoutingProtocolGetAll: value: pagination: @@ -19101,6 +21650,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UNKNOWN customerAsn: 10000 @@ -19197,6 +21747,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UNKNOWN customerAsn: 10000 @@ -19382,6 +21933,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UNKNOWN customerAsn: 10000 @@ -19458,6 +22010,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z @@ -19696,17 +22249,26 @@ components: bgpIpv4: customerPeerIp: 10.1.1.2 equinixPeerIp: 10.1.1.3 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z bgpIpv6: customerPeerIp: 2001:db8:c59b::1 equinixPeerIp: 2001:db8:c59b::1 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z customerAsn: 0 equinixAsn: 0 + asOverrideEnabled: true bgpAuthKey: string bfd: enabled: true @@ -19733,18 +22295,27 @@ components: bgpIpv4: customerPeerIp: 10.1.1.2 equinixPeerIp: 10.1.1.3 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z bgpIpv6: customerPeerIp: 2001:db8:c59b::1 equinixPeerIp: 2001:db8:c59b::1 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z customerAsn: 0 equinixAsn: 0 bgpAuthKey: string + asOverrideEnabled: true bfd: enabled: true interval: "100" @@ -22088,8 +24659,6 @@ components: expirationDateTime: 2021-03-18T06:43:49.980Z connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b allowRemoteConnection: false bandwidthLimit: 50 allowCustomBandwidth: false @@ -22116,39 +24685,42 @@ components: createdDateTime: 2021-03-18T06:43:49.980Z updatedBy: "843577" updatedDateTime: 2021-03-18T06:44:14.206Z - getServiceToken-CRH: + project: + projectId: "995072000433550" + getServiceToken-VD: value: - href: http://api.equinix.com/fabric/v4/serviceTokens/13ab7dc7-c18e-4f73-aa35-fc3a83966e79 + href: http://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 type: VC_TOKEN - uuid: 13ab7dc7-c18e-4f73-aa35-fc3a83966e79 - name: Az_Aside_Dot1Q_Pri_SV - description: Az_Aside_Dot1Q_Pri_SV_Description + name: Zside_Virtual_Device_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: Zside vd token state: INACTIVE - expiry: 0 - expirationDateTime: 2021-03-18T06:43:49.980Z connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b - allowRemoteConnection: false - bandwidthLimit: 50 + allowRemoteConnection: true allowCustomBandwidth: false - aSide: + supportedBandwidths: + - 10 + - 50 + - 200 + zSide: accessPointSelectors: - - type: COLO - port: - href: http://api.equinix.com/fabric/v4/ports/b840a1db-5758-758f-97e0-328a5c00a874 - type: XF_PORT - uuid: b840a1db-5758-758f-97e0-328a5c00a874 - linkProtocol: - type: QINQ - vlanCTag: 1399 - vlanSTag: 1388 + - type: VD + virtualDevice: + name: testVirtualDeviceName + type: EDGE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + interface: + type: NETWORK + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + id: 45645 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z notifications: - type: NOTIFICATION emails: - abc@company.com - - provider@company.com account: orgId: 111437 changeLog: @@ -22156,8 +24728,41 @@ components: createdDateTime: 2021-03-18T06:43:49.980Z updatedBy: "843577" updatedDateTime: 2021-03-18T06:44:14.206Z + getServiceToken-Network: + value: + href: https://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + type: VC_TOKEN + name: Zside_network_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: Zside Network token + state: INACTIVE + connection: + type: EVPLAN_VC + allowRemoteConnection: true + allowCustomBandwidth: false + bandwidthLimit: 20000 + zSide: + accessPointSelectors: + - type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + type: EVPLAN + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + scope: REGIONAL project: - projectId: "995072000433550" + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com + account: + orgId: 111437 + changeLog: + createdBy: "843577" + createdDateTime: 2021-03-18T06:43:49.980Z + updatedBy: "843577" + updatedDateTime: 2021-03-18T06:44:14.206Z 400_UUID: value: - errorCode: EQ-3034016 @@ -22204,65 +24809,74 @@ components: value: pagination: offset: 0 - limit: 1 - total: 1 + limit: 75 + total: 2 data: - - href: http://api.equinix.com/fabric/v4/serviceTokens/13ab7dc7-c18e-4f73-aa35-fc3a83966e79 + - href: https://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 type: VC_TOKEN - uuid: 13ab7dc7-c18e-4f73-aa35-fc3a83966e79 - name: Az_Aside_Dot1Q_Pri_SV - description: Az_Aside_Dot1Q_Pri_SV_Description - state: INACTIVE + name: zside_network_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: zside_Network_token + connection: + type: EVPLAN_VC + allowRemoteConnection: true + allowCustomBandwidth: false + bandwidthLimit: 20000 + zSide: + accessPointSelectors: + - type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + type: EVPLAN + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + scope: REGIONAL + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com + - href: https://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + type: VC_TOKEN + name: zside_vd_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: zside vd token connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b - allowRemoteConnection: false - bandwidthLimit: 50 + allowRemoteConnection: true allowCustomBandwidth: false - aSide: + supportedBandwidths: + - 10 + - 50 + - 200 + zSide: accessPointSelectors: - - type: COLO - port: - href: http://api.equinix.com/fabric/v4/ports/b840a1db-5758-758f-97e0-328a5c00a874 - type: XF_PORT - uuid: b840a1db-5758-758f-97e0-328a5c00a874 - linkProtocol: - type: QINQ - vlanCTag: 1399 - vlanSTag: 1388 + - type: VD + virtualDevice: + type: EDGE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + interface: + type: NETWORK + id: 45645 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z notifications: - type: NOTIFICATION emails: - abc@company.com - - provider@company.com - account: - orgId: 111437 - changeLog: - createdBy: "843577" - createdDateTime: 2021-03-18T06:43:49.980Z - updatedBy: "843577" - updatedDateTime: 2021-03-18T06:44:14.206Z - getServiceTokens-CRH: - value: - pagination: - offset: 0 - limit: 75 - total: 1 - data: - href: http://api.equinix.com/fabric/v4/serviceTokens/13ab7dc7-c18e-4f73-aa35-fc3a83966e79 type: VC_TOKEN uuid: 13ab7dc7-c18e-4f73-aa35-fc3a83966e79 name: Az_Aside_Dot1Q_Pri_SV description: Az_Aside_Dot1Q_Pri_SV_Description state: INACTIVE - expiry: 0 expirationDateTime: 2021-03-18T06:43:49.980Z + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b allowRemoteConnection: false bandwidthLimit: 50 allowCustomBandwidth: false @@ -22289,8 +24903,6 @@ components: createdDateTime: 2021-03-18T06:43:49.980Z updatedBy: "843577" updatedDateTime: 2021-03-18T06:44:14.206Z - project: - projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 createServiceTokenWithQnQ: value: type: VC_TOKEN @@ -22511,6 +25123,61 @@ components: - type: NOTIFICATION emails: - abc@company.com + createZsideServiceTokenWithVD: + value: + type: VC_TOKEN + name: Zside_VD_token + description: zside vd token + connection: + type: EVPL_VC + allowRemoteConnection: true + allowCustomBandwidth: false + supportedBandwidths: + - 10 + - 50 + - 200 + - 10000 + zSide: + accessPointSelectors: + - type: VD + virtualDevice: + type: EDGE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + interface: + type: NETWORK + id: 45645 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com + createZsideServiceTokenWithNetwork: + value: + type: VC_TOKEN + name: zside_Network_token + description: Zside_Network_token + connection: + type: EVPLAN_VC + allowRemoteConnection: true + supportedBandwidths: + - 10 + - 50 + - 200 + zSide: + accessPointSelectors: + - type: NETWORK + network: + type: EVPLAN + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com Resend_Service_Token: value: type: RESEND_EMAIL_NOTIFICATION @@ -22526,8 +25193,6 @@ components: expirationDateTime: 2021-03-18T06:43:49.980Z connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b allowRemoteConnection: false bandwidthLimit: 50 allowCustomBandwidth: false @@ -22717,12 +25382,11 @@ components: uuid: e91484bb-4f65-4ab3-8f77-500dec2f855d name: test-AT1-Dot1q-L-Secondary-108608 state: ACTIVE - cvpId: "108608" bandwidth: 10000 usedBandwidth: 0 availableBandwidth: 20000 + physicalPortSpeed: 10000 redundancy: - group: "1" priority: SECONDARY location: metroHref: https://api.equinix.com/fabric/v4/metros/AT @@ -22739,8 +25403,9 @@ components: type: DOT1Q tagProtocolId: 33024 lagEnabled: true - lag: - enabled: true + package: + code: STANDARD + type: MSP settings: buyout: false placeVcOrderPermission: true @@ -22766,24 +25431,33 @@ components: patchPanel: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" + operation: + operationalStatus: UP demarcationPoint: ibx: AT1 patchPanel: PP:8118:1586 patchPanelName: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" - operation: - operationalStatus: UP operation: operationalStatus: UP opStatusChangedAt: 2021-06-14T17:21:25.586Z connectionCount: 0 + evplVcCount: 0 + fgVcCount: 0 + accessVcCount: 0 account: - accountNumber: "100179" + accountNumber: 100179 accountName: L2 globalCustId: 007700000090982RG8 - orgId: "100179" + orgId: 100179 organizationName: Cust_Org_100179 + order: + purchaseOrder: + startDate: 2020-06-14T17:21:25.586Z + endDate: 2020-06-15T17:21:25.586Z + type: NEW + orderNumber: 1-222078525611 changeLog: createdDateTime: 2020-06-14T17:21:25.586Z project: @@ -22797,16 +25471,16 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: false encapsulation: type: DOT1Q tagProtocolId: 33024 project: - projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 + projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931' account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -22815,9 +25489,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -22840,8 +25514,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -22849,7 +25523,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -22858,9 +25532,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -22883,8 +25557,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -22892,7 +25566,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -22901,9 +25575,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -22932,8 +25606,9 @@ components: location: metroCode: GV demarcationPointIbx: GV1 + package: + code: STANDARD settings: - packageType: STANDARD sharedPortType: false sharedPortProduct: null redundancy: @@ -22951,9 +25626,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23002,7 +25677,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -23013,9 +25688,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23033,8 +25708,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -23042,7 +25717,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -23053,9 +25728,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23071,8 +25746,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: false encapsulation: type: DOT1Q @@ -23080,14 +25755,14 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 order: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23111,8 +25786,9 @@ components: location: metroCode: GV demarcationPointIbx: GV1 + package: + code: STANDARD settings: - packageType: STANDARD sharedPortProduct: NETWORK_EDGE redundancy: priority: SECONDARY @@ -23129,9 +25805,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23165,8 +25841,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -23174,7 +25850,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -23183,9 +25859,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23211,9 +25887,10 @@ components: encapsulation: type: DOT1Q tagProtocolId: 33024 + package: + code: STANDARD settings: - sharedPortType: false, - packageType: STANDARD + sharedPortType: false project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: @@ -23372,6 +26049,8 @@ components: name: L2-DEV-USER01-CX-10G-PRIMARY description: Test Redundant port in Amsterdam physicalPortsSpeed: 10000 + physicalPortsType: 1000BASE_LX + connectivitySourceType: BMMR location: metroCode: AM demarcationPointIbx: AM1 @@ -23387,9 +26066,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23426,9 +26105,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23460,8 +26139,8 @@ components: orderNumber: 1-210210611704 account: accountNumber: 270848 - changelog: - createdBy: "907831" + changeLog: + createdBy: 907831 createdDateTime: 2023-06-02T22:25:52.206Z location: metroCode: GV @@ -23470,9 +26149,10 @@ components: group: 22f8e668-4754-4564-825d-d1c7889c885a priority: PRIMARY lagEnabled: false + package: + code: STANDARD settings: sharedPortType: false - packageType: STANDARD project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 notifications: @@ -23493,8 +26173,8 @@ components: orderNumber: 1-210210611704 account: accountNumber: 270848 - changelog: - createdBy: "907831" + changeLog: + createdBy: 907831 createdDateTime: 2023-06-02T22:25:52.206Z location: metroCode: GV @@ -23505,9 +26185,10 @@ components: lagEnabled: false project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 + package: + code: STANDARD settings: sharedPortType: false - packageType: STANDARD notifications: - type: TECHNICAL registeredUsers: @@ -23533,9 +26214,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23561,9 +26242,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23582,9 +26263,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23610,9 +26291,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23628,9 +26309,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23679,10 +26360,12 @@ components: uuid: e91484bb-4f65-4ab3-8f77-500dec2f855d name: test-AT1-Dot1q-L-Secondary-108608 state: ACTIVE - cvpId: "108608" bandwidth: 10000 usedBandwidth: 0 availableBandwidth: 20000 + physicalPortsSpeed: 10000 + physicalPortsType: 1000BASE_LX + connectivitySourceType: COLO redundancy: group: "1" priority: Secondary @@ -23701,8 +26384,9 @@ components: type: DOT1Q tagProtocolId: 33024 lagEnabled: true - lag: - enabled: true + package: + code: STANDARD + type: MSP settings: buyout: false placeVcOrderPermission: true @@ -23723,8 +26407,6 @@ components: patchPanelName: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" - operation: - operationalStatus: UP - state: PROVISIONED type: XF_PHYSICAL_PORT id: 6968 @@ -23734,17 +26416,18 @@ components: patchPanel: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" - operation: - operationalStatus: UP operation: operationalStatus: UP opStatusChangedAt: 2021-06-14T17:21:25.586Z connectionCount: 0 + evplVcCount: 0 + fgVcCount: 0 + accessVcCount: 0 account: - accountNumber: "100179" + accountNumber: 100179 accountName: L2 globalCustId: 007700000090982RG8 - orgId: "100179" + orgId: 100179 organizationName: Cust_Org_100179 changeLog: createdDateTime: 2018-06-14T17:21:25.587Z @@ -23778,8 +26461,6 @@ components: type: DOT1Q tagProtocolId: 33024 lagEnabled: true - lag: - enabled: true settings: buyout: false placeVcOrderPermission: true @@ -24999,6 +27680,53 @@ components: RouteEntriesStatusUpdate: value: type: ROUTE_TABLE_ENTRY_UPDATE + ReceivedRouteEntriesStatusUpdate: + value: + type: RECEIVED_ROUTE_ENTRY_UPDATE + AdvertisedRouteEntriesStatusUpdate: + value: + type: ADVERTISED_ROUTE_ENTRY_UPDATE + connection: + uuid: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + CloudRouterReceivedRoutesActionResponse: + value: + type: RECEIVED_ROUTE_ENTRY_UPDATE + uuid: 37c10edc-ba2e-4240-a850-8a48f9c47d01 + state: PENDING + connection: + uuid: 3066ab1d-af87-49d7-8a14-c9bdb57ac809 + changeLog: + createdDateTime: 2020-05-21T10:30:00Z + CloudRouterAdvertisedRoutesActionResponse: + value: + type: ADVERTISED_ROUTE_ENTRY_UPDATE + uuid: 37c10edc-ba2e-4240-a850-8a48f9c47d01 + state: PENDING + connection: + uuid: 3066ab1d-af87-49d7-8a14-c9bdb57ac809 + changeLog: + createdDateTime: 2020-05-21T10:30:00Z + CloudRouterActionsSearchByType: + value: + filter: + and: + - property: /type + operator: = + values: + - ROUTE_TABLE_ENTRY_UPDATE + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime + 400_invalid_sorting: + value: + - errorCode: EQ-3043015 + errorMessage: Invalid value for sorting direction. + correlationId: cebc3d33-9037-4a2b-a7af-0ad65602cdec + additionalInfo: + - reason: Only accept DESC and ASC for sorting direction. SearchFilterByNextHop: value: filter: @@ -25068,13 +27796,6 @@ components: operator: LIKE values: - abc - 400_invalid_sorting: - value: - - errorCode: EQ-3043015 - errorMessage: Invalid value for sorting direction. - correlationId: cebc3d33-9037-4a2b-a7af-0ad65602cdec - additionalInfo: - - reason: Only accept DESC and ASC for sorting direction. Request-direct-ipv4: value: filter: @@ -26094,48 +28815,181 @@ components: uuid: 38a1eb68-4daf-4ef0-bd7f-6970727b6fc1 400_invalid_uuid: value: - - errorCode: EQ-3152004 - errorMessage: Invalid inlput - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - details: Network does not exists with gievn uuid - NetworkChangeResponseExample: + - errorCode: EQ-3152004 + errorMessage: Invalid inlput + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + details: Network does not exists with gievn uuid + NetworkChangeResponseExample: + value: + pagination: + offset: 0 + limit: 20 + total: 1 + data: + - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 + type: NETWORK_CREATION + uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 + status: COMPLETED + createdDateTime: 2020-05-21T10:30:00Z + updatedDateTime: 2020-05-21T10:30:50Z + - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/da2a2f1b-9ba0-415b-85d6-234bd4c737ec + type: NETWORK_DELETION + uuid: da2a2f1b-9ba0-415b-85d6-234bd4c737ec + status: REQUESTED + createdDateTime: 2020-05-21T10:30:00Z + updatedDateTime: 2020-05-21T10:30:00Z + NetworkGetChangeResponseExample: + value: + href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 + type: NETWORK_CREATION + uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 + status: COMPLETED + createdDateTime: 2020-05-21T10:30:00Z + updatedDateTime: 2020-05-21T10:30:50Z + ntpStandardService: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpStandardService: + value: + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + purchaseOrderNumber: 1-129105284100 + ntpEnterpriseService: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpEnterpriseService: + value: + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpStandardWithAdvancedConfiguration: value: - pagination: - offset: 0 - limit: 20 - total: 1 - data: - - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 - type: NETWORK_CREATION - uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 - status: COMPLETED - createdDateTime: 2020-05-21T10:30:00Z - updatedDateTime: 2020-05-21T10:30:50Z - - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/da2a2f1b-9ba0-415b-85d6-234bd4c737ec - type: NETWORK_DELETION - uuid: da2a2f1b-9ba0-415b-85d6-234bd4c737ec - status: REQUESTED - createdDateTime: 2020-05-21T10:30:00Z - updatedDateTime: 2020-05-21T10:30:00Z - NetworkGetChangeResponseExample: + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + ptpEnterpriseWithAdvancedConfiguration: value: - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 - type: NETWORK_CREATION - uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 - status: COMPLETED - createdDateTime: 2020-05-21T10:30:00Z - updatedDateTime: 2020-05-21T10:30:50Z + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + ntpEnterpriseWithAdvancedConfiguration: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 ntpStandardCreateResponse: value: href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 - uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 - name: EPT-Single-Service type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service state: PROVISIONING connections: - - href: https://api.equinix.com/fabric/v4/connections/a8ba52de-faae-43b5-b0b1-6904d37ee011 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 type: EVPL_VC uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD code: NTP_STANDARD @@ -26146,14 +29000,155 @@ components: defaultGateway: 192.167.0.1 account: accountNumber: 123456 - 400-Mandatory-Name: + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseCreateResponse: value: - - errorCode: EQ-4800011 - errorMessage: Validation Error - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - additionalInfo: - - property: /package/protocol - reason: Mandatory field is missing + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpStandardCreateResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_STANDARD + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpEnterpriseCreateResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_ENTERPRISE + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z 400-Invalid-Name: value: - errorCode: EQ-4800010 @@ -26161,7 +29156,7 @@ components: correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 additionalInfo: - property: /name - reason: Invalid name + reason: Invalid name provided 400-Validate-Name: value: - errorCode: EQ-4800100 @@ -26352,43 +29347,432 @@ components: correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 400-Validate-GrantTime-Range: value: - - errorCode: EQ-4800113 - errorMessage: Invalid GrantTime range - Allowed range is 30 to 7200 - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Invalid-Type: + - errorCode: EQ-4800113 + errorMessage: Invalid GrantTime range - Allowed range is 30 to 7200 + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Invalid-Type: + value: + - errorCode: EQ-4800010 + errorMessage: Invalid Type - Allowed values are ASCII, HEX + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Invalid-Id: + value: + - errorCode: EQ-4800010 + errorMessage: Invalid Id - Only Integers are allowed + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Invalid-Password: + value: + - errorCode: EQ-4800010 + errorMessage: Invalid Password + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Validate-Password: + value: + - errorCode: EQ-4800114 + errorMessage: Only HEX allowed, chars value length should between 10 - 40 + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + ntpStandardResponseASidePort: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpStandardResponseASideVirtualDevice: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: VD + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpStandardResponseASideCloudRouter: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: IP_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: CLOUD_ROUTER + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseWOMD5ResponseASidePort: value: - - errorCode: EQ-4800010 - errorMessage: Invalid Type - Allowed values are ASCII, HEX - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Invalid-Id: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseResponseASidePort: value: - - errorCode: EQ-4800010 - errorMessage: Invalid Id - Only Integers are allowed - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Invalid-Password: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseResponseASideVirtualDevice: value: - - errorCode: EQ-4800010 - errorMessage: Invalid Password - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Validate-Password: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: VD + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseResponseASideCloudRouter: value: - - errorCode: EQ-4800114 - errorMessage: Only HEX allowed, chars value length should between 10 - 40 - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - editName: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: IP_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: CLOUD_ROUTER + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpStandardResponse: value: - - op: replace - path: /name - value: EPT-Single-Service - editPackageCode: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_STANDARD + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpEnterpriseResponse: value: - - op: replace - path: /package/code - value: NTP_ENTERPRISE - ntpStandard: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_ENTERPRISE + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + configureStandardService: value: - name: EPT-Single-Service type: NTP + name: EPT-Standard-Service connections: - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 package: @@ -26398,59 +29782,218 @@ components: secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - ptpStandard: + configureNtpEnterpriseAdvancedConfig: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + configurePtpWithAdvancedConfig: value: - name: EPT-Single-Service type: PTP + name: EPT-PTP-Service connections: - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 package: - code: PTP_STANDARD + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + ntpStandardConfigureResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD ipv4: primary: 192.168.0.2 secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - ptpEnterpriseWithAdvanceConfiguration: + account: + accountNumber: 123456 + order: + orderNumber: 1-129105284100 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpStandardDeletingResponse: value: - name: EPT-Single-Service - type: PTP + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: DEPROVISIONING connections: - - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: - code: PTP_ENTERPRISE + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD ipv4: primary: 192.168.0.2 secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - advanceConfiguration: - ptp: - tailScale: true - domain: 10 - priority1: 5 - priority2: 7 - logAnnounceInterval: 0 - logSyncInterval: 0 - logDelayReqInterval: 0 - ntpEnterpriseWithAdvanceConfiguration: - value: - name: EPT-Single-Service + account: + accountNumber: 123456 + order: + orderNumber: 1-216720438646 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + deletedByEmail: abc@xyz.com + deletedDateTime: 2024-08-24T06:52:46Z + updateName: + value: + - op: replace + path: /name + value: Updated-Service-Name + updatePackageCode: + value: + - op: replace + path: /package/code + value: NTP_ENTERPRISE + updateNetworkInformation: + value: + - op: replace + path: /ipv4 + value: + primary: 192.168.254.241 + secondary: 192.168.254.242 + networkMask: 255.255.255.240 + defaultGateway: 192.168.254.254 + updatePtpAdvancedConfiguration: + value: + - op: replace + path: /ptpAdvancedConfiguration + value: + timeScale: PTP + domain: 20 + priority1: 20 + priority2: 20 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + updateNtpAdvancedConfiguration: + value: + - op: replace + path: /ntpAdvancedConfiguration + value: + - type: ASCII + keyNumber: 65534 + key: plain-text-key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1 + ntpStandardReprovisionResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: REPROVISIONING connections: - - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: - code: NTP_ENTERPRISE + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD ipv4: primary: 192.168.0.2 secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - advanceConfiguration: - ntp: - - type: ASCII - id: 12345 - password: MTIzNDU2Nzg5MA + account: + accountNumber: 123456 + order: + orderNumber: 1-129105284100 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z SearchTimeServicesFilterByStatus: value: filter: @@ -26476,7 +30019,7 @@ components: - property: /name operator: = values: - - test-time-service + - test-service - property: /type operator: = values: @@ -26517,14 +30060,28 @@ components: next: /search?offset=40&limit=20 previous: /search?offset=0&limit=20 data: - - href: https://api.equinix.com/fabric/v4/routers/201b7346-a9eb-42fe-ae7a-08148c71928d + - href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 name: EPT-NTP-STD-Service - type: NTP state: PROVISIONING connections: - - href: https://api.equinix.com/fabric/v4/connections/a8ba52de-faae-43b5-b0b1-6904d37ee011 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD code: NTP_STANDARD @@ -26535,6 +30092,11 @@ components: defaultGateway: 192.167.0.1 account: accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z service_400_invalid_sorting: value: - errorCode: EQ-3040039 @@ -26563,57 +30125,57 @@ components: total: 4 data: - href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD - code: NTP_STANDARD type: TIME_SERVICE_PACKAGE + code: NTP_STANDARD bandwidth: 1 - clientsPerSecondMax: 2000 - accuracyUnit: microseconds + clientsPerSecondMax: 1000 + accuracySlaUnit: microseconds accuracySla: -1 - accuracyAvgMin: 1 - accuracyAvgMax: 100 - redundancySupported: true - multiSubnetSupported: true + accuracySlaMin: 1 + accuracySlaMax: 100 + redundancySupported: false + multiSubnetSupported: false changeLog: createdDateTime: 2023-05-16T07:50:49.749Z updatedDateTime: 2023-05-17T07:50:49.749Z - href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE - code: NTP_ENTERPRISE type: TIME_SERVICE_PACKAGE + code: NTP_ENTERPRISE bandwidth: 5 - clientsPerSecondMax: 1000 - accuracyUnit: microseconds + clientsPerSecondMax: 2000 + accuracySlaUnit: microseconds accuracySla: -1 - accuracyAvgMin: 1 - accuracyAvgMax: 100 - redundancySupported: true + accuracySlaMin: 1 + accuracySlaMax: 100 + redundancySupported: false multiSubnetSupported: true changeLog: createdDateTime: 2023-05-16T07:50:49.749Z updatedDateTime: 2023-05-17T07:50:49.749Z - href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_STANDARD - code: PTP_STANDARD type: TIME_SERVICE_PACKAGE + code: PTP_STANDARD bandwidth: 5 - clientsPerSecondMax: 100 - accuracyUnit: microseconds + clientsPerSecondMax: 20 + accuracySlaUnit: microseconds accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 - redundancySupported: true + accuracySlaMin: 1 + accuracySlaMax: 10 + redundancySupported: false multiSubnetSupported: true changeLog: createdDateTime: 2023-05-16T07:50:49.749Z updatedDateTime: 2023-05-17T07:50:49.749Z - href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_ENTERPRISE - code: PTP_ENTERPRISE type: TIME_SERVICE_PACKAGE + code: PTP_ENTERPRISE bandwidth: 10 - clientsPerSecondMax: 20 - accuracyUnit: microseconds + clientsPerSecondMax: 100 + accuracySlaUnit: microseconds accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 - redundancySupported: true + accuracySlaMin: 1 + accuracySlaMax: 10 + redundancySupported: false multiSubnetSupported: true changeLog: createdDateTime: 2023-05-16T07:50:49.749Z @@ -26621,14 +30183,14 @@ components: servicePackageResponse: value: href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD - code: NTP_STANDARD type: TIME_SERVICE_PACKAGE + code: NTP_STANDARD bandwidth: 10 clientsPerSecondMax: 100 - accuracyUnit: microseconds + accuracySlaUnit: microseconds accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 + accuracySlaMin: 1 + accuracySlaMax: 10 redundancySupported: true multiSubnetSupported: true changeLog: @@ -26642,15 +30204,15 @@ components: marketplace: AWS offerType: PRIVATE_OFFER isAutoRenew: false - offerId: offer id + offerId: offer-wqquayy2jy25o trial: enabled: true expiryDateTime: 2020-05-21T10:30:00Z entitlements: - uuid: a15b6b20-b765-4bf7-a661-a3e9372d5435 - name: FCR Standard quantityEntitled: 1 quantityConsumed: 0 + quantityAvailable: 1 asset: type: XF_ROUTER package: @@ -26668,30 +30230,69 @@ components: createdDateTime: 2020-05-21T10:30:00Z updatedBy: adminuser updatedDateTime: 2020-05-21T10:30:00Z + stream-get-all-example: + value: + pagination: + offset: 0 + limit: 20 + total: 1 + data: + - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: TELEMETRY_STREAM + name: stream 1 + description: stream dec 1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 + enabled: true + state: PROVISIONED + assetsCount: 1 + streamSubscriptionsCount: 2 + changelog: + createdDateTime: 2024-05-06T16:21:18.545214Z + StreamPostRequestExample: + value: + type: TELEMETRY_STREAM + name: splunk1 + description: subscription-1 + enabled: true + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 StreamResponseExample: value: - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: STREAM_SUBSCRIPTION - name: splunk1 - description: subscription 1 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: TELEMETRY_STREAM + name: stream1 + description: stream 1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 enabled: true state: PROVISIONED - project: - projectId: 123456 + assetsCount: 1 + streamSubscriptionsCount: 2 changelog: createdDateTime: 2024-05-06T16:21:18.545214Z - StreamPostRequestExample: - value: - type: STREAM_SUBSCRIPTION - name: splunk1 - description: subscription 1 StreamPutRequestExample: value: name: splunk1 description: subscription 1 - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 + enabled: true + StreamDeleteRequestExample: + value: + href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: TELEMETRY_STREAM + name: stream1 + description: stream 1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 + enabled: true + state: DEPROVISIONING + assetsCount: 1 + streamSubscriptionsCount: 2 + changelog: + createdDateTime: 2024-05-06T16:21:18.545214Z StreamAssetSearchRequestExample: value: filter: @@ -26705,7 +30306,7 @@ components: limit: 20 sort: - direction: DESC - property: /changeLog/createdDateTime + property: /uuid stream-asset-get-all-example: value: pagination: @@ -26713,31 +30314,41 @@ components: limit: 20 total: 1 data: - - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/ports/e684aa26-8276-48b7-bb42-a6d9def0a419 - metricsEnabled: true + - href: https://api.equinix.com/fabric/v4/ports/e684aa26-8276-48b7-bb42-a6d9def0a419 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + metricsEnabled: false attachmentStatus: ATTACHED - StreamRouterAssetResponseExample: + StreamConnectionAssetResponseExample: value: + href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/connections/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/routers/d684aa26-8276-48b7-bb42-a6d9def0a418 - metricsEnabled: true + metricsEnabled: false attachmentStatus: ATTACHED StreamAssetPutRequestExample: value: - metricsEnabled: true - StreamConnectionAssetResponseExample: + metricsEnabled: false + StreamRouterAssetAttachResponseExample: value: + href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/routers/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/connections/d684aa26-8276-48b7-bb42-a6d9def0a418 - metricsEnabled: true - attachmentStatus: ATTACHED - StreamPortAssetResponseExample: + metricsEnabled: false + attachmentStatus: ATTACHING + StreamRouterAssetDetachResponseExample: value: + href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/routers/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/ports/d684aa26-8276-48b7-bb42-a6d9def0a418 - metricsEnabled: true - attachmentStatus: ATTACHED + 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: @@ -26745,25 +30356,29 @@ components: limit: 20 total: 1 data: - - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: splunk description: subscription 1 - enabled: true + 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: - - path: subject + - property: /subject operator: LIKE values: - "%36276e58-b5a1-4864-ab5e-be10dff9eac1%" - or: [] - - path: equinixproject + - property: /equinixproject operator: IN values: - "197607000886247" - or: [] sink: uri: https://xxxxxx type: SPLUNK_HEC @@ -26772,57 +30387,125 @@ components: batchWaitTimeMax: 5 changelog: createdDateTime: 2024-05-06T16:21:18.545214Z - StreamSubscriptionPostRequestExample: + StreamSubscriptionPostRequestExampleSplunk: value: type: STREAM_SUBSCRIPTION name: splunk1 - description: subscription 1 + description: subscription-1 enabled: true stream: uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 project: - projectId: 123456 + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - - path: type + - property: /type operator: LIKE values: - - "%com.equinix.event.fabric.connection%" - or: [] + - "%com.equinix.fabric.connection%" sink: uri: https://xxxxxx type: SPLUNK_HEC credential: type: ACCESS_TOKEN accessToken: my-access-token - batchEnabled: false - batchSizeMax: 50 - batchWaitTimeMax: 5 + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric + StreamSubscriptionPostRequestExampleSlack: + value: + type: STREAM_SUBSCRIPTION + name: slack1 + description: subscription-1 + enabled: true + stream: + uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 + sink: + uri: https://xxxxxx + type: SLACK + StreamSubscriptionPostRequestExamplePagerduty: + value: + type: STREAM_SUBSCRIPTION + 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%" + sink: + uri: https://xxxxxx + type: PAGERDUTY + credential: + type: INTEGRATION_KEY + integrationKey: my-integration-key + settings: + source: Equinix + 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%" + sink: + uri: https://xx.datadoghq.com + type: DATADOG + credential: + type: API_KEY + apiKey: my-api-key + settings: + source: Equinix + applicationKey: my-application-key StreamSubscriptionResponseExample: value: - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: STREAM_SUBSCRIPTION name: stream 1 description: stream dec 1 project: - projectId: 1234546 + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: PROVISIONED - assetCount: 1 - streamSubscriptionCount: 2 + 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: - - path: type + - property: /type operator: LIKE values: - - "%com.equinix.event.fabric.connection%" - or: [] + - "%com.equinix.fabric.connection%" sink: uri: https://xxxxxx type: SPLUNK_HEC credential: type: ACCESS_TOKEN accessToken: my-access-token + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric batchEnabled: false batchSizeMax: 50 batchWaitTimeMax: 5 @@ -26837,20 +30520,59 @@ components: uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 filters: and: - - path: type + - property: /type operator: LIKE values: - "%equinix.event.fabric.connection%" - or: [] sink: uri: https://xxxxxx type: SPLUNK_HEC credential: type: ACCESS_TOKEN accessToken: my-access-token + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric + batchEnabled: false + batchSizeMax: 50 + batchWaitTimeMax: 5 + StreamSubscriptionDeleteResponseExample: + value: + href: https://api.equinix.com/fabric/v4/streamSubscriptions/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%" + sink: + uri: https://xxxxxx + type: SPLUNK_HEC + credential: + type: ACCESS_TOKEN + accessToken: my-access-token + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric batchEnabled: false batchSizeMax: 50 batchWaitTimeMax: 5 + changelog: + createdDateTime: 2024-05-06T16:21:18.545214Z headers: ETag: description: response header - identifier for a specific version of a resource. diff --git a/spec/services/fabricv4/oas3.patched/swagger.yaml b/spec/services/fabricv4/oas3.patched/swagger.yaml index 3276e4a7..e3fd5a6a 100644 --- a/spec/services/fabricv4/oas3.patched/swagger.yaml +++ b/spec/services/fabricv4/oas3.patched/swagger.yaml @@ -1,16 +1,15 @@ openapi: 3.0.3 info: title: Equinix Fabric API v4 - description: 'Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to:
1. Cloud Service Providers - Clouds, network and other service providers.
2. Enterprises - Other Equinix customers, vendors and partners.
3. Myself - Another customer instance deployed at Equinix.

Integrations (SDKs, Tools) links:
Fabric Java SDK
Fabric Go SDK
Equinix Terraform Provider
Fabric Terraform Modules
Equinix Pulumi Provider
' + description: 'Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to:
1. Cloud Service Providers - Clouds, network and other service providers.
2. Enterprises - Other Equinix customers, vendors and partners.
3. Myself - Another customer instance deployed at Equinix.

Integrations (SDKs, Tools) links:
Fabric Java SDK
Fabric Go SDK
Fabric Python SDK
Equinix Terraform Provider
Fabric Terraform Modules
Equinix Pulumi Provider
' termsOfService: https://www.equinix.com/about/legal/terms contact: name: Equinix API Support - url: https://equinix.com/about/ - email: api-support@equinix.com + url: https://docs.equinix.com/api-support.htm license: name: Equinix Inc url: https://developer.equinix.com/agreement - version: '4.15' + version: "4.17" externalDocs: description: Find more information on Equinix Developer Portal url: https://developer.equinix.com @@ -40,6 +39,10 @@ tags: description: Service Tokens - name: Statistics description: Statistics + - name: Stream Subscriptions + description: Stream Subscriptions Beta + - name: Streams + description: Streams Beta paths: /fabric/v4/connections: post: @@ -592,6 +595,140 @@ paths: examples: example: $ref: "#/components/examples/404" + "/fabric/v4/connections/{connectionId}/advertisedRoutes/search": + post: + tags: + - Cloud Routers + summary: search advertised + description: The API provides capability to get list of user's advertised routes using search criteria, including optional filtering, pagination and sorting + operationId: searchConnectionAdvertisedRoutes + parameters: + - name: connectionId + in: path + description: Connection Id + required: true + schema: + $ref: "#/components/schemas/ConnectionId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteSearchRequest" + examples: + ConnectionRoutesSearchType: + $ref: "#/components/examples/ConnectionRoutesSearchByType" + ConnectionRoutesSearchByState: + $ref: "#/components/examples/ConnectionRoutesSearchByState" + ConnectionRoutesSearchByMed: + $ref: "#/components/examples/ConnectionRoutesSearchByMed" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteTableEntrySearchResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400" + "401": + description: Unauthorized + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + "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" + "/fabric/v4/connections/{connectionId}/receivedRoutes/search": + post: + tags: + - Cloud Routers + summary: Search received + description: The API provides capability to get list of received routes using search criteria, including optional filtering, pagination and sorting + operationId: searchConnectionReceivedRoutes + parameters: + - name: connectionId + in: path + description: Connection Id + required: true + schema: + $ref: "#/components/schemas/ConnectionId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteSearchRequest" + examples: + ConnectionRoutesSearchType: + $ref: "#/components/examples/ConnectionRoutesSearchByType" + ConnectionRoutesSearchByState: + $ref: "#/components/examples/ConnectionRoutesSearchByState" + ConnectionRoutesSearchByMed: + $ref: "#/components/examples/ConnectionRoutesSearchByMed" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ConnectionRouteTableEntrySearchResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400" + "401": + description: Unauthorized + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + "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" "/fabric/v4/connections/{connectionId}/routingProtocols": get: tags: @@ -2793,8 +2930,10 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceToken" - tokenCrhExample: - $ref: "#/components/examples/getServiceToken-CRH" + tokenVDExample: + $ref: "#/components/examples/getServiceToken-VD" + tokenNetworkExample: + $ref: "#/components/examples/getServiceToken-Network" "400": description: Bad request content: @@ -2836,8 +2975,19 @@ paths: schema: $ref: "#/components/schemas/ServiceTokenUUID" responses: - "204": - description: Deleted Service Token Successfully + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ServiceToken" + examples: + tokenExample: + $ref: "#/components/examples/getServiceToken" + tokenVDExample: + $ref: "#/components/examples/getServiceToken-VD" + tokenNetworkExample: + $ref: "#/components/examples/getServiceToken-Network" "400": description: Bad request content: @@ -2847,15 +2997,24 @@ paths: examples: example: $ref: "#/components/examples/400_UUID" - "401": - description: Unauthorized + "403": + description: Forbidden content: application/json: schema: $ref: "#/components/schemas/ErrorList" examples: example: - $ref: "#/components/examples/401" + $ref: "#/components/examples/403" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" patch: tags: - Service Tokens @@ -2898,8 +3057,10 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceToken" - tokenCrhExample: - $ref: "#/components/examples/getServiceToken-CRH" + tokenVDExample: + $ref: "#/components/examples/getServiceToken-VD" + tokenNetworkExample: + $ref: "#/components/examples/getServiceToken-Network" "400": description: Bad request content: @@ -2918,6 +3079,15 @@ paths: 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/serviceTokens: get: tags: @@ -2946,8 +3116,6 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceTokens" - tokenCrhExample: - $ref: "#/components/examples/getServiceTokens-CRH" "403": description: Forbidden content: @@ -2963,6 +3131,7 @@ paths: summary: Create Service Token description: Create Service Tokens generates Equinix Fabric? service tokens. These tokens authorize users to access protected resources and services. operationId: createServiceToken + parameters: [] requestBody: content: application/json: @@ -2983,6 +3152,10 @@ paths: $ref: "#/components/examples/createZsideServiceTokenWithDot1Q" ZsideTokenWithVxlanExample: $ref: "#/components/examples/createZsideServiceTokenWithVxlan" + ZsideTokenWithVDExample: + $ref: "#/components/examples/createZsideServiceTokenWithVD" + ZsideTokenWithNetworkExample: + $ref: "#/components/examples/createZsideServiceTokenWithNetwork" required: true responses: "201": @@ -2994,8 +3167,6 @@ paths: examples: tokenExample: $ref: "#/components/examples/getServiceToken" - tokenCrhExample: - $ref: "#/components/examples/getServiceToken-CRH" "400": description: Bad request content: @@ -3096,7 +3267,17 @@ paths: summary: Search servicetokens description: The API provides capability to get list of user's servicetokens using search criteria, including optional filtering, pagination and sorting operationId: searchServiceTokens - parameters: [] + parameters: + - name: offset + in: query + description: offset + schema: + type: number + - name: limit + in: query + description: number of records to fetch + schema: + type: number requestBody: content: application/json: @@ -3311,7 +3492,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Port" + $ref: "#/components/schemas/PortRequest" examples: COLOSinglePortNonLag: $ref: "#/components/examples/COLOSinglePortNonLag" @@ -3338,7 +3519,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PortResponse" + $ref: "#/components/schemas/Port" examples: portExample: $ref: "#/components/examples/COLOSinglePortNonLagResponse" @@ -3372,7 +3553,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkPort" + $ref: "#/components/schemas/BulkPortRequest" examples: COLOBulkPort: $ref: "#/components/examples/COLOBulkPort" @@ -3383,7 +3564,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AllPortsResponse" + $ref: "#/components/schemas/BulkPort" examples: bulkPortExample: $ref: "#/components/examples/COLOBulkPortResponse" @@ -3465,7 +3646,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PortResponse" + $ref: "#/components/schemas/Port" examples: portExample: $ref: "#/components/examples/portByUUID" @@ -5825,6 +6006,10 @@ paths: examples: RouteEntriesStatusUpdate: $ref: "#/components/examples/RouteEntriesStatusUpdate" + ReceivedRouteEntriesStatusUpdate: + $ref: "#/components/examples/ReceivedRouteEntriesStatusUpdate" + AdvertisedRouteEntriesStatusUpdate: + $ref: "#/components/examples/AdvertisedRouteEntriesStatusUpdate" required: true responses: "202": @@ -5836,6 +6021,10 @@ paths: examples: cloudRouterActionExample: $ref: "#/components/examples/CloudRouterActionResponse" + receivedRouteEntriesExample: + $ref: "#/components/examples/CloudRouterReceivedRoutesActionResponse" + advertisedRouteEntriesExample: + $ref: "#/components/examples/CloudRouterAdvertisedRoutesActionResponse" "400": description: Bad request content: @@ -5890,13 +6079,13 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/routers/{routerId}/routes/search": + "/fabric/v4/routers/{routerId}/actions/search": post: tags: - Cloud Routers - summary: Search Route Table - description: The API provides capability to get list of user's Fabric Cloud Router route table entries using search criteria, including optional filtering, pagination and sorting - operationId: searchCloudRouterRoutes + summary: Search actions + description: This API provides capability to refresh route table and bgp session summary information + operationId: searchRouterActions parameters: - name: routerId in: path @@ -5908,18 +6097,10 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RouteTableEntrySearchRequest" + $ref: "#/components/schemas/CloudRouterActionsSearchRequest" examples: - SearchFilterByNextHop: - $ref: "#/components/examples/SearchFilterByNextHop" - SearchFilterByPrefix: - $ref: "#/components/examples/SearchFilterByPrefix" - SearchFilterByType: - $ref: "#/components/examples/SearchFilterByType" - SearchFilterByStatus: - $ref: "#/components/examples/SearchFilterByStatus" - SearchFilterOrAnd: - $ref: "#/components/examples/SearchFilterOrAnd" + CloudRouterActionsSearchByType: + $ref: "#/components/examples/CloudRouterActionsSearchByType" required: true responses: "200": @@ -5927,7 +6108,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RouteTableEntrySearchResponse" + $ref: "#/components/schemas/CloudRouterActionsSearchResponse" "400": description: Bad request content: @@ -5982,41 +6163,41 @@ paths: examples: example: $ref: "#/components/examples/500" - "/fabric/v4/routers/{routerId}/validate": - post: + "/fabric/v4/routers/{routerId}/actions/{actionId}": + get: tags: - - Routing Protocols - summary: Validate Subnet - description: This API provides capability to validate all subnets associated with any connection in the given FCR - operationId: validateRoutingProtocol + - Cloud Routers + summary: Get actions + description: This API provides capability to fetch action status + operationId: getCloudRouterActionsByUuid parameters: - name: routerId in: path - description: Cloud Router UUID + description: Router UUID required: true schema: - $ref: "#/components/schemas/RouterId" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ValidateRequest" - examples: - ValidateDirectIpv4: - $ref: "#/components/examples/Request-direct-ipv4" - ValidateDirectIpv6: - $ref: "#/components/examples/Request-direct-ipv6" - required: true + $ref: "#/components/schemas/RouterId_1" + - name: actionId + in: path + description: Action UUID + required: true + schema: + $ref: "#/components/schemas/ActionId_1" + - name: state + in: query + description: Action state + schema: + $ref: "#/components/schemas/ActionState" responses: "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/ValidateSubnetResponse" + $ref: "#/components/schemas/CloudRouterActionResponse" examples: - ValidateSubnet: - $ref: "#/components/examples/Response-200" + routerActionExample: + $ref: "#/components/examples/CloudRouterActionResponse" "400": description: Bad request content: @@ -6024,44 +6205,225 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - Bad Request: - $ref: "#/components/examples/error-400" - Subnet Overlapping: - $ref: "#/components/examples/error-400-overlappingSubnet" - /fabric/v4/routers/search: - post: - tags: - - Cloud Routers - summary: Search Routers - description: The API provides capability to get list of user's Cloud Routers using search criteria, including optional filtering, pagination and sorting - operationId: searchCloudRouters - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CloudRouterSearchRequest" - examples: - SearchFilterByStatus: - $ref: "#/components/examples/SearchFilterByStatus" - SearchFilterByNameAndMetroName: - $ref: "#/components/examples/SearchFilterByNameAndMetroName" - SearchFilterOrAnd: - $ref: "#/components/examples/SearchFilterOrAnd" - required: true - responses: - "200": - description: Successful operation + example: + $ref: "#/components/examples/400_invalid_operation" + "401": + description: Unauthorized content: application/json: schema: - $ref: "#/components/schemas/SearchResponse" + $ref: "#/components/schemas/ErrorList" examples: - Example: - $ref: "#/components/examples/search-example" - "400": - description: Bad request - content: + 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" + "415": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/routers/{routerId}/routes/search": + post: + tags: + - Cloud Routers + summary: Search Route Table + description: The API provides capability to get list of user's Fabric Cloud Router route table entries using search criteria, including optional filtering, pagination and sorting + operationId: searchCloudRouterRoutes + parameters: + - name: routerId + in: path + description: Router UUID + required: true + schema: + $ref: "#/components/schemas/RouterId_1" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RouteTableEntrySearchRequest" + examples: + SearchFilterByNextHop: + $ref: "#/components/examples/SearchFilterByNextHop" + SearchFilterByPrefix: + $ref: "#/components/examples/SearchFilterByPrefix" + SearchFilterByType: + $ref: "#/components/examples/SearchFilterByType" + SearchFilterByStatus: + $ref: "#/components/examples/SearchFilterByStatus" + SearchFilterOrAnd: + $ref: "#/components/examples/SearchFilterOrAnd" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/RouteTableEntrySearchResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/400_invalid_sorting" + "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" + "415": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/routers/{routerId}/validate": + post: + tags: + - Routing Protocols + summary: Validate Subnet + description: This API provides capability to validate all subnets associated with any connection in the given FCR + operationId: validateRoutingProtocol + parameters: + - name: routerId + in: path + description: Cloud Router UUID + required: true + schema: + $ref: "#/components/schemas/RouterId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ValidateRequest" + examples: + ValidateDirectIpv4: + $ref: "#/components/examples/Request-direct-ipv4" + ValidateDirectIpv6: + $ref: "#/components/examples/Request-direct-ipv6" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/ValidateSubnetResponse" + examples: + ValidateSubnet: + $ref: "#/components/examples/Response-200" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + Bad Request: + $ref: "#/components/examples/error-400" + Subnet Overlapping: + $ref: "#/components/examples/error-400-overlappingSubnet" + /fabric/v4/routers/search: + post: + tags: + - Cloud Routers + summary: Search Routers + description: The API provides capability to get list of user's Cloud Routers using search criteria, including optional filtering, pagination and sorting + operationId: searchCloudRouters + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CloudRouterSearchRequest" + examples: + SearchFilterByStatus: + $ref: "#/components/examples/SearchFilterByStatus" + SearchFilterByNameAndMetroName: + $ref: "#/components/examples/SearchFilterByNameAndMetroName" + SearchFilterOrAnd: + $ref: "#/components/examples/SearchFilterOrAnd" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/SearchResponse" + examples: + Example: + $ref: "#/components/examples/search-example" + "400": + description: Bad request + content: application/json: schema: $ref: "#/components/schemas/ErrorList" @@ -6846,30 +7208,51 @@ paths: examples: example: $ref: "#/components/examples/404" - "/fabric/v4/timeServices/{serviceId}": - get: + /fabric/v4/timeServices: + post: tags: - Precision Time - summary: Get Time Service - description: The API provides capability to get precision timing service's details - operationId: getTimeServicesById - parameters: - - name: serviceId - in: path - description: Service UUID - required: true - schema: - $ref: "#/components/schemas/ServiceId" + summary: Create Time Service + description: The API provides capability to create Precision Time service + operationId: createTimeServices + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/precisionTimeServiceRequest" + examples: + ntpStandard: + $ref: "#/components/examples/ntpStandardService" + ptpStandard: + $ref: "#/components/examples/ptpStandardService" + ntpEnterprise: + $ref: "#/components/examples/ntpEnterpriseService" + ptpEnterprise: + $ref: "#/components/examples/ptpEnterpriseService" + ptpStandardWithAdvancedConfiguration: + $ref: "#/components/examples/ptpStandardWithAdvancedConfiguration" + ptpEnterpriseWithAdvancedConfiguration: + $ref: "#/components/examples/ptpEnterpriseWithAdvancedConfiguration" + ntpEnterpriseWithAdvancedConfiguration: + $ref: "#/components/examples/ntpEnterpriseWithAdvancedConfiguration" + required: true responses: - "200": - description: Successful operation + "202": + description: Successful Accepted operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" examples: - NtpStandard: + ntpStandard: $ref: "#/components/examples/ntpStandardCreateResponse" + ntpEnterprise: + $ref: "#/components/examples/ntpEnterpriseCreateResponse" + ptpStandard: + $ref: "#/components/examples/ptpStandardCreateResponse" + ptpEnterprise: + $ref: "#/components/examples/ptpEnterpriseCreateResponse" "400": description: Bad request content: @@ -6877,8 +7260,6 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - MandatoryName: - $ref: "#/components/examples/400-Mandatory-Name" InvalidName: $ref: "#/components/examples/400-Invalid-Name" ValidateName: @@ -7001,12 +7382,13 @@ paths: examples: example: $ref: "#/components/examples/500" - delete: + "/fabric/v4/timeServices/{serviceId}": + get: tags: - Precision Time - summary: Delete time service - description: Delete EPT service by it's uuid - operationId: deleteTimeServiceById + summary: Get Service By ID. + description: The API provides capability to get Precision Time Service details + operationId: getTimeServicesById parameters: - name: serviceId in: path @@ -7015,15 +7397,37 @@ paths: schema: $ref: "#/components/schemas/ServiceId" responses: - "202": + "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" - examples: - NtpStandard: - $ref: "#/components/examples/ntpStandardCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" + examples: + ntpStandardOriginPort: + $ref: "#/components/examples/ntpStandardResponseASidePort" + ntpStandardOriginVirtualDevice: + $ref: "#/components/examples/ntpStandardResponseASideVirtualDevice" + ntpStandardOriginCloudRouter: + $ref: "#/components/examples/ntpStandardResponseASideCloudRouter" + ntpEnterpriseOriginPort: + $ref: "#/components/examples/ntpEnterpriseWOMD5ResponseASidePort" + ntpEnterpriseWithAdvConfigOriginPort: + $ref: "#/components/examples/ntpEnterpriseResponseASidePort" + ntpEnterpriseWithAdvConfigOriginVirtualDevice: + $ref: "#/components/examples/ntpEnterpriseResponseASideVirtualDevice" + ntpEnterpriseWithAdvConfigOriginCloudRouter: + $ref: "#/components/examples/ntpEnterpriseResponseASideCloudRouter" + ptpStandardOriginPort: + $ref: "#/components/examples/ptpStandardResponse" + ptpEnterpriseOriginPort: + $ref: "#/components/examples/ptpEnterpriseResponse" + "400": + description: Bad request + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" "401": description: Unauthorized content: @@ -7042,8 +7446,17 @@ paths: examples: example: $ref: "#/components/examples/403" - "415": - description: Unsupported Media Type + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" + "415": + description: Unsupported Media Type content: application/json: schema: @@ -7060,12 +7473,12 @@ paths: examples: example: $ref: "#/components/examples/500" - patch: + put: tags: - Precision Time - summary: Patch time service - description: The API provides capability to update timing service - operationId: updateTimeServicesById + summary: Configure Service. + description: The API provides capability to Configure/Fulfill the Precision Time Service. + operationId: fulfillTimeServices parameters: - name: serviceId in: path @@ -7075,29 +7488,29 @@ paths: $ref: "#/components/schemas/ServiceId" requestBody: content: - application/json-patch+json: + application/json: schema: - maxItems: 1 - minItems: 1 - type: array - items: - $ref: "#/components/schemas/precisionTimeChangeOperation" + $ref: "#/components/schemas/precisionTimeServiceRequest" examples: - editName: - $ref: "#/components/examples/editName" - editPackageCode: - $ref: "#/components/examples/editPackageCode" + ntpStandard: + $ref: "#/components/examples/configureStandardService" + ptpStandard: + $ref: "#/components/examples/configureStandardService" + ntpEnterpriseWithAdvanceConfiguration: + $ref: "#/components/examples/configureNtpEnterpriseAdvancedConfig" + ptpEnterpriseWithAdvanceConfiguration: + $ref: "#/components/examples/configurePtpWithAdvancedConfig" required: true responses: "202": - description: Successful operation + description: Successful Accepted operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" examples: - NtpStandard: - $ref: "#/components/examples/ntpStandardCreateResponse" + ntpStandard: + $ref: "#/components/examples/ntpStandardConfigureResponse" "400": description: Bad request content: @@ -7105,8 +7518,6 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - MandatoryName: - $ref: "#/components/examples/400-Mandatory-Name" InvalidName: $ref: "#/components/examples/400-Invalid-Name" ValidateName: @@ -7211,6 +7622,15 @@ paths: examples: example: $ref: "#/components/examples/403" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" "415": description: Unsupported Media Type content: @@ -7229,39 +7649,118 @@ paths: examples: example: $ref: "#/components/examples/500" - /fabric/v4/timeServices: - post: + delete: tags: - Precision Time - summary: Create Time Service - description: The API provides capability to create timing service - operationId: createTimeServices - parameters: [] + summary: Delete by ID. + description: The API provides capability to delete Precision Time Service by service id. + operationId: deleteTimeServiceById + parameters: + - name: serviceId + in: path + description: Service UUID + required: true + schema: + $ref: "#/components/schemas/ServiceId" + responses: + "202": + description: Successful Delete + content: + application/json: + schema: + $ref: "#/components/schemas/precisionTimeServiceResponse" + examples: + ntpStandard: + $ref: "#/components/examples/ntpStandardDeletingResponse" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + patch: + tags: + - Precision Time + summary: Update By ID. + description: The API provides capability to update Precision Time Service by service id. + operationId: updateTimeServicesById + parameters: + - name: serviceId + in: path + description: Service UUID + required: true + schema: + $ref: "#/components/schemas/ServiceId" requestBody: content: - application/json: + application/json-patch+json: schema: - $ref: "#/components/schemas/precisionTimeServiceRequest" + maxItems: 1 + minItems: 1 + type: array + items: + $ref: "#/components/schemas/precisionTimeChangeOperation" examples: - ntpStandard: - $ref: "#/components/examples/ntpStandard" - ptpStandard: - $ref: "#/components/examples/ptpStandard" - ptpEnterpriseWithAdvanceConfiguration: - $ref: "#/components/examples/ptpEnterpriseWithAdvanceConfiguration" - ntpEnterpriseWithAdvanceConfiguration: - $ref: "#/components/examples/ntpEnterpriseWithAdvanceConfiguration" + updateName: + $ref: "#/components/examples/updateName" + updatePackageCode: + $ref: "#/components/examples/updatePackageCode" + updateNetworkInformation: + $ref: "#/components/examples/updateNetworkInformation" + updatePtpAdvancedConfiguration: + $ref: "#/components/examples/updatePtpAdvancedConfiguration" + updateNtpAdvancedConfiguration: + $ref: "#/components/examples/updateNtpAdvancedConfiguration" required: true responses: "202": - description: Successful operation + description: Successful Accepted operation content: application/json: schema: - $ref: "#/components/schemas/precisionTimeServiceCreateResponse" + $ref: "#/components/schemas/precisionTimeServiceResponse" examples: - NtpStandard: - $ref: "#/components/examples/ntpStandardCreateResponse" + ntpStandard: + $ref: "#/components/examples/ntpStandardReprovisionResponse" "400": description: Bad request content: @@ -7269,8 +7768,6 @@ paths: schema: $ref: "#/components/schemas/ErrorList" examples: - MandatoryName: - $ref: "#/components/examples/400-Mandatory-Name" InvalidName: $ref: "#/components/examples/400-Invalid-Name" ValidateName: @@ -7375,6 +7872,15 @@ paths: examples: example: $ref: "#/components/examples/403" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/404" "415": description: Unsupported Media Type content: @@ -7673,131 +8179,1233 @@ paths: example: $ref: "#/components/examples/500" x-preview: false -components: - schemas: - ConnectionPostRequest: - required: - - aSide - - bandwidth - - name - - notifications - - type - - zSide - type: object - properties: - type: - $ref: "#/components/schemas/ConnectionType" - name: - type: string - description: Customer-provided connection name - order: - $ref: "#/components/schemas/Order" - notifications: - type: array - description: Preferences for notifications on connection configuration or status changes - items: - $ref: "#/components/schemas/SimplifiedNotification" - bandwidth: - maximum: 50000 - minimum: 0 - type: integer - description: Connection bandwidth in Mbps - geoScope: - $ref: "#/components/schemas/GeoScopeType" - redundancy: - $ref: "#/components/schemas/ConnectionRedundancy" - aSide: - $ref: "#/components/schemas/ConnectionSide" - zSide: - $ref: "#/components/schemas/ConnectionSide" - project: - $ref: "#/components/schemas/Project" - additionalInfo: - type: array - description: Connection additional information - items: - $ref: "#/components/schemas/ConnectionSideAdditionalInfo" - marketplaceSubscription: - $ref: "#/components/schemas/marketplaceSubscription" - description: Create connection post request - BaseConnection: - type: object - properties: - type: - $ref: "#/components/schemas/ConnectionType" - href: - type: string - description: Connection URI - format: uri - readOnly: true - uuid: - type: string - description: Equinix-assigned connection identifier - name: - type: string - description: Customer-provided connection name - description: - type: string - description: Customer-provided connection description - state: - $ref: "#/components/schemas/ConnectionState" - change: - $ref: "#/components/schemas/Change" - operation: - $ref: "#/components/schemas/ConnectionOperation" - order: - $ref: "#/components/schemas/Order" - notifications: - type: array - description: Preferences for notifications on connection configuration or status changes - items: - $ref: "#/components/schemas/SimplifiedNotification" - account: - $ref: "#/components/schemas/SimplifiedAccount" - changeLog: - $ref: "#/components/schemas/Changelog" - bandwidth: - maximum: 10000 - minimum: 0 - type: integer - description: Connection bandwidth in Mbps - geoScope: - $ref: "#/components/schemas/GeoScopeType" - redundancy: - $ref: "#/components/schemas/ConnectionRedundancy" - isRemote: - type: boolean - description: Connection property derived from access point locations - direction: - $ref: "#/components/schemas/ConnectionDirection" - aSide: - $ref: "#/components/schemas/ConnectionSide" - zSide: - $ref: "#/components/schemas/ConnectionSide" - marketplaceSubscription: - $ref: "#/components/schemas/marketplaceSubscription" - additionalInfo: - type: array - description: Connection additional information - items: - $ref: "#/components/schemas/ConnectionSideAdditionalInfo" - project: - $ref: "#/components/schemas/Project" - description: Connection base specification - Connection: - required: - - aSide - - bandwidth - - name - - type - - zSide - type: object - allOf: - - $ref: "#/components/schemas/BaseConnection" - description: Connection specification - ErrorList: - type: array - description: List of Error Message + /fabric/v4/streams: + get: + tags: + - Streams + summary: Get Streams + description: This API provides capability to retrieve streams + operationId: getStreams + 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 + content: + application/json: + schema: + $ref: "#/components/schemas/GetAllStreamResponse" + examples: + Example: + $ref: "#/components/examples/stream-get-all-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" + post: + tags: + - Streams + summary: Create Stream + description: This API provides capability to create user's stream + operationId: createStreams + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamPostRequest" + examples: + CreateStream: + $ref: "#/components/examples/StreamPostRequestExample" + required: true + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamResponseExample" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/streams/{streamId}": + get: + tags: + - Streams + summary: Get Stream + description: This API provides capability to get user's stream + operationId: getStreamByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "200": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamResponseExample" + "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: + - Streams + summary: Update Stream + description: This API provides capability to update user's stream + operationId: updateStreamByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamPutRequest" + examples: + UpdateStream: + $ref: "#/components/examples/StreamPutRequestExample" + required: true + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamResponse: + $ref: "#/components/examples/StreamResponseExample" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + delete: + tags: + - Streams + summary: Delete Stream + description: This API provides capability to delete user's stream + operationId: deleteStreamByUuid + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/Stream" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamDeleteRequestExample" + "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" + /fabric/v4/streamAssets/search: + post: + tags: + - Streams + summary: Get Assets + description: This API provides capability to retrieve stream assets + operationId: getStreamsAssets + 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 + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAssetSearchRequest" + examples: + SearchAssets: + $ref: "#/components/examples/StreamAssetSearchRequestExample" + required: true + responses: + "200": + description: Successful operation + content: + application/json: + schema: + $ref: "#/components/schemas/GetAllStreamAssetResponse" + examples: + Example: + $ref: "#/components/examples/stream-asset-get-all-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/streams/{streamId}/{asset}/{assetId}": + get: + tags: + - Streams + summary: Get Asset + description: This API provides capability to get user's assets attached to a stream + operationId: getStreamAssetByUuid + parameters: + - name: assetId + in: path + description: asset UUID + required: true + schema: + $ref: "#/components/schemas/AssetId" + - name: asset + in: path + description: asset + required: true + schema: + $ref: "#/components/schemas/Asset" + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "200": + description: Stream asset object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAsset" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamConnectionAssetResponseExample" + "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: + - Streams + summary: Attach Asset + description: This API provides capability to attach an asset to a stream + operationId: updateStreamAssetByUuid + parameters: + - name: assetId + in: path + description: asset UUID + required: true + schema: + $ref: "#/components/schemas/AssetId" + - name: asset + in: path + description: asset + required: true + schema: + $ref: "#/components/schemas/Asset" + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAssetPutRequest" + examples: + UpdateStream: + $ref: "#/components/examples/StreamAssetPutRequestExample" + required: true + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAsset" + examples: + StreamAssetResponse: + $ref: "#/components/examples/StreamRouterAssetAttachResponseExample" + "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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + delete: + tags: + - Streams + summary: Detach Asset + description: This API provides capability to detach an asset from a stream + operationId: deleteStreamAssetByUuid + parameters: + - name: assetId + in: path + description: asset UUID + required: true + schema: + $ref: "#/components/schemas/AssetId" + - name: asset + in: path + description: asset + required: true + schema: + $ref: "#/components/schemas/Asset" + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + responses: + "202": + description: Stream object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamAsset" + examples: + StreamAssetResponse: + $ref: "#/components/examples/StreamRouterAssetDetachResponseExample" + "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" + "/fabric/v4/streams/{streamId}/streamSubscriptions": + get: + tags: + - Streams + summary: Get Stream's Subs + description: This API provides capability to retrieve subscriptions in a stream + operationId: getSubscriptionsInStream + parameters: + - name: streamId + in: path + description: Stream UUID + required: true + schema: + $ref: "#/components/schemas/StreamId" + - 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 + 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 + content: + application/json: + schema: + $ref: "#/components/schemas/GetAllStreamSubscriptionResponse" + examples: + Example: + $ref: "#/components/examples/stream-subscription-get-all-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" + post: + tags: + - Stream Subscriptions + summary: Create Subscription + description: This API provides capability to create user's Stream Subscriptions + operationId: createStreamSubscriptions + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscriptionPostRequest" + examples: + CreateStreamSubscription_Splunk: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSplunk" + CreateStreamSubscription_Slack: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleSlack" + CreateStreamSubscription_Pagerduty: + $ref: "#/components/examples/StreamSubscriptionPostRequestExamplePagerduty" + CreateStreamSubscription_Datadog: + $ref: "#/components/examples/StreamSubscriptionPostRequestExampleDatadog" + required: true + responses: + "202": + 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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + "/fabric/v4/streamSubscriptions/{streamSubscriptionId}": + get: + tags: + - Stream Subscriptions + summary: Get Subscription + description: This API provides capability to delete user's get Stream Subscriptions + operationId: getStreamSubscriptionByUuid + parameters: + - name: streamSubscriptionId + in: path + description: Stream Subscription 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 + 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: + 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" + "415": + description: Unsupported Media Type + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/415" + "500": + description: Internal server error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorList" + examples: + example: + $ref: "#/components/examples/500" + delete: + tags: + - Stream Subscriptions + summary: Delete Subscription + description: This API provides capability to delete user's Stream Subscriptions + operationId: deleteStreamSubscriptionByUuid + parameters: + - name: streamSubscriptionId + in: path + description: Stream Subscription UUID + required: true + schema: + $ref: "#/components/schemas/StreamSubscriptionId" + responses: + "202": + description: Stream Subscription object + content: + application/json: + schema: + $ref: "#/components/schemas/StreamSubscription" + examples: + StreamSubscriptionResponse: + $ref: "#/components/examples/StreamSubscriptionDeleteResponseExample" + "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" +components: + schemas: + ConnectionPostRequest: + required: + - aSide + - bandwidth + - name + - notifications + - type + - zSide + type: object + properties: + type: + $ref: "#/components/schemas/ConnectionType" + name: + type: string + description: Customer-provided connection name + order: + $ref: "#/components/schemas/Order" + notifications: + type: array + description: Preferences for notifications on connection configuration or status changes + items: + $ref: "#/components/schemas/SimplifiedNotification" + bandwidth: + maximum: 50000 + minimum: 0 + type: integer + description: Connection bandwidth in Mbps + geoScope: + $ref: "#/components/schemas/GeoScopeType" + redundancy: + $ref: "#/components/schemas/ConnectionRedundancy" + aSide: + $ref: "#/components/schemas/ConnectionSide" + zSide: + $ref: "#/components/schemas/ConnectionSide" + project: + $ref: "#/components/schemas/Project" + additionalInfo: + type: array + description: Connection additional information + items: + $ref: "#/components/schemas/ConnectionSideAdditionalInfo" + marketplaceSubscription: + $ref: "#/components/schemas/marketplaceSubscription" + description: Create connection post request + Connection: + required: + - aSide + - bandwidth + - name + - type + - zSide + type: object + properties: + href: + type: string + description: Connection URI + format: uri + readOnly: true + type: + $ref: "#/components/schemas/ConnectionType" + uuid: + type: string + description: Equinix-assigned connection identifier + name: + type: string + description: Customer-provided connection name + description: + type: string + description: Customer-provided connection description + state: + $ref: "#/components/schemas/ConnectionState" + change: + $ref: "#/components/schemas/Change" + operation: + $ref: "#/components/schemas/ConnectionOperation" + order: + $ref: "#/components/schemas/Order" + notifications: + type: array + description: Preferences for notifications on connection configuration or status changes + items: + $ref: "#/components/schemas/SimplifiedNotification" + account: + $ref: "#/components/schemas/SimplifiedAccount" + changeLog: + $ref: "#/components/schemas/Changelog" + bandwidth: + maximum: 10000 + minimum: 0 + type: integer + description: Connection bandwidth in Mbps + geoScope: + $ref: "#/components/schemas/GeoScopeType" + redundancy: + $ref: "#/components/schemas/ConnectionRedundancy" + isRemote: + type: boolean + description: Connection property derived from access point locations + direction: + $ref: "#/components/schemas/ConnectionDirection" + aSide: + $ref: "#/components/schemas/ConnectionSide" + zSide: + $ref: "#/components/schemas/ConnectionSide" + marketplaceSubscription: + $ref: "#/components/schemas/marketplaceSubscription" + additionalInfo: + type: array + description: Connection additional information + items: + $ref: "#/components/schemas/ConnectionSideAdditionalInfo" + project: + $ref: "#/components/schemas/Project" + description: Connection specification + ErrorList: + type: array + description: List of Error Message items: $ref: "#/components/schemas/Error" ConnectionId: @@ -7829,7 +9437,7 @@ components: $ref: "#/components/schemas/Actions" description: type: string - description: Connection rejection reason datail + description: Connection rejection reason detail data: $ref: "#/components/schemas/ConnectionAcceptanceData" description: Connection action request @@ -7859,6 +9467,108 @@ components: changeLog: $ref: "#/components/schemas/Changelog" description: Connection action + ConnectionRouteSearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/ConnectionRouteEntryFilters" + pagination: + $ref: "#/components/schemas/PaginationRequest" + sort: + type: array + items: + $ref: "#/components/schemas/ConnectionRouteSortCriteria" + description: Search requests containing criteria + ConnectionRouteEntryFilters: + type: object + properties: + and: + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/ConnectionRouteEntryFilter" + ConnectionRouteEntryFilter: + type: object + anyOf: + - $ref: "#/components/schemas/ConnectionRouteEntrySimpleExpression" + - $ref: "#/components/schemas/ConnectionRouteEntryOrFilter" + ConnectionRouteEntrySimpleExpression: + type: object + properties: + property: + type: string + description: | + Possible field names to use on filters: + * `/type` - Route table entry type + * `/state` - Route table entry state + * `/prefix` - Route table entry prefix + * `/nextHop` - Route table entry nextHop + * `/*` - all-category search + example: /type + operator: + type: string + description: | + Possible operators to use on filters: + * `=` - equal + * `!=` - not equal + * `>` - greater than + * `>=` - greater than or equal to + * `<` - less than + * `<=` - less than or equal to + * `[NOT] BETWEEN` - (not) between + * `[NOT] LIKE` - (not) like + * `[NOT] IN` - (not) in + * `~*` - case-insensitive like + example: = + values: + type: array + items: + type: string + example: IPv4_BGP_ROUTE + ConnectionRouteEntryOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/ConnectionRouteEntrySimpleExpression" + ConnectionRouteSortCriteria: + type: object + properties: + direction: + $ref: "#/components/schemas/ConnectionRouteEntrySortDirection" + property: + $ref: "#/components/schemas/ConnectionRouteEntrySortBy" + ConnectionRouteEntrySortDirection: + type: string + description: Sorting direction + default: DESC + enum: + - DESC + - ASC + ConnectionRouteEntrySortBy: + type: string + description: Possible field names to use on sorting + default: /changeLog/updatedDateTime + enum: + - /changeLog/createdDateTime + - /changeLog/updatedDateTime + - /med + - /connection/name + - /type + - /prefix + - /nextHop + ConnectionRouteTableEntrySearchResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + description: Data returned from the API call. + items: + $ref: "#/components/schemas/ConnectionRouteTableEntry" GetResponse: type: object properties: @@ -9022,8 +10732,6 @@ components: description: Service Token UUID format: uuid ServiceToken: - required: - - uuid type: object properties: type: @@ -9037,6 +10745,12 @@ components: type: string description: Equinix-assigned service token identifier format: uuid + issuerSide: + type: string + description: information about token side + enum: + - ASIDE + - ZSIDE name: type: string description: Customer-provided service token name @@ -9264,21 +10978,21 @@ components: type: array description: GET All User Port Across Fabric Metros items: - $ref: "#/components/schemas/PortResponse" + $ref: "#/components/schemas/Port" description: GET All User Port Across Fabric Metros - PortResponse: + Port: type: object properties: - type: - $ref: "#/components/schemas/PortType" - id: - type: integer - description: Equinix assigned response attribute for Port Id href: type: string description: Equinix assigned response attribute for an absolute URL that is the subject of the link's context. format: uri readOnly: true + type: + $ref: "#/components/schemas/PortType" + id: + type: integer + description: Equinix assigned response attribute for Port Id uuid: type: string description: Equinix assigned response attribute for port identifier @@ -9326,18 +11040,17 @@ components: $ref: "#/components/schemas/PortState" order: $ref: "#/components/schemas/PortOrder" - cvpId: - type: string - description: Equinix assigned response attribute for Unique ID for a virtual port. operation: - $ref: "#/components/schemas/PortOperation" + allOf: + - $ref: "#/components/schemas/PortOperation" account: - $ref: "#/components/schemas/SimplifiedAccountPortResponse" - changelog: + $ref: "#/components/schemas/SimplifiedAccount" + changeLog: $ref: "#/components/schemas/Changelog" serviceType: type: string description: Port service Type + deprecated: true enum: - EPL - MSP @@ -9345,6 +11058,7 @@ components: minimum: 0 type: integer description: Equinix assigned response attribute for Port bandwidth in Mbps + deprecated: true availableBandwidth: minimum: 0 type: integer @@ -9375,10 +11089,13 @@ components: type: boolean description: If LAG enabled lag: - $ref: "#/components/schemas/PortLag" + allOf: + - $ref: "#/components/schemas/PortLag" asn: type: integer description: Port ASN + package: + $ref: "#/components/schemas/Package" settings: $ref: "#/components/schemas/PortSettings" physicalPortQuantity: @@ -9404,37 +11121,21 @@ components: description: Port Loas items: $ref: "#/components/schemas/PortLoa" - description: Port response specification - Port: - required: - - account - - connectivitySourceType - - encapsulation - - location - - physicalPortsSpeed - - physicalPortsType - - settings - - type - type: object - description: Port is the Request Object for Creating Fabric Ports - allOf: - - $ref: "#/components/schemas/PortResponse" - properties: - account: - $ref: "#/components/schemas/SimplifiedAccount" + description: Port specification PhysicalPort: type: object properties: - type: - $ref: "#/components/schemas/PhysicalPortType" - id: - type: integer - description: Equinix assigned response attribute for Physical Port Id href: type: string description: Equinix assigned response attribute for an absolute URL that is the subject of the link's context. format: uri readOnly: true + type: + $ref: "#/components/schemas/PhysicalPortType" + id: + type: integer + description: Equinix assigned response attribute for Physical Port Id + deprecated: true state: $ref: "#/components/schemas/PortState" account: @@ -9446,10 +11147,18 @@ components: interfaceType: type: string description: Physical Port Interface Type + uuid: + type: string + description: Equinix assigned response attribute for physical port identifier + format: uuid tether: $ref: "#/components/schemas/PortTether" demarcationPoint: $ref: "#/components/schemas/PortDemarcationPoint" + settings: + $ref: "#/components/schemas/PhysicalPortSettings" + interface: + $ref: "#/components/schemas/PortInterface" notifications: type: array description: Notification preferences @@ -9470,14 +11179,37 @@ components: items: $ref: "#/components/schemas/PortLoa" description: Physical Port specification + PortRequest: + required: + - account + - connectivitySourceType + - encapsulation + - location + - physicalPortsSpeed + - physicalPortsType + - settings + - type + type: object + description: PortRequest is the Request Object for creating single and bulk fabric ports + allOf: + - $ref: "#/components/schemas/Port" + BulkPortRequest: + type: object + properties: + data: + type: array + items: + $ref: "#/components/schemas/PortRequest" + description: Create bulk port request BulkPort: type: object properties: data: type: array + description: Ports that are part of BulkPort items: $ref: "#/components/schemas/Port" - description: Create bulk port request + description: Bulk Port specification BulkPhysicalPort: type: object properties: @@ -10043,7 +11775,7 @@ components: type: string description: Cloud Router action state enum: - - DONE + - SUCCEEDED - FAILED - PENDING CloudRouterActionResponse: @@ -10067,15 +11799,127 @@ components: $ref: "#/components/schemas/CloudRouterActionState" changeLog: $ref: "#/components/schemas/Changelog" + href: + type: string + example: https://api.equinix.com//fabric/v4/routers/a1c6b7fd-aead-410a-96b4-b1dfa1071700/actions/1e9414f1-763e-4c0a-86c6-0bc8336048d9 + connection: + $ref: "#/components/schemas/RouterActionsConnection" + operation: + $ref: "#/components/schemas/Operation" description: Cloud Router actions response object CloudRouterActionRequest: required: - type type: object properties: - type: - $ref: "#/components/schemas/CloudRouterActionType" - description: Cloud Router action request + type: + $ref: "#/components/schemas/CloudRouterActionType" + connection: + $ref: "#/components/schemas/RouterActionsConnection" + description: Cloud Router action request + CloudRouterActionsSearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/CloudRouterActionsSearchFilters" + pagination: + $ref: "#/components/schemas/PaginationRequest" + sort: + type: array + items: + $ref: "#/components/schemas/CloudRouterActionsSearchSortCriteria" + description: Search requests containing criteria + CloudRouterActionsSearchFilters: + type: object + properties: + and: + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/CloudRouterActionsSearchFilter" + CloudRouterActionsSearchFilter: + type: object + anyOf: + - $ref: "#/components/schemas/CloudRouterActionsSearchExpression" + - $ref: "#/components/schemas/CloudRouterActionsSearchOrFilter" + CloudRouterActionsSearchExpression: + type: object + properties: + property: + type: string + description: | + Possible field names to use on filters: + * `/type` - type of update + * `/state` - action state + * `/connection/uuid` - connection uuid associated + * `/*` - all-category search + example: /type + operator: + type: string + description: | + Possible operators to use on filters: + * `=` - equal + * `!=` - not equal + * `>` - greater than + * `>=` - greater than or equal to + * `<` - less than + * `<=` - less than or equal to + * `[NOT] BETWEEN` - (not) between + * `[NOT] LIKE` - (not) like + * `[NOT] IN` - (not) in + * `~*` - case-insensitive like + example: = + values: + type: array + items: + type: string + example: ROUTE_TABLE_ENTRY_UPDATE + CloudRouterActionsSearchOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/CloudRouterActionsSearchExpression" + CloudRouterActionsSearchSortCriteria: + type: object + properties: + direction: + $ref: "#/components/schemas/CloudRouterActionsSearchSortDirection" + property: + $ref: "#/components/schemas/CloudRouterActionsSearchSortBy" + CloudRouterActionsSearchSortDirection: + type: string + description: Sorting direction + default: DESC + enum: + - DESC + - ASC + CloudRouterActionsSearchSortBy: + type: string + description: Possible field names to use on sorting + default: /changeLog/updatedDateTime + enum: + - /changeLog/createdDateTime + - /changeLog/updatedDateTime + - /connection/name + - /type + CloudRouterActionsSearchResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + description: Data returned from the API call. + items: + $ref: "#/components/schemas/CloudRouterActionResponse" + ActionId_1: + type: string + description: Action UUID + format: uuid + example: 457400f8-d360-11e9-bb65-2a2ae2dbcced RouteTableEntrySearchRequest: type: object properties: @@ -10426,7 +12270,7 @@ components: type: array description: Connection response data items: - $ref: "#/components/schemas/BaseConnection" + $ref: "#/components/schemas/ValidateConnectionResponse" description: ValidateResponse Pagination: required: @@ -10458,402 +12302,818 @@ components: NetworkPostRequest: required: - name - - notifications - - scope + - notifications + - scope + - type + type: object + properties: + type: + $ref: "#/components/schemas/NetworkType" + name: + type: string + description: Customer-provided network name + scope: + $ref: "#/components/schemas/NetworkScope" + location: + $ref: "#/components/schemas/SimplifiedLocation" + project: + $ref: "#/components/schemas/Project" + notifications: + type: array + description: Preferences for notifications on network configuration or status changes + items: + $ref: "#/components/schemas/SimplifiedNotification" + description: Create Network + Network: + type: object + description: Network specification + allOf: + - required: + - changeLog + - href + - state + - uuid + type: object + properties: + href: + type: string + description: Network URI + format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/networks/92dc376a-a932-43aa-a6a2-c806dedbd784 + uuid: + type: string + description: Equinix-assigned network identifier + format: uuid + example: 92dc376a-a932-43aa-a6a2-c806dedbd784 + state: + $ref: "#/components/schemas/NetworkState" + connectionsCount: + type: number + description: number of connections created on the network + account: + $ref: "#/components/schemas/SimplifiedAccount" + change: + $ref: "#/components/schemas/SimplifiedNetworkChange" + operation: + $ref: "#/components/schemas/NetworkOperation" + changeLog: + $ref: "#/components/schemas/Changelog" + links: + type: array + description: Network sub-resources links + readOnly: true + items: + $ref: "#/components/schemas/Link" + - $ref: "#/components/schemas/NetworkPostRequest" + NetworkId: + type: string + description: Network UUID + format: uuid + example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + NetworkUpdateRequest: + minItems: 1 + type: array + description: Fabric Network Update Request + items: + $ref: "#/components/schemas/NetworkChangeOperation" + NetworkSearchRequest: + type: object + properties: + filter: + $ref: "#/components/schemas/NetworkFilter" + pagination: + $ref: "#/components/schemas/PaginationRequest" + sort: + type: array + items: + $ref: "#/components/schemas/NetworkSortCriteria" + description: Search requests containing criteria + NetworkFilter: + type: object + properties: + and: + $ref: "#/components/schemas/NetworkSimpleExpression" + or: + $ref: "#/components/schemas/NetworkSimpleExpression" + property: + $ref: "#/components/schemas/NetworkSearchFieldName" + operator: + type: string + example: = + enum: + - = + - "!=" + - ">" + - ">=" + - < + - <= + - BETWEEN + - NOT BETWEEN + - LIKE + - NOT LIKE + - ILIKE + - NOT ILIKE + - IN + - NOT IN + values: + type: array + items: + type: string + example: Network-1 + NetworkSimpleExpression: + type: array + items: + $ref: "#/components/schemas/NetworkFilter" + NetworkSearchFieldName: + type: string + description: Possible field names to use on filters + example: /name + enum: + - /name + - /uuid + - /scope + - /type + - /operation/equinixStatus + - /location/region + - /project/projectId + - /account/globalCustId + - /account/orgId + - /deletedDate + - /* + NetworkSortCriteria: + type: object + properties: + direction: + $ref: "#/components/schemas/NetworkSortDirection" + property: + $ref: "#/components/schemas/NetworkSortBy" + NetworkSortDirection: + type: string + description: Sorting direction + default: DESC + enum: + - DESC + - ASC + NetworkSortBy: + type: string + description: Possible field names to use on sorting + default: /changeLog/updatedDateTime + enum: + - /name + - /uuid + - /scope + - /operation/equinixStatus + - /location/region + - /changeLog/createdDateTime + - /changeLog/updatedDateTime + NetworkSearchResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + sort: + type: array + items: + $ref: "#/components/schemas/NetworkSortCriteriaResponse" + data: + type: array + items: + $ref: "#/components/schemas/Network" + description: List of networks + NetworkConnections: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + items: + $ref: "#/components/schemas/Connection" + description: List of network changes + NetworkChangeResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + items: + $ref: "#/components/schemas/NetworkChange" + description: List of network changes + ChangeId_3: + type: string + description: Network Change UUID + format: uuid + example: 6d500177-9404-41f2-99e8-2bf1a84d8db5 + NetworkChange: + type: object + properties: + href: + type: string + description: Network URI + format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 + uuid: + type: string + description: Uniquely identifies a change + format: uuid + example: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 + type: + $ref: "#/components/schemas/NetworkChangeType" + status: + $ref: "#/components/schemas/NetworkChangeStatus" + createdDateTime: + type: string + description: Set when change flow starts + format: date-time + example: 2020-11-06T07:00:00Z + updatedDateTime: + type: string + description: Set when change object is updated + format: date-time + example: 2020-11-06T07:00:00Z + data: + type: array + items: + $ref: "#/components/schemas/NetworkChangeOperation" + description: Current state of latest network change + precisionTimeServiceRequest: + title: precisionTimeServiceRequest + required: + - connections + - ipv4 + - name + - package - type type: object properties: type: - $ref: "#/components/schemas/NetworkType" + type: string + description: Precision Time Service Type refers to the corresponding Protocol. + enum: + - NTP + - PTP name: type: string - description: Customer-provided network name - scope: - $ref: "#/components/schemas/NetworkScope" - location: - $ref: "#/components/schemas/SimplifiedLocation" + description: Precision Time Service name. + package: + $ref: "#/components/schemas/precisionTimePackageRequest" + connections: + type: array + items: + $ref: "#/components/schemas/virtualConnectionUuid" + ipv4: + $ref: "#/components/schemas/ipv4" + ntpAdvancedConfiguration: + $ref: "#/components/schemas/ntpAdvanceConfiguration" + ptpAdvancedConfiguration: + $ref: "#/components/schemas/ptpAdvanceConfiguration" project: $ref: "#/components/schemas/Project" - notifications: + order: + $ref: "#/components/schemas/precisionTimeOrder" + description: Create Precision Time Service Request Schema. + precisionTimeServiceResponse: + title: precisionTimeServiceResponse + required: + - href + - package + - state + - type + - uuid + type: object + properties: + href: + type: string + description: Precision Time Service URI. + format: uri + type: + type: string + description: Precision Time Service type refers to the corresponding protocol. + enum: + - NTP + - PTP + name: + type: string + description: Precision Time Service Name. + uuid: + type: string + description: Precision Time Service UUID. + format: uuid + state: + type: string + description: Precision Time Service Status. + enum: + - CANCELLED + - CONFIGURING + - CONFIGURING_FAILED + - DRAFT + - DEPROVISIONING + - DEPROVISIONING_FAILED + - DEPROVISIONED + - PROVISIONED + - PROVISIONING + - PROVISIONING_FAILED + - REPROVISIONING + - REPROVISIONING_FAILED + package: + $ref: "#/components/schemas/precisionTimePackageResponse" + connections: + maxItems: 2 + minItems: 1 + uniqueItems: true type: array - description: Preferences for notifications on network configuration or status changes + description: Fabric Connections associated with Precision Time Service. items: - $ref: "#/components/schemas/SimplifiedNotification" - description: Create Network - Network: - type: object - description: Network specification - allOf: - - required: - - changeLog - - href - - state - - uuid - type: object - properties: - href: - type: string - description: Network URI - format: uri - readOnly: true - example: https://api.equinix.com/fabric/v4/networks/92dc376a-a932-43aa-a6a2-c806dedbd784 - uuid: - type: string - description: Equinix-assigned network identifier - format: uuid - example: 92dc376a-a932-43aa-a6a2-c806dedbd784 - state: - $ref: "#/components/schemas/NetworkState" - connectionsCount: - type: number - description: number of connections created on the network - account: - $ref: "#/components/schemas/SimplifiedAccount" - change: - $ref: "#/components/schemas/SimplifiedNetworkChange" - operation: - $ref: "#/components/schemas/NetworkOperation" - changeLog: - $ref: "#/components/schemas/Changelog" - links: - type: array - description: Network sub-resources links - readOnly: true - items: - $ref: "#/components/schemas/Link" - - $ref: "#/components/schemas/NetworkPostRequest" - NetworkId: + $ref: "#/components/schemas/virtualConnectionTimeServiceResponse" + ipv4: + $ref: "#/components/schemas/ipv4" + ntpAdvancedConfiguration: + $ref: "#/components/schemas/ntpAdvanceConfiguration" + ptpAdvancedConfiguration: + $ref: "#/components/schemas/ptpAdvanceConfiguration" + project: + $ref: "#/components/schemas/Project" + account: + $ref: "#/components/schemas/SimplifiedAccount" + order: + $ref: "#/components/schemas/precisionTimeOrder" + changeLog: + $ref: "#/components/schemas/Changelog" + description: Precision Time Service Response Schema. + ServiceId: type: string - description: Network UUID + description: Precision Time Service UUID format: uuid example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 - NetworkUpdateRequest: - minItems: 1 - type: array - description: Fabric Network Update Request - items: - $ref: "#/components/schemas/NetworkChangeOperation" - NetworkSearchRequest: + precisionTimeChangeOperation: + required: + - op + - path + - value + type: object + properties: + op: + type: string + description: Handy shortcut for operation name + enum: + - replace + - add + - remove + path: + type: string + description: path inside document leading to updated parameter + enum: + - /name + - /package/code + - /ipv4 + - /ntpAdvancedConfiguration + - /ptpAdvancedConfiguration + value: + description: new value for updated parameter + description: Fabric Precision Timing change operation data + TimeServicesSearchRequest: type: object properties: filter: - $ref: "#/components/schemas/NetworkFilter" + $ref: "#/components/schemas/TimeServiceFilters" pagination: $ref: "#/components/schemas/PaginationRequest" sort: type: array items: - $ref: "#/components/schemas/NetworkSortCriteria" + $ref: "#/components/schemas/TimeServiceSortCriteria" description: Search requests containing criteria - NetworkFilter: + TimeServiceFilters: type: object properties: and: - $ref: "#/components/schemas/NetworkSimpleExpression" - or: - $ref: "#/components/schemas/NetworkSimpleExpression" + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/TimeServiceFilter" + TimeServiceFilter: + type: object + anyOf: + - $ref: "#/components/schemas/TimeServiceSimpleExpression" + - $ref: "#/components/schemas/TimeServiceOrFilter" + TimeServiceSimpleExpression: + type: object + properties: property: - $ref: "#/components/schemas/NetworkSearchFieldName" + type: string + description: | + Possible field names to use on filters: + * `/project/projectId` - project id (mandatory) + * `/name` - Precision Time Service name + * `/uuid` - Precision Time Service uuid + * `/type` - Precision Time Service protocol + * `/state` - Precision Time Service status + * `/account/accountNumber` - Precision Time Service account number + * `/package/code` - Precision Time Service package + * `/*` - all-category search + example: /name operator: type: string + description: | + Possible operators to use on filters: + * `=` - equal + * `!=` - not equal + * `[NOT] BETWEEN` - (not) between + * `[NOT] LIKE` - (not) like + * `[NOT] IN` - (not) in + * `ILIKE` - case-insensitive like example: = - enum: - - = - - "!=" - - ">" - - ">=" - - < - - <= - - BETWEEN - - NOT BETWEEN - - LIKE - - NOT LIKE - - ILIKE - - NOT ILIKE - - IN - - NOT IN values: type: array items: type: string - example: Network-1 - NetworkSimpleExpression: - type: array - items: - $ref: "#/components/schemas/NetworkFilter" - NetworkSearchFieldName: - type: string - description: Possible field names to use on filters - example: /name - enum: - - /name - - /uuid - - /scope - - /type - - /operation/equinixStatus - - /location/region - - /project/projectId - - /account/globalCustId - - /account/orgId - - /deletedDate - - /* - NetworkSortCriteria: + example: FabricPrecisionTimeService-1 + TimeServiceOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/TimeServiceSimpleExpression" + TimeServiceSortCriteria: type: object properties: direction: - $ref: "#/components/schemas/NetworkSortDirection" + $ref: "#/components/schemas/TimeServiceSortDirection" property: - $ref: "#/components/schemas/NetworkSortBy" - NetworkSortDirection: + $ref: "#/components/schemas/TimeServiceSortBy" + TimeServiceSortDirection: type: string description: Sorting direction default: DESC enum: - DESC - ASC - NetworkSortBy: + TimeServiceSortBy: type: string description: Possible field names to use on sorting default: /changeLog/updatedDateTime enum: - /name - /uuid - - /scope - - /operation/equinixStatus - - /location/region + - /state + - /type + - /package/code - /changeLog/createdDateTime - /changeLog/updatedDateTime - NetworkSearchResponse: + ServiceSearchResponse: type: object properties: pagination: $ref: "#/components/schemas/Pagination" - sort: - type: array - items: - $ref: "#/components/schemas/NetworkSortCriteriaResponse" data: type: array + description: Data returned from the API call. items: - $ref: "#/components/schemas/Network" - description: List of networks - NetworkConnections: + $ref: "#/components/schemas/precisionTimeServiceResponse" + precisionTimeServiceConnectionsResponse: + title: precisionTimeServiceConnectionResponse type: object properties: pagination: $ref: "#/components/schemas/Pagination" data: type: array + description: Data returned from the API call items: - $ref: "#/components/schemas/Connection" - description: List of network changes - NetworkChangeResponse: + $ref: "#/components/schemas/connectionLink" + description: EPT service instance's L2 connections + precisionTimeServicePackagesResponse: + title: precisionTimeServicePackagesResponse type: object properties: pagination: $ref: "#/components/schemas/Pagination" data: type: array + description: Data returned from the API call items: - $ref: "#/components/schemas/NetworkChange" - description: List of network changes - ChangeId_3: - type: string - description: Network Change UUID - format: uuid - example: 6d500177-9404-41f2-99e8-2bf1a84d8db5 - NetworkChange: + $ref: "#/components/schemas/precisionTimePackageResponse" + description: Precision Packages + precisionTimePackageResponse: + title: precisionTimePackageRespose + required: + - bandwidth + - code + - type type: object properties: href: type: string - description: Network URI format: uri - readOnly: true - example: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 - uuid: - type: string - description: Uniquely identifies a change - format: uuid - example: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 type: - $ref: "#/components/schemas/NetworkChangeType" - status: - $ref: "#/components/schemas/NetworkChangeStatus" - createdDateTime: type: string - description: Set when change flow starts - format: date-time - example: 2020-11-06T07:00:00Z - updatedDateTime: + enum: + - TIME_SERVICE_PACKAGE + code: type: string - description: Set when change object is updated - format: date-time - example: 2020-11-06T07:00:00Z - data: - type: array - items: - $ref: "#/components/schemas/NetworkChangeOperation" - description: Current state of latest network change - ServiceId: + enum: + - NTP_STANDARD + - NTP_ENTERPRISE + - PTP_STANDARD + - PTP_ENTERPRISE + bandwidth: + type: integer + description: Connection bandwidth in Mbps. + example: 10 + clientsPerSecondMax: + minimum: 0 + type: integer + description: Max. number of clients that can be synchronized per second at a packet rate of 1 per second. + example: 100 + redundancySupported: + type: boolean + description: Is Redundant virtual connection supported for the package code. + example: false + multiSubnetSupported: + type: boolean + description: Is Multiple subnet supported for the package code. + example: true + accuracySlaUnit: + type: string + description: Accuracy SLA unit. + example: microseconds + accuracySla: + type: integer + description: Accuracy SLA for the package code, -1 value denotes the accuracySla is not published. + example: 50 + accuracySlaMin: + minimum: 1 + type: integer + description: Typical minimum Accuracy for the package code. + example: 1 + accuracySlaMax: + minimum: 1 + type: integer + description: Typical maximum Accuracy for the package code. + example: 10 + changelog: + $ref: "#/components/schemas/Changelog" + description: EPT Service Package Information + example: + href: https://api.equinix.com/fabric/v4/timeServicePackage/NTP_STANDARD + type: TIME_SERVICE_PACKAGE + code: NTP_STANDARD + bandwidth: 10 + accuracySlaUnit: microseconds + accuracySla: 50 + accuracySlaMin: 1 + accuracySlaMax: 10 + clientsPerSecondMax: 100 + redundancySupported: true + multiSubnetSupported: true + changeLog: + createdDateTime: 2023-05-16T07:50:49.749Z + updatedDateTime: 2023-05-17T07:50:49.749Z + SubscriptionId: type: string - description: Precision Time Service UUID + description: Subscription Id format: uuid example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 - precisionTimeServiceCreateResponse: - title: precisionTimeServiceResponse + SubscriptionResponse: required: - - href - - ipv4 - - package + - entitlements + - marketplace - state - - type - - uuid type: object properties: - type: - type: string - enum: - - NTP - - PTP href: type: string + description: Subscription URL format: uri uuid: type: string - description: uuid of the ept service + description: Unique identifier of the Subscription format: uuid - name: - type: string - description: name of the ept service - description: - type: string state: + $ref: "#/components/schemas/SubscriptionState" + marketplace: type: string - description: indicate service state + description: Marketplace Type enum: - - PROVISIONED - - PROVISIONING - - PROVISIONING_FAILED - - CONFIGURING - - CANCELLED - - DEPROVISIONING_FAILED - - PENDING_CONFIGURATION - - DEPROVISIONED - - CONFIGURING_FAILED - - DEPROVISIONING - package: - $ref: "#/components/schemas/precisionTimePackageResponse" - connections: - maxItems: 2 - minItems: 1 - uniqueItems: true + - AWS + - GCP + - AZURE + - REDHAT + offerType: + type: string + description: Marketplace Offer Type + enum: + - PUBLIC + - PRIVATE_OFFER + isAutoRenew: + type: boolean + description: Is Auto Renewal Enabled + example: true + offerId: + type: string + description: Marketplace Offer Id + trial: + $ref: "#/components/schemas/SubscriptionTrial" + subscriptionKey: + type: string + description: Subscription Key + entitlements: type: array - description: fabric l2 connections used for the ept service + description: List of entitlements associated with the subscription items: - $ref: "#/components/schemas/fabricConnectionUuid" - ipv4: - $ref: "#/components/schemas/ipv4" - account: - $ref: "#/components/schemas/account" - advanceConfiguration: - $ref: "#/components/schemas/advanceConfiguration" - project: - $ref: "#/components/schemas/Project" - description: EPT service instance - precisionTimeChangeOperation: - required: - - op - - path - - value + $ref: "#/components/schemas/SubscriptionEntitlementResponse" + changelog: + $ref: "#/components/schemas/Changelog" + description: Subscription Response + x-preview: false + SubscriptionState: + type: string + description: Subscription State + enum: + - ACTIVE + - EXPIRED + - CANCELLED + - GRACE_PERIOD + SubscriptionTrial: type: object properties: - op: + enabled: + type: boolean + description: Free Trial Enabled + expiryDateTime: type: string - description: Handy shortcut for operation name - enum: - - replace - path: + description: Free Trial Expiry Date + format: date-time + description: Free Trial Subscription + SubscriptionEntitlementResponse: + type: object + properties: + uuid: type: string - description: path inside document leading to updated parameter - enum: - - /name - - /package/code - value: - description: new value for updated parameter - description: Fabric Precision Timing change operation data - precisionTimeServiceRequest: - title: precisionTimeServiceRequest - required: - - connections - - ipv4 - - name - - package - - type + description: Subscription Entitlement Id + format: uuid + quantityEntitled: + minimum: 0 + type: integer + description: Quantity entitled for the subscription + quantityConsumed: + minimum: 0 + type: integer + description: Quantity consumed from the entitlement + quantityAvailable: + minimum: 0 + type: integer + description: Quantity available from the entitlement + asset: + $ref: "#/components/schemas/SubscriptionAsset" + description: Subscription entitlement + SubscriptionAsset: + type: object + properties: + type: + type: string + description: Type of the subscription asset ( XF_ROUTER ,IP_VC, IPWAN_VC ) + package: + $ref: "#/components/schemas/SubscriptionRouterPackageType" + bandwidth: + type: integer + description: Bandwidth of the asset in Mbps + description: Asset information + SubscriptionRouterPackageType: + type: object + properties: + code: + type: string + description: Cloud Router package code + enum: + - ADVANCED + - STANDARD + description: Cloud Router Package Type + GetAllStreamResponse: + type: object + properties: + pagination: + $ref: "#/components/schemas/Pagination" + data: + type: array + description: Data returned from the API call. + items: + $ref: "#/components/schemas/Stream" + StreamPostRequest: type: object properties: type: type: string - description: Indicate the entity is EPT service enum: - - NTP - - PTP + - TELEMETRY_STREAM name: type: string + description: Customer-provided stream name description: type: string - package: - $ref: "#/components/schemas/precisionTimePackageRequest" - connections: - type: array - items: - $ref: "#/components/schemas/fabricConnectionUuid" - ipv4: - $ref: "#/components/schemas/ipv4" - advanceConfiguration: - $ref: "#/components/schemas/advanceConfiguration" + description: Customer-provided stream description project: $ref: "#/components/schemas/Project" - description: EPT service instance - TimeServicesSearchRequest: + enabled: + type: boolean + description: Stream enabled status + example: true + description: Create Stream + Stream: + type: object + properties: + href: + type: string + description: Stream URI + format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/streams/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + uuid: + type: string + description: Equinix-assigned access point identifier + format: uuid + example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + state: + type: string + description: Stream provision state + enum: + - PROVISIONING + - PROVISIONED + - DEPROVISIONING + - DEPROVISIONED + - FAILED + assetsCount: + type: integer + description: Stream assets count + example: 1 + streamSubscriptionsCount: + type: integer + description: Stream subscriptions count + example: 2 + changelog: + $ref: "#/components/schemas/Changelog" + description: Stream object + allOf: + - $ref: "#/components/schemas/StreamPostRequest" + StreamId: + type: string + description: Stream UUID + format: uuid + example: 657400f8-d360-11e9-bb65-2a2ae2dbcce5 + StreamPutRequest: + type: object + properties: + name: + type: string + description: Customer-provided stream name + description: + type: string + description: Customer-provided stream description + enabled: + type: boolean + description: stream state + example: true + description: Update Stream + StreamAssetSearchRequest: type: object properties: filter: - $ref: "#/components/schemas/TimeServiceFilters" + $ref: "#/components/schemas/StreamAssetFilters" pagination: $ref: "#/components/schemas/PaginationRequest" sort: type: array items: - $ref: "#/components/schemas/TimeServiceSortCriteria" + $ref: "#/components/schemas/StreamAssetSortCriteria" description: Search requests containing criteria - TimeServiceFilters: + StreamAssetFilters: type: object properties: and: maxItems: 8 type: array items: - $ref: "#/components/schemas/TimeServiceFilter" - TimeServiceFilter: + $ref: "#/components/schemas/StreamAssetFilter" + StreamAssetFilter: type: object anyOf: - - $ref: "#/components/schemas/TimeServiceSimpleExpression" - - $ref: "#/components/schemas/TimeServiceOrFilter" - TimeServiceSimpleExpression: + - $ref: "#/components/schemas/StreamAssetSimpleExpression" + - $ref: "#/components/schemas/StreamAssetOrFilter" + StreamAssetSimpleExpression: type: object properties: property: type: string description: | Possible field names to use on filters: - * `/project/projectId` - project id (mandatory) - * `/name` - Precision Time Service name - * `/uuid` - Precision Time Service uuid - * `/type` - Precision Time Service protocol - * `/state` - Precision Time Service status - * `/account/accountNumber` - Precision Time Service account number - * `/package/code` - Precision Time Service package + * `/uuid` - Asset uuid + * `/streamUuid` - Stream uuid + * `/projectId` - Asset projectId * `/*` - all-category search example: /name operator: @@ -10862,6 +13122,10 @@ components: Possible operators to use on filters: * `=` - equal * `!=` - not equal + * `>` - greater than + * `>=` - greater than or equal to + * `<` - less than + * `<=` - less than or equal to * `[NOT] BETWEEN` - (not) between * `[NOT] LIKE` - (not) like * `[NOT] IN` - (not) in @@ -10871,42 +13135,36 @@ components: type: array items: type: string - example: FabricPrecisionTimeService-1 - TimeServiceOrFilter: + example: FabricStreamAsset-1 + StreamAssetOrFilter: type: object properties: or: maxItems: 3 type: array items: - $ref: "#/components/schemas/TimeServiceSimpleExpression" - TimeServiceSortCriteria: + $ref: "#/components/schemas/StreamAssetSimpleExpression" + StreamAssetSortCriteria: type: object properties: direction: - $ref: "#/components/schemas/TimeServiceSortDirection" + $ref: "#/components/schemas/StreamAssetSortDirection" property: - $ref: "#/components/schemas/TimeServiceSortBy" - TimeServiceSortDirection: + $ref: "#/components/schemas/StreamAssetSortBy" + StreamAssetSortDirection: type: string description: Sorting direction default: DESC enum: - DESC - ASC - TimeServiceSortBy: + StreamAssetSortBy: type: string description: Possible field names to use on sorting - default: /changeLog/updatedDateTime + default: /uuid enum: - - /name - /uuid - - /state - - /type - - /package/code - - /changeLog/createdDateTime - - /changeLog/updatedDateTime - ServiceSearchResponse: + GetAllStreamAssetResponse: type: object properties: pagination: @@ -10915,198 +13173,284 @@ components: type: array description: Data returned from the API call. items: - $ref: "#/components/schemas/precisionTimeServiceResponse" - precisionTimeServiceConnectionsResponse: - title: precisionTimeServiceConnectionResponse + $ref: "#/components/schemas/StreamAsset" + AssetId: + type: string + description: Stream Asset UUID + format: uuid + example: 757400f8-d360-11e9-bb65-2a2ae2dbcce6 + Asset: + type: string + enum: + - ports + - connections + - routers + - metros + StreamAsset: + type: object + properties: + href: + type: string + description: Stream Asset URI + format: uri + readOnly: true + uuid: + type: string + description: Equinix-assigned access point identifier + format: uuid + example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + metricsEnabled: + type: boolean + description: enable metric + example: false + attachmentStatus: + type: string + description: asset status + enum: + - ATTACHING + - ATTACHED + - DETACHED + - DETACHING + - FAILED + description: Stream object + StreamAssetPutRequest: + type: object + properties: + metricsEnabled: + type: boolean + 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 + description: Data returned from the API call. items: - $ref: "#/components/schemas/connectionLink" - description: EPT service instance's L2 connections - precisionTimeServicePackagesResponse: - title: precisionTimeServicePackagesResponse + $ref: "#/components/schemas/StreamGetSubscriptions" + GetAllStreamSubscriptionResponse: type: object properties: pagination: $ref: "#/components/schemas/Pagination" data: type: array - description: Data returned from the API call + description: Data returned from the API call. items: - $ref: "#/components/schemas/precisionTimePackageResponse" - description: Precision Packages - precisionTimePackageResponse: - title: precisionTimePackageRespose - required: - - code + $ref: "#/components/schemas/StreamSubscription" + StreamSubscriptionPostRequest: type: object properties: - href: - type: string - format: uri - code: - type: string - enum: - - NTP_STANDARD - - NTP_ENTERPRISE - - PTP_STANDARD - - PTP_ENTERPRISE type: type: string enum: - - TIME_SERVICE_PACKAGE - bandwidth: - type: integer - example: 10 - clientsPerSecondMax: - type: integer - example: 100 - redundancySupported: - type: boolean - example: true - multiSubnetSupported: + - STREAM_SUBSCRIPTION + name: + type: string + description: Customer-provided stream subscription name + description: + type: string + description: Customer-provided stream subscription description + project: + $ref: "#/components/schemas/Project" + enabled: type: boolean + description: Stream subscription enabled status example: true - accuracyUnit: + stream: + $ref: "#/components/schemas/StreamTarget" + filters: + $ref: "#/components/schemas/StreamSubscriptionFilter" + sink: + $ref: "#/components/schemas/StreamSubscriptionSink" + description: Create Stream Subscription + StreamSubscriptionFilter: + type: object + properties: + and: + maxItems: 8 + type: array + items: + $ref: "#/components/schemas/StreamFilter" + StreamFilter: + type: object + anyOf: + - $ref: "#/components/schemas/StreamFilterSimpleExpression" + - $ref: "#/components/schemas/StreamFilterOrFilter" + StreamFilterSimpleExpression: + type: object + properties: + property: type: string - example: microseconds - accuracySla: - type: integer - example: 50 - accuracyAvgMin: + description: | + Possible field names to use on filters: + * `/subject` - subject + * `/type` - type + example: /equinixproject + operator: + type: string + description: | + Possible operators to use on filters: + * `=` - equal + * `in` - in + * `LIKE` - case-sensitive like + * `ILIKE` - case-insensitive like + example: = + values: + type: array + items: + type: string + StreamFilterOrFilter: + type: object + properties: + or: + maxItems: 3 + type: array + items: + $ref: "#/components/schemas/StreamFilterSimpleExpression" + StreamSubscriptionSink: + type: object + properties: + uri: + type: string + description: any publicly reachable http endpoint + type: + type: string + description: destination type + enum: + - DATADOG + - PAGERDUTY + - SPLUNK_HEC + - SLACK + - TEAMS + - CUSTOM + batchEnabled: + type: boolean + description: batch mode on/off + example: false + batchSizeMax: type: integer - example: 1 - accuracyAvgMax: + description: maximum batch size + batchWaitTimeMax: type: integer - example: 10 - changelog: - $ref: "#/components/schemas/Changelog" - description: EPT Service Package Information - example: - href: https://api.equinix.com/fabric/v4/timeServicePackage/NTP_STANDARD - code: NTP_STANDARD - type: TIME_SERVICE_PACKAGE - bandwidth: 10 - accuracyUnit: microseconds - accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 - clientsPerSecondMax: 100 - redundancySupported: true - multiSubnetSupported: true - changeLog: - createdDateTime: 2023-05-16T07:50:49.749Z - updatedDateTime: 2023-05-17T07:50:49.749Z - SubscriptionId: - type: string - description: Subscription Id - format: uuid - example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 - SubscriptionResponse: + description: maximum batch waiting time + credential: + $ref: "#/components/schemas/StreamSubscriptionSinkCredential" + settings: + $ref: "#/components/schemas/StreamSubscriptionSinkSetting" + description: Create Stream destination + StreamSubscriptionSinkCredential: + type: object + properties: + type: + type: string + description: credential type + enum: + - ACCESS_TOKEN + - INTEGRATION_KEY + - API_KEY + accessToken: + type: string + description: passed as Authorization header value + integrationKey: + type: string + description: passed as Authorization header value + apiKey: + type: string + description: passed as Authorization header value + description: Stream subscription sink credentials + StreamSubscriptionSinkSetting: + type: object + properties: + eventIndex: + type: string + description: event index + metricIndex: + type: string + description: metric index + source: + type: string + description: source + applicationKey: + type: string + description: Application key + description: Stream subscription sink settings + StreamSubscription: type: object properties: href: type: string + description: Stream Subscription URI format: uri + readOnly: true + example: https://api.equinix.com/fabric/v4/streamSubscription/3c9b8e7a2-f3b1-4576-a4a9-1366a63df170 uuid: type: string + description: Equinix-assigned access point identifier format: uuid - status: - $ref: "#/components/schemas/SubscriptionStatus" - marketplace: + example: c9b8e7a2-f3b1-4576-a4a9-1366a63df170 + type: type: string + description: type enum: - - AWS - - GCP - - AZURE - - REDHAT - offerType: + - STREAM_SUBSCRIPTION + name: type: string - enum: - - PUBLIC - - PRIVATE_OFFER - isAutoRenew: - type: boolean - example: true - offerId: + description: Customer-provided subscription name + description: type: string - trial: - $ref: "#/components/schemas/SubscriptionTrial" - subscriptionKey: + description: Customer-provided subscription description + project: + $ref: "#/components/schemas/Project" + state: type: string - entitlements: - type: array - items: - $ref: "#/components/schemas/SubscriptionEntitlementResponse" + description: Steam subscription provision state + enum: + - PROVISIONING + - PROVISIONED + - DEPROVISIONING + - DEPROVISIONED + - FAILED + enabled: + type: boolean + description: Stream subscription enabled status + stream: + $ref: "#/components/schemas/StreamTarget" + filters: + $ref: "#/components/schemas/StreamSubscriptionFilter" + sink: + $ref: "#/components/schemas/StreamSubscriptionSink" changelog: $ref: "#/components/schemas/Changelog" - description: Subscription - x-preview: false - SubscriptionStatus: + description: Stream Subscription object + StreamSubscriptionId: type: string - enum: - - ACTIVE - - EXPIRED - - CANCELLED - - GRACE_PERIOD - SubscriptionTrial: - type: object - properties: - enabled: - type: boolean - expiryDateTime: - type: string - format: date-time - description: Trial - SubscriptionEntitlementResponse: + description: Stream Subscription UUID + format: uuid + example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + StreamSubscriptionPutRequest: type: object properties: - uuid: + name: type: string - description: Subscription Entitlement Id - format: uuid - quantityEntitled: - minimum: 0 - type: integer - quantityConsumed: - minimum: 0 - type: integer - quantityAvailable: - minimum: 0 - type: integer - asset: - $ref: "#/components/schemas/SubscriptionAsset" - description: Subscription entitlement - SubscriptionAsset: - type: object - properties: - type: - $ref: "#/components/schemas/SubscriptionAssetType" - package: - $ref: "#/components/schemas/SubscriptionRouterPackageType" - bandwidth: - type: integer - description: Asset information - SubscriptionAssetType: - type: string - enum: - - XF_ROUTER - - IP_VC - SubscriptionRouterPackageType: - type: object - properties: - code: + description: Customer-provided stream subscription name + description: type: string - description: Cloud Router package code - enum: - - ADVANCED - - STANDARD - description: Cloud Router Package Type + description: Customer-provided stream subscription description + stream: + $ref: "#/components/schemas/StreamTarget" + enabled: + type: boolean + description: Stream subscription enabled status + example: true + filters: + $ref: "#/components/schemas/StreamSubscriptionFilter" + sink: + $ref: "#/components/schemas/StreamSubscriptionSink" + description: Update Stream Subscription ConnectionType: type: string description: Connection type @@ -11198,6 +13542,8 @@ components: $ref: "#/components/schemas/ConnectionSideAdditionalInfo" description: Connection configuration object for each side of multi-segment connection Project: + required: + - projectId type: object properties: projectId: @@ -11358,24 +13704,6 @@ components: type: integer description: Reseller customer organization identifier format: int64 - SimplifiedAccountPortResponse: - type: object - description: Temporary SimplifiedAccount for PortResponse data mismatch of all strings in account - allOf: - - $ref: "#/components/schemas/SimplifiedAccount" - properties: - accountNumber: - type: string - description: Account number - orgId: - type: string - description: Customer organization identifier - resellerAccountNumber: - type: string - description: Reseller account number - resellerOrgId: - type: string - description: Reseller customer organization identifier Changelog: type: object properties: @@ -11497,6 +13825,61 @@ components: description: Authorization key bandwidth in Mbps readOnly: true description: Connection acceptance data + PaginationRequest: + type: object + properties: + offset: + minimum: 0 + type: integer + description: Index of the first element. + default: 0 + limit: + minimum: 1 + type: integer + description: Number of elements to be requested per page. Number must be between 1 and 100, and the default is 20. + default: 20 + description: Pagination request information + ConnectionRouteTableEntry: + required: + - changeLog + - state + - type + type: object + properties: + type: + $ref: "#/components/schemas/RouteTableEntryType" + protocolType: + $ref: "#/components/schemas/RouteTableEntryProtocolType" + state: + type: string + example: ACTIVE + enum: + - ACTIVE + - INACTIVE + age: + type: string + example: PT5M30S + prefix: + type: string + example: 192.168.10.0/24 + nextHop: + type: string + example: 10.10.10.5 + MED: + type: integer + example: 5 + localPreference: + type: integer + example: 200 + asPath: + type: array + items: + type: string + connection: + $ref: "#/components/schemas/ConnectionRouteTableEntry_connection" + changeLog: + $ref: "#/components/schemas/Changelog" + description: Adv/Rec Route table entry object BGPConnectionIpv4: required: - customerPeerIp @@ -11521,14 +13904,19 @@ components: example: 3 inboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Inbound Multi Exit Discriminator attribute format: int64 example: 1000 outboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Outbound Multi Exit Discriminator attribute format: int64 example: 2000 + routesMax: + type: integer + description: Maximum learnt prefixes limit + format: int64 + example: 1000 operation: $ref: "#/components/schemas/BGPConnectionOperation" BGPConnectionIpv6: @@ -11555,14 +13943,19 @@ components: example: 3 inboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Inbound Multi Exit Discriminator attribute format: int64 example: 1000 outboundMED: type: integer - description: inbound Multi Exit Discriminator attribute + description: Outbound Multi Exit Discriminator attribute format: int64 example: 2000 + routesMax: + type: integer + description: Maximum learnt prefixes limit + format: int64 + example: 1000 operation: $ref: "#/components/schemas/BGPConnectionOperation" RoutingProtocolBFD: @@ -11749,20 +14142,6 @@ components: value: $ref: "#/components/schemas/RoutingProtocolBase" description: Routing Protocol change operation data - PaginationRequest: - type: object - properties: - offset: - minimum: 0 - type: integer - description: Index of the first element. - default: 0 - limit: - minimum: 1 - type: integer - description: Number of elements to be requested per page. Number must be between 1 and 100, and the default is 20. - default: 20 - description: Pagination request information SortDirection: type: string description: Sorting direction @@ -11882,6 +14261,7 @@ components: ibx: type: string example: AM1 + deprecated: true ServiceProfileStateEnum: type: string description: Equinix assigned state. @@ -11896,6 +14276,7 @@ components: description: Type of Service Token enum: - VC_TOKEN + - EPL_TOKEN ServiceTokenConnection: required: - type @@ -11906,6 +14287,9 @@ components: description: Type of Connection enum: - EVPL_VC + - EVPLAN_VC + - EPLAN_VC + - IPWAN_VC href: type: string description: An absolute URL that is the subject of the link's context. @@ -11919,6 +14303,10 @@ components: type: boolean description: Authorization to connect remotely default: false + allowCustomBandwidth: + type: boolean + description: Allow custom bandwidth value + default: false bandwidthLimit: maximum: 100000 minimum: 0 @@ -12006,7 +14394,7 @@ components: description: Order Reference Number uuid: type: string - description: Equinix-assigned order identifier + description: Equinix-assigned order identifier, this is a derived response atrribute format: uuid signature: $ref: "#/components/schemas/PortOrder_signature" @@ -12019,9 +14407,23 @@ components: enum: - UP - DOWN + - PARTIAL connectionCount: type: integer description: Total number of connections. + format: int64 + evplVCCount: + type: integer + description: Total number of connections. + format: int64 + fgVCCount: + type: integer + description: Total number of connections. + format: int64 + accessVCCount: + type: integer + description: Total number of connections. + format: int64 opStatusChangedAt: type: string description: Date and time at which port availability changed. @@ -12043,12 +14445,6 @@ components: type: type: string description: Port interface type - ifIndex: - type: string - description: Port interface index - name: - type: string - description: Port interface name description: Port interface PortDemarcationPoint: type: object @@ -12088,6 +14484,7 @@ components: group: type: string description: Port UUID of respective primary port + deprecated: true priority: $ref: "#/components/schemas/PortPriority" description: Port redundancy configuration @@ -12115,6 +14512,7 @@ components: enabled: type: boolean description: enabled + deprecated: true name: type: string description: name @@ -12122,22 +14520,38 @@ components: type: string description: member status description: Port Lag - PortSettings: + Package: type: object properties: - product: + code: + type: string + description: Type of Port Package + enum: + - STANDARD + - UNLIMITED + - UNLIMITED_PLUS + type: type: string - description: Product name + description: Port service Type + enum: + - EPL + - MSP + description: Package settings for port + PortSettings: + type: object + properties: buyout: type: boolean + deprecated: true viewPortPermission: type: boolean + deprecated: true placeVcOrderPermission: type: boolean + deprecated: true layer3Enabled: type: boolean - productCode: - type: string + deprecated: true sharedPortType: type: boolean sharedPortProduct: @@ -12150,11 +14564,11 @@ components: packageType: type: string description: Type of Port Package + deprecated: true enum: - STANDARD - - UNTAGGED - UNLIMITED - - UNLIMITED PLUS + - UNLIMITED_PLUS description: Port configuration settings PortNotification: required: @@ -12232,6 +14646,15 @@ components: type: string description: z-side/Equinix IBX description: Port physical connection + PhysicalPortSettings: + type: object + properties: + errorMessage: + type: string + packageType: + type: string + deprecated: true + description: Physical Port configuration settings LinkProtocolResponse: type: object properties: @@ -12512,7 +14935,7 @@ components: - PROVISIONING - DEPROVISIONING - DEPROVISIONED - - LOCKED + - REPROVISIONING - NOT_PROVISIONED - NOT_DEPROVISIONED CloudRouterChange: @@ -12579,6 +15002,28 @@ components: enum: - BGP_SESSION_STATUS_UPDATE - ROUTE_TABLE_ENTRY_UPDATE + - RECEIVED_ROUTE_ENTRY_UPDATE + - ADVERTISED_ROUTE_ENTRY_UPDATE + RouterActionsConnection: + type: object + properties: + uuid: + type: string + description: Connection UUID + example: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + description: Connection object for router actions + Operation: + type: object + properties: + bgpIpv4RoutesCount: + type: integer + description: IPV4 Route Count + example: 6 + bgpIpv6RoutesCount: + type: integer + description: IPV6 Route Count + example: 6 + description: Operation object for router actions RouteTableEntry: required: - changeLog @@ -12601,7 +15046,7 @@ components: nextHop: type: string example: 10.10.10.5 - metric: + MED: type: integer example: 5 localPreference: @@ -12610,9 +15055,9 @@ components: asPath: type: array items: - type: integer + type: string connection: - $ref: "#/components/schemas/RouteTableEntry_connection" + $ref: "#/components/schemas/ConnectionRouteTableEntry_connection" changeLog: $ref: "#/components/schemas/Changelog" description: Route table entry object @@ -12650,6 +15095,24 @@ components: type: string description: service status change date description: Available services details + ValidateConnectionResponse: + type: object + properties: + uuid: + type: string + description: Equinix-assigned connection identifier + bandwidth: + maximum: 50000 + minimum: 0 + type: integer + description: Connection bandwidth in Mbps + redundancy: + $ref: "#/components/schemas/ConnectionRedundancy" + aSide: + $ref: "#/components/schemas/ConnectionSide" + zSide: + $ref: "#/components/schemas/ConnectionSide" + description: Validate Connection specification NetworkType: type: string description: Network type @@ -12760,40 +15223,67 @@ components: - REJECTED - REQUESTED - SUBMITTED_FOR_APPROVAL - fabricConnectionUuid: + precisionTimePackageRequest: + title: precisionTimePackageRequest + required: + - code + type: object + properties: + code: + type: string + description: Precision Time Service Level + enum: + - NTP_STANDARD + - NTP_ENTERPRISE + - PTP_STANDARD + - PTP_ENTERPRISE + description: Precision Time Service Level Request + example: + code: NTP_STANDARD + virtualConnectionUuid: title: fabricConnectionUuid required: - uuid type: object properties: - uuid: - type: string - description: uuid of the Fabric L2 connection - format: uuid href: type: string - description: the href for the L2 connection + description: Connection URI format: uri + readOnly: true type: type: string + description: Connection Type + uuid: + type: string + description: Connection UUID. + format: uuid description: UUID of the Fabric Connection Instance example: uuid: 095be615-a8ad-4c33-8e9c-c7612fbf6c9f ipv4: title: ipv4 + required: + - networkMask + - primary + - secondary type: object properties: primary: type: string + description: Primary Timing Server IP Address format: ipv4 secondary: type: string + description: Secondary Timing Server IP Address format: ipv4 networkMask: type: string + description: Network Mask format: ipv4 defaultGateway: type: string + description: Gateway Interface IP address format: ipv4 description: EPT service network information example: @@ -12801,113 +15291,125 @@ components: secondary: 10.0.0.2 networkMask: 255.255.255.240 defaultGateway: 10.0.0.3 - account: - required: - - accountNumber + ntpAdvanceConfiguration: + type: array + description: NTP Advanced configuration - MD5 Authentication. + items: + $ref: "#/components/schemas/md5" + ptpAdvanceConfiguration: type: object properties: - accountNumber: - type: integer - isResellerAccount: - type: boolean - orgId: + timeScale: type: string - globalOrgId: + description: Time Scale value, ARB denotes Arbitrary and PTP denotes Precision Time Protocol. + example: ARB + enum: + - ARB + - PTP + domain: + maximum: 127 + minimum: 0 + type: integer + description: The PTP domain value. + example: 0 + priority1: + maximum: 248 + minimum: 0 + type: integer + description: The priority1 value determines the best primary clock, Lower value indicates higher priority. + example: 128 + priority2: + maximum: 248 + minimum: 0 + type: integer + description: The priority2 value differentiates and prioritizes the primary clock to avoid confusion when priority1-value is the same for different primary clocks in a network. + example: 128 + logAnnounceInterval: + type: integer + description: Logarithmic value that controls the rate of PTP Announce packets from the PTP time server. Default is 1 (1 packet every 2 seconds), Unit packets/second. + example: 1 + enum: + - -3 + - -2 + - -1 + - 0 + - 1 + logSyncInterval: + type: integer + description: Logarithmic value that controls the rate of PTP Sync packets. Default is -4 (16 packets per second), Unit packets/second.. + example: -4 + enum: + - -5 + - -4 + - -3 + - -2 + - -1 + - 0 + - 1 + logDelayReqInterval: + type: integer + description: Logarithmic value that controls the rate of PTP DelayReq packets. Default is -4 (16 packets per second), Unit packets/second.. + example: -4 + enum: + - -5 + - -4 + - -3 + - -2 + - -1 + - 0 + - 1 + transportMode: type: string - description: Account model, includes account number and flag to indicate if this account is reseller - example: - accountNumber: 123456 - advanceConfiguration: - type: object - properties: - ntp: - $ref: "#/components/schemas/ntpAdvanceConfiguration" - ptp: - $ref: "#/components/schemas/ptpAdvanceConfiguration" - description: Advance Configuration for NTP/PTP - precisionTimePackageRequest: - title: precisionTimePackageRequest - required: - - code + enum: + - MULTICAST + - UNICAST + - HYBRID + grantTime: + maximum: 7200 + minimum: 30 + type: integer + description: Unicast Grant Time in seconds. For Multicast and Hybrid transport modes, grant time defaults to 300 seconds. For Unicast mode, grant time can be between 30 to 7200. + example: 300 + description: PTP Advanced Configuration. + precisionTimeOrder: + title: precisionTimeOrder type: object properties: - href: + purchaseOrderNumber: type: string - format: uri - code: + description: Purchase order number + customerReferenceNumber: type: string - enum: - - NTP_STANDARD - - NTP_ENTERPRISE - - PTP_STANDARD - - PTP_ENTERPRISE - description: EPT Package Request - example: - code: NTP_STANDARD - precisionTimeServiceResponse: - title: precisionTimeServiceResponse + description: Customer reference number + orderNumber: + type: string + description: Order Reference Number + description: Precision Time Order + virtualConnectionTimeServiceResponse: + title: fabricConnectionResponse required: - href - - ipv4 - - order - - package - - state - type - uuid type: object properties: - type: - type: string - enum: - - NTP - - PTP href: type: string + description: Connection URI format: uri + readOnly: true + type: + type: string + description: Connection Type. uuid: type: string - description: uuid of the ept service + description: Connection UUID. format: uuid - name: - type: string - description: name of the ept service - description: - type: string - state: - type: string - description: indicate service state - enum: - - PROVISIONED - - PROVISIONING - - PROVISIONING_FAILED - - CONFIGURING - - CANCELLED - - DEPROVISIONING_FAILED - - PENDING_CONFIGURATION - - DEPROVISIONED - - CONFIGURING_FAILED - - DEPROVISIONING - package: - $ref: "#/components/schemas/precisionTimePackageResponse" - connections: - maxItems: 2 - minItems: 1 - uniqueItems: true - type: array - description: fabric l2 connections used for the ept service - items: - $ref: "#/components/schemas/fabricConnectionUuid" - order: - $ref: "#/components/schemas/Order" - ipv4: - $ref: "#/components/schemas/ipv4" - advanceConfiguration: - $ref: "#/components/schemas/advanceConfiguration" - project: - $ref: "#/components/schemas/Project" - account: - $ref: "#/components/schemas/account" - description: EPT service instance + aSide: + $ref: "#/components/schemas/virtualConnectionSide" + zSide: + $ref: "#/components/schemas/virtualConnectionSide" + description: Fabric Connection Precision Time Service Response Object connectionLink: type: object properties: @@ -12922,6 +15424,31 @@ 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 @@ -13067,6 +15594,23 @@ components: - DRAFT - CANCELLED - PENDING_INTERFACE_CONFIGURATION + RouteTableEntryType: + type: string + description: Route table entry type + enum: + - IPv4_BGP_ROUTE + - IPv4_STATIC_ROUTE + - IPv4_DIRECT_ROUTE + - IPv6_BGP_ROUTE + - IPv6_STATIC_ROUTE + - IPv6_DIRECT_ROUTE + RouteTableEntryProtocolType: + type: string + description: Route table entry protocol type + enum: + - BGP + - STATIC + - DIRECT BGPConnectionOperation: type: object properties: @@ -13199,7 +15743,7 @@ components: description: List of AccessPointSelectors items: $ref: "#/components/schemas/AccessPointSelector" - description: Connection link protocol configuration + description: Connection link protocol,virtual device or network configuration PortDeviceRedundancy: type: object properties: @@ -13283,23 +15827,6 @@ components: format: int64 example: 1000 description: Service Token details of Link Protocol - RouteTableEntryType: - type: string - description: Route table entry type - enum: - - IPv4_BGP_ROUTE - - IPv4_STATIC_ROUTE - - IPv4_DIRECT_ROUTE - - IPv6_BGP_ROUTE - - IPv6_STATIC_ROUTE - - IPv6_DIRECT_ROUTE - RouteTableEntryProtocolType: - type: string - description: Route table entry protocol type - enum: - - BGP - - STATIC - - DIRECT RouteTableEntryState: type: string description: Route table entry state @@ -13335,58 +15862,32 @@ components: - /location/region - /changeLog/createdDateTime - /changeLog/updatedDateTime - ntpAdvanceConfiguration: - type: array - items: - $ref: "#/components/schemas/md5" - ptpAdvanceConfiguration: + md5: type: object properties: - timeScale: - type: string - description: Time Scale value, ARB denotes Arbitrary and PTP denotes Precision Time Protocol. - example: ARB - enum: - - ARB - - PTP - domain: - maximum: 127 - minimum: 0 - type: integer - example: 0 - priority1: - maximum: 248 - minimum: 0 - type: integer - example: 0 - priority2: - maximum: 248 - minimum: 0 - type: integer - example: 0 - logAnnounceInterval: - type: integer - description: The mean time interval between Announce messages. A shorter interval makes ptp4l react faster to the changes in the master-slave hierarchy. The interval should be the same in the whole domain. It's specified as a power of two in seconds. The default is 1 (2 seconds). - example: 0 - logSyncInterval: - type: integer - description: The mean time interval between Sync messages. A shorter interval may improve accuracy of the local clock. It's specified as a power of two in seconds. The default is 0 (1 second). - example: 0 - logDelayReqInterval: - type: integer - example: 0 - transportMode: + type: type: string enum: - - Multicast - - Unicast - - Hybrid - grantTime: - maximum: 7200 - minimum: 30 + - ASCII + - HEX + keyNumber: + maximum: 65534 + minimum: 1 type: integer - description: Unicast Grant Time in seconds. For Multicast and Hybrid transport modes, grant time defaults to 300 seconds. For Unicast mode, grant time can be between 30 to 7200. - example: 300 + description: The authentication Key ID. + example: 10 + key: + maxLength: 40 + minLength: 10 + type: string + description: The plaintext authentication key. For ASCII type, the key must contain printable ASCII characters, range 10-20 characters. For HEX type, range should be 10-40 characters. + virtualConnectionSide: + title: fabricConnectionAccessPoint + type: object + properties: + accessPoint: + $ref: "#/components/schemas/AccessPoint" + description: Fabric Connection access point object. AccessPointType: type: string description: Access point type @@ -13436,9 +15937,6 @@ components: $ref: "#/components/schemas/Project" state: $ref: "#/components/schemas/PortState" - cvpId: - type: string - description: Equinix assigned response attribute for Unique ID for a virtual port. operation: $ref: "#/components/schemas/PortOperation" account: @@ -13446,6 +15944,7 @@ components: serviceType: type: string description: Port service Type + deprecated: true enum: - EPL - MSP @@ -13453,14 +15952,17 @@ components: minimum: 0 type: integer description: Equinix assigned response attribute for Port bandwidth in Mbps + format: int64 availableBandwidth: minimum: 0 type: integer description: Equinix assigned response attribute for Port available bandwidth in Mbps + format: int64 usedBandwidth: minimum: 0 type: integer description: Equinix assigned response attribute for Port used bandwidth in Mbps + format: int64 location: $ref: "#/components/schemas/SimplifiedLocation" device: @@ -13478,6 +15980,8 @@ components: lagEnabled: type: boolean description: If LAG enabled + package: + $ref: "#/components/schemas/Package" settings: $ref: "#/components/schemas/PortSettings" physicalPortQuantity: @@ -13746,23 +16250,19 @@ components: description: Type of Access point enum: - COLO + - VD + - NETWORK port: $ref: "#/components/schemas/SimplifiedMetadataEntity" linkProtocol: - $ref: "#/components/schemas/LinkProtocol" + $ref: "#/components/schemas/SimplifiedLinkProtocol" + virtualDevice: + $ref: "#/components/schemas/SimplifiedVirtualDevice" + interface: + $ref: "#/components/schemas/VirtualDeviceInterface" + network: + $ref: "#/components/schemas/SimplifiedTokenNetwork" description: List of criteria for selecting network access points with optimal efficiency, security, compatibility, and availability. - md5: - type: object - properties: - type: - type: string - enum: - - ASCII - - HEX - id: - type: integer - password: - type: string LinkProtocolType: type: string description: Type of Link Protocol @@ -13819,131 +16319,95 @@ components: type: type: string description: Type of Port + cvpId: + type: integer + description: Customer virtual port Id + bandwidth: + type: number + description: Port Bandwidth + portName: + type: string + description: Port Name + encapsulationProtocolType: + type: string + description: Port Encapsulation + accountName: + type: string + description: Account Name + priority: + type: string + description: Port Priority + location: + $ref: "#/components/schemas/SimplifiedLocation" description: Configuration details for port used at the access point. - LinkProtocol: - required: - - type - type: object - description: Connection link protocol Configuration - discriminator: - propertyName: type - mapping: - UNTAGGED: "#/components/schemas/LinkProtocolUntagged" - DOT1Q: "#/components/schemas/LinkProtocolDot1q" - QINQ: "#/components/schemas/LinkProtocolQinq" - VXLAN: "#/components/schemas/LinkProtocolVxlan" - EVPN_VXLAN: "#/components/schemas/LinkProtocolEvpnVxlan" - oneOf: - - $ref: "#/components/schemas/LinkProtocolUntagged" - - $ref: "#/components/schemas/LinkProtocolDot1q" - - $ref: "#/components/schemas/LinkProtocolQinq" - - $ref: "#/components/schemas/LinkProtocolVxlan" - - $ref: "#/components/schemas/LinkProtocolEvpnVxlan" - LinkProtocolUntagged: + SimplifiedVirtualDevice: type: object properties: - type: - $ref: "#/components/schemas/LinkProtocolType" - ipv4: - $ref: "#/components/schemas/LinkProtocolIpv4Ipv6Config" - ipv6: - $ref: "#/components/schemas/LinkProtocolIpv4Ipv6Config" - description: Connection link protocol configuration - UNTAGGED - LinkProtocolDot1q: - required: - - vlanTag - type: object - properties: - type: - $ref: "#/components/schemas/LinkProtocolType" - tagProtocolId: + href: type: string - description: Tag protocol identifier - vlanTag: + description: url to entity + format: uri + uuid: type: string - description: VLAN tag - vlanTagMin: - type: integer - description: VLAN tag Min value specified for DOT1Q connections - vlanTagMax: - type: integer - description: VLAN tag Max value specified for DOT1Q connections - description: Connection link protocol configuration - DOT1Q - LinkProtocolQinq: - required: - - innerTagProtocolId - - outerTagProtocolId - - vlanCTag - - vlanSTag - type: object - properties: + description: Network Edge assigned Virtual Device Identifier + format: uuid type: - $ref: "#/components/schemas/LinkProtocolType" - innerTagProtocolId: - type: integer - description: Inner tag protocol identifier - outerTagProtocolId: - type: integer - description: Outer tag protocol identifier - vlanCTag: - type: integer - description: Inner tag, i.e., C-VLAN tag - vlanSTag: - type: integer - description: Outer tag, i.e., S-VLAN tag - vlanCTagMin: - type: integer - description: Outer tag Min value specified for QINQ connections - vlanCTagMax: - type: integer - description: Outer tag Max value specified for QINQ connections - subInterface: - type: integer - description: Subinterface identifier - description: Connection link protocol configuration - QINQ - LinkProtocolVxlan: - required: - - vni + type: string + description: Type of Virtual Device + enum: + - EDGE + name: + type: string + description: Customer-assigned Virtual Device name + cluster: + type: string + description: Virtual Device Cluster Information + VirtualDeviceInterface: type: object properties: type: - $ref: "#/components/schemas/LinkProtocolType" - vni: - maximum: 16777215 - minimum: 4097 + type: string + description: Type of interface + enum: + - NETWORK + id: type: integer - description: Virtual Network Identifier - description: Connection link protocol configuration - VXLAN - LinkProtocolEvpnVxlan: - required: - - type5vni - - vnid + description: Network Edge assigned identifier + uuid: + type: string + description: Interface identifier + format: uuid + description: Virtual Device Interface Information + SimplifiedTokenNetwork: type: object properties: + href: + type: string + description: url to entity + format: uri + uuid: + type: string + description: Network Identifier + format: uuid type: - $ref: "#/components/schemas/LinkProtocolType" - vnid: - maximum: 40000 - minimum: 20001 - type: integer - description: Virtual Network Identifier - type5vni: - type: integer - description: Type 5 VNI identifier - description: Connection link protocol configuration - EVPN_VXLAN - LinkProtocolIpv4Ipv6Config: - type: object - properties: - linkPrefix: type: string - description: Link subnet prefix - localIfaceIp: + description: Type of Network + enum: + - EVPLAN + - EPLAN + - IPWAN + name: type: string - description: Prefix datatype when linkPrefix not specified - remoteIfaceIp: + description: Network Name + scope: type: string - description: Equinix-side link interface address - description: IPv4 or IPv6 specific configuration + description: scope of Network + enum: + - LOCAL + - REGIONAL + - GLOBAL + location: + $ref: "#/components/schemas/SimplifiedLocation" PriceError_additionalInfo: type: object properties: @@ -13993,6 +16457,15 @@ components: items: $ref: "#/components/schemas/ValidateRequest_filter_and" description: Filters + ConnectionRouteTableEntry_connection: + type: object + properties: + uuid: + type: string + example: 81331c52-04c0-4656-a4a7-18c52669348f + name: + type: string + example: connection_1 PortOrder_purchaseOrder: type: object properties: @@ -14012,6 +16485,14 @@ components: type: string format: uuid selectionType: + type: string + deprecated: true + enum: + - EXEMPTION + - EXISTING + - NEW + - BLANKET + type: type: string enum: - EXEMPTION @@ -14045,15 +16526,6 @@ components: delegate: $ref: "#/components/schemas/PortOrder_signature_delegate" description: Port signature Type - RouteTableEntry_connection: - type: object - properties: - uuid: - type: string - example: 81331c52-04c0-4656-a4a7-18c52669348f - name: - type: string - example: connection_1 VirtualConnectionPriceASide_accessPoint_port_settings: type: object properties: @@ -18952,8 +21424,14 @@ components: ConnectionMigrationAsideVirtualDeviceRequest: value: - op: replace - path: /aSide/accessPoint/virtualDevice/uuid - value: 5e7fd31d-f1e8-46fe-b6ad-6f5f2306cfd8 + path: /aSide/accessPoint + value: + virtualDevice: + type: EDGE + uuid: 207667ba-3211-452c-b0a8-8b9046e122a5 + interface: + type: CLOUD + id: 4 ConnectionPatchResponse: value: href: https://api.equinix.com/fabric/v4/connections/3a58dd05-f46d-4b1d-a154-2e85c396ea62 @@ -19093,6 +21571,48 @@ components: changeLog: createdDateTime: 2020-04-21T10:30:00Z updatedDateTime: 2020-05-21T10:30:00Z + ConnectionRoutesSearchByType: + value: + filter: + and: + - property: /type + operator: = + values: + - IPv4_BGP_ROUTE + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime + ConnectionRoutesSearchByState: + value: + filter: + and: + - property: /state + operator: = + values: + - ACTIVE + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime + ConnectionRoutesSearchByMed: + value: + filter: + and: + - property: /med + operator: = + values: + - 200 + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime RoutingProtocolGetAll: value: pagination: @@ -19123,6 +21643,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UNKNOWN customerAsn: 10000 @@ -19219,6 +21740,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UNKNOWN customerAsn: 10000 @@ -19404,6 +21926,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UNKNOWN customerAsn: 10000 @@ -19480,6 +22003,7 @@ components: outboundASPrependCount: 3 inboundMED: 1000 outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z @@ -19718,17 +22242,26 @@ components: bgpIpv4: customerPeerIp: 10.1.1.2 equinixPeerIp: 10.1.1.3 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z bgpIpv6: customerPeerIp: 2001:db8:c59b::1 equinixPeerIp: 2001:db8:c59b::1 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z customerAsn: 0 equinixAsn: 0 + asOverrideEnabled: true bgpAuthKey: string bfd: enabled: true @@ -19755,18 +22288,27 @@ components: bgpIpv4: customerPeerIp: 10.1.1.2 equinixPeerIp: 10.1.1.3 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z bgpIpv6: customerPeerIp: 2001:db8:c59b::1 equinixPeerIp: 2001:db8:c59b::1 + outboundASPrependCount: 3 + inboundMED: 1000 + outboundMED: 2000 + routesMax: 40 operation: operationalStatus: UP opStatusChangedAt: 2021-10-30T07:21:39Z customerAsn: 0 equinixAsn: 0 bgpAuthKey: string + asOverrideEnabled: true bfd: enabled: true interval: "100" @@ -22110,8 +24652,6 @@ components: expirationDateTime: 2021-03-18T06:43:49.980Z connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b allowRemoteConnection: false bandwidthLimit: 50 allowCustomBandwidth: false @@ -22138,39 +24678,42 @@ components: createdDateTime: 2021-03-18T06:43:49.980Z updatedBy: "843577" updatedDateTime: 2021-03-18T06:44:14.206Z - getServiceToken-CRH: + project: + projectId: "995072000433550" + getServiceToken-VD: value: - href: http://api.equinix.com/fabric/v4/serviceTokens/13ab7dc7-c18e-4f73-aa35-fc3a83966e79 + href: http://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 type: VC_TOKEN - uuid: 13ab7dc7-c18e-4f73-aa35-fc3a83966e79 - name: Az_Aside_Dot1Q_Pri_SV - description: Az_Aside_Dot1Q_Pri_SV_Description + name: Zside_Virtual_Device_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: Zside vd token state: INACTIVE - expiry: 0 - expirationDateTime: 2021-03-18T06:43:49.980Z connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b - allowRemoteConnection: false - bandwidthLimit: 50 + allowRemoteConnection: true allowCustomBandwidth: false - aSide: + supportedBandwidths: + - 10 + - 50 + - 200 + zSide: accessPointSelectors: - - type: COLO - port: - href: http://api.equinix.com/fabric/v4/ports/b840a1db-5758-758f-97e0-328a5c00a874 - type: XF_PORT - uuid: b840a1db-5758-758f-97e0-328a5c00a874 - linkProtocol: - type: QINQ - vlanCTag: 1399 - vlanSTag: 1388 + - type: VD + virtualDevice: + name: testVirtualDeviceName + type: EDGE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + interface: + type: NETWORK + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + id: 45645 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z notifications: - type: NOTIFICATION emails: - abc@company.com - - provider@company.com account: orgId: 111437 changeLog: @@ -22178,8 +24721,41 @@ components: createdDateTime: 2021-03-18T06:43:49.980Z updatedBy: "843577" updatedDateTime: 2021-03-18T06:44:14.206Z + getServiceToken-Network: + value: + href: https://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + type: VC_TOKEN + name: Zside_network_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: Zside Network token + state: INACTIVE + connection: + type: EVPLAN_VC + allowRemoteConnection: true + allowCustomBandwidth: false + bandwidthLimit: 20000 + zSide: + accessPointSelectors: + - type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + type: EVPLAN + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + scope: REGIONAL project: - projectId: "995072000433550" + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com + account: + orgId: 111437 + changeLog: + createdBy: "843577" + createdDateTime: 2021-03-18T06:43:49.980Z + updatedBy: "843577" + updatedDateTime: 2021-03-18T06:44:14.206Z 400_UUID: value: - errorCode: EQ-3034016 @@ -22226,65 +24802,74 @@ components: value: pagination: offset: 0 - limit: 1 - total: 1 + limit: 75 + total: 2 data: - - href: http://api.equinix.com/fabric/v4/serviceTokens/13ab7dc7-c18e-4f73-aa35-fc3a83966e79 + - href: https://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 type: VC_TOKEN - uuid: 13ab7dc7-c18e-4f73-aa35-fc3a83966e79 - name: Az_Aside_Dot1Q_Pri_SV - description: Az_Aside_Dot1Q_Pri_SV_Description - state: INACTIVE + name: zside_network_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: zside_Network_token + connection: + type: EVPLAN_VC + allowRemoteConnection: true + allowCustomBandwidth: false + bandwidthLimit: 20000 + zSide: + accessPointSelectors: + - type: NETWORK + network: + href: https://api.equinix.com/fabric/v4/networks/20d32a80-0d61-4333-bc03-707b591ae2f4 + type: EVPLAN + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + scope: REGIONAL + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com + - href: https://api.equinix.com/fabric/v4/serviceTokens/ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + type: VC_TOKEN + name: zside_vd_token + uuid: ea40918e-9b39-4045-8be8-0beaa7eb5ce1 + description: zside vd token connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b - allowRemoteConnection: false - bandwidthLimit: 50 + allowRemoteConnection: true allowCustomBandwidth: false - aSide: + supportedBandwidths: + - 10 + - 50 + - 200 + zSide: accessPointSelectors: - - type: COLO - port: - href: http://api.equinix.com/fabric/v4/ports/b840a1db-5758-758f-97e0-328a5c00a874 - type: XF_PORT - uuid: b840a1db-5758-758f-97e0-328a5c00a874 - linkProtocol: - type: QINQ - vlanCTag: 1399 - vlanSTag: 1388 + - type: VD + virtualDevice: + type: EDGE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + interface: + type: NETWORK + id: 45645 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z notifications: - type: NOTIFICATION emails: - abc@company.com - - provider@company.com - account: - orgId: 111437 - changeLog: - createdBy: "843577" - createdDateTime: 2021-03-18T06:43:49.980Z - updatedBy: "843577" - updatedDateTime: 2021-03-18T06:44:14.206Z - getServiceTokens-CRH: - value: - pagination: - offset: 0 - limit: 75 - total: 1 - data: - href: http://api.equinix.com/fabric/v4/serviceTokens/13ab7dc7-c18e-4f73-aa35-fc3a83966e79 type: VC_TOKEN uuid: 13ab7dc7-c18e-4f73-aa35-fc3a83966e79 name: Az_Aside_Dot1Q_Pri_SV description: Az_Aside_Dot1Q_Pri_SV_Description state: INACTIVE - expiry: 0 expirationDateTime: 2021-03-18T06:43:49.980Z + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b allowRemoteConnection: false bandwidthLimit: 50 allowCustomBandwidth: false @@ -22311,8 +24896,6 @@ components: createdDateTime: 2021-03-18T06:43:49.980Z updatedBy: "843577" updatedDateTime: 2021-03-18T06:44:14.206Z - project: - projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 createServiceTokenWithQnQ: value: type: VC_TOKEN @@ -22533,6 +25116,61 @@ components: - type: NOTIFICATION emails: - abc@company.com + createZsideServiceTokenWithVD: + value: + type: VC_TOKEN + name: Zside_VD_token + description: zside vd token + connection: + type: EVPL_VC + allowRemoteConnection: true + allowCustomBandwidth: false + supportedBandwidths: + - 10 + - 50 + - 200 + - 10000 + zSide: + accessPointSelectors: + - type: VD + virtualDevice: + type: EDGE + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + interface: + type: NETWORK + id: 45645 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com + createZsideServiceTokenWithNetwork: + value: + type: VC_TOKEN + name: zside_Network_token + description: Zside_Network_token + connection: + type: EVPLAN_VC + allowRemoteConnection: true + supportedBandwidths: + - 10 + - 50 + - 200 + zSide: + accessPointSelectors: + - type: NETWORK + network: + type: EVPLAN + uuid: 20d32a80-0d61-4333-bc03-707b591ae2f4 + project: + projectId: 30ad25e2-53dc-11ed-bdc3-0242ac120002 + expirationDateTime: 2021-03-18T06:43:49.980Z + notifications: + - type: NOTIFICATION + emails: + - abc@company.com Resend_Service_Token: value: type: RESEND_EMAIL_NOTIFICATION @@ -22548,8 +25186,6 @@ components: expirationDateTime: 2021-03-18T06:43:49.980Z connection: type: EVPL_VC - href: http://api.equinix.com/fabric/v4/connections/53dc2010-5006-46b6-9e91-995c47415d5b - uuid: 53dc2010-5006-46b6-9e91-995c47415d5b allowRemoteConnection: false bandwidthLimit: 50 allowCustomBandwidth: false @@ -22739,12 +25375,11 @@ components: uuid: e91484bb-4f65-4ab3-8f77-500dec2f855d name: test-AT1-Dot1q-L-Secondary-108608 state: ACTIVE - cvpId: "108608" bandwidth: 10000 usedBandwidth: 0 availableBandwidth: 20000 + physicalPortSpeed: 10000 redundancy: - group: "1" priority: SECONDARY location: metroHref: https://api.equinix.com/fabric/v4/metros/AT @@ -22761,8 +25396,9 @@ components: type: DOT1Q tagProtocolId: 33024 lagEnabled: true - lag: - enabled: true + package: + code: STANDARD + type: MSP settings: buyout: false placeVcOrderPermission: true @@ -22788,24 +25424,33 @@ components: patchPanel: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" + operation: + operationalStatus: UP demarcationPoint: ibx: AT1 patchPanel: PP:8118:1586 patchPanelName: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" - operation: - operationalStatus: UP operation: operationalStatus: UP opStatusChangedAt: 2021-06-14T17:21:25.586Z connectionCount: 0 + evplVcCount: 0 + fgVcCount: 0 + accessVcCount: 0 account: - accountNumber: "100179" + accountNumber: 100179 accountName: L2 globalCustId: 007700000090982RG8 - orgId: "100179" + orgId: 100179 organizationName: Cust_Org_100179 + order: + purchaseOrder: + startDate: 2020-06-14T17:21:25.586Z + endDate: 2020-06-15T17:21:25.586Z + type: NEW + orderNumber: 1-222078525611 changeLog: createdDateTime: 2020-06-14T17:21:25.586Z project: @@ -22819,16 +25464,16 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: false encapsulation: type: DOT1Q tagProtocolId: 33024 project: - projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 + projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931' account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -22837,9 +25482,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -22862,8 +25507,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -22871,7 +25516,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -22880,9 +25525,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -22905,8 +25550,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -22914,7 +25559,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -22923,9 +25568,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -22954,8 +25599,9 @@ components: location: metroCode: GV demarcationPointIbx: GV1 + package: + code: STANDARD settings: - packageType: STANDARD sharedPortType: false sharedPortProduct: null redundancy: @@ -22973,9 +25619,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23024,7 +25670,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -23035,9 +25681,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23055,8 +25701,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -23064,7 +25710,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -23075,9 +25721,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23093,8 +25739,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: false encapsulation: type: DOT1Q @@ -23102,14 +25748,14 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 order: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23133,8 +25779,9 @@ components: location: metroCode: GV demarcationPointIbx: GV1 + package: + code: STANDARD settings: - packageType: STANDARD sharedPortProduct: NETWORK_EDGE redundancy: priority: SECONDARY @@ -23151,9 +25798,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23187,8 +25834,8 @@ components: location: metroCode: GV demarcationPointIbx: GV1 - settings: - packageType: STANDARD + package: + code: STANDARD lagEnabled: true encapsulation: type: DOT1Q @@ -23196,7 +25843,7 @@ components: project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: - accountNumber: "270848" + accountNumber: 270848 notifications: - registeredUsers: - jaguarsuser-port-order @@ -23205,9 +25852,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23233,9 +25880,10 @@ components: encapsulation: type: DOT1Q tagProtocolId: 33024 + package: + code: STANDARD settings: - sharedPortType: false, - packageType: STANDARD + sharedPortType: false project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 account: @@ -23394,6 +26042,8 @@ components: name: L2-DEV-USER01-CX-10G-PRIMARY description: Test Redundant port in Amsterdam physicalPortsSpeed: 10000 + physicalPortsType: 1000BASE_LX + connectivitySourceType: BMMR location: metroCode: AM demarcationPointIbx: AM1 @@ -23409,9 +26059,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23448,9 +26098,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23482,8 +26132,8 @@ components: orderNumber: 1-210210611704 account: accountNumber: 270848 - changelog: - createdBy: "907831" + changeLog: + createdBy: 907831 createdDateTime: 2023-06-02T22:25:52.206Z location: metroCode: GV @@ -23492,9 +26142,10 @@ components: group: 22f8e668-4754-4564-825d-d1c7889c885a priority: PRIMARY lagEnabled: false + package: + code: STANDARD settings: sharedPortType: false - packageType: STANDARD project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 notifications: @@ -23515,8 +26166,8 @@ components: orderNumber: 1-210210611704 account: accountNumber: 270848 - changelog: - createdBy: "907831" + changeLog: + createdBy: 907831 createdDateTime: 2023-06-02T22:25:52.206Z location: metroCode: GV @@ -23527,9 +26178,10 @@ components: lagEnabled: false project: projectId: 8f23b36f-db8f-44c8-a6e5-606e1b485931 + package: + code: STANDARD settings: sharedPortType: false - packageType: STANDARD notifications: - type: TECHNICAL registeredUsers: @@ -23555,9 +26207,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23583,9 +26235,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23604,9 +26256,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23632,9 +26284,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23650,9 +26302,9 @@ components: purchaseOrder: number: 156576 amount: 10 - startDate: 2018-06-11 - endDate: 2018-07-11 - selectionType: NEW + startDate: 2018-06-11T22:25:52.206Z + endDate: 2018-07-11T22:25:52.206Z + type: NEW signature: signatory: DELEGATE delegate: @@ -23701,10 +26353,12 @@ components: uuid: e91484bb-4f65-4ab3-8f77-500dec2f855d name: test-AT1-Dot1q-L-Secondary-108608 state: ACTIVE - cvpId: "108608" bandwidth: 10000 usedBandwidth: 0 availableBandwidth: 20000 + physicalPortsSpeed: 10000 + physicalPortsType: 1000BASE_LX + connectivitySourceType: COLO redundancy: group: "1" priority: Secondary @@ -23723,8 +26377,9 @@ components: type: DOT1Q tagProtocolId: 33024 lagEnabled: true - lag: - enabled: true + package: + code: STANDARD + type: MSP settings: buyout: false placeVcOrderPermission: true @@ -23745,8 +26400,6 @@ components: patchPanelName: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" - operation: - operationalStatus: UP - state: PROVISIONED type: XF_PHYSICAL_PORT id: 6968 @@ -23756,17 +26409,18 @@ components: patchPanel: PP:8118:1586 patchPanelPortA: "92" patchPanelPortB: "24" - operation: - operationalStatus: UP operation: operationalStatus: UP opStatusChangedAt: 2021-06-14T17:21:25.586Z connectionCount: 0 + evplVcCount: 0 + fgVcCount: 0 + accessVcCount: 0 account: - accountNumber: "100179" + accountNumber: 100179 accountName: L2 globalCustId: 007700000090982RG8 - orgId: "100179" + orgId: 100179 organizationName: Cust_Org_100179 changeLog: createdDateTime: 2018-06-14T17:21:25.587Z @@ -23800,8 +26454,6 @@ components: type: DOT1Q tagProtocolId: 33024 lagEnabled: true - lag: - enabled: true settings: buyout: false placeVcOrderPermission: true @@ -25021,6 +27673,53 @@ components: RouteEntriesStatusUpdate: value: type: ROUTE_TABLE_ENTRY_UPDATE + ReceivedRouteEntriesStatusUpdate: + value: + type: RECEIVED_ROUTE_ENTRY_UPDATE + AdvertisedRouteEntriesStatusUpdate: + value: + type: ADVERTISED_ROUTE_ENTRY_UPDATE + connection: + uuid: 557400f8-d360-11e9-bb65-2a2ae2dbcce4 + CloudRouterReceivedRoutesActionResponse: + value: + type: RECEIVED_ROUTE_ENTRY_UPDATE + uuid: 37c10edc-ba2e-4240-a850-8a48f9c47d01 + state: PENDING + connection: + uuid: 3066ab1d-af87-49d7-8a14-c9bdb57ac809 + changeLog: + createdDateTime: 2020-05-21T10:30:00Z + CloudRouterAdvertisedRoutesActionResponse: + value: + type: ADVERTISED_ROUTE_ENTRY_UPDATE + uuid: 37c10edc-ba2e-4240-a850-8a48f9c47d01 + state: PENDING + connection: + uuid: 3066ab1d-af87-49d7-8a14-c9bdb57ac809 + changeLog: + createdDateTime: 2020-05-21T10:30:00Z + CloudRouterActionsSearchByType: + value: + filter: + and: + - property: /type + operator: = + values: + - ROUTE_TABLE_ENTRY_UPDATE + pagination: + offset: 0 + limit: 20 + sort: + - direction: DESC + property: /changeLog/createdDateTime + 400_invalid_sorting: + value: + - errorCode: EQ-3043015 + errorMessage: Invalid value for sorting direction. + correlationId: cebc3d33-9037-4a2b-a7af-0ad65602cdec + additionalInfo: + - reason: Only accept DESC and ASC for sorting direction. SearchFilterByNextHop: value: filter: @@ -25090,13 +27789,6 @@ components: operator: LIKE values: - abc - 400_invalid_sorting: - value: - - errorCode: EQ-3043015 - errorMessage: Invalid value for sorting direction. - correlationId: cebc3d33-9037-4a2b-a7af-0ad65602cdec - additionalInfo: - - reason: Only accept DESC and ASC for sorting direction. Request-direct-ipv4: value: filter: @@ -26116,48 +28808,181 @@ components: uuid: 38a1eb68-4daf-4ef0-bd7f-6970727b6fc1 400_invalid_uuid: value: - - errorCode: EQ-3152004 - errorMessage: Invalid inlput - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - details: Network does not exists with gievn uuid - NetworkChangeResponseExample: + - errorCode: EQ-3152004 + errorMessage: Invalid inlput + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + details: Network does not exists with gievn uuid + NetworkChangeResponseExample: + value: + pagination: + offset: 0 + limit: 20 + total: 1 + data: + - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 + type: NETWORK_CREATION + uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 + status: COMPLETED + createdDateTime: 2020-05-21T10:30:00Z + updatedDateTime: 2020-05-21T10:30:50Z + - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/da2a2f1b-9ba0-415b-85d6-234bd4c737ec + type: NETWORK_DELETION + uuid: da2a2f1b-9ba0-415b-85d6-234bd4c737ec + status: REQUESTED + createdDateTime: 2020-05-21T10:30:00Z + updatedDateTime: 2020-05-21T10:30:00Z + NetworkGetChangeResponseExample: + value: + href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 + type: NETWORK_CREATION + uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 + status: COMPLETED + createdDateTime: 2020-05-21T10:30:00Z + updatedDateTime: 2020-05-21T10:30:50Z + ntpStandardService: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpStandardService: + value: + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + purchaseOrderNumber: 1-129105284100 + ntpEnterpriseService: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpEnterpriseService: + value: + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpStandardWithAdvancedConfiguration: value: - pagination: - offset: 0 - limit: 20 - total: 1 - data: - - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 - type: NETWORK_CREATION - uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 - status: COMPLETED - createdDateTime: 2020-05-21T10:30:00Z - updatedDateTime: 2020-05-21T10:30:50Z - - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/da2a2f1b-9ba0-415b-85d6-234bd4c737ec - type: NETWORK_DELETION - uuid: da2a2f1b-9ba0-415b-85d6-234bd4c737ec - status: REQUESTED - createdDateTime: 2020-05-21T10:30:00Z - updatedDateTime: 2020-05-21T10:30:00Z - NetworkGetChangeResponseExample: + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + ptpEnterpriseWithAdvancedConfiguration: value: - href: https://api.equinix.com/fabric/v4/networks/2a4fb415-5a7f-436f-bae6-02f5e403deec/changes/4b17da68-3d6b-436d-9c8f-2105f3b950d9 - type: NETWORK_CREATION - uuid: 4b17da68-3d6b-436d-9c8f-2105f3b950d9 - status: COMPLETED - createdDateTime: 2020-05-21T10:30:00Z - updatedDateTime: 2020-05-21T10:30:50Z + type: PTP + name: EPT-PTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + ntpEnterpriseWithAdvancedConfiguration: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 ntpStandardCreateResponse: value: href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 - uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 - name: EPT-Single-Service type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service state: PROVISIONING connections: - - href: https://api.equinix.com/fabric/v4/connections/a8ba52de-faae-43b5-b0b1-6904d37ee011 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 type: EVPL_VC uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD code: NTP_STANDARD @@ -26168,14 +28993,155 @@ components: defaultGateway: 192.167.0.1 account: accountNumber: 123456 - 400-Mandatory-Name: + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseCreateResponse: value: - - errorCode: EQ-4800011 - errorMessage: Validation Error - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - additionalInfo: - - property: /package/protocol - reason: Mandatory field is missing + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpStandardCreateResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_STANDARD + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpEnterpriseCreateResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_ENTERPRISE + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z 400-Invalid-Name: value: - errorCode: EQ-4800010 @@ -26183,7 +29149,7 @@ components: correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 additionalInfo: - property: /name - reason: Invalid name + reason: Invalid name provided 400-Validate-Name: value: - errorCode: EQ-4800100 @@ -26374,43 +29340,432 @@ components: correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 400-Validate-GrantTime-Range: value: - - errorCode: EQ-4800113 - errorMessage: Invalid GrantTime range - Allowed range is 30 to 7200 - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Invalid-Type: + - errorCode: EQ-4800113 + errorMessage: Invalid GrantTime range - Allowed range is 30 to 7200 + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Invalid-Type: + value: + - errorCode: EQ-4800010 + errorMessage: Invalid Type - Allowed values are ASCII, HEX + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Invalid-Id: + value: + - errorCode: EQ-4800010 + errorMessage: Invalid Id - Only Integers are allowed + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Invalid-Password: + value: + - errorCode: EQ-4800010 + errorMessage: Invalid Password + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + 400-Validate-Password: + value: + - errorCode: EQ-4800114 + errorMessage: Only HEX allowed, chars value length should between 10 - 40 + correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 + ntpStandardResponseASidePort: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpStandardResponseASideVirtualDevice: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: VD + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpStandardResponseASideCloudRouter: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: IP_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: CLOUD_ROUTER + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseWOMD5ResponseASidePort: value: - - errorCode: EQ-4800010 - errorMessage: Invalid Type - Allowed values are ASCII, HEX - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Invalid-Id: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseResponseASidePort: value: - - errorCode: EQ-4800010 - errorMessage: Invalid Id - Only Integers are allowed - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Invalid-Password: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseResponseASideVirtualDevice: value: - - errorCode: EQ-4800010 - errorMessage: Invalid Password - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - 400-Validate-Password: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: VD + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpEnterpriseResponseASideCloudRouter: value: - - errorCode: EQ-4800114 - errorMessage: Only HEX allowed, chars value length should between 10 - 40 - correlationId: c82ff3bc-de07-47e5-b3ec-53a009d01515 - editName: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: IP_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: CLOUD_ROUTER + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpStandardResponse: value: - - op: replace - path: /name - value: EPT-Single-Service - editPackageCode: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_STANDARD + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ptpEnterpriseResponse: value: - - op: replace - path: /package/code - value: NTP_ENTERPRISE - ntpStandard: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: PTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-PTP-Service + state: PROVISIONED + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_ENTERPRISE + code: PTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + order: + orderNumber: 1-129105284100 + account: + accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + configureStandardService: value: - name: EPT-Single-Service type: NTP + name: EPT-Standard-Service connections: - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 package: @@ -26420,59 +29775,218 @@ components: secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - ptpStandard: + configureNtpEnterpriseAdvancedConfig: + value: + type: NTP + name: EPT-NTP-Service + connections: + - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + package: + code: NTP_ENTERPRISE + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ntpAdvancedConfiguration: + - type: ASCII + keyNumber: 65534 + key: plain_printable_key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1a1 + configurePtpWithAdvancedConfig: value: - name: EPT-Single-Service type: PTP + name: EPT-PTP-Service connections: - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 package: - code: PTP_STANDARD + code: PTP_STANDARD + ipv4: + primary: 192.168.0.2 + secondary: 192.168.0.3 + networkMask: 255.255.255.255 + defaultGateway: 192.167.0.1 + ptpAdvancedConfiguration: + timeScale: true + domain: 127 + priority1: 0 + priority2: 1 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + ntpStandardConfigureResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: PROVISIONING + connections: + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + package: + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD ipv4: primary: 192.168.0.2 secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - ptpEnterpriseWithAdvanceConfiguration: + account: + accountNumber: 123456 + order: + orderNumber: 1-129105284100 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + ntpStandardDeletingResponse: value: - name: EPT-Single-Service - type: PTP + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: DEPROVISIONING connections: - - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: - code: PTP_ENTERPRISE + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD ipv4: primary: 192.168.0.2 secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - advanceConfiguration: - ptp: - tailScale: true - domain: 10 - priority1: 5 - priority2: 7 - logAnnounceInterval: 0 - logSyncInterval: 0 - logDelayReqInterval: 0 - ntpEnterpriseWithAdvanceConfiguration: - value: - name: EPT-Single-Service + account: + accountNumber: 123456 + order: + orderNumber: 1-216720438646 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z + deletedByEmail: abc@xyz.com + deletedDateTime: 2024-08-24T06:52:46Z + updateName: + value: + - op: replace + path: /name + value: Updated-Service-Name + updatePackageCode: + value: + - op: replace + path: /package/code + value: NTP_ENTERPRISE + updateNetworkInformation: + value: + - op: replace + path: /ipv4 + value: + primary: 192.168.254.241 + secondary: 192.168.254.242 + networkMask: 255.255.255.240 + defaultGateway: 192.168.254.254 + updatePtpAdvancedConfiguration: + value: + - op: replace + path: /ptpAdvancedConfiguration + value: + timeScale: PTP + domain: 20 + priority1: 20 + priority2: 20 + logAnnounceInterval: 1 + logSyncInterval: -4 + logDelayReqInterval: -4 + transportMode: UNICAST + grantTime: 300 + updateNtpAdvancedConfiguration: + value: + - op: replace + path: /ntpAdvancedConfiguration + value: + - type: ASCII + keyNumber: 65534 + key: plain-text-key + - type: HEX + keyNumber: 65535 + key: a1a1a1a1a1a1 + ntpStandardReprovisionResponse: + value: + href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 type: NTP + uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 + name: EPT-NTP-Service + state: REPROVISIONING connections: - - uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC + uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: - code: NTP_ENTERPRISE + href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD + code: NTP_STANDARD ipv4: primary: 192.168.0.2 secondary: 192.168.0.3 networkMask: 255.255.255.255 defaultGateway: 192.167.0.1 - advanceConfiguration: - ntp: - - type: ASCII - id: 12345 - password: MTIzNDU2Nzg5MA + account: + accountNumber: 123456 + order: + orderNumber: 1-129105284100 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z SearchTimeServicesFilterByStatus: value: filter: @@ -26498,7 +30012,7 @@ components: - property: /name operator: = values: - - test-time-service + - test-service - property: /type operator: = values: @@ -26539,14 +30053,28 @@ components: next: /search?offset=40&limit=20 previous: /search?offset=0&limit=20 data: - - href: https://api.equinix.com/fabric/v4/routers/201b7346-a9eb-42fe-ae7a-08148c71928d + - href: https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011 + type: NTP uuid: a8ba52de-faae-43b5-b0b1-6904d37ee011 name: EPT-NTP-STD-Service - type: NTP state: PROVISIONING connections: - - href: https://api.equinix.com/fabric/v4/connections/a8ba52de-faae-43b5-b0b1-6904d37ee011 + - href: https://api.equinix.com/fabric/v4/connections/06dbb0e3-e55d-4090-8aff-fc5654abaad0 + type: EVPL_VC uuid: 06dbb0e3-e55d-4090-8aff-fc5654abaad0 + aSide: + accessPoint: + type: COLO + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY + ibx: NY1 + zSide: + accessPoint: + type: SP + location: + metroHref: https://api.equinix.com/fabric/v4/metros/NY + metroCode: NY package: href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD code: NTP_STANDARD @@ -26557,6 +30085,11 @@ components: defaultGateway: 192.167.0.1 account: accountNumber: 123456 + changeLog: + createdByEmail: abc@xyz.com + createdDateTime: 2024-08-24T06:50:46Z + updatedByEmail: abc@xyz.com + updatedDateTime: 2024-08-24T06:51:46Z service_400_invalid_sorting: value: - errorCode: EQ-3040039 @@ -26585,57 +30118,57 @@ components: total: 4 data: - href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD - code: NTP_STANDARD type: TIME_SERVICE_PACKAGE + code: NTP_STANDARD bandwidth: 1 - clientsPerSecondMax: 2000 - accuracyUnit: microseconds + clientsPerSecondMax: 1000 + accuracySlaUnit: microseconds accuracySla: -1 - accuracyAvgMin: 1 - accuracyAvgMax: 100 - redundancySupported: true - multiSubnetSupported: true + accuracySlaMin: 1 + accuracySlaMax: 100 + redundancySupported: false + multiSubnetSupported: false changeLog: createdDateTime: 2023-05-16T07:50:49.749Z updatedDateTime: 2023-05-17T07:50:49.749Z - href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_ENTERPRISE - code: NTP_ENTERPRISE type: TIME_SERVICE_PACKAGE + code: NTP_ENTERPRISE bandwidth: 5 - clientsPerSecondMax: 1000 - accuracyUnit: microseconds + clientsPerSecondMax: 2000 + accuracySlaUnit: microseconds accuracySla: -1 - accuracyAvgMin: 1 - accuracyAvgMax: 100 - redundancySupported: true + accuracySlaMin: 1 + accuracySlaMax: 100 + redundancySupported: false multiSubnetSupported: true changeLog: createdDateTime: 2023-05-16T07:50:49.749Z updatedDateTime: 2023-05-17T07:50:49.749Z - href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_STANDARD - code: PTP_STANDARD type: TIME_SERVICE_PACKAGE + code: PTP_STANDARD bandwidth: 5 - clientsPerSecondMax: 100 - accuracyUnit: microseconds + clientsPerSecondMax: 20 + accuracySlaUnit: microseconds accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 - redundancySupported: true + accuracySlaMin: 1 + accuracySlaMax: 10 + redundancySupported: false multiSubnetSupported: true changeLog: createdDateTime: 2023-05-16T07:50:49.749Z updatedDateTime: 2023-05-17T07:50:49.749Z - href: https://api.equinix.com/fabric/v4/timeServicePackages/PTP_ENTERPRISE - code: PTP_ENTERPRISE type: TIME_SERVICE_PACKAGE + code: PTP_ENTERPRISE bandwidth: 10 - clientsPerSecondMax: 20 - accuracyUnit: microseconds + clientsPerSecondMax: 100 + accuracySlaUnit: microseconds accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 - redundancySupported: true + accuracySlaMin: 1 + accuracySlaMax: 10 + redundancySupported: false multiSubnetSupported: true changeLog: createdDateTime: 2023-05-16T07:50:49.749Z @@ -26643,14 +30176,14 @@ components: servicePackageResponse: value: href: https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD - code: NTP_STANDARD type: TIME_SERVICE_PACKAGE + code: NTP_STANDARD bandwidth: 10 clientsPerSecondMax: 100 - accuracyUnit: microseconds + accuracySlaUnit: microseconds accuracySla: 50 - accuracyAvgMin: 1 - accuracyAvgMax: 10 + accuracySlaMin: 1 + accuracySlaMax: 10 redundancySupported: true multiSubnetSupported: true changeLog: @@ -26664,15 +30197,15 @@ components: marketplace: AWS offerType: PRIVATE_OFFER isAutoRenew: false - offerId: offer id + offerId: offer-wqquayy2jy25o trial: enabled: true expiryDateTime: 2020-05-21T10:30:00Z entitlements: - uuid: a15b6b20-b765-4bf7-a661-a3e9372d5435 - name: FCR Standard quantityEntitled: 1 quantityConsumed: 0 + quantityAvailable: 1 asset: type: XF_ROUTER package: @@ -26690,30 +30223,69 @@ components: createdDateTime: 2020-05-21T10:30:00Z updatedBy: adminuser updatedDateTime: 2020-05-21T10:30:00Z + stream-get-all-example: + value: + pagination: + offset: 0 + limit: 20 + total: 1 + data: + - href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: TELEMETRY_STREAM + name: stream 1 + description: stream dec 1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 + enabled: true + state: PROVISIONED + assetsCount: 1 + streamSubscriptionsCount: 2 + changelog: + createdDateTime: 2024-05-06T16:21:18.545214Z + StreamPostRequestExample: + value: + type: TELEMETRY_STREAM + name: splunk1 + description: subscription-1 + enabled: true + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 StreamResponseExample: value: - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: STREAM_SUBSCRIPTION - name: splunk1 - description: subscription 1 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: TELEMETRY_STREAM + name: stream1 + description: stream 1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 enabled: true state: PROVISIONED - project: - projectId: 123456 + assetsCount: 1 + streamSubscriptionsCount: 2 changelog: createdDateTime: 2024-05-06T16:21:18.545214Z - StreamPostRequestExample: - value: - type: STREAM_SUBSCRIPTION - name: splunk1 - description: subscription 1 StreamPutRequestExample: value: name: splunk1 description: subscription 1 - stream: - uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 + enabled: true + StreamDeleteRequestExample: + value: + href: https://api.equinix.com/fabric/v4/streams/d684aa26-8276-48b7-bb42-a6d9def0a418 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: TELEMETRY_STREAM + name: stream1 + description: stream 1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 + enabled: true + state: DEPROVISIONING + assetsCount: 1 + streamSubscriptionsCount: 2 + changelog: + createdDateTime: 2024-05-06T16:21:18.545214Z StreamAssetSearchRequestExample: value: filter: @@ -26727,7 +30299,7 @@ components: limit: 20 sort: - direction: DESC - property: /changeLog/createdDateTime + property: /uuid stream-asset-get-all-example: value: pagination: @@ -26735,31 +30307,41 @@ components: limit: 20 total: 1 data: - - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/ports/e684aa26-8276-48b7-bb42-a6d9def0a419 - metricsEnabled: true + - href: https://api.equinix.com/fabric/v4/ports/e684aa26-8276-48b7-bb42-a6d9def0a419 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + metricsEnabled: false attachmentStatus: ATTACHED - StreamRouterAssetResponseExample: + StreamConnectionAssetResponseExample: value: + href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/connections/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/routers/d684aa26-8276-48b7-bb42-a6d9def0a418 - metricsEnabled: true + metricsEnabled: false attachmentStatus: ATTACHED StreamAssetPutRequestExample: value: - metricsEnabled: true - StreamConnectionAssetResponseExample: + metricsEnabled: false + StreamRouterAssetAttachResponseExample: value: + href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/routers/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/connections/d684aa26-8276-48b7-bb42-a6d9def0a418 - metricsEnabled: true - attachmentStatus: ATTACHED - StreamPortAssetResponseExample: + metricsEnabled: false + attachmentStatus: ATTACHING + StreamRouterAssetDetachResponseExample: value: + href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/routers/d684aa26-8276-48b7-bb42-a6d9def0a418 uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/stream/e684aa26-8276-48b7-bb42-a6d9def0a419/ports/d684aa26-8276-48b7-bb42-a6d9def0a418 - metricsEnabled: true - attachmentStatus: ATTACHED + 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: @@ -26767,25 +30349,29 @@ components: limit: 20 total: 1 data: - - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + - href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 type: STREAM_SUBSCRIPTION name: splunk description: subscription 1 - enabled: true + 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: - - path: subject + - property: /subject operator: LIKE values: - "%36276e58-b5a1-4864-ab5e-be10dff9eac1%" - or: [] - - path: equinixproject + - property: /equinixproject operator: IN values: - "197607000886247" - or: [] sink: uri: https://xxxxxx type: SPLUNK_HEC @@ -26794,57 +30380,125 @@ components: batchWaitTimeMax: 5 changelog: createdDateTime: 2024-05-06T16:21:18.545214Z - StreamSubscriptionPostRequestExample: + StreamSubscriptionPostRequestExampleSplunk: value: type: STREAM_SUBSCRIPTION name: splunk1 - description: subscription 1 + description: subscription-1 enabled: true stream: uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 project: - projectId: 123456 + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 filters: and: - - path: type + - property: /type operator: LIKE values: - - "%com.equinix.event.fabric.connection%" - or: [] + - "%com.equinix.fabric.connection%" sink: uri: https://xxxxxx type: SPLUNK_HEC credential: type: ACCESS_TOKEN accessToken: my-access-token - batchEnabled: false - batchSizeMax: 50 - batchWaitTimeMax: 5 + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric + StreamSubscriptionPostRequestExampleSlack: + value: + type: STREAM_SUBSCRIPTION + name: slack1 + description: subscription-1 + enabled: true + stream: + uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 + project: + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 + sink: + uri: https://xxxxxx + type: SLACK + StreamSubscriptionPostRequestExamplePagerduty: + value: + type: STREAM_SUBSCRIPTION + 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%" + sink: + uri: https://xxxxxx + type: PAGERDUTY + credential: + type: INTEGRATION_KEY + integrationKey: my-integration-key + settings: + source: Equinix + 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%" + sink: + uri: https://xx.datadoghq.com + type: DATADOG + credential: + type: API_KEY + apiKey: my-api-key + settings: + source: Equinix + applicationKey: my-application-key StreamSubscriptionResponseExample: value: - uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 href: https://api.equinix.com/fabric/v4/streamSubscriptions/d684aa26-8276-48b7-bb42-a6d9def0a418 - type: TELEMETRY_STREAM + uuid: d684aa26-8276-48b7-bb42-a6d9def0a418 + type: STREAM_SUBSCRIPTION name: stream 1 description: stream dec 1 project: - projectId: 1234546 + projectId: dadd3ab6-c0af-430c-8216-43d44f08c1c5 state: PROVISIONED - assetCount: 1 - streamSubscriptionCount: 2 + 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: - - path: type + - property: /type operator: LIKE values: - - "%com.equinix.event.fabric.connection%" - or: [] + - "%com.equinix.fabric.connection%" sink: uri: https://xxxxxx type: SPLUNK_HEC credential: type: ACCESS_TOKEN accessToken: my-access-token + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric batchEnabled: false batchSizeMax: 50 batchWaitTimeMax: 5 @@ -26859,20 +30513,59 @@ components: uuid: 36276e58-b5a1-4864-ab5e-be10dff9eac1 filters: and: - - path: type + - property: /type operator: LIKE values: - "%equinix.event.fabric.connection%" - or: [] sink: uri: https://xxxxxx type: SPLUNK_HEC credential: type: ACCESS_TOKEN accessToken: my-access-token + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric + batchEnabled: false + batchSizeMax: 50 + batchWaitTimeMax: 5 + StreamSubscriptionDeleteResponseExample: + value: + href: https://api.equinix.com/fabric/v4/streamSubscriptions/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%" + sink: + uri: https://xxxxxx + type: SPLUNK_HEC + credential: + type: ACCESS_TOKEN + accessToken: my-access-token + settings: + source: Equinix + eventIndex: idx-hec-event + metricIndex: idx-hec-metric batchEnabled: false batchSizeMax: 50 batchWaitTimeMax: 5 + changelog: + createdDateTime: 2024-05-06T16:21:18.545214Z headers: ETag: description: response header - identifier for a specific version of a resource.