diff --git a/auditlog.go b/auditlog.go index 171f8555ecc..2489bece863 100644 --- a/auditlog.go +++ b/auditlog.go @@ -46,7 +46,7 @@ func (r *AuditLogService) AuditLogsGetAccountAuditLogs(ctx context.Context, acco } // Union satisfied by [AuditLogAuditLogsGetAccountAuditLogsResponseObject] or -// [AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommon]. +// [AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommon]. type AuditLogAuditLogsGetAccountAuditLogsResponse interface { implementsAuditLogAuditLogsGetAccountAuditLogsResponse() } @@ -225,19 +225,19 @@ func (r *AuditLogAuditLogsGetAccountAuditLogsResponseObjectResultResource) Unmar return apijson.UnmarshalRoot(data, r) } -type AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommon struct { - Errors []AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonError `json:"errors,required"` - Messages []AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonMessage `json:"messages,required"` - Result AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResult `json:"result,required"` +type AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommon struct { + Errors []AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonError `json:"errors,required"` + Messages []AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonMessage `json:"messages,required"` + Result AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResult `json:"result,required"` // Whether the API call was successful - Success AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonSuccess `json:"success,required"` - JSON auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonJSON `json:"-"` + Success AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonSuccess `json:"success,required"` + JSON auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonJSON `json:"-"` } -// auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonJSON +// auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonJSON // contains the JSON metadata for the struct -// [AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommon] -type auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonJSON struct { +// [AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommon] +type auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonJSON struct { Errors apijson.Field Messages apijson.Field Result apijson.Field @@ -246,64 +246,64 @@ type auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonJSON s ExtraFields map[string]apijson.Field } -func (r *AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommon) UnmarshalJSON(data []byte) (err error) { +func (r *AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommon) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommon) implementsAuditLogAuditLogsGetAccountAuditLogsResponse() { +func (r AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommon) implementsAuditLogAuditLogsGetAccountAuditLogsResponse() { } -type AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonError struct { +type AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonError struct { Code int64 `json:"code,required"` Message string `json:"message,required"` - JSON auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonErrorJSON `json:"-"` + JSON auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonErrorJSON `json:"-"` } -// auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonErrorJSON +// auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonErrorJSON // contains the JSON metadata for the struct -// [AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonError] -type auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonErrorJSON struct { +// [AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonError] +type auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonErrorJSON struct { Code apijson.Field Message apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonError) UnmarshalJSON(data []byte) (err error) { +func (r *AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonError) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -type AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonMessage struct { +type AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonMessage struct { Code int64 `json:"code,required"` Message string `json:"message,required"` - JSON auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonMessageJSON `json:"-"` + JSON auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonMessageJSON `json:"-"` } -// auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonMessageJSON +// auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonMessageJSON // contains the JSON metadata for the struct -// [AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonMessage] -type auditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonMessageJSON struct { +// [AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonMessage] +type auditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonMessageJSON struct { Code apijson.Field Message apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonMessage) UnmarshalJSON(data []byte) (err error) { +func (r *AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonMessage) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // Union satisfied by -// [AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResultUnknown], -// [AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResultArray] +// [AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResultUnknown], +// [AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResultArray] // or [shared.UnionString]. -type AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResult interface { - ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResult() +type AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResult interface { + ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResult() } func init() { apijson.RegisterUnion( - reflect.TypeOf((*AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResult)(nil)).Elem(), + reflect.TypeOf((*AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResult)(nil)).Elem(), "", apijson.UnionVariant{ TypeFilter: gjson.String, @@ -312,16 +312,16 @@ func init() { ) } -type AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResultArray []interface{} +type AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResultArray []interface{} -func (r AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResultArray) ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResult() { +func (r AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResultArray) ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResult() { } // Whether the API call was successful -type AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonSuccess bool +type AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonSuccess bool const ( - AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonSuccessTrue AuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonSuccess = true + AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonSuccessTrue AuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonSuccess = true ) type AuditLogAuditLogsGetAccountAuditLogsParams struct { diff --git a/internal/shared/union.go b/internal/shared/union.go index aa0fea489ce..c7f5fe8e5e7 100644 --- a/internal/shared/union.go +++ b/internal/shared/union.go @@ -12,7 +12,7 @@ func (UnionString) ImplementsMembershipUpdateResponse() func (UnionString) ImplementsMembershipGetResponse() {} func (UnionString) ImplementsUserUserEditUserResponse() {} func (UnionString) ImplementsUserUserUserDetailsResponse() {} -func (UnionString) ImplementsUserAuditLogListResponseTtcIr1mpAPIResponseCommonResult() {} +func (UnionString) ImplementsUserAuditLogListResponseD7rcId0rAPIResponseCommonResult() {} func (UnionString) ImplementsUserBillingProfileUserBillingProfileBillingProfileDetailsResponse() {} func (UnionString) ImplementsUserInviteUpdateResponse() {} func (UnionString) ImplementsUserInviteGetResponse() {} @@ -43,7 +43,7 @@ func (UnionString) ImplementsAccessKeyAccessKeyConfigurationGetTheAccessKeyConfi func (UnionString) ImplementsAccessKeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse() { } func (UnionString) ImplementsAccessKeyRotateAccessKeyConfigurationRotateAccessKeysResponse() {} -func (UnionString) ImplementsPurgeCachZonePurgeParams2YeEfrNpFilesFile() {} +func (UnionString) ImplementsPurgeCachZonePurgeParamsBjEsKdXsFilesFile() {} func (UnionString) ImplementsSSLAnalyzeAnalyzeCertificateAnalyzeCertificateResponse() {} func (UnionString) ImplementsSSLCertificatePackGetResponse() {} func (UnionString) ImplementsSubscriptionUpdateResponse() {} @@ -151,7 +151,7 @@ func (UnionString) ImplementsAddressAddressMapIPDeleteResponse() {} func (UnionString) ImplementsAddressAddressMapZoneUpdateResponse() {} func (UnionString) ImplementsAddressAddressMapZoneDeleteResponse() {} func (UnionString) ImplementsAddressPrefixDeleteResponse() {} -func (UnionString) ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseTtcIr1mpAPIResponseCommonResult() { +func (UnionString) ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseD7rcId0rAPIResponseCommonResult() { } func (UnionString) ImplementsBillingProfileAccountBillingProfileBillingProfileDetailsResponse() {} func (UnionString) ImplementsCfdTunnelConfigurationCloudflareTunnelConfigurationGetConfigurationResponse() { diff --git a/pcap.go b/pcap.go index 857ffc150d8..1c2ab28f063 100644 --- a/pcap.go +++ b/pcap.go @@ -74,8 +74,8 @@ func (r *PcapService) MagicPcapCollectionListPacketCaptureRequests(ctx context.C return } -// Union satisfied by [PcapGetResponseXpRsOfUpPcapsResponseSimple] or -// [PcapGetResponseXpRsOfUpPcapsResponseFull]. +// Union satisfied by [PcapGetResponseZ3ACvKa4PcapsResponseSimple] or +// [PcapGetResponseZ3ACvKa4PcapsResponseFull]. type PcapGetResponse interface { implementsPcapGetResponse() } @@ -84,28 +84,28 @@ func init() { apijson.RegisterUnion(reflect.TypeOf((*PcapGetResponse)(nil)).Elem(), "") } -type PcapGetResponseXpRsOfUpPcapsResponseSimple struct { +type PcapGetResponseZ3ACvKa4PcapsResponseSimple struct { // The ID for the packet capture. ID string `json:"id"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 PcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1 `json:"filter_v1"` + FilterV1 PcapGetResponseZ3ACvKa4PcapsResponseSimpleFilterV1 `json:"filter_v1"` // The status of the packet capture request. - Status PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus `json:"status"` + Status PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. - System PcapGetResponseXpRsOfUpPcapsResponseSimpleSystem `json:"system"` + System PcapGetResponseZ3ACvKa4PcapsResponseSimpleSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type PcapGetResponseXpRsOfUpPcapsResponseSimpleType `json:"type"` - JSON pcapGetResponseXpRsOfUpPcapsResponseSimpleJSON `json:"-"` + Type PcapGetResponseZ3ACvKa4PcapsResponseSimpleType `json:"type"` + JSON pcapGetResponseZ3ACvKa4PcapsResponseSimpleJSON `json:"-"` } -// pcapGetResponseXpRsOfUpPcapsResponseSimpleJSON contains the JSON metadata for -// the struct [PcapGetResponseXpRsOfUpPcapsResponseSimple] -type pcapGetResponseXpRsOfUpPcapsResponseSimpleJSON struct { +// pcapGetResponseZ3ACvKa4PcapsResponseSimpleJSON contains the JSON metadata for +// the struct [PcapGetResponseZ3ACvKa4PcapsResponseSimple] +type pcapGetResponseZ3ACvKa4PcapsResponseSimpleJSON struct { ID apijson.Field FilterV1 apijson.Field Status apijson.Field @@ -117,14 +117,14 @@ type pcapGetResponseXpRsOfUpPcapsResponseSimpleJSON struct { ExtraFields map[string]apijson.Field } -func (r *PcapGetResponseXpRsOfUpPcapsResponseSimple) UnmarshalJSON(data []byte) (err error) { +func (r *PcapGetResponseZ3ACvKa4PcapsResponseSimple) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r PcapGetResponseXpRsOfUpPcapsResponseSimple) implementsPcapGetResponse() {} +func (r PcapGetResponseZ3ACvKa4PcapsResponseSimple) implementsPcapGetResponse() {} // The packet capture filter. When this field is empty, all packets are captured. -type PcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1 struct { +type PcapGetResponseZ3ACvKa4PcapsResponseSimpleFilterV1 struct { // The destination IP address of the packet. DestinationAddress string `json:"destination_address"` // The destination port of the packet. @@ -135,12 +135,12 @@ type PcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1 struct { SourceAddress string `json:"source_address"` // The source port of the packet. SourcePort float64 `json:"source_port"` - JSON pcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON `json:"-"` + JSON pcapGetResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON `json:"-"` } -// pcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON contains the JSON -// metadata for the struct [PcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1] -type pcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON struct { +// pcapGetResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON contains the JSON +// metadata for the struct [PcapGetResponseZ3ACvKa4PcapsResponseSimpleFilterV1] +type pcapGetResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON struct { DestinationAddress apijson.Field DestinationPort apijson.Field Protocol apijson.Field @@ -150,41 +150,41 @@ type pcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON struct { ExtraFields map[string]apijson.Field } -func (r *PcapGetResponseXpRsOfUpPcapsResponseSimpleFilterV1) UnmarshalJSON(data []byte) (err error) { +func (r *PcapGetResponseZ3ACvKa4PcapsResponseSimpleFilterV1) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // The status of the packet capture request. -type PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus string +type PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus string const ( - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusUnknown PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "unknown" - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusSuccess PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "success" - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusPending PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "pending" - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusRunning PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "running" - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusConversionPending PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "conversion_pending" - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusConversionRunning PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "conversion_running" - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusComplete PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "complete" - PcapGetResponseXpRsOfUpPcapsResponseSimpleStatusFailed PcapGetResponseXpRsOfUpPcapsResponseSimpleStatus = "failed" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusUnknown PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "unknown" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusSuccess PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "success" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusPending PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "pending" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusRunning PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "running" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusConversionPending PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "conversion_pending" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusConversionRunning PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "conversion_running" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusComplete PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "complete" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatusFailed PcapGetResponseZ3ACvKa4PcapsResponseSimpleStatus = "failed" ) // The system used to collect packet captures. -type PcapGetResponseXpRsOfUpPcapsResponseSimpleSystem string +type PcapGetResponseZ3ACvKa4PcapsResponseSimpleSystem string const ( - PcapGetResponseXpRsOfUpPcapsResponseSimpleSystemMagicTransit PcapGetResponseXpRsOfUpPcapsResponseSimpleSystem = "magic-transit" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleSystemMagicTransit PcapGetResponseZ3ACvKa4PcapsResponseSimpleSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapGetResponseXpRsOfUpPcapsResponseSimpleType string +type PcapGetResponseZ3ACvKa4PcapsResponseSimpleType string const ( - PcapGetResponseXpRsOfUpPcapsResponseSimpleTypeSimple PcapGetResponseXpRsOfUpPcapsResponseSimpleType = "simple" - PcapGetResponseXpRsOfUpPcapsResponseSimpleTypeFull PcapGetResponseXpRsOfUpPcapsResponseSimpleType = "full" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleTypeSimple PcapGetResponseZ3ACvKa4PcapsResponseSimpleType = "simple" + PcapGetResponseZ3ACvKa4PcapsResponseSimpleTypeFull PcapGetResponseZ3ACvKa4PcapsResponseSimpleType = "full" ) -type PcapGetResponseXpRsOfUpPcapsResponseFull struct { +type PcapGetResponseZ3ACvKa4PcapsResponseFull struct { // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet @@ -200,24 +200,24 @@ type PcapGetResponseXpRsOfUpPcapsResponseFull struct { // applies to `full` packet captures. ErrorMessage string `json:"error_message"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 PcapGetResponseXpRsOfUpPcapsResponseFullFilterV1 `json:"filter_v1"` + FilterV1 PcapGetResponseZ3ACvKa4PcapsResponseFullFilterV1 `json:"filter_v1"` // The status of the packet capture request. - Status PcapGetResponseXpRsOfUpPcapsResponseFullStatus `json:"status"` + Status PcapGetResponseZ3ACvKa4PcapsResponseFullStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. - System PcapGetResponseXpRsOfUpPcapsResponseFullSystem `json:"system"` + System PcapGetResponseZ3ACvKa4PcapsResponseFullSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type PcapGetResponseXpRsOfUpPcapsResponseFullType `json:"type"` - JSON pcapGetResponseXpRsOfUpPcapsResponseFullJSON `json:"-"` + Type PcapGetResponseZ3ACvKa4PcapsResponseFullType `json:"type"` + JSON pcapGetResponseZ3ACvKa4PcapsResponseFullJSON `json:"-"` } -// pcapGetResponseXpRsOfUpPcapsResponseFullJSON contains the JSON metadata for the -// struct [PcapGetResponseXpRsOfUpPcapsResponseFull] -type pcapGetResponseXpRsOfUpPcapsResponseFullJSON struct { +// pcapGetResponseZ3ACvKa4PcapsResponseFullJSON contains the JSON metadata for the +// struct [PcapGetResponseZ3ACvKa4PcapsResponseFull] +type pcapGetResponseZ3ACvKa4PcapsResponseFullJSON struct { ID apijson.Field ByteLimit apijson.Field ColoName apijson.Field @@ -233,14 +233,14 @@ type pcapGetResponseXpRsOfUpPcapsResponseFullJSON struct { ExtraFields map[string]apijson.Field } -func (r *PcapGetResponseXpRsOfUpPcapsResponseFull) UnmarshalJSON(data []byte) (err error) { +func (r *PcapGetResponseZ3ACvKa4PcapsResponseFull) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r PcapGetResponseXpRsOfUpPcapsResponseFull) implementsPcapGetResponse() {} +func (r PcapGetResponseZ3ACvKa4PcapsResponseFull) implementsPcapGetResponse() {} // The packet capture filter. When this field is empty, all packets are captured. -type PcapGetResponseXpRsOfUpPcapsResponseFullFilterV1 struct { +type PcapGetResponseZ3ACvKa4PcapsResponseFullFilterV1 struct { // The destination IP address of the packet. DestinationAddress string `json:"destination_address"` // The destination port of the packet. @@ -251,12 +251,12 @@ type PcapGetResponseXpRsOfUpPcapsResponseFullFilterV1 struct { SourceAddress string `json:"source_address"` // The source port of the packet. SourcePort float64 `json:"source_port"` - JSON pcapGetResponseXpRsOfUpPcapsResponseFullFilterV1JSON `json:"-"` + JSON pcapGetResponseZ3ACvKa4PcapsResponseFullFilterV1JSON `json:"-"` } -// pcapGetResponseXpRsOfUpPcapsResponseFullFilterV1JSON contains the JSON metadata -// for the struct [PcapGetResponseXpRsOfUpPcapsResponseFullFilterV1] -type pcapGetResponseXpRsOfUpPcapsResponseFullFilterV1JSON struct { +// pcapGetResponseZ3ACvKa4PcapsResponseFullFilterV1JSON contains the JSON metadata +// for the struct [PcapGetResponseZ3ACvKa4PcapsResponseFullFilterV1] +type pcapGetResponseZ3ACvKa4PcapsResponseFullFilterV1JSON struct { DestinationAddress apijson.Field DestinationPort apijson.Field Protocol apijson.Field @@ -266,43 +266,43 @@ type pcapGetResponseXpRsOfUpPcapsResponseFullFilterV1JSON struct { ExtraFields map[string]apijson.Field } -func (r *PcapGetResponseXpRsOfUpPcapsResponseFullFilterV1) UnmarshalJSON(data []byte) (err error) { +func (r *PcapGetResponseZ3ACvKa4PcapsResponseFullFilterV1) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // The status of the packet capture request. -type PcapGetResponseXpRsOfUpPcapsResponseFullStatus string +type PcapGetResponseZ3ACvKa4PcapsResponseFullStatus string const ( - PcapGetResponseXpRsOfUpPcapsResponseFullStatusUnknown PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "unknown" - PcapGetResponseXpRsOfUpPcapsResponseFullStatusSuccess PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "success" - PcapGetResponseXpRsOfUpPcapsResponseFullStatusPending PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "pending" - PcapGetResponseXpRsOfUpPcapsResponseFullStatusRunning PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "running" - PcapGetResponseXpRsOfUpPcapsResponseFullStatusConversionPending PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "conversion_pending" - PcapGetResponseXpRsOfUpPcapsResponseFullStatusConversionRunning PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "conversion_running" - PcapGetResponseXpRsOfUpPcapsResponseFullStatusComplete PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "complete" - PcapGetResponseXpRsOfUpPcapsResponseFullStatusFailed PcapGetResponseXpRsOfUpPcapsResponseFullStatus = "failed" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusUnknown PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "unknown" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusSuccess PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "success" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusPending PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "pending" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusRunning PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "running" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusConversionPending PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "conversion_pending" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusConversionRunning PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "conversion_running" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusComplete PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "complete" + PcapGetResponseZ3ACvKa4PcapsResponseFullStatusFailed PcapGetResponseZ3ACvKa4PcapsResponseFullStatus = "failed" ) // The system used to collect packet captures. -type PcapGetResponseXpRsOfUpPcapsResponseFullSystem string +type PcapGetResponseZ3ACvKa4PcapsResponseFullSystem string const ( - PcapGetResponseXpRsOfUpPcapsResponseFullSystemMagicTransit PcapGetResponseXpRsOfUpPcapsResponseFullSystem = "magic-transit" + PcapGetResponseZ3ACvKa4PcapsResponseFullSystemMagicTransit PcapGetResponseZ3ACvKa4PcapsResponseFullSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapGetResponseXpRsOfUpPcapsResponseFullType string +type PcapGetResponseZ3ACvKa4PcapsResponseFullType string const ( - PcapGetResponseXpRsOfUpPcapsResponseFullTypeSimple PcapGetResponseXpRsOfUpPcapsResponseFullType = "simple" - PcapGetResponseXpRsOfUpPcapsResponseFullTypeFull PcapGetResponseXpRsOfUpPcapsResponseFullType = "full" + PcapGetResponseZ3ACvKa4PcapsResponseFullTypeSimple PcapGetResponseZ3ACvKa4PcapsResponseFullType = "simple" + PcapGetResponseZ3ACvKa4PcapsResponseFullTypeFull PcapGetResponseZ3ACvKa4PcapsResponseFullType = "full" ) // Union satisfied by -// [PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimple] or -// [PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFull]. +// [PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimple] or +// [PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFull]. type PcapMagicPcapCollectionNewPcapRequestResponse interface { implementsPcapMagicPcapCollectionNewPcapRequestResponse() } @@ -311,29 +311,29 @@ func init() { apijson.RegisterUnion(reflect.TypeOf((*PcapMagicPcapCollectionNewPcapRequestResponse)(nil)).Elem(), "") } -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimple struct { +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimple struct { // The ID for the packet capture. ID string `json:"id"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFilterV1 `json:"filter_v1"` + FilterV1 PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleFilterV1 `json:"filter_v1"` // The status of the packet capture request. - Status PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus `json:"status"` + Status PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. - System PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleSystem `json:"system"` + System PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleType `json:"type"` - JSON pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleJSON `json:"-"` + Type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleType `json:"type"` + JSON pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleJSON `json:"-"` } -// pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleJSON +// pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleJSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimple] -type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleJSON struct { +// [PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimple] +type pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleJSON struct { ID apijson.Field FilterV1 apijson.Field Status apijson.Field @@ -345,15 +345,15 @@ type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleJSO ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimple) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimple) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimple) implementsPcapMagicPcapCollectionNewPcapRequestResponse() { +func (r PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimple) implementsPcapMagicPcapCollectionNewPcapRequestResponse() { } // The packet capture filter. When this field is empty, all packets are captured. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFilterV1 struct { +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleFilterV1 struct { // The destination IP address of the packet. DestinationAddress string `json:"destination_address"` // The destination port of the packet. @@ -364,13 +364,13 @@ type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFil SourceAddress string `json:"source_address"` // The source port of the packet. SourcePort float64 `json:"source_port"` - JSON pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON `json:"-"` + JSON pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON `json:"-"` } -// pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON +// pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFilterV1] -type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON struct { +// [PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleFilterV1] +type pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON struct { DestinationAddress apijson.Field DestinationPort apijson.Field Protocol apijson.Field @@ -380,41 +380,41 @@ type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFil ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleFilterV1) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleFilterV1) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // The status of the packet capture request. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus string +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus string const ( - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusUnknown PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "unknown" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusSuccess PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "success" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusPending PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "pending" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusRunning PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "running" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusConversionPending PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "conversion_pending" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusConversionRunning PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "conversion_running" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusComplete PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "complete" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatusFailed PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleStatus = "failed" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusUnknown PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "unknown" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusSuccess PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "success" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusPending PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "pending" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusRunning PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "running" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusConversionPending PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "conversion_pending" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusConversionRunning PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "conversion_running" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusComplete PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "complete" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatusFailed PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleStatus = "failed" ) // The system used to collect packet captures. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleSystem string +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleSystem string const ( - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleSystem = "magic-transit" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleType string +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleType string const ( - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleTypeSimple PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleType = "simple" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleTypeFull PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseSimpleType = "full" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleTypeSimple PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleType = "simple" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleTypeFull PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseSimpleType = "full" ) -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFull struct { +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFull struct { // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet @@ -430,25 +430,25 @@ type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFull stru // applies to `full` packet captures. ErrorMessage string `json:"error_message"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilterV1 `json:"filter_v1"` + FilterV1 PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullFilterV1 `json:"filter_v1"` // The status of the packet capture request. - Status PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus `json:"status"` + Status PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. - System PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullSystem `json:"system"` + System PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullType `json:"type"` - JSON pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullJSON `json:"-"` + Type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullType `json:"type"` + JSON pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullJSON `json:"-"` } -// pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullJSON +// pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullJSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFull] -type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullJSON struct { +// [PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFull] +type pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullJSON struct { ID apijson.Field ByteLimit apijson.Field ColoName apijson.Field @@ -464,15 +464,15 @@ type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullJSON ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFull) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFull) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFull) implementsPcapMagicPcapCollectionNewPcapRequestResponse() { +func (r PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFull) implementsPcapMagicPcapCollectionNewPcapRequestResponse() { } // The packet capture filter. When this field is empty, all packets are captured. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilterV1 struct { +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullFilterV1 struct { // The destination IP address of the packet. DestinationAddress string `json:"destination_address"` // The destination port of the packet. @@ -483,13 +483,13 @@ type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilte SourceAddress string `json:"source_address"` // The source port of the packet. SourcePort float64 `json:"source_port"` - JSON pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilterV1JSON `json:"-"` + JSON pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullFilterV1JSON `json:"-"` } -// pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilterV1JSON +// pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullFilterV1JSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilterV1] -type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilterV1JSON struct { +// [PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullFilterV1] +type pcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullFilterV1JSON struct { DestinationAddress apijson.Field DestinationPort apijson.Field Protocol apijson.Field @@ -499,44 +499,44 @@ type pcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilte ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullFilterV1) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullFilterV1) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // The status of the packet capture request. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus string +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus string const ( - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusUnknown PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "unknown" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusSuccess PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "success" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusPending PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "pending" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusRunning PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "running" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusConversionPending PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "conversion_pending" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusConversionRunning PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "conversion_running" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusComplete PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "complete" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatusFailed PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullStatus = "failed" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusUnknown PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "unknown" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusSuccess PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "success" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusPending PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "pending" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusRunning PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "running" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusConversionPending PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "conversion_pending" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusConversionRunning PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "conversion_running" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusComplete PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "complete" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatusFailed PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullStatus = "failed" ) // The system used to collect packet captures. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullSystem string +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullSystem string const ( - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullSystem = "magic-transit" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullType string +type PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullType string const ( - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullTypeSimple PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullType = "simple" - PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullTypeFull PcapMagicPcapCollectionNewPcapRequestResponseXpRsOfUpPcapsResponseFullType = "full" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullTypeSimple PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullType = "simple" + PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullTypeFull PcapMagicPcapCollectionNewPcapRequestResponseZ3ACvKa4PcapsResponseFullType = "full" ) // Union satisfied by -// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimple] +// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimple] // or -// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFull]. +// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFull]. type PcapMagicPcapCollectionListPacketCaptureRequestsResponse interface { implementsPcapMagicPcapCollectionListPacketCaptureRequestsResponse() } @@ -545,29 +545,29 @@ func init() { apijson.RegisterUnion(reflect.TypeOf((*PcapMagicPcapCollectionListPacketCaptureRequestsResponse)(nil)).Elem(), "") } -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimple struct { +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimple struct { // The ID for the packet capture. ID string `json:"id"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleFilterV1 `json:"filter_v1"` + FilterV1 PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleFilterV1 `json:"filter_v1"` // The status of the packet capture request. - Status PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus `json:"status"` + Status PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. - System PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleSystem `json:"system"` + System PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleType `json:"type"` - JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleJSON `json:"-"` + Type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleType `json:"type"` + JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleJSON `json:"-"` } -// pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleJSON +// pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleJSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimple] -type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleJSON struct { +// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimple] +type pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleJSON struct { ID apijson.Field FilterV1 apijson.Field Status apijson.Field @@ -579,15 +579,15 @@ type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsRespon ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimple) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimple) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimple) implementsPcapMagicPcapCollectionListPacketCaptureRequestsResponse() { +func (r PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimple) implementsPcapMagicPcapCollectionListPacketCaptureRequestsResponse() { } // The packet capture filter. When this field is empty, all packets are captured. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleFilterV1 struct { +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleFilterV1 struct { // The destination IP address of the packet. DestinationAddress string `json:"destination_address"` // The destination port of the packet. @@ -598,13 +598,13 @@ type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsRespon SourceAddress string `json:"source_address"` // The source port of the packet. SourcePort float64 `json:"source_port"` - JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON `json:"-"` + JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON `json:"-"` } -// pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON +// pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleFilterV1] -type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleFilterV1JSON struct { +// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleFilterV1] +type pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleFilterV1JSON struct { DestinationAddress apijson.Field DestinationPort apijson.Field Protocol apijson.Field @@ -614,41 +614,41 @@ type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsRespon ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleFilterV1) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleFilterV1) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // The status of the packet capture request. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus string +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus string const ( - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusUnknown PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "unknown" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusSuccess PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "success" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "pending" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "running" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusConversionPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "conversion_pending" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusConversionRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "conversion_running" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusComplete PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "complete" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatusFailed PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleStatus = "failed" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusUnknown PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "unknown" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusSuccess PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "success" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "pending" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "running" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusConversionPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "conversion_pending" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusConversionRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "conversion_running" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusComplete PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "complete" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatusFailed PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleStatus = "failed" ) // The system used to collect packet captures. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleSystem string +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleSystem string const ( - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleSystemMagicTransit PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleSystem = "magic-transit" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleSystemMagicTransit PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleType string +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleType string const ( - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleTypeSimple PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleType = "simple" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleTypeFull PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseSimpleType = "full" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleTypeSimple PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleType = "simple" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleTypeFull PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseSimpleType = "full" ) -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFull struct { +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFull struct { // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet @@ -664,25 +664,25 @@ type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsRespon // applies to `full` packet captures. ErrorMessage string `json:"error_message"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullFilterV1 `json:"filter_v1"` + FilterV1 PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullFilterV1 `json:"filter_v1"` // The status of the packet capture request. - Status PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus `json:"status"` + Status PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. - System PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullSystem `json:"system"` + System PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullType `json:"type"` - JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullJSON `json:"-"` + Type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullType `json:"type"` + JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullJSON `json:"-"` } -// pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullJSON +// pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullJSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFull] -type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullJSON struct { +// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFull] +type pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullJSON struct { ID apijson.Field ByteLimit apijson.Field ColoName apijson.Field @@ -698,15 +698,15 @@ type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsRespon ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFull) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFull) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFull) implementsPcapMagicPcapCollectionListPacketCaptureRequestsResponse() { +func (r PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFull) implementsPcapMagicPcapCollectionListPacketCaptureRequestsResponse() { } // The packet capture filter. When this field is empty, all packets are captured. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullFilterV1 struct { +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullFilterV1 struct { // The destination IP address of the packet. DestinationAddress string `json:"destination_address"` // The destination port of the packet. @@ -717,13 +717,13 @@ type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsRespon SourceAddress string `json:"source_address"` // The source port of the packet. SourcePort float64 `json:"source_port"` - JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullFilterV1JSON `json:"-"` + JSON pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullFilterV1JSON `json:"-"` } -// pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullFilterV1JSON +// pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullFilterV1JSON // contains the JSON metadata for the struct -// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullFilterV1] -type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullFilterV1JSON struct { +// [PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullFilterV1] +type pcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullFilterV1JSON struct { DestinationAddress apijson.Field DestinationPort apijson.Field Protocol apijson.Field @@ -733,38 +733,38 @@ type pcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsRespon ExtraFields map[string]apijson.Field } -func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullFilterV1) UnmarshalJSON(data []byte) (err error) { +func (r *PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullFilterV1) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // The status of the packet capture request. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus string +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus string const ( - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusUnknown PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "unknown" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusSuccess PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "success" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "pending" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "running" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusConversionPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "conversion_pending" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusConversionRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "conversion_running" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusComplete PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "complete" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatusFailed PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullStatus = "failed" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusUnknown PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "unknown" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusSuccess PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "success" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "pending" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "running" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusConversionPending PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "conversion_pending" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusConversionRunning PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "conversion_running" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusComplete PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "complete" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatusFailed PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullStatus = "failed" ) // The system used to collect packet captures. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullSystem string +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullSystem string const ( - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullSystemMagicTransit PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullSystem = "magic-transit" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullSystemMagicTransit PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullType string +type PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullType string const ( - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullTypeSimple PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullType = "simple" - PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullTypeFull PcapMagicPcapCollectionListPacketCaptureRequestsResponseXpRsOfUpPcapsResponseFullType = "full" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullTypeSimple PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullType = "simple" + PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullTypeFull PcapMagicPcapCollectionListPacketCaptureRequestsResponseZ3ACvKa4PcapsResponseFullType = "full" ) type PcapGetResponseEnvelope struct { @@ -837,52 +837,52 @@ const ( ) // This interface is a union satisfied by one of the following: -// [PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimple], -// [PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFull]. +// [PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimple], +// [PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFull]. type PcapMagicPcapCollectionNewPcapRequestParams interface { ImplementsPcapMagicPcapCollectionNewPcapRequestParams() } -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimple struct { +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimple struct { // The limit of packets contained in a packet capture. PacketLimit param.Field[float64] `json:"packet_limit,required"` // The system used to collect packet captures. - System param.Field[PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleSystem] `json:"system,required"` + System param.Field[PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleSystem] `json:"system,required"` // The packet capture duration in seconds. TimeLimit param.Field[float64] `json:"time_limit,required"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type param.Field[PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleType] `json:"type,required"` + Type param.Field[PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleType] `json:"type,required"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 param.Field[PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleFilterV1] `json:"filter_v1"` + FilterV1 param.Field[PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleFilterV1] `json:"filter_v1"` } -func (r PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimple) MarshalJSON() (data []byte, err error) { +func (r PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimple) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimple) ImplementsPcapMagicPcapCollectionNewPcapRequestParams() { +func (PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimple) ImplementsPcapMagicPcapCollectionNewPcapRequestParams() { } // The system used to collect packet captures. -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleSystem string +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleSystem string const ( - PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleSystem = "magic-transit" + PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleType string +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleType string const ( - PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleTypeSimple PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleType = "simple" - PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleTypeFull PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleType = "full" + PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleTypeSimple PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleType = "simple" + PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleTypeFull PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleType = "full" ) // The packet capture filter. When this field is empty, all packets are captured. -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleFilterV1 struct { +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleFilterV1 struct { // The destination IP address of the packet. DestinationAddress param.Field[string] `json:"destination_address"` // The destination port of the packet. @@ -895,11 +895,11 @@ type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleFilter SourcePort param.Field[float64] `json:"source_port"` } -func (r PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleFilterV1) MarshalJSON() (data []byte, err error) { +func (r PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleFilterV1) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFull struct { +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFull struct { // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. @@ -907,47 +907,47 @@ type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFull struct // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf param.Field[string] `json:"destination_conf,required"` // The system used to collect packet captures. - System param.Field[PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullSystem] `json:"system,required"` + System param.Field[PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullSystem] `json:"system,required"` // The packet capture duration in seconds. TimeLimit param.Field[float64] `json:"time_limit,required"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. - Type param.Field[PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullType] `json:"type,required"` + Type param.Field[PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullType] `json:"type,required"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit param.Field[float64] `json:"byte_limit"` // The packet capture filter. When this field is empty, all packets are captured. - FilterV1 param.Field[PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullFilterV1] `json:"filter_v1"` + FilterV1 param.Field[PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullFilterV1] `json:"filter_v1"` // The limit of packets contained in a packet capture. PacketLimit param.Field[float64] `json:"packet_limit"` } -func (r PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFull) MarshalJSON() (data []byte, err error) { +func (r PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFull) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFull) ImplementsPcapMagicPcapCollectionNewPcapRequestParams() { +func (PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFull) ImplementsPcapMagicPcapCollectionNewPcapRequestParams() { } // The system used to collect packet captures. -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullSystem string +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullSystem string const ( - PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullSystem = "magic-transit" + PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullSystemMagicTransit PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullSystem = "magic-transit" ) // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullType string +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullType string const ( - PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullTypeSimple PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullType = "simple" - PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullTypeFull PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullType = "full" + PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullTypeSimple PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullType = "simple" + PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullTypeFull PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullType = "full" ) // The packet capture filter. When this field is empty, all packets are captured. -type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullFilterV1 struct { +type PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullFilterV1 struct { // The destination IP address of the packet. DestinationAddress param.Field[string] `json:"destination_address"` // The destination port of the packet. @@ -960,7 +960,7 @@ type PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullFilterV1 SourcePort param.Field[float64] `json:"source_port"` } -func (r PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestFullFilterV1) MarshalJSON() (data []byte, err error) { +func (r PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestFullFilterV1) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } diff --git a/pcap_test.go b/pcap_test.go index 4e01c4d4608..c0be1d4d433 100644 --- a/pcap_test.go +++ b/pcap_test.go @@ -62,12 +62,12 @@ func TestPcapMagicPcapCollectionNewPcapRequestWithOptionalParams(t *testing.T) { _, err := client.Pcaps.MagicPcapCollectionNewPcapRequest( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", - cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimple{ + cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimple{ PacketLimit: cloudflare.F(10000.000000), - System: cloudflare.F(cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleSystemMagicTransit), + System: cloudflare.F(cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleSystemMagicTransit), TimeLimit: cloudflare.F(300.000000), - Type: cloudflare.F(cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleTypeSimple), - FilterV1: cloudflare.F(cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsXpRsOfUpPcapsRequestSimpleFilterV1{ + Type: cloudflare.F(cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleTypeSimple), + FilterV1: cloudflare.F(cloudflare.PcapMagicPcapCollectionNewPcapRequestParamsZ3ACvKa4PcapsRequestSimpleFilterV1{ DestinationAddress: cloudflare.F("1.2.3.4"), DestinationPort: cloudflare.F(80.000000), Protocol: cloudflare.F(6.000000), diff --git a/purgecach.go b/purgecach.go index 70d0f3e78ff..bb831241567 100644 --- a/purgecach.go +++ b/purgecach.go @@ -89,67 +89,67 @@ func (r *PurgeCachZonePurgeResponse) UnmarshalJSON(data []byte) (err error) { } // This interface is a union satisfied by one of the following: -// [PurgeCachZonePurgeParams2YeEfrNpFlex], -// [PurgeCachZonePurgeParams2YeEfrNpEverything], -// [PurgeCachZonePurgeParams2YeEfrNpFiles]. +// [PurgeCachZonePurgeParamsBjEsKdXsFlex], +// [PurgeCachZonePurgeParamsBjEsKdXsEverything], +// [PurgeCachZonePurgeParamsBjEsKdXsFiles]. type PurgeCachZonePurgeParams interface { ImplementsPurgeCachZonePurgeParams() } -type PurgeCachZonePurgeParams2YeEfrNpFlex struct { +type PurgeCachZonePurgeParamsBjEsKdXsFlex struct { Hosts param.Field[[]string] `json:"hosts"` Prefixes param.Field[[]string] `json:"prefixes"` Tags param.Field[[]string] `json:"tags"` } -func (r PurgeCachZonePurgeParams2YeEfrNpFlex) MarshalJSON() (data []byte, err error) { +func (r PurgeCachZonePurgeParamsBjEsKdXsFlex) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (PurgeCachZonePurgeParams2YeEfrNpFlex) ImplementsPurgeCachZonePurgeParams() { +func (PurgeCachZonePurgeParamsBjEsKdXsFlex) ImplementsPurgeCachZonePurgeParams() { } -type PurgeCachZonePurgeParams2YeEfrNpEverything struct { +type PurgeCachZonePurgeParamsBjEsKdXsEverything struct { PurgeEverything param.Field[bool] `json:"purge_everything"` } -func (r PurgeCachZonePurgeParams2YeEfrNpEverything) MarshalJSON() (data []byte, err error) { +func (r PurgeCachZonePurgeParamsBjEsKdXsEverything) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (PurgeCachZonePurgeParams2YeEfrNpEverything) ImplementsPurgeCachZonePurgeParams() { +func (PurgeCachZonePurgeParamsBjEsKdXsEverything) ImplementsPurgeCachZonePurgeParams() { } -type PurgeCachZonePurgeParams2YeEfrNpFiles struct { - Files param.Field[[]PurgeCachZonePurgeParams2YeEfrNpFilesFile] `json:"files"` +type PurgeCachZonePurgeParamsBjEsKdXsFiles struct { + Files param.Field[[]PurgeCachZonePurgeParamsBjEsKdXsFilesFile] `json:"files"` } -func (r PurgeCachZonePurgeParams2YeEfrNpFiles) MarshalJSON() (data []byte, err error) { +func (r PurgeCachZonePurgeParamsBjEsKdXsFiles) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (PurgeCachZonePurgeParams2YeEfrNpFiles) ImplementsPurgeCachZonePurgeParams() { +func (PurgeCachZonePurgeParamsBjEsKdXsFiles) ImplementsPurgeCachZonePurgeParams() { } // Satisfied by [shared.UnionString], -// [PurgeCachZonePurgeParams2YeEfrNpFilesFiles2YeEfrNpURLAndHeaders]. -type PurgeCachZonePurgeParams2YeEfrNpFilesFile interface { - ImplementsPurgeCachZonePurgeParams2YeEfrNpFilesFile() +// [PurgeCachZonePurgeParamsBjEsKdXsFilesFilesBjEsKdXsURLAndHeaders]. +type PurgeCachZonePurgeParamsBjEsKdXsFilesFile interface { + ImplementsPurgeCachZonePurgeParamsBjEsKdXsFilesFile() } -type PurgeCachZonePurgeParams2YeEfrNpFilesFiles2YeEfrNpURLAndHeaders struct { +type PurgeCachZonePurgeParamsBjEsKdXsFilesFilesBjEsKdXsURLAndHeaders struct { Headers param.Field[interface{}] `json:"headers"` URL param.Field[string] `json:"url"` } -func (r PurgeCachZonePurgeParams2YeEfrNpFilesFiles2YeEfrNpURLAndHeaders) MarshalJSON() (data []byte, err error) { +func (r PurgeCachZonePurgeParamsBjEsKdXsFilesFilesBjEsKdXsURLAndHeaders) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -func (r PurgeCachZonePurgeParams2YeEfrNpFilesFiles2YeEfrNpURLAndHeaders) ImplementsPurgeCachZonePurgeParams2YeEfrNpFilesFile() { +func (r PurgeCachZonePurgeParamsBjEsKdXsFilesFilesBjEsKdXsURLAndHeaders) ImplementsPurgeCachZonePurgeParamsBjEsKdXsFilesFile() { } type PurgeCachZonePurgeResponseEnvelope struct { diff --git a/purgecach_test.go b/purgecach_test.go index cb5f347ad23..0fd69d2d0a4 100644 --- a/purgecach_test.go +++ b/purgecach_test.go @@ -32,7 +32,7 @@ func TestPurgeCachZonePurgeWithOptionalParams(t *testing.T) { _, err := client.PurgeCaches.ZonePurge( context.TODO(), "string", - cloudflare.PurgeCachZonePurgeParams2YeEfrNpFlex{ + cloudflare.PurgeCachZonePurgeParamsBjEsKdXsFlex{ Hosts: cloudflare.F([]string{"www.example.com", "images.example.com"}), Prefixes: cloudflare.F([]string{"www.example.com/foo", "images.example.com/bar/baz"}), Tags: cloudflare.F([]string{"some-tag", "another-tag"}), diff --git a/userauditlog.go b/userauditlog.go index 2c790e6968b..46c7b2db1a5 100644 --- a/userauditlog.go +++ b/userauditlog.go @@ -46,7 +46,7 @@ func (r *UserAuditLogService) List(ctx context.Context, query UserAuditLogListPa } // Union satisfied by [UserAuditLogListResponseObject] or -// [UserAuditLogListResponseTtcIr1mpAPIResponseCommon]. +// [UserAuditLogListResponseD7rcId0rAPIResponseCommon]. type UserAuditLogListResponse interface { implementsUserAuditLogListResponse() } @@ -219,18 +219,18 @@ func (r *UserAuditLogListResponseObjectResultResource) UnmarshalJSON(data []byte return apijson.UnmarshalRoot(data, r) } -type UserAuditLogListResponseTtcIr1mpAPIResponseCommon struct { - Errors []UserAuditLogListResponseTtcIr1mpAPIResponseCommonError `json:"errors,required"` - Messages []UserAuditLogListResponseTtcIr1mpAPIResponseCommonMessage `json:"messages,required"` - Result UserAuditLogListResponseTtcIr1mpAPIResponseCommonResult `json:"result,required"` +type UserAuditLogListResponseD7rcId0rAPIResponseCommon struct { + Errors []UserAuditLogListResponseD7rcId0rAPIResponseCommonError `json:"errors,required"` + Messages []UserAuditLogListResponseD7rcId0rAPIResponseCommonMessage `json:"messages,required"` + Result UserAuditLogListResponseD7rcId0rAPIResponseCommonResult `json:"result,required"` // Whether the API call was successful - Success UserAuditLogListResponseTtcIr1mpAPIResponseCommonSuccess `json:"success,required"` - JSON userAuditLogListResponseTtcIr1mpAPIResponseCommonJSON `json:"-"` + Success UserAuditLogListResponseD7rcId0rAPIResponseCommonSuccess `json:"success,required"` + JSON userAuditLogListResponseD7rcId0rAPIResponseCommonJSON `json:"-"` } -// userAuditLogListResponseTtcIr1mpAPIResponseCommonJSON contains the JSON metadata -// for the struct [UserAuditLogListResponseTtcIr1mpAPIResponseCommon] -type userAuditLogListResponseTtcIr1mpAPIResponseCommonJSON struct { +// userAuditLogListResponseD7rcId0rAPIResponseCommonJSON contains the JSON metadata +// for the struct [UserAuditLogListResponseD7rcId0rAPIResponseCommon] +type userAuditLogListResponseD7rcId0rAPIResponseCommonJSON struct { Errors apijson.Field Messages apijson.Field Result apijson.Field @@ -239,62 +239,62 @@ type userAuditLogListResponseTtcIr1mpAPIResponseCommonJSON struct { ExtraFields map[string]apijson.Field } -func (r *UserAuditLogListResponseTtcIr1mpAPIResponseCommon) UnmarshalJSON(data []byte) (err error) { +func (r *UserAuditLogListResponseD7rcId0rAPIResponseCommon) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -func (r UserAuditLogListResponseTtcIr1mpAPIResponseCommon) implementsUserAuditLogListResponse() {} +func (r UserAuditLogListResponseD7rcId0rAPIResponseCommon) implementsUserAuditLogListResponse() {} -type UserAuditLogListResponseTtcIr1mpAPIResponseCommonError struct { +type UserAuditLogListResponseD7rcId0rAPIResponseCommonError struct { Code int64 `json:"code,required"` Message string `json:"message,required"` - JSON userAuditLogListResponseTtcIr1mpAPIResponseCommonErrorJSON `json:"-"` + JSON userAuditLogListResponseD7rcId0rAPIResponseCommonErrorJSON `json:"-"` } -// userAuditLogListResponseTtcIr1mpAPIResponseCommonErrorJSON contains the JSON -// metadata for the struct [UserAuditLogListResponseTtcIr1mpAPIResponseCommonError] -type userAuditLogListResponseTtcIr1mpAPIResponseCommonErrorJSON struct { +// userAuditLogListResponseD7rcId0rAPIResponseCommonErrorJSON contains the JSON +// metadata for the struct [UserAuditLogListResponseD7rcId0rAPIResponseCommonError] +type userAuditLogListResponseD7rcId0rAPIResponseCommonErrorJSON struct { Code apijson.Field Message apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *UserAuditLogListResponseTtcIr1mpAPIResponseCommonError) UnmarshalJSON(data []byte) (err error) { +func (r *UserAuditLogListResponseD7rcId0rAPIResponseCommonError) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } -type UserAuditLogListResponseTtcIr1mpAPIResponseCommonMessage struct { +type UserAuditLogListResponseD7rcId0rAPIResponseCommonMessage struct { Code int64 `json:"code,required"` Message string `json:"message,required"` - JSON userAuditLogListResponseTtcIr1mpAPIResponseCommonMessageJSON `json:"-"` + JSON userAuditLogListResponseD7rcId0rAPIResponseCommonMessageJSON `json:"-"` } -// userAuditLogListResponseTtcIr1mpAPIResponseCommonMessageJSON contains the JSON +// userAuditLogListResponseD7rcId0rAPIResponseCommonMessageJSON contains the JSON // metadata for the struct -// [UserAuditLogListResponseTtcIr1mpAPIResponseCommonMessage] -type userAuditLogListResponseTtcIr1mpAPIResponseCommonMessageJSON struct { +// [UserAuditLogListResponseD7rcId0rAPIResponseCommonMessage] +type userAuditLogListResponseD7rcId0rAPIResponseCommonMessageJSON struct { Code apijson.Field Message apijson.Field raw string ExtraFields map[string]apijson.Field } -func (r *UserAuditLogListResponseTtcIr1mpAPIResponseCommonMessage) UnmarshalJSON(data []byte) (err error) { +func (r *UserAuditLogListResponseD7rcId0rAPIResponseCommonMessage) UnmarshalJSON(data []byte) (err error) { return apijson.UnmarshalRoot(data, r) } // Union satisfied by -// [UserAuditLogListResponseTtcIr1mpAPIResponseCommonResultUnknown], -// [UserAuditLogListResponseTtcIr1mpAPIResponseCommonResultArray] or +// [UserAuditLogListResponseD7rcId0rAPIResponseCommonResultUnknown], +// [UserAuditLogListResponseD7rcId0rAPIResponseCommonResultArray] or // [shared.UnionString]. -type UserAuditLogListResponseTtcIr1mpAPIResponseCommonResult interface { - ImplementsUserAuditLogListResponseTtcIr1mpAPIResponseCommonResult() +type UserAuditLogListResponseD7rcId0rAPIResponseCommonResult interface { + ImplementsUserAuditLogListResponseD7rcId0rAPIResponseCommonResult() } func init() { apijson.RegisterUnion( - reflect.TypeOf((*UserAuditLogListResponseTtcIr1mpAPIResponseCommonResult)(nil)).Elem(), + reflect.TypeOf((*UserAuditLogListResponseD7rcId0rAPIResponseCommonResult)(nil)).Elem(), "", apijson.UnionVariant{ TypeFilter: gjson.String, @@ -303,16 +303,16 @@ func init() { ) } -type UserAuditLogListResponseTtcIr1mpAPIResponseCommonResultArray []interface{} +type UserAuditLogListResponseD7rcId0rAPIResponseCommonResultArray []interface{} -func (r UserAuditLogListResponseTtcIr1mpAPIResponseCommonResultArray) ImplementsUserAuditLogListResponseTtcIr1mpAPIResponseCommonResult() { +func (r UserAuditLogListResponseD7rcId0rAPIResponseCommonResultArray) ImplementsUserAuditLogListResponseD7rcId0rAPIResponseCommonResult() { } // Whether the API call was successful -type UserAuditLogListResponseTtcIr1mpAPIResponseCommonSuccess bool +type UserAuditLogListResponseD7rcId0rAPIResponseCommonSuccess bool const ( - UserAuditLogListResponseTtcIr1mpAPIResponseCommonSuccessTrue UserAuditLogListResponseTtcIr1mpAPIResponseCommonSuccess = true + UserAuditLogListResponseD7rcId0rAPIResponseCommonSuccessTrue UserAuditLogListResponseD7rcId0rAPIResponseCommonSuccess = true ) type UserAuditLogListParams struct {