diff --git a/.apigentools-info b/.apigentools-info index fa983e38305..0d1232062f9 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-04 15:31:57.989019", - "spec_repo_commit": "f28ad048" + "regenerated": "2024-10-07 13:31:51.060378", + "spec_repo_commit": "b2b7e2e6" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-04 15:31:58.012298", - "spec_repo_commit": "f28ad048" + "regenerated": "2024-10-07 13:31:51.075079", + "spec_repo_commit": "b2b7e2e6" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 7bdcbc0abc4..28ad73f8c53 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -15498,8 +15498,462 @@ components: type: object SyntheticsMobileDeviceID: description: The device ID. - example: synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16 + enum: + - apple ipad (2022),16.4 + - apple ipad (2022),17.3.1 + - apple ipad 7th gen (2019),13.3 + - apple ipad 9th gen (2021),15.0.2 + - apple ipad 9th gen (2021),16.1 + - apple ipad air (2022),15.4.1 + - apple ipad mini (5th gen),14.6 + - apple ipad mini (6th gen),15.1 + - apple ipad pro 11 (2022),16.3 + - apple ipad pro 12.9 (2020),14.8 + - apple ipad pro 12.9 (2021),15.6.1 + - apple ipad pro 12.9 (2022),16.5 + - apple iphone 11 pro max,13.1.3 + - apple iphone 11 pro,13.6 + - apple iphone 11 pro,15.5 + - apple iphone 11,13.3.1 + - apple iphone 11,14.0 + - apple iphone 11,16.3 + - apple iphone 12 mini,14.2 + - apple iphone 12 mini,16.5 + - apple iphone 12 pro max,14.5.1 + - apple iphone 12 pro,14.5.1 + - apple iphone 12 pro,14.8 + - apple iphone 12 pro,15.0.2 + - apple iphone 12 pro,16.2 + - apple iphone 12,14.2 + - apple iphone 12,14.6 + - apple iphone 12,14.8 + - apple iphone 12,15.6.1 + - apple iphone 12,16.6.1 + - apple iphone 13 mini,15.0.2 + - apple iphone 13 mini,16.6 + - apple iphone 13 pro max,15.1 + - apple iphone 13 pro max,17.3 + - apple iphone 13 pro,15.0.2 + - apple iphone 13 pro,15.2 + - apple iphone 14 plus,16.1 + - apple iphone 14 pro max,16.2 + - apple iphone 14 pro,16.1 + - apple iphone 14 pro,17.3.1 + - apple iphone 14,16.1 + - apple iphone 15 pro max,17.3.1 + - apple iphone 15 pro,17.3.1 + - apple iphone 15,17.2.1 + - apple iphone se (2022),15.4.1 + - galaxy a40,9 + - galaxy a5,8.0.0 + - galaxy note 10,9 + - galaxy note5 (at&t),7.0 + - galaxy s10,9 + - galaxy s6 edge sm-g925f,7.0 + - galaxy s8 (t-mobile),8.0.0 + - galaxy s8 unlocked,8.0.0 + - galaxy s9 (unlocked),9 + - galaxy s9+ (unlocked),8.0.0 + - galaxy s9+ (unlocked),9 + - google pixel 2,8.0.0 + - google pixel 2,9 + - google pixel 3 xl,10 + - google pixel 3 xl,9 + - google pixel 3,10 + - google pixel 3,9 + - google pixel 3a xl,11 + - google pixel 3a xl,12 + - google pixel 3a,10 + - google pixel 4 (unlocked),10 + - google pixel 4 (unlocked),11 + - google pixel 4 xl (unlocked),10 + - google pixel 4a,11 + - google pixel 4a,12 + - google pixel 5a 5g,12 + - google pixel 6 pro,12 + - google pixel 6,12 + - google pixel 6a,13 + - google pixel 7 pro,13 + - google pixel 7,13 + - google pixel 7,14 + - google pixel 8 pro,14 + - google pixel 8,14 + - ipad 8th gen (2020),14.8 + - ipad air 2,13.6 + - ipad air 4th gen (2020),14.8 + - iphone 13,15.0.2 + - iphone 13,16.0.2 + - iphone 6,12.5.4 + - iphone 6s,14.4.2 + - iphone 7,14.8 + - iphone 8,13.5.1 + - iphone 8,14.4.2 + - iphone se (2020),13.6 + - iphone se (2020),14.6 + - iphone se (2020),15.0.2 + - iphone x,14.6 + - iphone xr,12.0 + - iphone xr,14.0 + - iphone xs max,12.1 + - iphone xs,13.6 + - lg stylo 5,9 + - lg stylo 6,10 + - moto g 4,7.0 + - moto g7 play,9 + - nexus 7 - 2nd gen (wifi),6.0 + - oneplus 8t,11 + - pixel 2 xl,8.1.0 + - pixel 2 xl,9 + - pixel 5,11 + - pixel 5,12 + - pixel xl,8.0.0 + - pixel,7.1.2 + - samsung a51,10 + - samsung galaxy a10s,10 + - samsung galaxy a13 5g,11 + - samsung galaxy a53 5g,12 + - samsung galaxy a7,8.0.0 + - samsung galaxy a71,11 + - samsung galaxy a73 5g,12 + - samsung galaxy j7 (2018),8.0.0 + - samsung galaxy note20,11 + - samsung galaxy s20 (unlocked),10 + - samsung galaxy s20+ (unlocked),10 + - samsung galaxy s21 ultra,11 + - samsung galaxy s21 ultra,12 + - samsung galaxy s21+,11 + - samsung galaxy s21,11 + - samsung galaxy s21,12 + - samsung galaxy s22 5g,12 + - samsung galaxy s22 5g,13 + - samsung galaxy s22 ultra 5g,12 + - samsung galaxy s22+ 5g,12 + - samsung galaxy s23 ultra,13 + - samsung galaxy s23+,13 + - samsung galaxy s23,13 + - samsung galaxy s23,14 + - samsung galaxy tab a 10.1,10 + - samsung galaxy tab a 10.1,7.0 + - samsung galaxy tab a8 (2021),11 + - samsung galaxy tab s4,8.1.0 + - samsung galaxy tab s6,9 + - samsung galaxy tab s7,11 + - samsung galaxy tab s8,12 + - samsung s20 ultra,10 + - sony xperia xz3,9 + - xiaomi redmi note 10 5g,11 + - synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16 + - synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_17 + - synthetics:mobile:device:apple_ipad_9th_gen_2021_ios_15 + - synthetics:mobile:device:apple_ipad_air_2022_ios_15 + - synthetics:mobile:device:apple_ipad_mini_5th_gen_ios_14 + - synthetics:mobile:device:apple_ipad_mini_6th_gen_ios_15 + - synthetics:mobile:device:apple_ipad_pro_11_2022_ios_16 + - synthetics:mobile:device:apple_ipad_pro_12_9_2020_ios_14 + - synthetics:mobile:device:apple_ipad_pro_12_9_2021_ios_15 + - synthetics:mobile:device:apple_ipad_pro_12_9_2022_ios_16 + - synthetics:mobile:device:apple_iphone_11_ios_14 + - synthetics:mobile:device:apple_iphone_11_ios_16 + - synthetics:mobile:device:apple_iphone_11_pro_ios_15 + - synthetics:mobile:device:apple_iphone_12_ios_14 + - synthetics:mobile:device:apple_iphone_12_ios_15 + - synthetics:mobile:device:apple_iphone_12_ios_16 + - synthetics:mobile:device:apple_iphone_12_mini_ios_14 + - synthetics:mobile:device:apple_iphone_12_mini_ios_16 + - synthetics:mobile:device:apple_iphone_12_pro_ios_14 + - synthetics:mobile:device:apple_iphone_12_pro_max_ios_14 + - synthetics:mobile:device:apple_iphone_13_mini_ios_15 + - synthetics:mobile:device:apple_iphone_13_mini_ios_16 + - synthetics:mobile:device:apple_iphone_13_pro_ios_15 + - synthetics:mobile:device:apple_iphone_13_pro_max_ios_15 + - synthetics:mobile:device:apple_iphone_13_pro_max_ios_17 + - synthetics:mobile:device:apple_iphone_14_ios_16 + - synthetics:mobile:device:apple_iphone_14_plus_ios_16 + - synthetics:mobile:device:apple_iphone_14_pro_ios_16 + - synthetics:mobile:device:apple_iphone_14_pro_ios_17 + - synthetics:mobile:device:apple_iphone_14_pro_max_ios_16 + - synthetics:mobile:device:apple_iphone_6_ios_12 + - synthetics:mobile:device:apple_iphone_8_ios_13 + - synthetics:mobile:device:apple_iphone_8_ios_14 + - synthetics:mobile:device:apple_iphone_se_2022_ios_15 + - synthetics:mobile:device:apple_iphone_se_2022_ios_16 + - synthetics:mobile:device:galaxy_a5_android_8 + - synthetics:mobile:device:galaxy_note5_android_7 + - synthetics:mobile:device:google_pixel_3a_xl_android_11 + - synthetics:mobile:device:google_pixel_4_unlocked_android_11 + - synthetics:mobile:device:google_pixel_4_xl_unlocked_android_10 + - synthetics:mobile:device:google_pixel_4a_android_11 + - synthetics:mobile:device:google_pixel_6_android_12 + - synthetics:mobile:device:google_pixel_6_pro_android_12 + - synthetics:mobile:device:google_pixel_6a_android_13 + - synthetics:mobile:device:google_pixel_7_android_13 + - synthetics:mobile:device:google_pixel_7_android_14 + - synthetics:mobile:device:google_pixel_7_pro_android_13 + - synthetics:mobile:device:google_pixel_8_android_14 + - synthetics:mobile:device:google_pixel_8_pro_android_14 + - synthetics:mobile:device:ipad_air_2_ios_13 + - synthetics:mobile:device:ipad_air_4th_gen_2020_ios_14 + - synthetics:mobile:device:iphone_13_ios_15 + - synthetics:mobile:device:iphone_13_ios_16 + - synthetics:mobile:device:iphone_15_ios_17 + - synthetics:mobile:device:iphone_15_pro_ios_17 + - synthetics:mobile:device:iphone_15_pro_max_ios_17 + - synthetics:mobile:device:iphone_se_2020_ios_13 + - synthetics:mobile:device:iphone_se_2020_ios_14 + - synthetics:mobile:device:iphone_x_ios_14 + - synthetics:mobile:device:iphone_xr_ios_14 + - synthetics:mobile:device:iphone_xs_ios_13 + - synthetics:mobile:device:lg_stylo_6_android_10 + - synthetics:mobile:device:pixel_5_android_12 + - synthetics:mobile:device:samsung_a51_android_10 + - synthetics:mobile:device:samsung_galaxy_a71_android_11 + - synthetics:mobile:device:samsung_galaxy_note20_android_11 + - synthetics:mobile:device:samsung_galaxy_s21_android_11 + - synthetics:mobile:device:samsung_galaxy_s21_android_12 + - synthetics:mobile:device:samsung_galaxy_s21_plus_android_11 + - synthetics:mobile:device:samsung_galaxy_s21_ultra_android_11 + - synthetics:mobile:device:samsung_galaxy_s22_5g_android_12 + - synthetics:mobile:device:samsung_galaxy_s22_5g_android_13 + - synthetics:mobile:device:samsung_galaxy_s22_plus_5g_android_12 + - synthetics:mobile:device:samsung_galaxy_s22_ultra_5g_android_12 + - synthetics:mobile:device:samsung_galaxy_s23_android_13 + - synthetics:mobile:device:samsung_galaxy_s23_android_14 + - synthetics:mobile:device:samsung_galaxy_s23_plus_android_13 + - synthetics:mobile:device:samsung_galaxy_s23_plus_android_14 + - synthetics:mobile:device:samsung_galaxy_s23_ultra_android_13 + - synthetics:mobile:device:samsung_galaxy_tab_a_10_1_android_7 + - synthetics:mobile:device:samsung_galaxy_tab_s7_android_11 + - synthetics:mobile:device:samsung_galaxy_tab_s8_android_12 + - synthetics:mobile:device:xiaomi_redmi_note_10_5g_android_11 + example: apple ipad (2022),16.4 type: string + x-enum-varnames: + - APPLE_IPAD__2022__16_4 + - APPLE_IPAD__2022__17_3_1 + - APPLE_IPAD_7TH_GEN__2019__13_3 + - APPLE_IPAD_9TH_GEN__2021__15_0_2 + - APPLE_IPAD_9TH_GEN__2021__16_1 + - APPLE_IPAD_AIR__2022__15_4_1 + - APPLE_IPAD_MINI__5TH_GEN__14_6 + - APPLE_IPAD_MINI__6TH_GEN__15_1 + - APPLE_IPAD_PRO_11__2022__16_3 + - APPLE_IPAD_PRO_12_9__2020__14_8 + - APPLE_IPAD_PRO_12_9__2021__15_6_1 + - APPLE_IPAD_PRO_12_9__2022__16_5 + - APPLE_IPHONE_11_PRO_MAX_13_1_3 + - APPLE_IPHONE_11_PRO_13_6 + - APPLE_IPHONE_11_PRO_15_5 + - APPLE_IPHONE_11_13_3_1 + - APPLE_IPHONE_11_14_0 + - APPLE_IPHONE_11_16_3 + - APPLE_IPHONE_12_MINI_14_2 + - APPLE_IPHONE_12_MINI_16_5 + - APPLE_IPHONE_12_PRO_MAX_14_5_1 + - APPLE_IPHONE_12_PRO_14_5_1 + - APPLE_IPHONE_12_PRO_14_8 + - APPLE_IPHONE_12_PRO_15_0_2 + - APPLE_IPHONE_12_PRO_16_2 + - APPLE_IPHONE_12_14_2 + - APPLE_IPHONE_12_14_6 + - APPLE_IPHONE_12_14_8 + - APPLE_IPHONE_12_15_6_1 + - APPLE_IPHONE_12_16_6_1 + - APPLE_IPHONE_13_MINI_15_0_2 + - APPLE_IPHONE_13_MINI_16_6 + - APPLE_IPHONE_13_PRO_MAX_15_1 + - APPLE_IPHONE_13_PRO_MAX_17_3 + - APPLE_IPHONE_13_PRO_15_0_2 + - APPLE_IPHONE_13_PRO_15_2 + - APPLE_IPHONE_14_PLUS_16_1 + - APPLE_IPHONE_14_PRO_MAX_16_2 + - APPLE_IPHONE_14_PRO_16_1 + - APPLE_IPHONE_14_PRO_17_3_1 + - APPLE_IPHONE_14_16_1 + - APPLE_IPHONE_15_PRO_MAX_17_3_1 + - APPLE_IPHONE_15_PRO_17_3_1 + - APPLE_IPHONE_15_17_2_1 + - APPLE_IPHONE_SE__2022__15_4_1 + - GALAXY_A40_9 + - GALAXY_A5_8_0_0 + - GALAXY_NOTE_10_9 + - GALAXY_NOTE5__AT_T__7_0 + - GALAXY_S10_9 + - GALAXY_S6_EDGE_SMNOT_G925F_7_0 + - GALAXY_S8__TNOT_MOBILE__8_0_0 + - GALAXY_S8_UNLOCKED_8_0_0 + - GALAXY_S9__UNLOCKED__9 + - GALAXY_S9___UNLOCKED__8_0_0 + - GALAXY_S9___UNLOCKED__9 + - GOOGLE_PIXEL_2_8_0_0 + - GOOGLE_PIXEL_2_9 + - GOOGLE_PIXEL_3_XL_10 + - GOOGLE_PIXEL_3_XL_9 + - GOOGLE_PIXEL_3_10 + - GOOGLE_PIXEL_3_9 + - GOOGLE_PIXEL_3A_XL_11 + - GOOGLE_PIXEL_3A_XL_12 + - GOOGLE_PIXEL_3A_10 + - GOOGLE_PIXEL_4__UNLOCKED__10 + - GOOGLE_PIXEL_4__UNLOCKED__11 + - GOOGLE_PIXEL_4_XL__UNLOCKED__10 + - GOOGLE_PIXEL_4A_11 + - GOOGLE_PIXEL_4A_12 + - GOOGLE_PIXEL_5A_5G_12 + - GOOGLE_PIXEL_6_PRO_12 + - GOOGLE_PIXEL_6_12 + - GOOGLE_PIXEL_6A_13 + - GOOGLE_PIXEL_7_PRO_13 + - GOOGLE_PIXEL_7_13 + - GOOGLE_PIXEL_7_14 + - GOOGLE_PIXEL_8_PRO_14 + - GOOGLE_PIXEL_8_14 + - IPAD_8TH_GEN__2020__14_8 + - IPAD_AIR_2_13_6 + - IPAD_AIR_4TH_GEN__2020__14_8 + - IPHONE_13_15_0_2 + - IPHONE_13_16_0_2 + - IPHONE_6_12_5_4 + - IPHONE_6S_14_4_2 + - IPHONE_7_14_8 + - IPHONE_8_13_5_1 + - IPHONE_8_14_4_2 + - IPHONE_SE__2020__13_6 + - IPHONE_SE__2020__14_6 + - IPHONE_SE__2020__15_0_2 + - IPHONE_X_14_6 + - IPHONE_XR_12_0 + - IPHONE_XR_14_0 + - IPHONE_XS_MAX_12_1 + - IPHONE_XS_13_6 + - LG_STYLO_5_9 + - LG_STYLO_6_10 + - MOTO_G_4_7_0 + - MOTO_G7_PLAY_9 + - NEXUS_7_NOT__2ND_GEN__WIFI__6_0 + - ONEPLUS_8T_11 + - PIXEL_2_XL_8_1_0 + - PIXEL_2_XL_9 + - PIXEL_5_11 + - PIXEL_5_12 + - PIXEL_XL_8_0_0 + - PIXEL_7_1_2 + - SAMSUNG_A51_10 + - SAMSUNG_GALAXY_A10S_10 + - SAMSUNG_GALAXY_A13_5G_11 + - SAMSUNG_GALAXY_A53_5G_12 + - SAMSUNG_GALAXY_A7_8_0_0 + - SAMSUNG_GALAXY_A71_11 + - SAMSUNG_GALAXY_A73_5G_12 + - SAMSUNG_GALAXY_J7__2018__8_0_0 + - SAMSUNG_GALAXY_NOTE20_11 + - SAMSUNG_GALAXY_S20__UNLOCKED__10 + - SAMSUNG_GALAXY_S20___UNLOCKED__10 + - SAMSUNG_GALAXY_S21_ULTRA_11 + - SAMSUNG_GALAXY_S21_ULTRA_12 + - SAMSUNG_GALAXY_S21__11 + - SAMSUNG_GALAXY_S21_11 + - SAMSUNG_GALAXY_S21_12 + - SAMSUNG_GALAXY_S22_5G_12 + - SAMSUNG_GALAXY_S22_5G_13 + - SAMSUNG_GALAXY_S22_ULTRA_5G_12 + - SAMSUNG_GALAXY_S22__5G_12 + - SAMSUNG_GALAXY_S23_ULTRA_13 + - SAMSUNG_GALAXY_S23__13 + - SAMSUNG_GALAXY_S23_13 + - SAMSUNG_GALAXY_S23_14 + - SAMSUNG_GALAXY_TAB_A_10_1_10 + - SAMSUNG_GALAXY_TAB_A_10_1_7_0 + - SAMSUNG_GALAXY_TAB_A8__2021__11 + - SAMSUNG_GALAXY_TAB_S4_8_1_0 + - SAMSUNG_GALAXY_TAB_S6_9 + - SAMSUNG_GALAXY_TAB_S7_11 + - SAMSUNG_GALAXY_TAB_S8_12 + - SAMSUNG_S20_ULTRA_10 + - SONY_XPERIA_XZ3_9 + - XIAOMI_REDMI_NOTE_10_5G_11 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_10TH_GEN_2022_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_10TH_GEN_2022_IOS_17 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_9TH_GEN_2021_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_AIR_2022_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_MINI_5TH_GEN_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_MINI_6TH_GEN_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_11_2022_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2020_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2021_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2022_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_PRO_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_MINI_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_MINI_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_PRO_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_PRO_MAX_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_MINI_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_MINI_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_MAX_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_MAX_IOS_17 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PLUS_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_IOS_17 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_MAX_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_6_IOS_12 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_8_IOS_13 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_8_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_SE_2022_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_SE_2022_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_GALAXY_A5_ANDROID_8 + - SYNTHETICS_MOBILE_DEVICE_GALAXY_NOTE5_ANDROID_7 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_3A_XL_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4_UNLOCKED_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4_XL_UNLOCKED_ANDROID_10 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4A_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6_PRO_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6A_ANDROID_13 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_ANDROID_13 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_ANDROID_14 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_PRO_ANDROID_13 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_8_ANDROID_14 + - SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_8_PRO_ANDROID_14 + - SYNTHETICS_MOBILE_DEVICE_IPAD_AIR_2_IOS_13 + - SYNTHETICS_MOBILE_DEVICE_IPAD_AIR_4TH_GEN_2020_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_13_IOS_15 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_13_IOS_16 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_15_IOS_17 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_15_PRO_IOS_17 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_15_PRO_MAX_IOS_17 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_SE_2020_IOS_13 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_SE_2020_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_X_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_XR_IOS_14 + - SYNTHETICS_MOBILE_DEVICE_IPHONE_XS_IOS_13 + - SYNTHETICS_MOBILE_DEVICE_LG_STYLO_6_ANDROID_10 + - SYNTHETICS_MOBILE_DEVICE_PIXEL_5_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_A51_ANDROID_10 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_A71_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_NOTE20_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_PLUS_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ULTRA_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_5G_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_5G_ANDROID_13 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_PLUS_5G_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_ULTRA_5G_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ANDROID_13 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ANDROID_14 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_PLUS_ANDROID_13 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_PLUS_ANDROID_14 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ULTRA_ANDROID_13 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_A_10_1_ANDROID_7 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_S7_ANDROID_11 + - SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_S8_ANDROID_12 + - SYNTHETICS_MOBILE_DEVICE_XIAOMI_REDMI_NOTE_10_5G_ANDROID_11 SyntheticsMobileStep: description: The steps used in a Synthetic mobile test. properties: @@ -16401,12 +16855,10 @@ components: enum: - api - browser - - mobile type: string x-enum-varnames: - API - BROWSER - - MOBILE SyntheticsTestExecutionRule: description: Execution rule for a Synthetic test. enum: @@ -17736,6 +18188,7 @@ components: $ref: '#/components/schemas/ToplistWidgetStackedType' required: - type + - legend type: object ToplistWidgetStackedType: default: stacked @@ -28515,8 +28968,6 @@ paths: - network-performance: `network-performance alert` - - cloud cost: `cost alert` - **Notes**: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e24460a1bda..967114b9fd4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -458,24 +458,24 @@ components: required: true schema: type: string - MicrosoftTeamsHandleNameQueryParameter: - description: Your tenant-based handle name. - in: query - name: name - required: false + MicrosoftTeamsHandleIDPathParameter: + description: Your handle id. + in: path + name: handle_id + required: true schema: type: string - MicrosoftTeamsTeamNamePathParameter: - description: Your team name. + MicrosoftTeamsHandleNamePathParameter: + description: Your handle name. in: path - name: team_name + name: handle_name required: true schema: type: string - MicrosoftTeamsTenantBasedHandleIDPathParameter: - description: Your tenant-based handle id. + MicrosoftTeamsTeamNamePathParameter: + description: Your team name. in: path - name: handle_id + name: team_name required: true schema: type: string @@ -9231,6 +9231,20 @@ components: tags: $ref: '#/components/schemas/FindingTags' type: object + FindingDetectionType: + description: The detection type of the finding. + enum: + - misconfiguration + - attack_path + - identity_risk + - api_security + example: misconfiguration + type: string + x-enum-varnames: + - MISCONFIGURATION + - ATTACK_PATH + - IDENTITY_RISK + - API_SECURITY FindingEvaluation: description: The evaluation of the finding. enum: @@ -10640,7 +10654,6 @@ components: oneOf: - $ref: '#/components/schemas/SlackIntegrationMetadata' - $ref: '#/components/schemas/JiraIntegrationMetadata' - - $ref: '#/components/schemas/MSTeamsIntegrationMetadata' IncidentIntegrationMetadataPatchData: description: Incident integration metadata data for a patch request. properties: @@ -10931,7 +10944,7 @@ components: IncidentResponseIncludedItem: description: An object related to an incident that is included in the response. oneOf: - - $ref: '#/components/schemas/IncidentUserData' + - $ref: '#/components/schemas/User' - $ref: '#/components/schemas/IncidentAttachmentData' IncidentResponseMeta: description: The metadata object containing pagination metadata. @@ -11870,37 +11883,6 @@ components: required: - data type: object - IncidentUserAttributes: - description: Attributes of user object returned by the API. - properties: - email: - description: Email of the user. - type: string - handle: - description: Handle of the user. - type: string - icon: - description: URL of the user's icon. - type: string - name: - description: Name of the user. - nullable: true - type: string - uuid: - description: UUID of the user. - type: string - type: object - IncidentUserData: - description: User object returned by the API. - properties: - attributes: - $ref: '#/components/schemas/IncidentUserAttributes' - id: - description: ID of the user. - type: string - type: - $ref: '#/components/schemas/UsersType' - type: object IncidentUserDefinedFieldType: description: The incident user defined fields type. enum: @@ -13635,43 +13617,6 @@ components: from the other indexes type: string type: object - MSTeamsIntegrationMetadata: - description: Incident integration metadata for the Microsoft Teams integration. - properties: - teams: - description: Array of Microsoft Teams in this integration metadata. - example: [] - items: - $ref: '#/components/schemas/MSTeamsIntegrationMetadataTeamsItem' - type: array - required: - - teams - type: object - MSTeamsIntegrationMetadataTeamsItem: - description: Item in the Microsoft Teams integration metadata teams array. - properties: - ms_channel_id: - description: Microsoft Teams channel ID. - example: 19:abc00abcdef00a0abcdef0abcdef0a@thread.tacv2 - type: string - ms_channel_name: - description: Microsoft Teams channel name. - example: incident-0001-example - type: string - ms_tenant_id: - description: Microsoft Teams tenant ID. - example: 00000000-abcd-0005-0000-000000000000 - type: string - redirect_url: - description: URL redirecting to the Microsoft Teams channel. - example: https://teams.microsoft.com/l/channel/19%3Aabc00abcdef00a0abcdef0abcdef0a%40thread.tacv2/conversations?groupId=12345678-abcd-dcba-abcd-1234567890ab&tenantId=00000000-abcd-0005-0000-000000000000 - type: string - required: - - ms_tenant_id - - ms_channel_id - - ms_channel_name - - redirect_url - type: object Metric: description: Object for a single metric tag configuration. example: @@ -14878,64 +14823,8 @@ components: - data_source - query type: object - MicrosoftTeamsChannelInfoResponseAttributes: - description: Channel attributes. - properties: - is_primary: - description: Indicates if this is the primary channel. - example: true - maxLength: 255 - type: boolean - team_id: - description: Team id. - example: 00000000-0000-0000-0000-000000000000 - maxLength: 255 - type: string - tenant_id: - description: Tenant id. - example: 00000000-0000-0000-0000-000000000001 - maxLength: 255 - type: string - type: object - MicrosoftTeamsChannelInfoResponseData: - description: Channel data from a response. - properties: - attributes: - $ref: '#/components/schemas/MicrosoftTeamsChannelInfoResponseAttributes' - id: - description: The ID of the channel. - example: 19:b41k24b14bn1nwffkernfkwrnfneubgkr@thread.tacv2 - maxLength: 255 - minLength: 1 - type: string - type: - $ref: '#/components/schemas/MicrosoftTeamsChannelInfoType' - type: object - MicrosoftTeamsChannelInfoType: - default: ms-teams-channel-info - description: Channel info resource type. - enum: - - ms-teams-channel-info - example: ms-teams-channel-info - type: string - x-enum-varnames: - - MS_TEAMS_CHANNEL_INFO - MicrosoftTeamsCreateTenantBasedHandleRequest: - description: Create tenant-based handle request. - properties: - data: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleRequestData' - required: - - data - type: object - MicrosoftTeamsGetChannelByNameResponse: - description: Response with channel, team, and tenant ID information. - properties: - data: - $ref: '#/components/schemas/MicrosoftTeamsChannelInfoResponseData' - type: object - MicrosoftTeamsTenantBasedHandleAttributes: - description: Tenant-based handle attributes. + MicrosoftTeamsApiHandleAttributes: + description: Handle attributes. properties: channel_id: description: Channel id. @@ -14943,7 +14832,7 @@ components: maxLength: 255 type: string name: - description: Tenant-based handle name. + description: Handle name. example: fake-handle-name maxLength: 255 type: string @@ -14958,8 +14847,14 @@ components: maxLength: 255 type: string type: object - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes: - description: Tenant-based handle attributes. + MicrosoftTeamsApiHandleInfoResponse: + description: Response of a handle. + properties: + data: + $ref: '#/components/schemas/MicrosoftTeamsApiHandleInfoResponseData' + type: object + MicrosoftTeamsApiHandleInfoResponseAttributes: + description: Handle attributes. properties: channel_id: description: Channel id. @@ -14972,7 +14867,7 @@ components: maxLength: 255 type: string name: - description: Tenant-based handle name. + description: Handle name. example: fake-handle-name maxLength: 255 type: string @@ -14997,31 +14892,31 @@ components: maxLength: 255 type: string type: object - MicrosoftTeamsTenantBasedHandleInfoResponseData: - description: Tenant-based handle data from a response. + MicrosoftTeamsApiHandleInfoResponseData: + description: Handle data from a response. properties: attributes: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleInfoResponseAttributes' id: - description: The ID of the tenant-based handle. + description: The ID of the handle. example: 596da4af-0563-4097-90ff-07230c3f9db3 maxLength: 100 minLength: 1 type: string type: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleInfoType' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleInfoType' type: object - MicrosoftTeamsTenantBasedHandleInfoType: - default: ms-teams-tenant-based-handle-info - description: Tenant-based handle resource type. + MicrosoftTeamsApiHandleInfoType: + default: ms-teams-handle-info + description: Handle resource type. enum: - - ms-teams-tenant-based-handle-info - example: ms-teams-tenant-based-handle-info + - ms-teams-handle-info + example: ms-teams-handle-info type: string x-enum-varnames: - - MS_TEAMS_TENANT_BASED_HANDLE_INFO - MicrosoftTeamsTenantBasedHandleRequestAttributes: - description: Tenant-based handle attributes. + - MS_TEAMS_HANDLE_INFO + MicrosoftTeamsApiHandleRequestAttributes: + description: Handle attributes. properties: channel_id: description: Channel id. @@ -15029,7 +14924,7 @@ components: maxLength: 255 type: string name: - description: Tenant-based handle name. + description: Handle name. example: fake-handle-name maxLength: 255 type: string @@ -15049,53 +14944,45 @@ components: - team_id - tenant_id type: object - MicrosoftTeamsTenantBasedHandleRequestData: - description: Tenant-based handle data from a response. + MicrosoftTeamsApiHandleRequestData: + description: Handle data from a response. properties: attributes: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleRequestAttributes' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleRequestAttributes' type: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleType' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleType' required: - type - attributes type: object - MicrosoftTeamsTenantBasedHandleResponse: - description: Response of a tenant-based handle. - properties: - data: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleResponseData' - required: - - data - type: object - MicrosoftTeamsTenantBasedHandleResponseData: - description: Tenant-based handle data from a response. + MicrosoftTeamsApiHandleResponseData: + description: Handle data from a response. properties: attributes: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleAttributes' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleAttributes' id: - description: The ID of the tenant-based handle. + description: The ID of the handle. example: 596da4af-0563-4097-90ff-07230c3f9db3 maxLength: 100 minLength: 1 type: string type: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleType' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleType' type: object - MicrosoftTeamsTenantBasedHandleType: - default: tenant-based-handle - description: Specifies the tenant-based handle resource type. + MicrosoftTeamsApiHandleType: + default: handle + description: Specifies the handle resource type. enum: - - tenant-based-handle - example: tenant-based-handle + - handle + example: handle type: string x-enum-varnames: - - TENANT_BASED_HANDLE - MicrosoftTeamsTenantBasedHandlesResponse: - description: Response with a list of tenant-based handles. + - HANDLE + MicrosoftTeamsApiHandlesResponse: + description: Response with a list of handles. properties: data: - description: An array of tenant-based handles. + description: An array of handles. example: - attributes: channelId: 19:b41k24b14bn1nwffkernfkwrnfneubgkr@thread.tacv2 @@ -15106,7 +14993,7 @@ components: tenantId: 00000000-0000-0000-0000-000000000001 tenantName: Company, Inc. id: 596da4af-0563-4097-90ff-07230c3f9db3 - type: ms-teams-tenant-based-handle-info + type: ms-teams-handle-info - attributes: channelId: 19:b41k24b14bn1nwffkernfkwrnfneubgk1@thread.tacv2 channelName: General2 @@ -15116,28 +15003,92 @@ components: tenantId: 00000000-0000-0000-0000-000000000003 tenantName: Company, Inc. id: 596da4af-0563-4097-90ff-07230c3f9db4 - type: ms-teams-tenant-based-handle-info + type: ms-teams-handle-info items: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleInfoResponseData' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleInfoResponseData' type: array required: - data type: object - MicrosoftTeamsUpdateTenantBasedHandleRequest: - description: Update tenant-based handle request. + MicrosoftTeamsChannelInfoResponseAttributes: + description: Channel attributes. + properties: + is_primary: + description: Indicates if this is the primary channel. + example: true + maxLength: 255 + type: boolean + team_id: + description: Team id. + example: 00000000-0000-0000-0000-000000000000 + maxLength: 255 + type: string + tenant_id: + description: Tenant id. + example: 00000000-0000-0000-0000-000000000001 + maxLength: 255 + type: string + type: object + MicrosoftTeamsChannelInfoResponseData: + description: Channel data from a response. + properties: + attributes: + $ref: '#/components/schemas/MicrosoftTeamsChannelInfoResponseAttributes' + id: + description: The ID of the channel. + example: 19:b41k24b14bn1nwffkernfkwrnfneubgkr@thread.tacv2 + maxLength: 255 + minLength: 1 + type: string + type: + $ref: '#/components/schemas/MicrosoftTeamsChannelInfoType' + type: object + MicrosoftTeamsChannelInfoType: + default: ms-teams-channel-info + description: Channel info resource type. + enum: + - ms-teams-channel-info + example: ms-teams-channel-info + type: string + x-enum-varnames: + - MS_TEAMS_CHANNEL_INFO + MicrosoftTeamsCreateApiHandleRequest: + description: Create handle request. + properties: + data: + $ref: '#/components/schemas/MicrosoftTeamsApiHandleRequestData' + required: + - data + type: object + MicrosoftTeamsCreateApiHandleResponse: + description: Response of a handle. properties: data: - $ref: '#/components/schemas/MicrosoftTeamsUpdateTenantBasedHandleRequestData' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleResponseData' required: - data type: object - MicrosoftTeamsUpdateTenantBasedHandleRequestData: - description: Tenant-based handle data from a response. + MicrosoftTeamsGetChannelByNameResponse: + description: Response with channel, team, and tenant ID information. + properties: + data: + $ref: '#/components/schemas/MicrosoftTeamsChannelInfoResponseData' + type: object + MicrosoftTeamsUpdateApiHandleRequest: + description: Update handle request. + properties: + data: + $ref: '#/components/schemas/MicrosoftTeamsUpdateApiHandleRequestData' + required: + - data + type: object + MicrosoftTeamsUpdateApiHandleRequestData: + description: Handle data from a response. properties: attributes: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleAttributes' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleAttributes' type: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleType' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleType' required: - type - attributes @@ -30606,18 +30557,16 @@ paths: - Microsoft Teams Integration /api/v2/integration/ms-teams/configuration/tenant-based-handles: get: - description: Get a list of all tenant-based handles from the Datadog Microsoft - Teams integration. - operationId: ListTenantBasedHandles + description: Get a list of all handles from the Datadog Microsoft Teams integration. + operationId: ListApiHandles parameters: - $ref: '#/components/parameters/MicrosoftTeamsTenantIDQueryParameter' - - $ref: '#/components/parameters/MicrosoftTeamsHandleNameQueryParameter' responses: '200': content: application/json: schema: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandlesResponse' + $ref: '#/components/schemas/MicrosoftTeamsApiHandlesResponse' description: OK '400': $ref: '#/components/responses/BadRequestResponse' @@ -30629,25 +30578,25 @@ paths: $ref: '#/components/responses/PreconditionFailedResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Get all tenant-based handles + summary: Get all handles tags: - Microsoft Teams Integration post: - description: Create a tenant-based handle in the Datadog Microsoft Teams integration. - operationId: CreateTenantBasedHandle + description: Create a handle in the Datadog Microsoft Teams integration. + operationId: CreateApiHandle requestBody: content: application/json: schema: - $ref: '#/components/schemas/MicrosoftTeamsCreateTenantBasedHandleRequest' - description: Tenant-based handle payload. + $ref: '#/components/schemas/MicrosoftTeamsCreateApiHandleRequest' + description: Handle payload. required: true responses: '201': content: application/json: schema: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleResponse' + $ref: '#/components/schemas/MicrosoftTeamsCreateApiHandleResponse' description: CREATED '400': $ref: '#/components/responses/BadRequestResponse' @@ -30661,16 +30610,43 @@ paths: $ref: '#/components/responses/PreconditionFailedResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Create tenant-based handle + summary: Create handle tags: - Microsoft Teams Integration x-codegen-request-body-name: body + /api/v2/integration/ms-teams/configuration/tenant-based-handles/name/{handle_name}: + get: + description: Get the tenant, team, and channel information of a handle by name + from the Datadog Microsoft Teams integration. + operationId: GetApiHandleByName + parameters: + - $ref: '#/components/parameters/MicrosoftTeamsHandleNamePathParameter' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/MicrosoftTeamsApiHandleInfoResponse' + description: OK + '400': + $ref: '#/components/responses/BadRequestResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '404': + $ref: '#/components/responses/NotFoundResponse' + '412': + $ref: '#/components/responses/PreconditionFailedResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Get handle information by name + tags: + - Microsoft Teams Integration /api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}: delete: - description: Delete a tenant-based handle from the Datadog Microsoft Teams integration. - operationId: DeleteTenantBasedHandle + description: Delete a handle from the Datadog Microsoft Teams integration. + operationId: DeleteApiHandle parameters: - - $ref: '#/components/parameters/MicrosoftTeamsTenantBasedHandleIDPathParameter' + - $ref: '#/components/parameters/MicrosoftTeamsHandleIDPathParameter' responses: '204': description: OK @@ -30682,21 +30658,21 @@ paths: $ref: '#/components/responses/PreconditionFailedResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Delete tenant-based handle + summary: Delete handle tags: - Microsoft Teams Integration get: - description: Get the tenant, team, and channel information of a tenant-based - handle from the Datadog Microsoft Teams integration. - operationId: GetTenantBasedHandle + description: Get the tenant, team, and channel information of a handle from + the Datadog Microsoft Teams integration. + operationId: GetApiHandle parameters: - - $ref: '#/components/parameters/MicrosoftTeamsTenantBasedHandleIDPathParameter' + - $ref: '#/components/parameters/MicrosoftTeamsHandleIDPathParameter' responses: '200': content: application/json: schema: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleResponse' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleInfoResponse' description: OK '400': $ref: '#/components/responses/BadRequestResponse' @@ -30708,27 +30684,27 @@ paths: $ref: '#/components/responses/PreconditionFailedResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Get tenant-based handle information + summary: Get handle information tags: - Microsoft Teams Integration patch: - description: Update a tenant-based handle from the Datadog Microsoft Teams integration. - operationId: UpdateTenantBasedHandle + description: Update a handle from the Datadog Microsoft Teams integration. + operationId: UpdateApiHandle parameters: - - $ref: '#/components/parameters/MicrosoftTeamsTenantBasedHandleIDPathParameter' + - $ref: '#/components/parameters/MicrosoftTeamsHandleIDPathParameter' requestBody: content: application/json: schema: - $ref: '#/components/schemas/MicrosoftTeamsUpdateTenantBasedHandleRequest' - description: Tenant-based handle payload. + $ref: '#/components/schemas/MicrosoftTeamsUpdateApiHandleRequest' + description: Opsgenie service payload. required: true responses: '200': content: application/json: schema: - $ref: '#/components/schemas/MicrosoftTeamsTenantBasedHandleResponse' + $ref: '#/components/schemas/MicrosoftTeamsApiHandleInfoResponse' description: OK '400': $ref: '#/components/responses/BadRequestResponse' @@ -30742,7 +30718,7 @@ paths: $ref: '#/components/responses/PreconditionFailedResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Update tenant-based handle + summary: Update handle tags: - Microsoft Teams Integration x-codegen-request-body-name: body @@ -34309,6 +34285,17 @@ paths: required: false schema: type: string + - description: Return findings that match the selected detection types (repeatable). + example: + - misconfiguration + explode: true + in: query + name: filter[detection_type] + required: false + schema: + items: + $ref: '#/components/schemas/FindingDetectionType' + type: array - description: Return findings that have these associated tags (repeatable). example: filter[tags]=cloud_provider:aws&filter[tags]=aws_account:999999999999 in: query diff --git a/examples/v1/dashboards/CreateDashboard_1413226400.java b/examples/v1/dashboards/CreateDashboard_1413226400.java deleted file mode 100644 index 60f8fe07720..00000000000 --- a/examples/v1/dashboards/CreateDashboard_1413226400.java +++ /dev/null @@ -1,112 +0,0 @@ -// Create a new dashboard with a toplist widget with stacked type and no legend specified - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v1.api.DashboardsApi; -import com.datadog.api.client.v1.model.Dashboard; -import com.datadog.api.client.v1.model.DashboardLayoutType; -import com.datadog.api.client.v1.model.FormulaAndFunctionMetricAggregation; -import com.datadog.api.client.v1.model.FormulaAndFunctionMetricDataSource; -import com.datadog.api.client.v1.model.FormulaAndFunctionMetricQueryDefinition; -import com.datadog.api.client.v1.model.FormulaAndFunctionQueryDefinition; -import com.datadog.api.client.v1.model.FormulaAndFunctionResponseFormat; -import com.datadog.api.client.v1.model.GroupType; -import com.datadog.api.client.v1.model.ToplistWidgetDefinition; -import com.datadog.api.client.v1.model.ToplistWidgetDefinitionType; -import com.datadog.api.client.v1.model.ToplistWidgetDisplay; -import com.datadog.api.client.v1.model.ToplistWidgetRequest; -import com.datadog.api.client.v1.model.ToplistWidgetScaling; -import com.datadog.api.client.v1.model.ToplistWidgetStacked; -import com.datadog.api.client.v1.model.ToplistWidgetStackedType; -import com.datadog.api.client.v1.model.ToplistWidgetStyle; -import com.datadog.api.client.v1.model.Widget; -import com.datadog.api.client.v1.model.WidgetDefinition; -import com.datadog.api.client.v1.model.WidgetFormula; -import com.datadog.api.client.v1.model.WidgetGroupSort; -import com.datadog.api.client.v1.model.WidgetLayout; -import com.datadog.api.client.v1.model.WidgetLegacyLiveSpan; -import com.datadog.api.client.v1.model.WidgetSort; -import com.datadog.api.client.v1.model.WidgetSortBy; -import com.datadog.api.client.v1.model.WidgetSortOrderBy; -import com.datadog.api.client.v1.model.WidgetTextAlign; -import com.datadog.api.client.v1.model.WidgetTime; -import java.util.Collections; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - DashboardsApi apiInstance = new DashboardsApi(defaultClient); - - Dashboard body = - new Dashboard() - .title("Example-Dashboard") - .description("") - .widgets( - Collections.singletonList( - new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) - .definition( - new WidgetDefinition( - new ToplistWidgetDefinition() - .title("") - .titleSize("16") - .titleAlign(WidgetTextAlign.LEFT) - .time(new WidgetTime(new WidgetLegacyLiveSpan())) - .style( - new ToplistWidgetStyle() - .display( - new ToplistWidgetDisplay( - new ToplistWidgetStacked() - .type(ToplistWidgetStackedType.STACKED))) - .scaling(ToplistWidgetScaling.RELATIVE) - .palette("dog_classic")) - .type(ToplistWidgetDefinitionType.TOPLIST) - .requests( - Collections.singletonList( - new ToplistWidgetRequest() - .queries( - Collections.singletonList( - new FormulaAndFunctionQueryDefinition( - new FormulaAndFunctionMetricQueryDefinition() - .dataSource( - FormulaAndFunctionMetricDataSource - .METRICS) - .name("query1") - .query( - "avg:system.cpu.user{*} by" - + " {service}") - .aggregator( - FormulaAndFunctionMetricAggregation - .AVG)))) - .formulas( - Collections.singletonList( - new WidgetFormula().formula("query1"))) - .sort( - new WidgetSortBy() - .count(10L) - .orderBy( - Collections.singletonList( - new WidgetSortOrderBy( - new WidgetGroupSort() - .type(GroupType.GROUP) - .name("service") - .order( - WidgetSort - .ASCENDING))))) - .responseFormat( - FormulaAndFunctionResponseFormat.SCALAR))))))) - .layoutType(DashboardLayoutType.FREE) - .isReadOnly(false); - - try { - Dashboard result = apiInstance.createDashboard(body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DashboardsApi#createDashboard"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v1/synthetics/CreateSyntheticsMobileTest.java b/examples/v1/synthetics/CreateSyntheticsMobileTest.java index ac4150e51c6..d66c764ebe9 100644 --- a/examples/v1/synthetics/CreateSyntheticsMobileTest.java +++ b/examples/v1/synthetics/CreateSyntheticsMobileTest.java @@ -3,6 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v1.api.SyntheticsApi; +import com.datadog.api.client.v1.model.SyntheticsMobileDeviceID; import com.datadog.api.client.v1.model.SyntheticsMobileTest; import com.datadog.api.client.v1.model.SyntheticsMobileTestConfig; import com.datadog.api.client.v1.model.SyntheticsMobileTestOptions; @@ -27,7 +28,8 @@ public static void main(String[] args) { .options( new SyntheticsMobileTestOptions() .deviceIds( - Collections.singletonList("synthetics:mobile:device:iphone_15_ios_17")) + Collections.singletonList( + SyntheticsMobileDeviceID.SYNTHETICS_MOBILE_DEVICE_IPHONE_15_IOS_17)) .mobileApplication( new SyntheticsMobileTestsMobileApplication() .applicationId("ab0e0aed-536d-411a-9a99-5428c27d8f8e") diff --git a/examples/v1/synthetics/UpdateMobileTest.java b/examples/v1/synthetics/UpdateMobileTest.java index 04bd4693980..fb7f4e5a540 100644 --- a/examples/v1/synthetics/UpdateMobileTest.java +++ b/examples/v1/synthetics/UpdateMobileTest.java @@ -3,6 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v1.api.SyntheticsApi; +import com.datadog.api.client.v1.model.SyntheticsMobileDeviceID; import com.datadog.api.client.v1.model.SyntheticsMobileTest; import com.datadog.api.client.v1.model.SyntheticsMobileTestConfig; import com.datadog.api.client.v1.model.SyntheticsMobileTestOptions; @@ -30,7 +31,8 @@ public static void main(String[] args) { .options( new SyntheticsMobileTestOptions() .deviceIds( - Collections.singletonList("synthetics:mobile:device:iphone_15_ios_17")) + Collections.singletonList( + SyntheticsMobileDeviceID.SYNTHETICS_MOBILE_DEVICE_IPHONE_15_IOS_17)) .mobileApplication( new SyntheticsMobileTestsMobileApplication() .applicationId("ab0e0aed-536d-411a-9a99-5428c27d8f8e") diff --git a/examples/v2/microsoft-teams-integration/CreateApiHandle.java b/examples/v2/microsoft-teams-integration/CreateApiHandle.java new file mode 100644 index 00000000000..4cef00642ab --- /dev/null +++ b/examples/v2/microsoft-teams-integration/CreateApiHandle.java @@ -0,0 +1,40 @@ +// Create handle returns "CREATED" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleRequestAttributes; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleRequestData; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleType; +import com.datadog.api.client.v2.model.MicrosoftTeamsCreateApiHandleRequest; +import com.datadog.api.client.v2.model.MicrosoftTeamsCreateApiHandleResponse; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); + + MicrosoftTeamsCreateApiHandleRequest body = + new MicrosoftTeamsCreateApiHandleRequest() + .data( + new MicrosoftTeamsApiHandleRequestData() + .attributes( + new MicrosoftTeamsApiHandleRequestAttributes() + .channelId("fake-channel-id") + .name("fake-handle-name") + .teamId("00000000-0000-0000-0000-000000000000") + .tenantId("00000000-0000-0000-0000-000000000001")) + .type(MicrosoftTeamsApiHandleType.HANDLE)); + + try { + MicrosoftTeamsCreateApiHandleResponse result = apiInstance.createApiHandle(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#createApiHandle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.java b/examples/v2/microsoft-teams-integration/CreateApiHandle_1540689753.java similarity index 54% rename from examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.java rename to examples/v2/microsoft-teams-integration/CreateApiHandle_1540689753.java index f97a9a9e6ee..9631d455a91 100644 --- a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.java +++ b/examples/v2/microsoft-teams-integration/CreateApiHandle_1540689753.java @@ -3,36 +3,35 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsCreateTenantBasedHandleRequest; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleRequestAttributes; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleRequestData; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleResponse; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleType; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleRequestAttributes; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleRequestData; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleType; +import com.datadog.api.client.v2.model.MicrosoftTeamsCreateApiHandleRequest; +import com.datadog.api.client.v2.model.MicrosoftTeamsCreateApiHandleResponse; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); - MicrosoftTeamsCreateTenantBasedHandleRequest body = - new MicrosoftTeamsCreateTenantBasedHandleRequest() + MicrosoftTeamsCreateApiHandleRequest body = + new MicrosoftTeamsCreateApiHandleRequest() .data( - new MicrosoftTeamsTenantBasedHandleRequestData() + new MicrosoftTeamsApiHandleRequestData() .attributes( - new MicrosoftTeamsTenantBasedHandleRequestAttributes() + new MicrosoftTeamsApiHandleRequestAttributes() .channelId( "19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2") .name("Example-Microsoft-Teams-Integration") .teamId("e5f50a58-c929-4fb3-8866-e2cd836de3c2") .tenantId("4d3bac44-0230-4732-9e70-cc00736f0a97")) - .type(MicrosoftTeamsTenantBasedHandleType.TENANT_BASED_HANDLE)); + .type(MicrosoftTeamsApiHandleType.HANDLE)); try { - MicrosoftTeamsTenantBasedHandleResponse result = apiInstance.createTenantBasedHandle(body); + MicrosoftTeamsCreateApiHandleResponse result = apiInstance.createApiHandle(body); System.out.println(result); } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#createTenantBasedHandle"); + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#createApiHandle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.java b/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.java deleted file mode 100644 index 866e055886a..00000000000 --- a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.java +++ /dev/null @@ -1,41 +0,0 @@ -// Create tenant-based handle returns "CREATED" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsCreateTenantBasedHandleRequest; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleRequestAttributes; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleRequestData; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleResponse; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleType; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); - - MicrosoftTeamsCreateTenantBasedHandleRequest body = - new MicrosoftTeamsCreateTenantBasedHandleRequest() - .data( - new MicrosoftTeamsTenantBasedHandleRequestData() - .attributes( - new MicrosoftTeamsTenantBasedHandleRequestAttributes() - .channelId("fake-channel-id") - .name("fake-handle-name") - .teamId("00000000-0000-0000-0000-000000000000") - .tenantId("00000000-0000-0000-0000-000000000001")) - .type(MicrosoftTeamsTenantBasedHandleType.TENANT_BASED_HANDLE)); - - try { - MicrosoftTeamsTenantBasedHandleResponse result = apiInstance.createTenantBasedHandle(body); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#createTenantBasedHandle"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.java b/examples/v2/microsoft-teams-integration/DeleteApiHandle.java similarity index 74% rename from examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.java rename to examples/v2/microsoft-teams-integration/DeleteApiHandle.java index 061b6cb7eba..2149af4651a 100644 --- a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.java +++ b/examples/v2/microsoft-teams-integration/DeleteApiHandle.java @@ -1,4 +1,4 @@ -// Delete tenant-based handle returns "OK" response +// Delete handle returns "OK" response import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; @@ -10,10 +10,9 @@ public static void main(String[] args) { MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); try { - apiInstance.deleteTenantBasedHandle("handle_id"); + apiInstance.deleteApiHandle("handle_id"); } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#deleteTenantBasedHandle"); + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#deleteApiHandle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.java b/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.java similarity index 67% rename from examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.java rename to examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.java index a497779991d..e86197186fb 100644 --- a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.java +++ b/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.java @@ -9,14 +9,13 @@ public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); - // there is a valid "tenant_based_handle" in the system - String TENANT_BASED_HANDLE_DATA_ID = System.getenv("TENANT_BASED_HANDLE_DATA_ID"); + // there is a valid "api_handle" in the system + String API_HANDLE_DATA_ID = System.getenv("API_HANDLE_DATA_ID"); try { - apiInstance.deleteTenantBasedHandle(TENANT_BASED_HANDLE_DATA_ID); + apiInstance.deleteApiHandle(API_HANDLE_DATA_ID); } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#deleteTenantBasedHandle"); + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#deleteApiHandle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.java b/examples/v2/microsoft-teams-integration/GetApiHandle.java similarity index 66% rename from examples/v2/microsoft-teams-integration/ListTenantBasedHandles.java rename to examples/v2/microsoft-teams-integration/GetApiHandle.java index 34f96defde8..51bdd11c41c 100644 --- a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.java +++ b/examples/v2/microsoft-teams-integration/GetApiHandle.java @@ -1,9 +1,9 @@ -// Get all tenant-based handles returns "OK" response +// Get handle information returns "OK" response import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandlesResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleInfoResponse; public class Example { public static void main(String[] args) { @@ -11,11 +11,10 @@ public static void main(String[] args) { MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); try { - MicrosoftTeamsTenantBasedHandlesResponse result = apiInstance.listTenantBasedHandles(); + MicrosoftTeamsApiHandleInfoResponse result = apiInstance.getApiHandle("handle_id"); System.out.println(result); } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#listTenantBasedHandles"); + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#getApiHandle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.java b/examples/v2/microsoft-teams-integration/GetApiHandleByName.java similarity index 65% rename from examples/v2/microsoft-teams-integration/GetTenantBasedHandle.java rename to examples/v2/microsoft-teams-integration/GetApiHandleByName.java index 1084630541a..01e505b616b 100644 --- a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.java +++ b/examples/v2/microsoft-teams-integration/GetApiHandleByName.java @@ -1,9 +1,9 @@ -// Get tenant-based handle information returns "OK" response +// Get handle information by name returns "OK" response import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleInfoResponse; public class Example { public static void main(String[] args) { @@ -11,12 +11,10 @@ public static void main(String[] args) { MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); try { - MicrosoftTeamsTenantBasedHandleResponse result = - apiInstance.getTenantBasedHandle("handle_id"); + MicrosoftTeamsApiHandleInfoResponse result = apiInstance.getApiHandleByName("handle_name"); System.out.println(result); } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#getTenantBasedHandle"); + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#getApiHandleByName"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.java b/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.java new file mode 100644 index 00000000000..e2546408709 --- /dev/null +++ b/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.java @@ -0,0 +1,28 @@ +// Get api handle information by name returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleInfoResponse; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); + + // there is a valid "api_handle" in the system + String API_HANDLE_DATA_ATTRIBUTES_NAME = System.getenv("API_HANDLE_DATA_ATTRIBUTES_NAME"); + + try { + MicrosoftTeamsApiHandleInfoResponse result = + apiInstance.getApiHandleByName(API_HANDLE_DATA_ATTRIBUTES_NAME); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#getApiHandleByName"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.java b/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.java similarity index 61% rename from examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.java rename to examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.java index d3941195761..1db3de81bac 100644 --- a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.java +++ b/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.java @@ -3,23 +3,21 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleInfoResponse; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); - // there is a valid "tenant_based_handle" in the system - String TENANT_BASED_HANDLE_DATA_ID = System.getenv("TENANT_BASED_HANDLE_DATA_ID"); + // there is a valid "api_handle" in the system + String API_HANDLE_DATA_ID = System.getenv("API_HANDLE_DATA_ID"); try { - MicrosoftTeamsTenantBasedHandleResponse result = - apiInstance.getTenantBasedHandle(TENANT_BASED_HANDLE_DATA_ID); + MicrosoftTeamsApiHandleInfoResponse result = apiInstance.getApiHandle(API_HANDLE_DATA_ID); System.out.println(result); } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#getTenantBasedHandle"); + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#getApiHandle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/microsoft-teams-integration/ListApiHandles.java b/examples/v2/microsoft-teams-integration/ListApiHandles.java new file mode 100644 index 00000000000..8315523cd3e --- /dev/null +++ b/examples/v2/microsoft-teams-integration/ListApiHandles.java @@ -0,0 +1,24 @@ +// Get all handles returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandlesResponse; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); + + try { + MicrosoftTeamsApiHandlesResponse result = apiInstance.listApiHandles(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#listApiHandles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.java b/examples/v2/microsoft-teams-integration/ListApiHandles_769592979.java similarity index 71% rename from examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.java rename to examples/v2/microsoft-teams-integration/ListApiHandles_769592979.java index fcf1a46053f..fcf814b1e1c 100644 --- a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.java +++ b/examples/v2/microsoft-teams-integration/ListApiHandles_769592979.java @@ -3,7 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandlesResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandlesResponse; public class Example { public static void main(String[] args) { @@ -11,11 +11,10 @@ public static void main(String[] args) { MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); try { - MicrosoftTeamsTenantBasedHandlesResponse result = apiInstance.listTenantBasedHandles(); + MicrosoftTeamsApiHandlesResponse result = apiInstance.listApiHandles(); System.out.println(result); } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#listTenantBasedHandles"); + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#listApiHandles"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/microsoft-teams-integration/UpdateApiHandle.java b/examples/v2/microsoft-teams-integration/UpdateApiHandle.java new file mode 100644 index 00000000000..83baac429fe --- /dev/null +++ b/examples/v2/microsoft-teams-integration/UpdateApiHandle.java @@ -0,0 +1,40 @@ +// Update handle returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleAttributes; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleInfoResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleType; +import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateApiHandleRequest; +import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateApiHandleRequestData; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); + + MicrosoftTeamsUpdateApiHandleRequest body = + new MicrosoftTeamsUpdateApiHandleRequest() + .data( + new MicrosoftTeamsUpdateApiHandleRequestData() + .attributes( + new MicrosoftTeamsApiHandleAttributes() + .channelId("fake-channel-id") + .name("fake-handle-name") + .teamId("00000000-0000-0000-0000-000000000000") + .tenantId("00000000-0000-0000-0000-000000000001")) + .type(MicrosoftTeamsApiHandleType.HANDLE)); + + try { + MicrosoftTeamsApiHandleInfoResponse result = apiInstance.updateApiHandle("handle_id", body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#updateApiHandle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.java b/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.java new file mode 100644 index 00000000000..e61d18d1396 --- /dev/null +++ b/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.java @@ -0,0 +1,41 @@ +// Update api handle returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleAttributes; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleInfoResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleType; +import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateApiHandleRequest; +import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateApiHandleRequestData; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); + + // there is a valid "api_handle" in the system + String API_HANDLE_DATA_ATTRIBUTES_NAME = System.getenv("API_HANDLE_DATA_ATTRIBUTES_NAME"); + String API_HANDLE_DATA_ID = System.getenv("API_HANDLE_DATA_ID"); + + MicrosoftTeamsUpdateApiHandleRequest body = + new MicrosoftTeamsUpdateApiHandleRequest() + .data( + new MicrosoftTeamsUpdateApiHandleRequestData() + .attributes( + new MicrosoftTeamsApiHandleAttributes().name("fake-handle-name--updated")) + .type(MicrosoftTeamsApiHandleType.HANDLE)); + + try { + MicrosoftTeamsApiHandleInfoResponse result = + apiInstance.updateApiHandle(API_HANDLE_DATA_ID, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MicrosoftTeamsIntegrationApi#updateApiHandle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.java b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.java deleted file mode 100644 index b31f606f800..00000000000 --- a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.java +++ /dev/null @@ -1,42 +0,0 @@ -// Update tenant-based handle returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleAttributes; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleResponse; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleType; -import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateTenantBasedHandleRequest; -import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateTenantBasedHandleRequestData; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); - - MicrosoftTeamsUpdateTenantBasedHandleRequest body = - new MicrosoftTeamsUpdateTenantBasedHandleRequest() - .data( - new MicrosoftTeamsUpdateTenantBasedHandleRequestData() - .attributes( - new MicrosoftTeamsTenantBasedHandleAttributes() - .channelId("fake-channel-id") - .name("fake-handle-name") - .teamId("00000000-0000-0000-0000-000000000000") - .tenantId("00000000-0000-0000-0000-000000000001")) - .type(MicrosoftTeamsTenantBasedHandleType.TENANT_BASED_HANDLE)); - - try { - MicrosoftTeamsTenantBasedHandleResponse result = - apiInstance.updateTenantBasedHandle("handle_id", body); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#updateTenantBasedHandle"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.java b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.java deleted file mode 100644 index b5a0f9e3b6c..00000000000 --- a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.java +++ /dev/null @@ -1,44 +0,0 @@ -// Update api handle returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleAttributes; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleResponse; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleType; -import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateTenantBasedHandleRequest; -import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateTenantBasedHandleRequestData; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient); - - // there is a valid "tenant_based_handle" in the system - String TENANT_BASED_HANDLE_DATA_ATTRIBUTES_NAME = - System.getenv("TENANT_BASED_HANDLE_DATA_ATTRIBUTES_NAME"); - String TENANT_BASED_HANDLE_DATA_ID = System.getenv("TENANT_BASED_HANDLE_DATA_ID"); - - MicrosoftTeamsUpdateTenantBasedHandleRequest body = - new MicrosoftTeamsUpdateTenantBasedHandleRequest() - .data( - new MicrosoftTeamsUpdateTenantBasedHandleRequestData() - .attributes( - new MicrosoftTeamsTenantBasedHandleAttributes() - .name("fake-handle-name--updated")) - .type(MicrosoftTeamsTenantBasedHandleType.TENANT_BASED_HANDLE)); - - try { - MicrosoftTeamsTenantBasedHandleResponse result = - apiInstance.updateTenantBasedHandle(TENANT_BASED_HANDLE_DATA_ID, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling MicrosoftTeamsIntegrationApi#updateTenantBasedHandle"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/security-monitoring/ListFindings_1668290866.java b/examples/v2/security-monitoring/ListFindings_1668290866.java new file mode 100644 index 00000000000..ae7fa169fa6 --- /dev/null +++ b/examples/v2/security-monitoring/ListFindings_1668290866.java @@ -0,0 +1,34 @@ +// List findings with detection_type query param returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.SecurityMonitoringApi; +import com.datadog.api.client.v2.api.SecurityMonitoringApi.ListFindingsOptionalParameters; +import com.datadog.api.client.v2.model.FindingDetectionType; +import com.datadog.api.client.v2.model.ListFindingsResponse; +import java.util.Arrays; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.listFindings", true); + SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); + + try { + ListFindingsResponse result = + apiInstance.listFindings( + new ListFindingsOptionalParameters() + .filterDetectionType( + Arrays.asList( + FindingDetectionType.MISCONFIGURATION, + FindingDetectionType.ATTACK_PATH))); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SecurityMonitoringApi#listFindings"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java b/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java index 8f1b6ca7863..4ba0cf39408 100644 --- a/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java @@ -252,7 +252,6 @@ public CompletableFuture createMonitorAsync(Monitor body) { *
  • error-tracking: error-tracking alert *
  • database-monitoring: database-monitoring alert *
  • network-performance: network-performance alert - *
  • cloud cost: cost alert * * *

    Notes: - Synthetic monitors are created through the Synthetics API. See the diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileDeviceID.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileDeviceID.java new file mode 100644 index 00000000000..16196b6a1f6 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileDeviceID.java @@ -0,0 +1,791 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v1.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** The device ID. */ +@JsonSerialize(using = SyntheticsMobileDeviceID.SyntheticsMobileDeviceIDSerializer.class) +public class SyntheticsMobileDeviceID extends ModelEnum { + + private static final Set allowedValues = + new HashSet( + Arrays.asList( + "apple ipad (2022),16.4", + "apple ipad (2022),17.3.1", + "apple ipad 7th gen (2019),13.3", + "apple ipad 9th gen (2021),15.0.2", + "apple ipad 9th gen (2021),16.1", + "apple ipad air (2022),15.4.1", + "apple ipad mini (5th gen),14.6", + "apple ipad mini (6th gen),15.1", + "apple ipad pro 11 (2022),16.3", + "apple ipad pro 12.9 (2020),14.8", + "apple ipad pro 12.9 (2021),15.6.1", + "apple ipad pro 12.9 (2022),16.5", + "apple iphone 11 pro max,13.1.3", + "apple iphone 11 pro,13.6", + "apple iphone 11 pro,15.5", + "apple iphone 11,13.3.1", + "apple iphone 11,14.0", + "apple iphone 11,16.3", + "apple iphone 12 mini,14.2", + "apple iphone 12 mini,16.5", + "apple iphone 12 pro max,14.5.1", + "apple iphone 12 pro,14.5.1", + "apple iphone 12 pro,14.8", + "apple iphone 12 pro,15.0.2", + "apple iphone 12 pro,16.2", + "apple iphone 12,14.2", + "apple iphone 12,14.6", + "apple iphone 12,14.8", + "apple iphone 12,15.6.1", + "apple iphone 12,16.6.1", + "apple iphone 13 mini,15.0.2", + "apple iphone 13 mini,16.6", + "apple iphone 13 pro max,15.1", + "apple iphone 13 pro max,17.3", + "apple iphone 13 pro,15.0.2", + "apple iphone 13 pro,15.2", + "apple iphone 14 plus,16.1", + "apple iphone 14 pro max,16.2", + "apple iphone 14 pro,16.1", + "apple iphone 14 pro,17.3.1", + "apple iphone 14,16.1", + "apple iphone 15 pro max,17.3.1", + "apple iphone 15 pro,17.3.1", + "apple iphone 15,17.2.1", + "apple iphone se (2022),15.4.1", + "galaxy a40,9", + "galaxy a5,8.0.0", + "galaxy note 10,9", + "galaxy note5 (at&t),7.0", + "galaxy s10,9", + "galaxy s6 edge sm-g925f,7.0", + "galaxy s8 (t-mobile),8.0.0", + "galaxy s8 unlocked,8.0.0", + "galaxy s9 (unlocked),9", + "galaxy s9+ (unlocked),8.0.0", + "galaxy s9+ (unlocked),9", + "google pixel 2,8.0.0", + "google pixel 2,9", + "google pixel 3 xl,10", + "google pixel 3 xl,9", + "google pixel 3,10", + "google pixel 3,9", + "google pixel 3a xl,11", + "google pixel 3a xl,12", + "google pixel 3a,10", + "google pixel 4 (unlocked),10", + "google pixel 4 (unlocked),11", + "google pixel 4 xl (unlocked),10", + "google pixel 4a,11", + "google pixel 4a,12", + "google pixel 5a 5g,12", + "google pixel 6 pro,12", + "google pixel 6,12", + "google pixel 6a,13", + "google pixel 7 pro,13", + "google pixel 7,13", + "google pixel 7,14", + "google pixel 8 pro,14", + "google pixel 8,14", + "ipad 8th gen (2020),14.8", + "ipad air 2,13.6", + "ipad air 4th gen (2020),14.8", + "iphone 13,15.0.2", + "iphone 13,16.0.2", + "iphone 6,12.5.4", + "iphone 6s,14.4.2", + "iphone 7,14.8", + "iphone 8,13.5.1", + "iphone 8,14.4.2", + "iphone se (2020),13.6", + "iphone se (2020),14.6", + "iphone se (2020),15.0.2", + "iphone x,14.6", + "iphone xr,12.0", + "iphone xr,14.0", + "iphone xs max,12.1", + "iphone xs,13.6", + "lg stylo 5,9", + "lg stylo 6,10", + "moto g 4,7.0", + "moto g7 play,9", + "nexus 7 - 2nd gen (wifi),6.0", + "oneplus 8t,11", + "pixel 2 xl,8.1.0", + "pixel 2 xl,9", + "pixel 5,11", + "pixel 5,12", + "pixel xl,8.0.0", + "pixel,7.1.2", + "samsung a51,10", + "samsung galaxy a10s,10", + "samsung galaxy a13 5g,11", + "samsung galaxy a53 5g,12", + "samsung galaxy a7,8.0.0", + "samsung galaxy a71,11", + "samsung galaxy a73 5g,12", + "samsung galaxy j7 (2018),8.0.0", + "samsung galaxy note20,11", + "samsung galaxy s20 (unlocked),10", + "samsung galaxy s20+ (unlocked),10", + "samsung galaxy s21 ultra,11", + "samsung galaxy s21 ultra,12", + "samsung galaxy s21+,11", + "samsung galaxy s21,11", + "samsung galaxy s21,12", + "samsung galaxy s22 5g,12", + "samsung galaxy s22 5g,13", + "samsung galaxy s22 ultra 5g,12", + "samsung galaxy s22+ 5g,12", + "samsung galaxy s23 ultra,13", + "samsung galaxy s23+,13", + "samsung galaxy s23,13", + "samsung galaxy s23,14", + "samsung galaxy tab a 10.1,10", + "samsung galaxy tab a 10.1,7.0", + "samsung galaxy tab a8 (2021),11", + "samsung galaxy tab s4,8.1.0", + "samsung galaxy tab s6,9", + "samsung galaxy tab s7,11", + "samsung galaxy tab s8,12", + "samsung s20 ultra,10", + "sony xperia xz3,9", + "xiaomi redmi note 10 5g,11", + "synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16", + "synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_17", + "synthetics:mobile:device:apple_ipad_9th_gen_2021_ios_15", + "synthetics:mobile:device:apple_ipad_air_2022_ios_15", + "synthetics:mobile:device:apple_ipad_mini_5th_gen_ios_14", + "synthetics:mobile:device:apple_ipad_mini_6th_gen_ios_15", + "synthetics:mobile:device:apple_ipad_pro_11_2022_ios_16", + "synthetics:mobile:device:apple_ipad_pro_12_9_2020_ios_14", + "synthetics:mobile:device:apple_ipad_pro_12_9_2021_ios_15", + "synthetics:mobile:device:apple_ipad_pro_12_9_2022_ios_16", + "synthetics:mobile:device:apple_iphone_11_ios_14", + "synthetics:mobile:device:apple_iphone_11_ios_16", + "synthetics:mobile:device:apple_iphone_11_pro_ios_15", + "synthetics:mobile:device:apple_iphone_12_ios_14", + "synthetics:mobile:device:apple_iphone_12_ios_15", + "synthetics:mobile:device:apple_iphone_12_ios_16", + "synthetics:mobile:device:apple_iphone_12_mini_ios_14", + "synthetics:mobile:device:apple_iphone_12_mini_ios_16", + "synthetics:mobile:device:apple_iphone_12_pro_ios_14", + "synthetics:mobile:device:apple_iphone_12_pro_max_ios_14", + "synthetics:mobile:device:apple_iphone_13_mini_ios_15", + "synthetics:mobile:device:apple_iphone_13_mini_ios_16", + "synthetics:mobile:device:apple_iphone_13_pro_ios_15", + "synthetics:mobile:device:apple_iphone_13_pro_max_ios_15", + "synthetics:mobile:device:apple_iphone_13_pro_max_ios_17", + "synthetics:mobile:device:apple_iphone_14_ios_16", + "synthetics:mobile:device:apple_iphone_14_plus_ios_16", + "synthetics:mobile:device:apple_iphone_14_pro_ios_16", + "synthetics:mobile:device:apple_iphone_14_pro_ios_17", + "synthetics:mobile:device:apple_iphone_14_pro_max_ios_16", + "synthetics:mobile:device:apple_iphone_6_ios_12", + "synthetics:mobile:device:apple_iphone_8_ios_13", + "synthetics:mobile:device:apple_iphone_8_ios_14", + "synthetics:mobile:device:apple_iphone_se_2022_ios_15", + "synthetics:mobile:device:apple_iphone_se_2022_ios_16", + "synthetics:mobile:device:galaxy_a5_android_8", + "synthetics:mobile:device:galaxy_note5_android_7", + "synthetics:mobile:device:google_pixel_3a_xl_android_11", + "synthetics:mobile:device:google_pixel_4_unlocked_android_11", + "synthetics:mobile:device:google_pixel_4_xl_unlocked_android_10", + "synthetics:mobile:device:google_pixel_4a_android_11", + "synthetics:mobile:device:google_pixel_6_android_12", + "synthetics:mobile:device:google_pixel_6_pro_android_12", + "synthetics:mobile:device:google_pixel_6a_android_13", + "synthetics:mobile:device:google_pixel_7_android_13", + "synthetics:mobile:device:google_pixel_7_android_14", + "synthetics:mobile:device:google_pixel_7_pro_android_13", + "synthetics:mobile:device:google_pixel_8_android_14", + "synthetics:mobile:device:google_pixel_8_pro_android_14", + "synthetics:mobile:device:ipad_air_2_ios_13", + "synthetics:mobile:device:ipad_air_4th_gen_2020_ios_14", + "synthetics:mobile:device:iphone_13_ios_15", + "synthetics:mobile:device:iphone_13_ios_16", + "synthetics:mobile:device:iphone_15_ios_17", + "synthetics:mobile:device:iphone_15_pro_ios_17", + "synthetics:mobile:device:iphone_15_pro_max_ios_17", + "synthetics:mobile:device:iphone_se_2020_ios_13", + "synthetics:mobile:device:iphone_se_2020_ios_14", + "synthetics:mobile:device:iphone_x_ios_14", + "synthetics:mobile:device:iphone_xr_ios_14", + "synthetics:mobile:device:iphone_xs_ios_13", + "synthetics:mobile:device:lg_stylo_6_android_10", + "synthetics:mobile:device:pixel_5_android_12", + "synthetics:mobile:device:samsung_a51_android_10", + "synthetics:mobile:device:samsung_galaxy_a71_android_11", + "synthetics:mobile:device:samsung_galaxy_note20_android_11", + "synthetics:mobile:device:samsung_galaxy_s21_android_11", + "synthetics:mobile:device:samsung_galaxy_s21_android_12", + "synthetics:mobile:device:samsung_galaxy_s21_plus_android_11", + "synthetics:mobile:device:samsung_galaxy_s21_ultra_android_11", + "synthetics:mobile:device:samsung_galaxy_s22_5g_android_12", + "synthetics:mobile:device:samsung_galaxy_s22_5g_android_13", + "synthetics:mobile:device:samsung_galaxy_s22_plus_5g_android_12", + "synthetics:mobile:device:samsung_galaxy_s22_ultra_5g_android_12", + "synthetics:mobile:device:samsung_galaxy_s23_android_13", + "synthetics:mobile:device:samsung_galaxy_s23_android_14", + "synthetics:mobile:device:samsung_galaxy_s23_plus_android_13", + "synthetics:mobile:device:samsung_galaxy_s23_plus_android_14", + "synthetics:mobile:device:samsung_galaxy_s23_ultra_android_13", + "synthetics:mobile:device:samsung_galaxy_tab_a_10_1_android_7", + "synthetics:mobile:device:samsung_galaxy_tab_s7_android_11", + "synthetics:mobile:device:samsung_galaxy_tab_s8_android_12", + "synthetics:mobile:device:xiaomi_redmi_note_10_5g_android_11")); + + public static final SyntheticsMobileDeviceID APPLE_IPAD__2022__16_4 = + new SyntheticsMobileDeviceID("apple ipad (2022),16.4"); + public static final SyntheticsMobileDeviceID APPLE_IPAD__2022__17_3_1 = + new SyntheticsMobileDeviceID("apple ipad (2022),17.3.1"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_7TH_GEN__2019__13_3 = + new SyntheticsMobileDeviceID("apple ipad 7th gen (2019),13.3"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_9TH_GEN__2021__15_0_2 = + new SyntheticsMobileDeviceID("apple ipad 9th gen (2021),15.0.2"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_9TH_GEN__2021__16_1 = + new SyntheticsMobileDeviceID("apple ipad 9th gen (2021),16.1"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_AIR__2022__15_4_1 = + new SyntheticsMobileDeviceID("apple ipad air (2022),15.4.1"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_MINI__5TH_GEN__14_6 = + new SyntheticsMobileDeviceID("apple ipad mini (5th gen),14.6"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_MINI__6TH_GEN__15_1 = + new SyntheticsMobileDeviceID("apple ipad mini (6th gen),15.1"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_PRO_11__2022__16_3 = + new SyntheticsMobileDeviceID("apple ipad pro 11 (2022),16.3"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_PRO_12_9__2020__14_8 = + new SyntheticsMobileDeviceID("apple ipad pro 12.9 (2020),14.8"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_PRO_12_9__2021__15_6_1 = + new SyntheticsMobileDeviceID("apple ipad pro 12.9 (2021),15.6.1"); + public static final SyntheticsMobileDeviceID APPLE_IPAD_PRO_12_9__2022__16_5 = + new SyntheticsMobileDeviceID("apple ipad pro 12.9 (2022),16.5"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_11_PRO_MAX_13_1_3 = + new SyntheticsMobileDeviceID("apple iphone 11 pro max,13.1.3"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_11_PRO_13_6 = + new SyntheticsMobileDeviceID("apple iphone 11 pro,13.6"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_11_PRO_15_5 = + new SyntheticsMobileDeviceID("apple iphone 11 pro,15.5"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_11_13_3_1 = + new SyntheticsMobileDeviceID("apple iphone 11,13.3.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_11_14_0 = + new SyntheticsMobileDeviceID("apple iphone 11,14.0"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_11_16_3 = + new SyntheticsMobileDeviceID("apple iphone 11,16.3"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_MINI_14_2 = + new SyntheticsMobileDeviceID("apple iphone 12 mini,14.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_MINI_16_5 = + new SyntheticsMobileDeviceID("apple iphone 12 mini,16.5"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_PRO_MAX_14_5_1 = + new SyntheticsMobileDeviceID("apple iphone 12 pro max,14.5.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_PRO_14_5_1 = + new SyntheticsMobileDeviceID("apple iphone 12 pro,14.5.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_PRO_14_8 = + new SyntheticsMobileDeviceID("apple iphone 12 pro,14.8"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_PRO_15_0_2 = + new SyntheticsMobileDeviceID("apple iphone 12 pro,15.0.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_PRO_16_2 = + new SyntheticsMobileDeviceID("apple iphone 12 pro,16.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_14_2 = + new SyntheticsMobileDeviceID("apple iphone 12,14.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_14_6 = + new SyntheticsMobileDeviceID("apple iphone 12,14.6"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_14_8 = + new SyntheticsMobileDeviceID("apple iphone 12,14.8"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_15_6_1 = + new SyntheticsMobileDeviceID("apple iphone 12,15.6.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_12_16_6_1 = + new SyntheticsMobileDeviceID("apple iphone 12,16.6.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_13_MINI_15_0_2 = + new SyntheticsMobileDeviceID("apple iphone 13 mini,15.0.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_13_MINI_16_6 = + new SyntheticsMobileDeviceID("apple iphone 13 mini,16.6"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_13_PRO_MAX_15_1 = + new SyntheticsMobileDeviceID("apple iphone 13 pro max,15.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_13_PRO_MAX_17_3 = + new SyntheticsMobileDeviceID("apple iphone 13 pro max,17.3"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_13_PRO_15_0_2 = + new SyntheticsMobileDeviceID("apple iphone 13 pro,15.0.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_13_PRO_15_2 = + new SyntheticsMobileDeviceID("apple iphone 13 pro,15.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_14_PLUS_16_1 = + new SyntheticsMobileDeviceID("apple iphone 14 plus,16.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_14_PRO_MAX_16_2 = + new SyntheticsMobileDeviceID("apple iphone 14 pro max,16.2"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_14_PRO_16_1 = + new SyntheticsMobileDeviceID("apple iphone 14 pro,16.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_14_PRO_17_3_1 = + new SyntheticsMobileDeviceID("apple iphone 14 pro,17.3.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_14_16_1 = + new SyntheticsMobileDeviceID("apple iphone 14,16.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_15_PRO_MAX_17_3_1 = + new SyntheticsMobileDeviceID("apple iphone 15 pro max,17.3.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_15_PRO_17_3_1 = + new SyntheticsMobileDeviceID("apple iphone 15 pro,17.3.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_15_17_2_1 = + new SyntheticsMobileDeviceID("apple iphone 15,17.2.1"); + public static final SyntheticsMobileDeviceID APPLE_IPHONE_SE__2022__15_4_1 = + new SyntheticsMobileDeviceID("apple iphone se (2022),15.4.1"); + public static final SyntheticsMobileDeviceID GALAXY_A40_9 = + new SyntheticsMobileDeviceID("galaxy a40,9"); + public static final SyntheticsMobileDeviceID GALAXY_A5_8_0_0 = + new SyntheticsMobileDeviceID("galaxy a5,8.0.0"); + public static final SyntheticsMobileDeviceID GALAXY_NOTE_10_9 = + new SyntheticsMobileDeviceID("galaxy note 10,9"); + public static final SyntheticsMobileDeviceID GALAXY_NOTE5__AT_T__7_0 = + new SyntheticsMobileDeviceID("galaxy note5 (at&t),7.0"); + public static final SyntheticsMobileDeviceID GALAXY_S10_9 = + new SyntheticsMobileDeviceID("galaxy s10,9"); + public static final SyntheticsMobileDeviceID GALAXY_S6_EDGE_SMNOT_G925F_7_0 = + new SyntheticsMobileDeviceID("galaxy s6 edge sm-g925f,7.0"); + public static final SyntheticsMobileDeviceID GALAXY_S8__TNOT_MOBILE__8_0_0 = + new SyntheticsMobileDeviceID("galaxy s8 (t-mobile),8.0.0"); + public static final SyntheticsMobileDeviceID GALAXY_S8_UNLOCKED_8_0_0 = + new SyntheticsMobileDeviceID("galaxy s8 unlocked,8.0.0"); + public static final SyntheticsMobileDeviceID GALAXY_S9__UNLOCKED__9 = + new SyntheticsMobileDeviceID("galaxy s9 (unlocked),9"); + public static final SyntheticsMobileDeviceID GALAXY_S9___UNLOCKED__8_0_0 = + new SyntheticsMobileDeviceID("galaxy s9+ (unlocked),8.0.0"); + public static final SyntheticsMobileDeviceID GALAXY_S9___UNLOCKED__9 = + new SyntheticsMobileDeviceID("galaxy s9+ (unlocked),9"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_2_8_0_0 = + new SyntheticsMobileDeviceID("google pixel 2,8.0.0"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_2_9 = + new SyntheticsMobileDeviceID("google pixel 2,9"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_3_XL_10 = + new SyntheticsMobileDeviceID("google pixel 3 xl,10"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_3_XL_9 = + new SyntheticsMobileDeviceID("google pixel 3 xl,9"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_3_10 = + new SyntheticsMobileDeviceID("google pixel 3,10"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_3_9 = + new SyntheticsMobileDeviceID("google pixel 3,9"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_3A_XL_11 = + new SyntheticsMobileDeviceID("google pixel 3a xl,11"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_3A_XL_12 = + new SyntheticsMobileDeviceID("google pixel 3a xl,12"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_3A_10 = + new SyntheticsMobileDeviceID("google pixel 3a,10"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_4__UNLOCKED__10 = + new SyntheticsMobileDeviceID("google pixel 4 (unlocked),10"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_4__UNLOCKED__11 = + new SyntheticsMobileDeviceID("google pixel 4 (unlocked),11"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_4_XL__UNLOCKED__10 = + new SyntheticsMobileDeviceID("google pixel 4 xl (unlocked),10"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_4A_11 = + new SyntheticsMobileDeviceID("google pixel 4a,11"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_4A_12 = + new SyntheticsMobileDeviceID("google pixel 4a,12"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_5A_5G_12 = + new SyntheticsMobileDeviceID("google pixel 5a 5g,12"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_6_PRO_12 = + new SyntheticsMobileDeviceID("google pixel 6 pro,12"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_6_12 = + new SyntheticsMobileDeviceID("google pixel 6,12"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_6A_13 = + new SyntheticsMobileDeviceID("google pixel 6a,13"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_7_PRO_13 = + new SyntheticsMobileDeviceID("google pixel 7 pro,13"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_7_13 = + new SyntheticsMobileDeviceID("google pixel 7,13"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_7_14 = + new SyntheticsMobileDeviceID("google pixel 7,14"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_8_PRO_14 = + new SyntheticsMobileDeviceID("google pixel 8 pro,14"); + public static final SyntheticsMobileDeviceID GOOGLE_PIXEL_8_14 = + new SyntheticsMobileDeviceID("google pixel 8,14"); + public static final SyntheticsMobileDeviceID IPAD_8TH_GEN__2020__14_8 = + new SyntheticsMobileDeviceID("ipad 8th gen (2020),14.8"); + public static final SyntheticsMobileDeviceID IPAD_AIR_2_13_6 = + new SyntheticsMobileDeviceID("ipad air 2,13.6"); + public static final SyntheticsMobileDeviceID IPAD_AIR_4TH_GEN__2020__14_8 = + new SyntheticsMobileDeviceID("ipad air 4th gen (2020),14.8"); + public static final SyntheticsMobileDeviceID IPHONE_13_15_0_2 = + new SyntheticsMobileDeviceID("iphone 13,15.0.2"); + public static final SyntheticsMobileDeviceID IPHONE_13_16_0_2 = + new SyntheticsMobileDeviceID("iphone 13,16.0.2"); + public static final SyntheticsMobileDeviceID IPHONE_6_12_5_4 = + new SyntheticsMobileDeviceID("iphone 6,12.5.4"); + public static final SyntheticsMobileDeviceID IPHONE_6S_14_4_2 = + new SyntheticsMobileDeviceID("iphone 6s,14.4.2"); + public static final SyntheticsMobileDeviceID IPHONE_7_14_8 = + new SyntheticsMobileDeviceID("iphone 7,14.8"); + public static final SyntheticsMobileDeviceID IPHONE_8_13_5_1 = + new SyntheticsMobileDeviceID("iphone 8,13.5.1"); + public static final SyntheticsMobileDeviceID IPHONE_8_14_4_2 = + new SyntheticsMobileDeviceID("iphone 8,14.4.2"); + public static final SyntheticsMobileDeviceID IPHONE_SE__2020__13_6 = + new SyntheticsMobileDeviceID("iphone se (2020),13.6"); + public static final SyntheticsMobileDeviceID IPHONE_SE__2020__14_6 = + new SyntheticsMobileDeviceID("iphone se (2020),14.6"); + public static final SyntheticsMobileDeviceID IPHONE_SE__2020__15_0_2 = + new SyntheticsMobileDeviceID("iphone se (2020),15.0.2"); + public static final SyntheticsMobileDeviceID IPHONE_X_14_6 = + new SyntheticsMobileDeviceID("iphone x,14.6"); + public static final SyntheticsMobileDeviceID IPHONE_XR_12_0 = + new SyntheticsMobileDeviceID("iphone xr,12.0"); + public static final SyntheticsMobileDeviceID IPHONE_XR_14_0 = + new SyntheticsMobileDeviceID("iphone xr,14.0"); + public static final SyntheticsMobileDeviceID IPHONE_XS_MAX_12_1 = + new SyntheticsMobileDeviceID("iphone xs max,12.1"); + public static final SyntheticsMobileDeviceID IPHONE_XS_13_6 = + new SyntheticsMobileDeviceID("iphone xs,13.6"); + public static final SyntheticsMobileDeviceID LG_STYLO_5_9 = + new SyntheticsMobileDeviceID("lg stylo 5,9"); + public static final SyntheticsMobileDeviceID LG_STYLO_6_10 = + new SyntheticsMobileDeviceID("lg stylo 6,10"); + public static final SyntheticsMobileDeviceID MOTO_G_4_7_0 = + new SyntheticsMobileDeviceID("moto g 4,7.0"); + public static final SyntheticsMobileDeviceID MOTO_G7_PLAY_9 = + new SyntheticsMobileDeviceID("moto g7 play,9"); + public static final SyntheticsMobileDeviceID NEXUS_7_NOT__2ND_GEN__WIFI__6_0 = + new SyntheticsMobileDeviceID("nexus 7 - 2nd gen (wifi),6.0"); + public static final SyntheticsMobileDeviceID ONEPLUS_8T_11 = + new SyntheticsMobileDeviceID("oneplus 8t,11"); + public static final SyntheticsMobileDeviceID PIXEL_2_XL_8_1_0 = + new SyntheticsMobileDeviceID("pixel 2 xl,8.1.0"); + public static final SyntheticsMobileDeviceID PIXEL_2_XL_9 = + new SyntheticsMobileDeviceID("pixel 2 xl,9"); + public static final SyntheticsMobileDeviceID PIXEL_5_11 = + new SyntheticsMobileDeviceID("pixel 5,11"); + public static final SyntheticsMobileDeviceID PIXEL_5_12 = + new SyntheticsMobileDeviceID("pixel 5,12"); + public static final SyntheticsMobileDeviceID PIXEL_XL_8_0_0 = + new SyntheticsMobileDeviceID("pixel xl,8.0.0"); + public static final SyntheticsMobileDeviceID PIXEL_7_1_2 = + new SyntheticsMobileDeviceID("pixel,7.1.2"); + public static final SyntheticsMobileDeviceID SAMSUNG_A51_10 = + new SyntheticsMobileDeviceID("samsung a51,10"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_A10S_10 = + new SyntheticsMobileDeviceID("samsung galaxy a10s,10"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_A13_5G_11 = + new SyntheticsMobileDeviceID("samsung galaxy a13 5g,11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_A53_5G_12 = + new SyntheticsMobileDeviceID("samsung galaxy a53 5g,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_A7_8_0_0 = + new SyntheticsMobileDeviceID("samsung galaxy a7,8.0.0"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_A71_11 = + new SyntheticsMobileDeviceID("samsung galaxy a71,11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_A73_5G_12 = + new SyntheticsMobileDeviceID("samsung galaxy a73 5g,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_J7__2018__8_0_0 = + new SyntheticsMobileDeviceID("samsung galaxy j7 (2018),8.0.0"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_NOTE20_11 = + new SyntheticsMobileDeviceID("samsung galaxy note20,11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S20__UNLOCKED__10 = + new SyntheticsMobileDeviceID("samsung galaxy s20 (unlocked),10"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S20___UNLOCKED__10 = + new SyntheticsMobileDeviceID("samsung galaxy s20+ (unlocked),10"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S21_ULTRA_11 = + new SyntheticsMobileDeviceID("samsung galaxy s21 ultra,11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S21_ULTRA_12 = + new SyntheticsMobileDeviceID("samsung galaxy s21 ultra,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S21__11 = + new SyntheticsMobileDeviceID("samsung galaxy s21+,11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S21_11 = + new SyntheticsMobileDeviceID("samsung galaxy s21,11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S21_12 = + new SyntheticsMobileDeviceID("samsung galaxy s21,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S22_5G_12 = + new SyntheticsMobileDeviceID("samsung galaxy s22 5g,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S22_5G_13 = + new SyntheticsMobileDeviceID("samsung galaxy s22 5g,13"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S22_ULTRA_5G_12 = + new SyntheticsMobileDeviceID("samsung galaxy s22 ultra 5g,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S22__5G_12 = + new SyntheticsMobileDeviceID("samsung galaxy s22+ 5g,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S23_ULTRA_13 = + new SyntheticsMobileDeviceID("samsung galaxy s23 ultra,13"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S23__13 = + new SyntheticsMobileDeviceID("samsung galaxy s23+,13"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S23_13 = + new SyntheticsMobileDeviceID("samsung galaxy s23,13"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_S23_14 = + new SyntheticsMobileDeviceID("samsung galaxy s23,14"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_TAB_A_10_1_10 = + new SyntheticsMobileDeviceID("samsung galaxy tab a 10.1,10"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_TAB_A_10_1_7_0 = + new SyntheticsMobileDeviceID("samsung galaxy tab a 10.1,7.0"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_TAB_A8__2021__11 = + new SyntheticsMobileDeviceID("samsung galaxy tab a8 (2021),11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_TAB_S4_8_1_0 = + new SyntheticsMobileDeviceID("samsung galaxy tab s4,8.1.0"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_TAB_S6_9 = + new SyntheticsMobileDeviceID("samsung galaxy tab s6,9"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_TAB_S7_11 = + new SyntheticsMobileDeviceID("samsung galaxy tab s7,11"); + public static final SyntheticsMobileDeviceID SAMSUNG_GALAXY_TAB_S8_12 = + new SyntheticsMobileDeviceID("samsung galaxy tab s8,12"); + public static final SyntheticsMobileDeviceID SAMSUNG_S20_ULTRA_10 = + new SyntheticsMobileDeviceID("samsung s20 ultra,10"); + public static final SyntheticsMobileDeviceID SONY_XPERIA_XZ3_9 = + new SyntheticsMobileDeviceID("sony xperia xz3,9"); + public static final SyntheticsMobileDeviceID XIAOMI_REDMI_NOTE_10_5G_11 = + new SyntheticsMobileDeviceID("xiaomi redmi note 10 5g,11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_10TH_GEN_2022_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_10TH_GEN_2022_IOS_17 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_17"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_9TH_GEN_2021_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_9th_gen_2021_ios_15"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_AIR_2022_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_air_2022_ios_15"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_MINI_5TH_GEN_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_mini_5th_gen_ios_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_MINI_6TH_GEN_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_mini_6th_gen_ios_15"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_11_2022_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_pro_11_2022_ios_16"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2020_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_pro_12_9_2020_ios_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2021_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_pro_12_9_2021_ios_15"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPAD_PRO_12_9_2022_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_ipad_pro_12_9_2022_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_11_ios_14"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_11_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_11_PRO_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_11_pro_ios_15"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_12_ios_14"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_12_ios_15"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_12_ios_16"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_MINI_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_12_mini_ios_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_MINI_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_12_mini_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_PRO_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_12_pro_ios_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_12_PRO_MAX_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_12_pro_max_ios_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_MINI_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_13_mini_ios_15"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_MINI_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_13_mini_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_13_pro_ios_15"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_MAX_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_13_pro_max_ios_15"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_13_PRO_MAX_IOS_17 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_13_pro_max_ios_17"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_14_ios_16"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PLUS_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_14_plus_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_14_pro_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_IOS_17 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_14_pro_ios_17"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_14_PRO_MAX_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_14_pro_max_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_6_IOS_12 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_6_ios_12"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_8_IOS_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_8_ios_13"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_8_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_8_ios_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_SE_2022_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_se_2022_ios_15"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_APPLE_IPHONE_SE_2022_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:apple_iphone_se_2022_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GALAXY_A5_ANDROID_8 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:galaxy_a5_android_8"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GALAXY_NOTE5_ANDROID_7 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:galaxy_note5_android_7"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_3A_XL_ANDROID_11 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_3a_xl_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4_UNLOCKED_ANDROID_11 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:google_pixel_4_unlocked_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4_XL_UNLOCKED_ANDROID_10 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:google_pixel_4_xl_unlocked_android_10"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_4A_ANDROID_11 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_4a_android_11"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6_ANDROID_12 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_6_android_12"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6_PRO_ANDROID_12 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_6_pro_android_12"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_6A_ANDROID_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_6a_android_13"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_ANDROID_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_7_android_13"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_ANDROID_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_7_android_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_7_PRO_ANDROID_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_7_pro_android_13"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_8_ANDROID_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_8_android_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_GOOGLE_PIXEL_8_PRO_ANDROID_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:google_pixel_8_pro_android_14"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPAD_AIR_2_IOS_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:ipad_air_2_ios_13"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_IPAD_AIR_4TH_GEN_2020_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:ipad_air_4th_gen_2020_ios_14"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_13_IOS_15 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_13_ios_15"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_13_IOS_16 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_13_ios_16"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_15_IOS_17 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_15_ios_17"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_15_PRO_IOS_17 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_15_pro_ios_17"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_15_PRO_MAX_IOS_17 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_15_pro_max_ios_17"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_SE_2020_IOS_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_se_2020_ios_13"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_SE_2020_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_se_2020_ios_14"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_X_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_x_ios_14"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_XR_IOS_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_xr_ios_14"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_IPHONE_XS_IOS_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:iphone_xs_ios_13"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_LG_STYLO_6_ANDROID_10 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:lg_stylo_6_android_10"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_PIXEL_5_ANDROID_12 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:pixel_5_android_12"); + public static final SyntheticsMobileDeviceID SYNTHETICS_MOBILE_DEVICE_SAMSUNG_A51_ANDROID_10 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_a51_android_10"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_A71_ANDROID_11 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_a71_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_NOTE20_ANDROID_11 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_note20_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ANDROID_11 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_s21_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ANDROID_12 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_s21_android_12"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_PLUS_ANDROID_11 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_s21_plus_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S21_ULTRA_ANDROID_11 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_s21_ultra_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_5G_ANDROID_12 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_s22_5g_android_12"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_5G_ANDROID_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_s22_5g_android_13"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_PLUS_5G_ANDROID_12 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_s22_plus_5g_android_12"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S22_ULTRA_5G_ANDROID_12 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_s22_ultra_5g_android_12"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ANDROID_13 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_s23_android_13"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ANDROID_14 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_s23_android_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_PLUS_ANDROID_13 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_s23_plus_android_13"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_PLUS_ANDROID_14 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_s23_plus_android_14"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_S23_ULTRA_ANDROID_13 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_s23_ultra_android_13"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_A_10_1_ANDROID_7 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:samsung_galaxy_tab_a_10_1_android_7"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_S7_ANDROID_11 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_tab_s7_android_11"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_SAMSUNG_GALAXY_TAB_S8_ANDROID_12 = + new SyntheticsMobileDeviceID("synthetics:mobile:device:samsung_galaxy_tab_s8_android_12"); + public static final SyntheticsMobileDeviceID + SYNTHETICS_MOBILE_DEVICE_XIAOMI_REDMI_NOTE_10_5G_ANDROID_11 = + new SyntheticsMobileDeviceID( + "synthetics:mobile:device:xiaomi_redmi_note_10_5g_android_11"); + + SyntheticsMobileDeviceID(String value) { + super(value, allowedValues); + } + + public static class SyntheticsMobileDeviceIDSerializer + extends StdSerializer { + public SyntheticsMobileDeviceIDSerializer(Class t) { + super(t); + } + + public SyntheticsMobileDeviceIDSerializer() { + this(null); + } + + @Override + public void serialize( + SyntheticsMobileDeviceID value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static SyntheticsMobileDeviceID fromValue(String value) { + return new SyntheticsMobileDeviceID(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTest.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTest.java index a0fed4c3bb5..15c710ed0a1 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTest.java @@ -41,7 +41,7 @@ public class SyntheticsMobileTest { private SyntheticsMobileTestConfig config; public static final String JSON_PROPERTY_DEVICE_IDS = "device_ids"; - private List deviceIds = null; + private List deviceIds = null; public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; @@ -110,16 +110,17 @@ public void setConfig(SyntheticsMobileTestConfig config) { this.config = config; } - public SyntheticsMobileTest deviceIds(List deviceIds) { + public SyntheticsMobileTest deviceIds(List deviceIds) { this.deviceIds = deviceIds; return this; } - public SyntheticsMobileTest addDeviceIdsItem(String deviceIdsItem) { + public SyntheticsMobileTest addDeviceIdsItem(SyntheticsMobileDeviceID deviceIdsItem) { if (this.deviceIds == null) { this.deviceIds = new ArrayList<>(); } this.deviceIds.add(deviceIdsItem); + this.unparsed |= !deviceIdsItem.isValid(); return this; } @@ -131,11 +132,11 @@ public SyntheticsMobileTest addDeviceIdsItem(String deviceIdsItem) { @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEVICE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDeviceIds() { + public List getDeviceIds() { return deviceIds; } - public void setDeviceIds(List deviceIds) { + public void setDeviceIds(List deviceIds) { this.deviceIds = deviceIds; } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTestOptions.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTestOptions.java index 84fed738a80..d6ade37b785 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTestOptions.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsMobileTestOptions.java @@ -55,7 +55,7 @@ public class SyntheticsMobileTestOptions { private Integer defaultStepTimeout; public static final String JSON_PROPERTY_DEVICE_IDS = "device_ids"; - private List deviceIds = null; + private List deviceIds = null; public static final String JSON_PROPERTY_DISABLE_AUTO_ACCEPT_ALERT = "disableAutoAcceptAlert"; private Boolean disableAutoAcceptAlert; @@ -191,16 +191,17 @@ public void setDefaultStepTimeout(Integer defaultStepTimeout) { this.defaultStepTimeout = defaultStepTimeout; } - public SyntheticsMobileTestOptions deviceIds(List deviceIds) { + public SyntheticsMobileTestOptions deviceIds(List deviceIds) { this.deviceIds = deviceIds; return this; } - public SyntheticsMobileTestOptions addDeviceIdsItem(String deviceIdsItem) { + public SyntheticsMobileTestOptions addDeviceIdsItem(SyntheticsMobileDeviceID deviceIdsItem) { if (this.deviceIds == null) { this.deviceIds = new ArrayList<>(); } this.deviceIds.add(deviceIdsItem); + this.unparsed |= !deviceIdsItem.isValid(); return this; } @@ -212,11 +213,11 @@ public SyntheticsMobileTestOptions addDeviceIdsItem(String deviceIdsItem) { @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEVICE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDeviceIds() { + public List getDeviceIds() { return deviceIds; } - public void setDeviceIds(List deviceIds) { + public void setDeviceIds(List deviceIds) { this.deviceIds = deviceIds; } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetailsType.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetailsType.java index 41e5361339c..1a89c98fbad 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetailsType.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetailsType.java @@ -23,11 +23,10 @@ public class SyntheticsTestDetailsType extends ModelEnum { private static final Set allowedValues = - new HashSet(Arrays.asList("api", "browser", "mobile")); + new HashSet(Arrays.asList("api", "browser")); public static final SyntheticsTestDetailsType API = new SyntheticsTestDetailsType("api"); public static final SyntheticsTestDetailsType BROWSER = new SyntheticsTestDetailsType("browser"); - public static final SyntheticsTestDetailsType MOBILE = new SyntheticsTestDetailsType("mobile"); SyntheticsTestDetailsType(String value) { super(value, allowedValues); diff --git a/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetStacked.java b/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetStacked.java index c449f26cec2..58e853d9ca3 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetStacked.java +++ b/src/main/java/com/datadog/api/client/v1/model/ToplistWidgetStacked.java @@ -36,7 +36,10 @@ public ToplistWidgetStacked() {} @JsonCreator public ToplistWidgetStacked( + @JsonProperty(required = true, value = JSON_PROPERTY_LEGEND) ToplistWidgetLegend legend, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) ToplistWidgetStackedType type) { + this.legend = legend; + this.unparsed |= !legend.isValid(); this.type = type; this.unparsed |= !type.isValid(); } @@ -52,9 +55,8 @@ public ToplistWidgetStacked legend(ToplistWidgetLegend legend) { * * @return legend */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LEGEND) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public ToplistWidgetLegend getLegend() { return legend; } diff --git a/src/main/java/com/datadog/api/client/v2/api/MicrosoftTeamsIntegrationApi.java b/src/main/java/com/datadog/api/client/v2/api/MicrosoftTeamsIntegrationApi.java index 825ac8fe990..57f62c6b509 100644 --- a/src/main/java/com/datadog/api/client/v2/api/MicrosoftTeamsIntegrationApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/MicrosoftTeamsIntegrationApi.java @@ -4,11 +4,12 @@ import com.datadog.api.client.ApiException; import com.datadog.api.client.ApiResponse; import com.datadog.api.client.Pair; -import com.datadog.api.client.v2.model.MicrosoftTeamsCreateTenantBasedHandleRequest; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandleInfoResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsApiHandlesResponse; +import com.datadog.api.client.v2.model.MicrosoftTeamsCreateApiHandleRequest; +import com.datadog.api.client.v2.model.MicrosoftTeamsCreateApiHandleResponse; import com.datadog.api.client.v2.model.MicrosoftTeamsGetChannelByNameResponse; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandleResponse; -import com.datadog.api.client.v2.model.MicrosoftTeamsTenantBasedHandlesResponse; -import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateTenantBasedHandleRequest; +import com.datadog.api.client.v2.model.MicrosoftTeamsUpdateApiHandleRequest; import jakarta.ws.rs.client.Invocation; import jakarta.ws.rs.core.GenericType; import java.util.ArrayList; @@ -49,30 +50,30 @@ public void setApiClient(ApiClient apiClient) { } /** - * Create tenant-based handle. + * Create handle. * - *

    See {@link #createTenantBasedHandleWithHttpInfo}. + *

    See {@link #createApiHandleWithHttpInfo}. * - * @param body Tenant-based handle payload. (required) - * @return MicrosoftTeamsTenantBasedHandleResponse + * @param body Handle payload. (required) + * @return MicrosoftTeamsCreateApiHandleResponse * @throws ApiException if fails to make API call */ - public MicrosoftTeamsTenantBasedHandleResponse createTenantBasedHandle( - MicrosoftTeamsCreateTenantBasedHandleRequest body) throws ApiException { - return createTenantBasedHandleWithHttpInfo(body).getData(); + public MicrosoftTeamsCreateApiHandleResponse createApiHandle( + MicrosoftTeamsCreateApiHandleRequest body) throws ApiException { + return createApiHandleWithHttpInfo(body).getData(); } /** - * Create tenant-based handle. + * Create handle. * - *

    See {@link #createTenantBasedHandleWithHttpInfoAsync}. + *

    See {@link #createApiHandleWithHttpInfoAsync}. * - * @param body Tenant-based handle payload. (required) - * @return CompletableFuture<MicrosoftTeamsTenantBasedHandleResponse> + * @param body Handle payload. (required) + * @return CompletableFuture<MicrosoftTeamsCreateApiHandleResponse> */ - public CompletableFuture createTenantBasedHandleAsync( - MicrosoftTeamsCreateTenantBasedHandleRequest body) { - return createTenantBasedHandleWithHttpInfoAsync(body) + public CompletableFuture createApiHandleAsync( + MicrosoftTeamsCreateApiHandleRequest body) { + return createApiHandleWithHttpInfoAsync(body) .thenApply( response -> { return response.getData(); @@ -80,10 +81,10 @@ public CompletableFuture createTenantBa } /** - * Create a tenant-based handle in the Datadog Microsoft Teams integration. + * Create a handle in the Datadog Microsoft Teams integration. * - * @param body Tenant-based handle payload. (required) - * @return ApiResponse<MicrosoftTeamsTenantBasedHandleResponse> + * @param body Handle payload. (required) + * @return ApiResponse<MicrosoftTeamsCreateApiHandleResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -98,14 +99,14 @@ public CompletableFuture createTenantBa * *
    429 Too many requests -
    */ - public ApiResponse createTenantBasedHandleWithHttpInfo( - MicrosoftTeamsCreateTenantBasedHandleRequest body) throws ApiException { + public ApiResponse createApiHandleWithHttpInfo( + MicrosoftTeamsCreateApiHandleRequest body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'body' is set if (body == null) { throw new ApiException( - 400, "Missing the required parameter 'body' when calling createTenantBasedHandle"); + 400, "Missing the required parameter 'body' when calling createApiHandle"); } // create path and map variables String localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles"; @@ -114,7 +115,7 @@ public ApiResponse createTenantBasedHan Invocation.Builder builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.createTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.createApiHandle", localVarPath, new ArrayList(), localVarHeaderParams, @@ -129,28 +130,28 @@ public ApiResponse createTenantBasedHan localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Create tenant-based handle. + * Create handle. * - *

    See {@link #createTenantBasedHandleWithHttpInfo}. + *

    See {@link #createApiHandleWithHttpInfo}. * - * @param body Tenant-based handle payload. (required) - * @return CompletableFuture<ApiResponse<MicrosoftTeamsTenantBasedHandleResponse>> + * @param body Handle payload. (required) + * @return CompletableFuture<ApiResponse<MicrosoftTeamsCreateApiHandleResponse>> */ - public CompletableFuture> - createTenantBasedHandleWithHttpInfoAsync(MicrosoftTeamsCreateTenantBasedHandleRequest body) { + public CompletableFuture> + createApiHandleWithHttpInfoAsync(MicrosoftTeamsCreateApiHandleRequest body) { Object localVarPostBody = body; // verify the required parameter 'body' is set if (body == null) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, "Missing the required parameter 'body' when calling createTenantBasedHandle")); + 400, "Missing the required parameter 'body' when calling createApiHandle")); return result; } // create path and map variables @@ -162,7 +163,7 @@ public ApiResponse createTenantBasedHan try { builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.createTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.createApiHandle", localVarPath, new ArrayList(), localVarHeaderParams, @@ -170,7 +171,7 @@ public ApiResponse createTenantBasedHan new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -183,31 +184,31 @@ public ApiResponse createTenantBasedHan localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Delete tenant-based handle. + * Delete handle. * - *

    See {@link #deleteTenantBasedHandleWithHttpInfo}. + *

    See {@link #deleteApiHandleWithHttpInfo}. * - * @param handleId Your tenant-based handle id. (required) + * @param handleId Your handle id. (required) * @throws ApiException if fails to make API call */ - public void deleteTenantBasedHandle(String handleId) throws ApiException { - deleteTenantBasedHandleWithHttpInfo(handleId); + public void deleteApiHandle(String handleId) throws ApiException { + deleteApiHandleWithHttpInfo(handleId); } /** - * Delete tenant-based handle. + * Delete handle. * - *

    See {@link #deleteTenantBasedHandleWithHttpInfoAsync}. + *

    See {@link #deleteApiHandleWithHttpInfoAsync}. * - * @param handleId Your tenant-based handle id. (required) + * @param handleId Your handle id. (required) * @return CompletableFuture */ - public CompletableFuture deleteTenantBasedHandleAsync(String handleId) { - return deleteTenantBasedHandleWithHttpInfoAsync(handleId) + public CompletableFuture deleteApiHandleAsync(String handleId) { + return deleteApiHandleWithHttpInfoAsync(handleId) .thenApply( response -> { return response.getData(); @@ -215,9 +216,9 @@ public CompletableFuture deleteTenantBasedHandleAsync(String handleId) { } /** - * Delete a tenant-based handle from the Datadog Microsoft Teams integration. + * Delete a handle from the Datadog Microsoft Teams integration. * - * @param handleId Your tenant-based handle id. (required) + * @param handleId Your handle id. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -231,14 +232,13 @@ public CompletableFuture deleteTenantBasedHandleAsync(String handleId) { * 429 Too many requests - * */ - public ApiResponse deleteTenantBasedHandleWithHttpInfo(String handleId) - throws ApiException { + public ApiResponse deleteApiHandleWithHttpInfo(String handleId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'handleId' is set if (handleId == null) { throw new ApiException( - 400, "Missing the required parameter 'handleId' when calling deleteTenantBasedHandle"); + 400, "Missing the required parameter 'handleId' when calling deleteApiHandle"); } // create path and map variables String localVarPath = @@ -249,7 +249,7 @@ public ApiResponse deleteTenantBasedHandleWithHttpInfo(String handleId) Invocation.Builder builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.deleteTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.deleteApiHandle", localVarPath, new ArrayList(), localVarHeaderParams, @@ -268,15 +268,14 @@ public ApiResponse deleteTenantBasedHandleWithHttpInfo(String handleId) } /** - * Delete tenant-based handle. + * Delete handle. * - *

    See {@link #deleteTenantBasedHandleWithHttpInfo}. + *

    See {@link #deleteApiHandleWithHttpInfo}. * - * @param handleId Your tenant-based handle id. (required) + * @param handleId Your handle id. (required) * @return CompletableFuture<ApiResponse<Void>> */ - public CompletableFuture> deleteTenantBasedHandleWithHttpInfoAsync( - String handleId) { + public CompletableFuture> deleteApiHandleWithHttpInfoAsync(String handleId) { Object localVarPostBody = null; // verify the required parameter 'handleId' is set @@ -284,8 +283,7 @@ public CompletableFuture> deleteTenantBasedHandleWithHttpInfoA CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, - "Missing the required parameter 'handleId' when calling deleteTenantBasedHandle")); + 400, "Missing the required parameter 'handleId' when calling deleteApiHandle")); return result; } // create path and map variables @@ -299,7 +297,7 @@ public CompletableFuture> deleteTenantBasedHandleWithHttpInfoA try { builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.deleteTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.deleteApiHandle", localVarPath, new ArrayList(), localVarHeaderParams, @@ -323,34 +321,28 @@ public CompletableFuture> deleteTenantBasedHandleWithHttpInfoA } /** - * Get channel information by name. + * Get handle information. * - *

    See {@link #getChannelByNameWithHttpInfo}. + *

    See {@link #getApiHandleWithHttpInfo}. * - * @param tenantName Your tenant name. (required) - * @param teamName Your team name. (required) - * @param channelName Your channel name. (required) - * @return MicrosoftTeamsGetChannelByNameResponse + * @param handleId Your handle id. (required) + * @return MicrosoftTeamsApiHandleInfoResponse * @throws ApiException if fails to make API call */ - public MicrosoftTeamsGetChannelByNameResponse getChannelByName( - String tenantName, String teamName, String channelName) throws ApiException { - return getChannelByNameWithHttpInfo(tenantName, teamName, channelName).getData(); + public MicrosoftTeamsApiHandleInfoResponse getApiHandle(String handleId) throws ApiException { + return getApiHandleWithHttpInfo(handleId).getData(); } /** - * Get channel information by name. + * Get handle information. * - *

    See {@link #getChannelByNameWithHttpInfoAsync}. + *

    See {@link #getApiHandleWithHttpInfoAsync}. * - * @param tenantName Your tenant name. (required) - * @param teamName Your team name. (required) - * @param channelName Your channel name. (required) - * @return CompletableFuture<MicrosoftTeamsGetChannelByNameResponse> + * @param handleId Your handle id. (required) + * @return CompletableFuture<MicrosoftTeamsApiHandleInfoResponse> */ - public CompletableFuture getChannelByNameAsync( - String tenantName, String teamName, String channelName) { - return getChannelByNameWithHttpInfoAsync(tenantName, teamName, channelName) + public CompletableFuture getApiHandleAsync(String handleId) { + return getApiHandleWithHttpInfoAsync(handleId) .thenApply( response -> { return response.getData(); @@ -358,12 +350,11 @@ public CompletableFuture getChannelByNam } /** - * Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration. + * Get the tenant, team, and channel information of a handle from the Datadog Microsoft Teams + * integration. * - * @param tenantName Your tenant name. (required) - * @param teamName Your team name. (required) - * @param channelName Your channel name. (required) - * @return ApiResponse<MicrosoftTeamsGetChannelByNameResponse> + * @param handleId Your handle id. (required) + * @return ApiResponse<MicrosoftTeamsApiHandleInfoResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -373,44 +364,29 @@ public CompletableFuture getChannelByNam * * * + * * *
    400 Bad Request -
    403 Forbidden -
    404 Not Found -
    412 Failed Precondition -
    429 Too many requests -
    */ - public ApiResponse getChannelByNameWithHttpInfo( - String tenantName, String teamName, String channelName) throws ApiException { + public ApiResponse getApiHandleWithHttpInfo(String handleId) + throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'tenantName' is set - if (tenantName == null) { - throw new ApiException( - 400, "Missing the required parameter 'tenantName' when calling getChannelByName"); - } - - // verify the required parameter 'teamName' is set - if (teamName == null) { - throw new ApiException( - 400, "Missing the required parameter 'teamName' when calling getChannelByName"); - } - - // verify the required parameter 'channelName' is set - if (channelName == null) { + // verify the required parameter 'handleId' is set + if (handleId == null) { throw new ApiException( - 400, "Missing the required parameter 'channelName' when calling getChannelByName"); + 400, "Missing the required parameter 'handleId' when calling getApiHandle"); } // create path and map variables String localVarPath = - "/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}" - .replaceAll( - "\\{" + "tenant_name" + "\\}", apiClient.escapeString(tenantName.toString())) - .replaceAll("\\{" + "team_name" + "\\}", apiClient.escapeString(teamName.toString())) - .replaceAll( - "\\{" + "channel_name" + "\\}", apiClient.escapeString(channelName.toString())); + "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}" + .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString())); Map localVarHeaderParams = new HashMap(); Invocation.Builder builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.getChannelByName", + "v2.MicrosoftTeamsIntegrationApi.getApiHandle", localVarPath, new ArrayList(), localVarHeaderParams, @@ -425,60 +401,178 @@ public ApiResponse getChannelByNameWithH localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get channel information by name. + * Get handle information. * - *

    See {@link #getChannelByNameWithHttpInfo}. + *

    See {@link #getApiHandleWithHttpInfo}. * - * @param tenantName Your tenant name. (required) - * @param teamName Your team name. (required) - * @param channelName Your channel name. (required) - * @return CompletableFuture<ApiResponse<MicrosoftTeamsGetChannelByNameResponse>> + * @param handleId Your handle id. (required) + * @return CompletableFuture<ApiResponse<MicrosoftTeamsApiHandleInfoResponse>> */ - public CompletableFuture> - getChannelByNameWithHttpInfoAsync(String tenantName, String teamName, String channelName) { + public CompletableFuture> + getApiHandleWithHttpInfoAsync(String handleId) { Object localVarPostBody = null; - // verify the required parameter 'tenantName' is set - if (tenantName == null) { - CompletableFuture> result = + // verify the required parameter 'handleId' is set + if (handleId == null) { + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, "Missing the required parameter 'tenantName' when calling getChannelByName")); + 400, "Missing the required parameter 'handleId' when calling getApiHandle")); return result; } + // create path and map variables + String localVarPath = + "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}" + .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString())); - // verify the required parameter 'teamName' is set - if (teamName == null) { - CompletableFuture> result = + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.MicrosoftTeamsIntegrationApi.getApiHandle", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, "Missing the required parameter 'teamName' when calling getChannelByName")); + result.completeExceptionally(ex); return result; } + return apiClient.invokeAPIAsync( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } - // verify the required parameter 'channelName' is set - if (channelName == null) { - CompletableFuture> result = + /** + * Get handle information by name. + * + *

    See {@link #getApiHandleByNameWithHttpInfo}. + * + * @param handleName Your handle name. (required) + * @return MicrosoftTeamsApiHandleInfoResponse + * @throws ApiException if fails to make API call + */ + public MicrosoftTeamsApiHandleInfoResponse getApiHandleByName(String handleName) + throws ApiException { + return getApiHandleByNameWithHttpInfo(handleName).getData(); + } + + /** + * Get handle information by name. + * + *

    See {@link #getApiHandleByNameWithHttpInfoAsync}. + * + * @param handleName Your handle name. (required) + * @return CompletableFuture<MicrosoftTeamsApiHandleInfoResponse> + */ + public CompletableFuture getApiHandleByNameAsync( + String handleName) { + return getApiHandleByNameWithHttpInfoAsync(handleName) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Get the tenant, team, and channel information of a handle by name from the Datadog Microsoft + * Teams integration. + * + * @param handleName Your handle name. (required) + * @return ApiResponse<MicrosoftTeamsApiHandleInfoResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + * + * + *
    Response details
    Status Code Description Response Headers
    200 OK -
    400 Bad Request -
    403 Forbidden -
    404 Not Found -
    412 Failed Precondition -
    429 Too many requests -
    + */ + public ApiResponse getApiHandleByNameWithHttpInfo( + String handleName) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'handleName' is set + if (handleName == null) { + throw new ApiException( + 400, "Missing the required parameter 'handleName' when calling getApiHandleByName"); + } + // create path and map variables + String localVarPath = + "/api/v2/integration/ms-teams/configuration/tenant-based-handles/name/{handle_name}" + .replaceAll( + "\\{" + "handle_name" + "\\}", apiClient.escapeString(handleName.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.MicrosoftTeamsIntegrationApi.getApiHandleByName", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth"}); + return apiClient.invokeAPI( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get handle information by name. + * + *

    See {@link #getApiHandleByNameWithHttpInfo}. + * + * @param handleName Your handle name. (required) + * @return CompletableFuture<ApiResponse<MicrosoftTeamsApiHandleInfoResponse>> + */ + public CompletableFuture> + getApiHandleByNameWithHttpInfoAsync(String handleName) { + Object localVarPostBody = null; + + // verify the required parameter 'handleName' is set + if (handleName == null) { + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, "Missing the required parameter 'channelName' when calling getChannelByName")); + 400, "Missing the required parameter 'handleName' when calling getApiHandleByName")); return result; } // create path and map variables String localVarPath = - "/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}" + "/api/v2/integration/ms-teams/configuration/tenant-based-handles/name/{handle_name}" .replaceAll( - "\\{" + "tenant_name" + "\\}", apiClient.escapeString(tenantName.toString())) - .replaceAll("\\{" + "team_name" + "\\}", apiClient.escapeString(teamName.toString())) - .replaceAll( - "\\{" + "channel_name" + "\\}", apiClient.escapeString(channelName.toString())); + "\\{" + "handle_name" + "\\}", apiClient.escapeString(handleName.toString())); Map localVarHeaderParams = new HashMap(); @@ -486,7 +580,7 @@ public ApiResponse getChannelByNameWithH try { builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.getChannelByName", + "v2.MicrosoftTeamsIntegrationApi.getApiHandleByName", localVarPath, new ArrayList(), localVarHeaderParams, @@ -494,7 +588,7 @@ public ApiResponse getChannelByNameWithH new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -507,34 +601,38 @@ public ApiResponse getChannelByNameWithH localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get tenant-based handle information. + * Get channel information by name. * - *

    See {@link #getTenantBasedHandleWithHttpInfo}. + *

    See {@link #getChannelByNameWithHttpInfo}. * - * @param handleId Your tenant-based handle id. (required) - * @return MicrosoftTeamsTenantBasedHandleResponse + * @param tenantName Your tenant name. (required) + * @param teamName Your team name. (required) + * @param channelName Your channel name. (required) + * @return MicrosoftTeamsGetChannelByNameResponse * @throws ApiException if fails to make API call */ - public MicrosoftTeamsTenantBasedHandleResponse getTenantBasedHandle(String handleId) - throws ApiException { - return getTenantBasedHandleWithHttpInfo(handleId).getData(); + public MicrosoftTeamsGetChannelByNameResponse getChannelByName( + String tenantName, String teamName, String channelName) throws ApiException { + return getChannelByNameWithHttpInfo(tenantName, teamName, channelName).getData(); } /** - * Get tenant-based handle information. + * Get channel information by name. * - *

    See {@link #getTenantBasedHandleWithHttpInfoAsync}. + *

    See {@link #getChannelByNameWithHttpInfoAsync}. * - * @param handleId Your tenant-based handle id. (required) - * @return CompletableFuture<MicrosoftTeamsTenantBasedHandleResponse> + * @param tenantName Your tenant name. (required) + * @param teamName Your team name. (required) + * @param channelName Your channel name. (required) + * @return CompletableFuture<MicrosoftTeamsGetChannelByNameResponse> */ - public CompletableFuture getTenantBasedHandleAsync( - String handleId) { - return getTenantBasedHandleWithHttpInfoAsync(handleId) + public CompletableFuture getChannelByNameAsync( + String tenantName, String teamName, String channelName) { + return getChannelByNameWithHttpInfoAsync(tenantName, teamName, channelName) .thenApply( response -> { return response.getData(); @@ -542,11 +640,12 @@ public CompletableFuture getTenantBased } /** - * Get the tenant, team, and channel information of a tenant-based handle from the Datadog - * Microsoft Teams integration. + * Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration. * - * @param handleId Your tenant-based handle id. (required) - * @return ApiResponse<MicrosoftTeamsTenantBasedHandleResponse> + * @param tenantName Your tenant name. (required) + * @param teamName Your team name. (required) + * @param channelName Your channel name. (required) + * @return ApiResponse<MicrosoftTeamsGetChannelByNameResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -556,29 +655,44 @@ public CompletableFuture getTenantBased * * * - * * *
    400 Bad Request -
    403 Forbidden -
    404 Not Found -
    412 Failed Precondition -
    429 Too many requests -
    */ - public ApiResponse getTenantBasedHandleWithHttpInfo( - String handleId) throws ApiException { + public ApiResponse getChannelByNameWithHttpInfo( + String tenantName, String teamName, String channelName) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'handleId' is set - if (handleId == null) { + // verify the required parameter 'tenantName' is set + if (tenantName == null) { throw new ApiException( - 400, "Missing the required parameter 'handleId' when calling getTenantBasedHandle"); + 400, "Missing the required parameter 'tenantName' when calling getChannelByName"); + } + + // verify the required parameter 'teamName' is set + if (teamName == null) { + throw new ApiException( + 400, "Missing the required parameter 'teamName' when calling getChannelByName"); + } + + // verify the required parameter 'channelName' is set + if (channelName == null) { + throw new ApiException( + 400, "Missing the required parameter 'channelName' when calling getChannelByName"); } // create path and map variables String localVarPath = - "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}" - .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString())); + "/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}" + .replaceAll( + "\\{" + "tenant_name" + "\\}", apiClient.escapeString(tenantName.toString())) + .replaceAll("\\{" + "team_name" + "\\}", apiClient.escapeString(teamName.toString())) + .replaceAll( + "\\{" + "channel_name" + "\\}", apiClient.escapeString(channelName.toString())); Map localVarHeaderParams = new HashMap(); Invocation.Builder builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.getTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.getChannelByName", localVarPath, new ArrayList(), localVarHeaderParams, @@ -593,34 +707,60 @@ public ApiResponse getTenantBasedHandle localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get tenant-based handle information. + * Get channel information by name. * - *

    See {@link #getTenantBasedHandleWithHttpInfo}. + *

    See {@link #getChannelByNameWithHttpInfo}. * - * @param handleId Your tenant-based handle id. (required) - * @return CompletableFuture<ApiResponse<MicrosoftTeamsTenantBasedHandleResponse>> + * @param tenantName Your tenant name. (required) + * @param teamName Your team name. (required) + * @param channelName Your channel name. (required) + * @return CompletableFuture<ApiResponse<MicrosoftTeamsGetChannelByNameResponse>> */ - public CompletableFuture> - getTenantBasedHandleWithHttpInfoAsync(String handleId) { + public CompletableFuture> + getChannelByNameWithHttpInfoAsync(String tenantName, String teamName, String channelName) { Object localVarPostBody = null; - // verify the required parameter 'handleId' is set - if (handleId == null) { - CompletableFuture> result = + // verify the required parameter 'tenantName' is set + if (tenantName == null) { + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, "Missing the required parameter 'handleId' when calling getTenantBasedHandle")); + 400, "Missing the required parameter 'tenantName' when calling getChannelByName")); + return result; + } + + // verify the required parameter 'teamName' is set + if (teamName == null) { + CompletableFuture> result = + new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'teamName' when calling getChannelByName")); + return result; + } + + // verify the required parameter 'channelName' is set + if (channelName == null) { + CompletableFuture> result = + new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'channelName' when calling getChannelByName")); return result; } // create path and map variables String localVarPath = - "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}" - .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString())); + "/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}" + .replaceAll( + "\\{" + "tenant_name" + "\\}", apiClient.escapeString(tenantName.toString())) + .replaceAll("\\{" + "team_name" + "\\}", apiClient.escapeString(teamName.toString())) + .replaceAll( + "\\{" + "channel_name" + "\\}", apiClient.escapeString(channelName.toString())); Map localVarHeaderParams = new HashMap(); @@ -628,7 +768,7 @@ public ApiResponse getTenantBasedHandle try { builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.getTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.getChannelByName", localVarPath, new ArrayList(), localVarHeaderParams, @@ -636,7 +776,7 @@ public ApiResponse getTenantBasedHandle new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -649,59 +789,46 @@ public ApiResponse getTenantBasedHandle localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } - /** Manage optional parameters to listTenantBasedHandles. */ - public static class ListTenantBasedHandlesOptionalParameters { + /** Manage optional parameters to listApiHandles. */ + public static class ListApiHandlesOptionalParameters { private String tenantId; - private String name; /** * Set tenantId. * * @param tenantId Your tenant id. (optional) - * @return ListTenantBasedHandlesOptionalParameters + * @return ListApiHandlesOptionalParameters */ - public ListTenantBasedHandlesOptionalParameters tenantId(String tenantId) { + public ListApiHandlesOptionalParameters tenantId(String tenantId) { this.tenantId = tenantId; return this; } - - /** - * Set name. - * - * @param name Your tenant-based handle name. (optional) - * @return ListTenantBasedHandlesOptionalParameters - */ - public ListTenantBasedHandlesOptionalParameters name(String name) { - this.name = name; - return this; - } } /** - * Get all tenant-based handles. + * Get all handles. * - *

    See {@link #listTenantBasedHandlesWithHttpInfo}. + *

    See {@link #listApiHandlesWithHttpInfo}. * - * @return MicrosoftTeamsTenantBasedHandlesResponse + * @return MicrosoftTeamsApiHandlesResponse * @throws ApiException if fails to make API call */ - public MicrosoftTeamsTenantBasedHandlesResponse listTenantBasedHandles() throws ApiException { - return listTenantBasedHandlesWithHttpInfo(new ListTenantBasedHandlesOptionalParameters()) - .getData(); + public MicrosoftTeamsApiHandlesResponse listApiHandles() throws ApiException { + return listApiHandlesWithHttpInfo(new ListApiHandlesOptionalParameters()).getData(); } /** - * Get all tenant-based handles. + * Get all handles. * - *

    See {@link #listTenantBasedHandlesWithHttpInfoAsync}. + *

    See {@link #listApiHandlesWithHttpInfoAsync}. * - * @return CompletableFuture<MicrosoftTeamsTenantBasedHandlesResponse> + * @return CompletableFuture<MicrosoftTeamsApiHandlesResponse> */ - public CompletableFuture listTenantBasedHandlesAsync() { - return listTenantBasedHandlesWithHttpInfoAsync(new ListTenantBasedHandlesOptionalParameters()) + public CompletableFuture listApiHandlesAsync() { + return listApiHandlesWithHttpInfoAsync(new ListApiHandlesOptionalParameters()) .thenApply( response -> { return response.getData(); @@ -709,30 +836,30 @@ public CompletableFuture listTenantBas } /** - * Get all tenant-based handles. + * Get all handles. * - *

    See {@link #listTenantBasedHandlesWithHttpInfo}. + *

    See {@link #listApiHandlesWithHttpInfo}. * * @param parameters Optional parameters for the request. - * @return MicrosoftTeamsTenantBasedHandlesResponse + * @return MicrosoftTeamsApiHandlesResponse * @throws ApiException if fails to make API call */ - public MicrosoftTeamsTenantBasedHandlesResponse listTenantBasedHandles( - ListTenantBasedHandlesOptionalParameters parameters) throws ApiException { - return listTenantBasedHandlesWithHttpInfo(parameters).getData(); + public MicrosoftTeamsApiHandlesResponse listApiHandles( + ListApiHandlesOptionalParameters parameters) throws ApiException { + return listApiHandlesWithHttpInfo(parameters).getData(); } /** - * Get all tenant-based handles. + * Get all handles. * - *

    See {@link #listTenantBasedHandlesWithHttpInfoAsync}. + *

    See {@link #listApiHandlesWithHttpInfoAsync}. * * @param parameters Optional parameters for the request. - * @return CompletableFuture<MicrosoftTeamsTenantBasedHandlesResponse> + * @return CompletableFuture<MicrosoftTeamsApiHandlesResponse> */ - public CompletableFuture listTenantBasedHandlesAsync( - ListTenantBasedHandlesOptionalParameters parameters) { - return listTenantBasedHandlesWithHttpInfoAsync(parameters) + public CompletableFuture listApiHandlesAsync( + ListApiHandlesOptionalParameters parameters) { + return listApiHandlesWithHttpInfoAsync(parameters) .thenApply( response -> { return response.getData(); @@ -740,10 +867,10 @@ public CompletableFuture listTenantBas } /** - * Get a list of all tenant-based handles from the Datadog Microsoft Teams integration. + * Get a list of all handles from the Datadog Microsoft Teams integration. * * @param parameters Optional parameters for the request. - * @return ApiResponse<MicrosoftTeamsTenantBasedHandlesResponse> + * @return ApiResponse<MicrosoftTeamsApiHandlesResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -757,11 +884,10 @@ public CompletableFuture listTenantBas * *
    429 Too many requests -
    */ - public ApiResponse listTenantBasedHandlesWithHttpInfo( - ListTenantBasedHandlesOptionalParameters parameters) throws ApiException { + public ApiResponse listApiHandlesWithHttpInfo( + ListApiHandlesOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; String tenantId = parameters.tenantId; - String name = parameters.name; // create path and map variables String localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles"; @@ -769,11 +895,10 @@ public ApiResponse listTenantBasedHand Map localVarHeaderParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "tenant_id", tenantId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "name", name)); Invocation.Builder builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.listTenantBasedHandles", + "v2.MicrosoftTeamsIntegrationApi.listApiHandles", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -788,22 +913,21 @@ public ApiResponse listTenantBasedHand localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get all tenant-based handles. + * Get all handles. * - *

    See {@link #listTenantBasedHandlesWithHttpInfo}. + *

    See {@link #listApiHandlesWithHttpInfo}. * * @param parameters Optional parameters for the request. - * @return CompletableFuture<ApiResponse<MicrosoftTeamsTenantBasedHandlesResponse>> + * @return CompletableFuture<ApiResponse<MicrosoftTeamsApiHandlesResponse>> */ - public CompletableFuture> - listTenantBasedHandlesWithHttpInfoAsync(ListTenantBasedHandlesOptionalParameters parameters) { + public CompletableFuture> + listApiHandlesWithHttpInfoAsync(ListApiHandlesOptionalParameters parameters) { Object localVarPostBody = null; String tenantId = parameters.tenantId; - String name = parameters.name; // create path and map variables String localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles"; @@ -811,13 +935,12 @@ public ApiResponse listTenantBasedHand Map localVarHeaderParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "tenant_id", tenantId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "name", name)); Invocation.Builder builder; try { builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.listTenantBasedHandles", + "v2.MicrosoftTeamsIntegrationApi.listApiHandles", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -825,7 +948,7 @@ public ApiResponse listTenantBasedHand new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -838,36 +961,36 @@ public ApiResponse listTenantBasedHand localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Update tenant-based handle. + * Update handle. * - *

    See {@link #updateTenantBasedHandleWithHttpInfo}. + *

    See {@link #updateApiHandleWithHttpInfo}. * - * @param handleId Your tenant-based handle id. (required) - * @param body Tenant-based handle payload. (required) - * @return MicrosoftTeamsTenantBasedHandleResponse + * @param handleId Your handle id. (required) + * @param body Opsgenie service payload. (required) + * @return MicrosoftTeamsApiHandleInfoResponse * @throws ApiException if fails to make API call */ - public MicrosoftTeamsTenantBasedHandleResponse updateTenantBasedHandle( - String handleId, MicrosoftTeamsUpdateTenantBasedHandleRequest body) throws ApiException { - return updateTenantBasedHandleWithHttpInfo(handleId, body).getData(); + public MicrosoftTeamsApiHandleInfoResponse updateApiHandle( + String handleId, MicrosoftTeamsUpdateApiHandleRequest body) throws ApiException { + return updateApiHandleWithHttpInfo(handleId, body).getData(); } /** - * Update tenant-based handle. + * Update handle. * - *

    See {@link #updateTenantBasedHandleWithHttpInfoAsync}. + *

    See {@link #updateApiHandleWithHttpInfoAsync}. * - * @param handleId Your tenant-based handle id. (required) - * @param body Tenant-based handle payload. (required) - * @return CompletableFuture<MicrosoftTeamsTenantBasedHandleResponse> + * @param handleId Your handle id. (required) + * @param body Opsgenie service payload. (required) + * @return CompletableFuture<MicrosoftTeamsApiHandleInfoResponse> */ - public CompletableFuture updateTenantBasedHandleAsync( - String handleId, MicrosoftTeamsUpdateTenantBasedHandleRequest body) { - return updateTenantBasedHandleWithHttpInfoAsync(handleId, body) + public CompletableFuture updateApiHandleAsync( + String handleId, MicrosoftTeamsUpdateApiHandleRequest body) { + return updateApiHandleWithHttpInfoAsync(handleId, body) .thenApply( response -> { return response.getData(); @@ -875,11 +998,11 @@ public CompletableFuture updateTenantBa } /** - * Update a tenant-based handle from the Datadog Microsoft Teams integration. + * Update a handle from the Datadog Microsoft Teams integration. * - * @param handleId Your tenant-based handle id. (required) - * @param body Tenant-based handle payload. (required) - * @return ApiResponse<MicrosoftTeamsTenantBasedHandleResponse> + * @param handleId Your handle id. (required) + * @param body Opsgenie service payload. (required) + * @return ApiResponse<MicrosoftTeamsApiHandleInfoResponse> * @throws ApiException if fails to make API call * @http.response.details * @@ -894,20 +1017,20 @@ public CompletableFuture updateTenantBa * *
    429 Too many requests -
    */ - public ApiResponse updateTenantBasedHandleWithHttpInfo( - String handleId, MicrosoftTeamsUpdateTenantBasedHandleRequest body) throws ApiException { + public ApiResponse updateApiHandleWithHttpInfo( + String handleId, MicrosoftTeamsUpdateApiHandleRequest body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'handleId' is set if (handleId == null) { throw new ApiException( - 400, "Missing the required parameter 'handleId' when calling updateTenantBasedHandle"); + 400, "Missing the required parameter 'handleId' when calling updateApiHandle"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( - 400, "Missing the required parameter 'body' when calling updateTenantBasedHandle"); + 400, "Missing the required parameter 'body' when calling updateApiHandle"); } // create path and map variables String localVarPath = @@ -918,7 +1041,7 @@ public ApiResponse updateTenantBasedHan Invocation.Builder builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.updateTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.updateApiHandle", localVarPath, new ArrayList(), localVarHeaderParams, @@ -933,41 +1056,39 @@ public ApiResponse updateTenantBasedHan localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Update tenant-based handle. + * Update handle. * - *

    See {@link #updateTenantBasedHandleWithHttpInfo}. + *

    See {@link #updateApiHandleWithHttpInfo}. * - * @param handleId Your tenant-based handle id. (required) - * @param body Tenant-based handle payload. (required) - * @return CompletableFuture<ApiResponse<MicrosoftTeamsTenantBasedHandleResponse>> + * @param handleId Your handle id. (required) + * @param body Opsgenie service payload. (required) + * @return CompletableFuture<ApiResponse<MicrosoftTeamsApiHandleInfoResponse>> */ - public CompletableFuture> - updateTenantBasedHandleWithHttpInfoAsync( - String handleId, MicrosoftTeamsUpdateTenantBasedHandleRequest body) { + public CompletableFuture> + updateApiHandleWithHttpInfoAsync(String handleId, MicrosoftTeamsUpdateApiHandleRequest body) { Object localVarPostBody = body; // verify the required parameter 'handleId' is set if (handleId == null) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, - "Missing the required parameter 'handleId' when calling updateTenantBasedHandle")); + 400, "Missing the required parameter 'handleId' when calling updateApiHandle")); return result; } // verify the required parameter 'body' is set if (body == null) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, "Missing the required parameter 'body' when calling updateTenantBasedHandle")); + 400, "Missing the required parameter 'body' when calling updateApiHandle")); return result; } // create path and map variables @@ -981,7 +1102,7 @@ public ApiResponse updateTenantBasedHan try { builder = apiClient.createBuilder( - "v2.MicrosoftTeamsIntegrationApi.updateTenantBasedHandle", + "v2.MicrosoftTeamsIntegrationApi.updateApiHandle", localVarPath, new ArrayList(), localVarHeaderParams, @@ -989,7 +1110,7 @@ public ApiResponse updateTenantBasedHan new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -1002,6 +1123,6 @@ public ApiResponse updateTenantBasedHan localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } } diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index 17e2526fb74..fa85e5ea8f2 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -8,6 +8,7 @@ import com.datadog.api.client.v2.model.BulkMuteFindingsRequest; import com.datadog.api.client.v2.model.BulkMuteFindingsResponse; import com.datadog.api.client.v2.model.Finding; +import com.datadog.api.client.v2.model.FindingDetectionType; import com.datadog.api.client.v2.model.FindingEvaluation; import com.datadog.api.client.v2.model.FindingStatus; import com.datadog.api.client.v2.model.GetFindingResponse; @@ -2506,6 +2507,7 @@ public static class ListFindingsOptionalParameters { private Long pageLimit; private Long snapshotTimestamp; private String pageCursor; + private List filterDetectionType; private String filterTags; private String filterEvaluationChangedAt; private Boolean filterMuted; @@ -2550,6 +2552,19 @@ public ListFindingsOptionalParameters pageCursor(String pageCursor) { return this; } + /** + * Set filterDetectionType. + * + * @param filterDetectionType Return findings that match the selected detection types + * (repeatable). (optional) + * @return ListFindingsOptionalParameters + */ + public ListFindingsOptionalParameters filterDetectionType( + List filterDetectionType) { + this.filterDetectionType = filterDetectionType; + return this; + } + /** * Set filterTags. * @@ -2845,6 +2860,7 @@ public ApiResponse listFindingsWithHttpInfo( Long pageLimit = parameters.pageLimit; Long snapshotTimestamp = parameters.snapshotTimestamp; String pageCursor = parameters.pageCursor; + List filterDetectionType = parameters.filterDetectionType; String filterTags = parameters.filterTags; String filterEvaluationChangedAt = parameters.filterEvaluationChangedAt; Boolean filterMuted = parameters.filterMuted; @@ -2864,6 +2880,8 @@ public ApiResponse listFindingsWithHttpInfo( localVarQueryParams.addAll( apiClient.parameterToPairs("", "snapshot_timestamp", snapshotTimestamp)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[cursor]", pageCursor)); + localVarQueryParams.addAll( + apiClient.parameterToPairs("multi", "filter[detection_type]", filterDetectionType)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[tags]", filterTags)); localVarQueryParams.addAll( apiClient.parameterToPairs("", "filter[evaluation_changed_at]", filterEvaluationChangedAt)); @@ -2922,6 +2940,7 @@ public CompletableFuture> listFindingsWithHttp Long pageLimit = parameters.pageLimit; Long snapshotTimestamp = parameters.snapshotTimestamp; String pageCursor = parameters.pageCursor; + List filterDetectionType = parameters.filterDetectionType; String filterTags = parameters.filterTags; String filterEvaluationChangedAt = parameters.filterEvaluationChangedAt; Boolean filterMuted = parameters.filterMuted; @@ -2941,6 +2960,8 @@ public CompletableFuture> listFindingsWithHttp localVarQueryParams.addAll( apiClient.parameterToPairs("", "snapshot_timestamp", snapshotTimestamp)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[cursor]", pageCursor)); + localVarQueryParams.addAll( + apiClient.parameterToPairs("multi", "filter[detection_type]", filterDetectionType)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[tags]", filterTags)); localVarQueryParams.addAll( apiClient.parameterToPairs("", "filter[evaluation_changed_at]", filterEvaluationChangedAt)); diff --git a/src/main/java/com/datadog/api/client/v2/model/FindingDetectionType.java b/src/main/java/com/datadog/api/client/v2/model/FindingDetectionType.java new file mode 100644 index 00000000000..ff59f04b14a --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FindingDetectionType.java @@ -0,0 +1,61 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** The detection type of the finding. */ +@JsonSerialize(using = FindingDetectionType.FindingDetectionTypeSerializer.class) +public class FindingDetectionType extends ModelEnum { + + private static final Set allowedValues = + new HashSet( + Arrays.asList("misconfiguration", "attack_path", "identity_risk", "api_security")); + + public static final FindingDetectionType MISCONFIGURATION = + new FindingDetectionType("misconfiguration"); + public static final FindingDetectionType ATTACK_PATH = new FindingDetectionType("attack_path"); + public static final FindingDetectionType IDENTITY_RISK = + new FindingDetectionType("identity_risk"); + public static final FindingDetectionType API_SECURITY = new FindingDetectionType("api_security"); + + FindingDetectionType(String value) { + super(value, allowedValues); + } + + public static class FindingDetectionTypeSerializer extends StdSerializer { + public FindingDetectionTypeSerializer(Class t) { + super(t); + } + + public FindingDetectionTypeSerializer() { + this(null); + } + + @Override + public void serialize( + FindingDetectionType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static FindingDetectionType fromValue(String value) { + return new FindingDetectionType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataMetadata.java b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataMetadata.java index 3c1a1a9b763..8d11c7dcde5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataMetadata.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentIntegrationMetadataMetadata.java @@ -175,51 +175,6 @@ public IncidentIntegrationMetadataMetadata deserialize( log.log(Level.FINER, "Input data does not match schema 'JiraIntegrationMetadata'", e); } - // deserialize MSTeamsIntegrationMetadata - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (MSTeamsIntegrationMetadata.class.equals(Integer.class) - || MSTeamsIntegrationMetadata.class.equals(Long.class) - || MSTeamsIntegrationMetadata.class.equals(Float.class) - || MSTeamsIntegrationMetadata.class.equals(Double.class) - || MSTeamsIntegrationMetadata.class.equals(Boolean.class) - || MSTeamsIntegrationMetadata.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((MSTeamsIntegrationMetadata.class.equals(Integer.class) - || MSTeamsIntegrationMetadata.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((MSTeamsIntegrationMetadata.class.equals(Float.class) - || MSTeamsIntegrationMetadata.class.equals(Double.class)) - && (token == JsonToken.VALUE_NUMBER_FLOAT - || token == JsonToken.VALUE_NUMBER_INT)); - attemptParsing |= - (MSTeamsIntegrationMetadata.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (MSTeamsIntegrationMetadata.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - tmp = tree.traverse(jp.getCodec()).readValueAs(MSTeamsIntegrationMetadata.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - if (!((MSTeamsIntegrationMetadata) tmp).unparsed) { - deserialized = tmp; - match++; - } - log.log(Level.FINER, "Input data matches schema 'MSTeamsIntegrationMetadata'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MSTeamsIntegrationMetadata'", e); - } - IncidentIntegrationMetadataMetadata ret = new IncidentIntegrationMetadataMetadata(); if (match == 1) { ret.setActualInstance(deserialized); @@ -260,15 +215,9 @@ public IncidentIntegrationMetadataMetadata(JiraIntegrationMetadata o) { setActualInstance(o); } - public IncidentIntegrationMetadataMetadata(MSTeamsIntegrationMetadata o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - static { schemas.put("SlackIntegrationMetadata", new GenericType() {}); schemas.put("JiraIntegrationMetadata", new GenericType() {}); - schemas.put("MSTeamsIntegrationMetadata", new GenericType() {}); JSON.registerDescendants( IncidentIntegrationMetadataMetadata.class, Collections.unmodifiableMap(schemas)); } @@ -280,8 +229,7 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: SlackIntegrationMetadata, JiraIntegrationMetadata, - * MSTeamsIntegrationMetadata + * against the oneOf child schemas: SlackIntegrationMetadata, JiraIntegrationMetadata * *

    It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a * composed schema (allOf, anyOf, oneOf). @@ -296,26 +244,20 @@ public void setActualInstance(Object instance) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(MSTeamsIntegrationMetadata.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } if (JSON.isInstanceOf(UnparsedObject.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } throw new RuntimeException( - "Invalid instance type. Must be SlackIntegrationMetadata, JiraIntegrationMetadata," - + " MSTeamsIntegrationMetadata"); + "Invalid instance type. Must be SlackIntegrationMetadata, JiraIntegrationMetadata"); } /** * Get the actual instance, which can be the following: SlackIntegrationMetadata, - * JiraIntegrationMetadata, MSTeamsIntegrationMetadata + * JiraIntegrationMetadata * - * @return The actual instance (SlackIntegrationMetadata, JiraIntegrationMetadata, - * MSTeamsIntegrationMetadata) + * @return The actual instance (SlackIntegrationMetadata, JiraIntegrationMetadata) */ @Override public Object getActualInstance() { @@ -343,15 +285,4 @@ public SlackIntegrationMetadata getSlackIntegrationMetadata() throws ClassCastEx public JiraIntegrationMetadata getJiraIntegrationMetadata() throws ClassCastException { return (JiraIntegrationMetadata) super.getActualInstance(); } - - /** - * Get the actual instance of `MSTeamsIntegrationMetadata`. If the actual instance is not - * `MSTeamsIntegrationMetadata`, the ClassCastException will be thrown. - * - * @return The actual instance of `MSTeamsIntegrationMetadata` - * @throws ClassCastException if the instance is not `MSTeamsIntegrationMetadata` - */ - public MSTeamsIntegrationMetadata getMSTeamsIntegrationMetadata() throws ClassCastException { - return (MSTeamsIntegrationMetadata) super.getActualInstance(); - } } diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseIncludedItem.java b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseIncludedItem.java index 9cee4824c2e..a593460d922 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentResponseIncludedItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentResponseIncludedItem.java @@ -81,48 +81,45 @@ public IncidentResponseIncludedItem deserialize(JsonParser jp, DeserializationCo boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize IncidentUserData + // deserialize User try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (IncidentUserData.class.equals(Integer.class) - || IncidentUserData.class.equals(Long.class) - || IncidentUserData.class.equals(Float.class) - || IncidentUserData.class.equals(Double.class) - || IncidentUserData.class.equals(Boolean.class) - || IncidentUserData.class.equals(String.class)) { + if (User.class.equals(Integer.class) + || User.class.equals(Long.class) + || User.class.equals(Float.class) + || User.class.equals(Double.class) + || User.class.equals(Boolean.class) + || User.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((IncidentUserData.class.equals(Integer.class) - || IncidentUserData.class.equals(Long.class)) + ((User.class.equals(Integer.class) || User.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((IncidentUserData.class.equals(Float.class) - || IncidentUserData.class.equals(Double.class)) + ((User.class.equals(Float.class) || User.class.equals(Double.class)) && (token == JsonToken.VALUE_NUMBER_FLOAT || token == JsonToken.VALUE_NUMBER_INT)); attemptParsing |= - (IncidentUserData.class.equals(Boolean.class) + (User.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (IncidentUserData.class.equals(String.class) && token == JsonToken.VALUE_STRING); + attemptParsing |= (User.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - tmp = tree.traverse(jp.getCodec()).readValueAs(IncidentUserData.class); + tmp = tree.traverse(jp.getCodec()).readValueAs(User.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. - if (!((IncidentUserData) tmp).unparsed) { + if (!((User) tmp).unparsed) { deserialized = tmp; match++; } - log.log(Level.FINER, "Input data matches schema 'IncidentUserData'"); + log.log(Level.FINER, "Input data matches schema 'User'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IncidentUserData'", e); + log.log(Level.FINER, "Input data does not match schema 'User'", e); } // deserialize IncidentAttachmentData @@ -200,7 +197,7 @@ public IncidentResponseIncludedItem() { super("oneOf", Boolean.FALSE); } - public IncidentResponseIncludedItem(IncidentUserData o) { + public IncidentResponseIncludedItem(User o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } @@ -211,7 +208,7 @@ public IncidentResponseIncludedItem(IncidentAttachmentData o) { } static { - schemas.put("IncidentUserData", new GenericType() {}); + schemas.put("User", new GenericType() {}); schemas.put("IncidentAttachmentData", new GenericType() {}); JSON.registerDescendants( IncidentResponseIncludedItem.class, Collections.unmodifiableMap(schemas)); @@ -224,14 +221,14 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: IncidentUserData, IncidentAttachmentData + * against the oneOf child schemas: User, IncidentAttachmentData * *

    It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a * composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(IncidentUserData.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(User.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } @@ -244,14 +241,13 @@ public void setActualInstance(Object instance) { super.setActualInstance(instance); return; } - throw new RuntimeException( - "Invalid instance type. Must be IncidentUserData, IncidentAttachmentData"); + throw new RuntimeException("Invalid instance type. Must be User, IncidentAttachmentData"); } /** - * Get the actual instance, which can be the following: IncidentUserData, IncidentAttachmentData + * Get the actual instance, which can be the following: User, IncidentAttachmentData * - * @return The actual instance (IncidentUserData, IncidentAttachmentData) + * @return The actual instance (User, IncidentAttachmentData) */ @Override public Object getActualInstance() { @@ -259,14 +255,14 @@ public Object getActualInstance() { } /** - * Get the actual instance of `IncidentUserData`. If the actual instance is not - * `IncidentUserData`, the ClassCastException will be thrown. + * Get the actual instance of `User`. If the actual instance is not `User`, the ClassCastException + * will be thrown. * - * @return The actual instance of `IncidentUserData` - * @throws ClassCastException if the instance is not `IncidentUserData` + * @return The actual instance of `User` + * @throws ClassCastException if the instance is not `User` */ - public IncidentUserData getIncidentUserData() throws ClassCastException { - return (IncidentUserData) super.getActualInstance(); + public User getUser() throws ClassCastException { + return (User) super.getActualInstance(); } /** diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentUserAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IncidentUserAttributes.java deleted file mode 100644 index 99959f3b4d0..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentUserAttributes.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import org.openapitools.jackson.nullable.JsonNullable; - -/** Attributes of user object returned by the API. */ -@JsonPropertyOrder({ - IncidentUserAttributes.JSON_PROPERTY_EMAIL, - IncidentUserAttributes.JSON_PROPERTY_HANDLE, - IncidentUserAttributes.JSON_PROPERTY_ICON, - IncidentUserAttributes.JSON_PROPERTY_NAME, - IncidentUserAttributes.JSON_PROPERTY_UUID -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class IncidentUserAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_EMAIL = "email"; - private String email; - - public static final String JSON_PROPERTY_HANDLE = "handle"; - private String handle; - - public static final String JSON_PROPERTY_ICON = "icon"; - private String icon; - - public static final String JSON_PROPERTY_NAME = "name"; - private JsonNullable name = JsonNullable.undefined(); - - public static final String JSON_PROPERTY_UUID = "uuid"; - private String uuid; - - public IncidentUserAttributes email(String email) { - this.email = email; - return this; - } - - /** - * Email of the user. - * - * @return email - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public IncidentUserAttributes handle(String handle) { - this.handle = handle; - return this; - } - - /** - * Handle of the user. - * - * @return handle - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HANDLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getHandle() { - return handle; - } - - public void setHandle(String handle) { - this.handle = handle; - } - - public IncidentUserAttributes icon(String icon) { - this.icon = icon; - return this; - } - - /** - * URL of the user's icon. - * - * @return icon - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ICON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIcon() { - return icon; - } - - public void setIcon(String icon) { - this.icon = icon; - } - - public IncidentUserAttributes name(String name) { - this.name = JsonNullable.of(name); - return this; - } - - /** - * Name of the user. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getName_JsonNullable() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - public void setName_JsonNullable(JsonNullable name) { - this.name = name; - } - - public void setName(String name) { - this.name = JsonNullable.of(name); - } - - public IncidentUserAttributes uuid(String uuid) { - this.uuid = uuid; - return this; - } - - /** - * UUID of the user. - * - * @return uuid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUuid() { - return uuid; - } - - public void setUuid(String uuid) { - this.uuid = uuid; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return IncidentUserAttributes - */ - @JsonAnySetter - public IncidentUserAttributes putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this IncidentUserAttributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - IncidentUserAttributes incidentUserAttributes = (IncidentUserAttributes) o; - return Objects.equals(this.email, incidentUserAttributes.email) - && Objects.equals(this.handle, incidentUserAttributes.handle) - && Objects.equals(this.icon, incidentUserAttributes.icon) - && Objects.equals(this.name, incidentUserAttributes.name) - && Objects.equals(this.uuid, incidentUserAttributes.uuid) - && Objects.equals(this.additionalProperties, incidentUserAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(email, handle, icon, name, uuid, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class IncidentUserAttributes {\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); - sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/MSTeamsIntegrationMetadata.java b/src/main/java/com/datadog/api/client/v2/model/MSTeamsIntegrationMetadata.java deleted file mode 100644 index 5af14379f50..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/MSTeamsIntegrationMetadata.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Incident integration metadata for the Microsoft Teams integration. */ -@JsonPropertyOrder({MSTeamsIntegrationMetadata.JSON_PROPERTY_TEAMS}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MSTeamsIntegrationMetadata { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_TEAMS = "teams"; - private List teams = new ArrayList<>(); - - public MSTeamsIntegrationMetadata() {} - - @JsonCreator - public MSTeamsIntegrationMetadata( - @JsonProperty(required = true, value = JSON_PROPERTY_TEAMS) - List teams) { - this.teams = teams; - } - - public MSTeamsIntegrationMetadata teams(List teams) { - this.teams = teams; - for (MSTeamsIntegrationMetadataTeamsItem item : teams) { - this.unparsed |= item.unparsed; - } - return this; - } - - public MSTeamsIntegrationMetadata addTeamsItem(MSTeamsIntegrationMetadataTeamsItem teamsItem) { - this.teams.add(teamsItem); - this.unparsed |= teamsItem.unparsed; - return this; - } - - /** - * Array of Microsoft Teams in this integration metadata. - * - * @return teams - */ - @JsonProperty(JSON_PROPERTY_TEAMS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getTeams() { - return teams; - } - - public void setTeams(List teams) { - this.teams = teams; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return MSTeamsIntegrationMetadata - */ - @JsonAnySetter - public MSTeamsIntegrationMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this MSTeamsIntegrationMetadata object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MSTeamsIntegrationMetadata msTeamsIntegrationMetadata = (MSTeamsIntegrationMetadata) o; - return Objects.equals(this.teams, msTeamsIntegrationMetadata.teams) - && Objects.equals( - this.additionalProperties, msTeamsIntegrationMetadata.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(teams, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MSTeamsIntegrationMetadata {\n"); - sb.append(" teams: ").append(toIndentedString(teams)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/MSTeamsIntegrationMetadataTeamsItem.java b/src/main/java/com/datadog/api/client/v2/model/MSTeamsIntegrationMetadataTeamsItem.java deleted file mode 100644 index a67fea4af82..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/MSTeamsIntegrationMetadataTeamsItem.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Item in the Microsoft Teams integration metadata teams array. */ -@JsonPropertyOrder({ - MSTeamsIntegrationMetadataTeamsItem.JSON_PROPERTY_MS_CHANNEL_ID, - MSTeamsIntegrationMetadataTeamsItem.JSON_PROPERTY_MS_CHANNEL_NAME, - MSTeamsIntegrationMetadataTeamsItem.JSON_PROPERTY_MS_TENANT_ID, - MSTeamsIntegrationMetadataTeamsItem.JSON_PROPERTY_REDIRECT_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MSTeamsIntegrationMetadataTeamsItem { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_MS_CHANNEL_ID = "ms_channel_id"; - private String msChannelId; - - public static final String JSON_PROPERTY_MS_CHANNEL_NAME = "ms_channel_name"; - private String msChannelName; - - public static final String JSON_PROPERTY_MS_TENANT_ID = "ms_tenant_id"; - private String msTenantId; - - public static final String JSON_PROPERTY_REDIRECT_URL = "redirect_url"; - private String redirectUrl; - - public MSTeamsIntegrationMetadataTeamsItem() {} - - @JsonCreator - public MSTeamsIntegrationMetadataTeamsItem( - @JsonProperty(required = true, value = JSON_PROPERTY_MS_CHANNEL_ID) String msChannelId, - @JsonProperty(required = true, value = JSON_PROPERTY_MS_CHANNEL_NAME) String msChannelName, - @JsonProperty(required = true, value = JSON_PROPERTY_MS_TENANT_ID) String msTenantId, - @JsonProperty(required = true, value = JSON_PROPERTY_REDIRECT_URL) String redirectUrl) { - this.msChannelId = msChannelId; - this.msChannelName = msChannelName; - this.msTenantId = msTenantId; - this.redirectUrl = redirectUrl; - } - - public MSTeamsIntegrationMetadataTeamsItem msChannelId(String msChannelId) { - this.msChannelId = msChannelId; - return this; - } - - /** - * Microsoft Teams channel ID. - * - * @return msChannelId - */ - @JsonProperty(JSON_PROPERTY_MS_CHANNEL_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMsChannelId() { - return msChannelId; - } - - public void setMsChannelId(String msChannelId) { - this.msChannelId = msChannelId; - } - - public MSTeamsIntegrationMetadataTeamsItem msChannelName(String msChannelName) { - this.msChannelName = msChannelName; - return this; - } - - /** - * Microsoft Teams channel name. - * - * @return msChannelName - */ - @JsonProperty(JSON_PROPERTY_MS_CHANNEL_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMsChannelName() { - return msChannelName; - } - - public void setMsChannelName(String msChannelName) { - this.msChannelName = msChannelName; - } - - public MSTeamsIntegrationMetadataTeamsItem msTenantId(String msTenantId) { - this.msTenantId = msTenantId; - return this; - } - - /** - * Microsoft Teams tenant ID. - * - * @return msTenantId - */ - @JsonProperty(JSON_PROPERTY_MS_TENANT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMsTenantId() { - return msTenantId; - } - - public void setMsTenantId(String msTenantId) { - this.msTenantId = msTenantId; - } - - public MSTeamsIntegrationMetadataTeamsItem redirectUrl(String redirectUrl) { - this.redirectUrl = redirectUrl; - return this; - } - - /** - * URL redirecting to the Microsoft Teams channel. - * - * @return redirectUrl - */ - @JsonProperty(JSON_PROPERTY_REDIRECT_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRedirectUrl() { - return redirectUrl; - } - - public void setRedirectUrl(String redirectUrl) { - this.redirectUrl = redirectUrl; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return MSTeamsIntegrationMetadataTeamsItem - */ - @JsonAnySetter - public MSTeamsIntegrationMetadataTeamsItem putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this MSTeamsIntegrationMetadataTeamsItem object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MSTeamsIntegrationMetadataTeamsItem msTeamsIntegrationMetadataTeamsItem = - (MSTeamsIntegrationMetadataTeamsItem) o; - return Objects.equals(this.msChannelId, msTeamsIntegrationMetadataTeamsItem.msChannelId) - && Objects.equals(this.msChannelName, msTeamsIntegrationMetadataTeamsItem.msChannelName) - && Objects.equals(this.msTenantId, msTeamsIntegrationMetadataTeamsItem.msTenantId) - && Objects.equals(this.redirectUrl, msTeamsIntegrationMetadataTeamsItem.redirectUrl) - && Objects.equals( - this.additionalProperties, msTeamsIntegrationMetadataTeamsItem.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(msChannelId, msChannelName, msTenantId, redirectUrl, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MSTeamsIntegrationMetadataTeamsItem {\n"); - sb.append(" msChannelId: ").append(toIndentedString(msChannelId)).append("\n"); - sb.append(" msChannelName: ").append(toIndentedString(msChannelName)).append("\n"); - sb.append(" msTenantId: ").append(toIndentedString(msTenantId)).append("\n"); - sb.append(" redirectUrl: ").append(toIndentedString(redirectUrl)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleAttributes.java similarity index 75% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleAttributes.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleAttributes.java index 9da7aea508e..0c586cbee0d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleAttributes.java @@ -16,16 +16,16 @@ import java.util.Map; import java.util.Objects; -/** Tenant-based handle attributes. */ +/** Handle attributes. */ @JsonPropertyOrder({ - MicrosoftTeamsTenantBasedHandleAttributes.JSON_PROPERTY_CHANNEL_ID, - MicrosoftTeamsTenantBasedHandleAttributes.JSON_PROPERTY_NAME, - MicrosoftTeamsTenantBasedHandleAttributes.JSON_PROPERTY_TEAM_ID, - MicrosoftTeamsTenantBasedHandleAttributes.JSON_PROPERTY_TENANT_ID + MicrosoftTeamsApiHandleAttributes.JSON_PROPERTY_CHANNEL_ID, + MicrosoftTeamsApiHandleAttributes.JSON_PROPERTY_NAME, + MicrosoftTeamsApiHandleAttributes.JSON_PROPERTY_TEAM_ID, + MicrosoftTeamsApiHandleAttributes.JSON_PROPERTY_TENANT_ID }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandleAttributes { +public class MicrosoftTeamsApiHandleAttributes { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CHANNEL_ID = "channel_id"; private String channelId; @@ -39,7 +39,7 @@ public class MicrosoftTeamsTenantBasedHandleAttributes { public static final String JSON_PROPERTY_TENANT_ID = "tenant_id"; private String tenantId; - public MicrosoftTeamsTenantBasedHandleAttributes channelId(String channelId) { + public MicrosoftTeamsApiHandleAttributes channelId(String channelId) { this.channelId = channelId; return this; } @@ -60,13 +60,13 @@ public void setChannelId(String channelId) { this.channelId = channelId; } - public MicrosoftTeamsTenantBasedHandleAttributes name(String name) { + public MicrosoftTeamsApiHandleAttributes name(String name) { this.name = name; return this; } /** - * Tenant-based handle name. + * Handle name. * * @return name */ @@ -81,7 +81,7 @@ public void setName(String name) { this.name = name; } - public MicrosoftTeamsTenantBasedHandleAttributes teamId(String teamId) { + public MicrosoftTeamsApiHandleAttributes teamId(String teamId) { this.teamId = teamId; return this; } @@ -102,7 +102,7 @@ public void setTeamId(String teamId) { this.teamId = teamId; } - public MicrosoftTeamsTenantBasedHandleAttributes tenantId(String tenantId) { + public MicrosoftTeamsApiHandleAttributes tenantId(String tenantId) { this.tenantId = tenantId; return this; } @@ -135,10 +135,10 @@ public void setTenantId(String tenantId) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandleAttributes + * @return MicrosoftTeamsApiHandleAttributes */ @JsonAnySetter - public MicrosoftTeamsTenantBasedHandleAttributes putAdditionalProperty(String key, Object value) { + public MicrosoftTeamsApiHandleAttributes putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -169,7 +169,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsTenantBasedHandleAttributes object is equal to o. */ + /** Return true if this MicrosoftTeamsApiHandleAttributes object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -178,15 +178,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsTenantBasedHandleAttributes microsoftTeamsTenantBasedHandleAttributes = - (MicrosoftTeamsTenantBasedHandleAttributes) o; - return Objects.equals(this.channelId, microsoftTeamsTenantBasedHandleAttributes.channelId) - && Objects.equals(this.name, microsoftTeamsTenantBasedHandleAttributes.name) - && Objects.equals(this.teamId, microsoftTeamsTenantBasedHandleAttributes.teamId) - && Objects.equals(this.tenantId, microsoftTeamsTenantBasedHandleAttributes.tenantId) + MicrosoftTeamsApiHandleAttributes microsoftTeamsApiHandleAttributes = + (MicrosoftTeamsApiHandleAttributes) o; + return Objects.equals(this.channelId, microsoftTeamsApiHandleAttributes.channelId) + && Objects.equals(this.name, microsoftTeamsApiHandleAttributes.name) + && Objects.equals(this.teamId, microsoftTeamsApiHandleAttributes.teamId) + && Objects.equals(this.tenantId, microsoftTeamsApiHandleAttributes.tenantId) && Objects.equals( - this.additionalProperties, - microsoftTeamsTenantBasedHandleAttributes.additionalProperties); + this.additionalProperties, microsoftTeamsApiHandleAttributes.additionalProperties); } @Override @@ -197,7 +196,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandleAttributes {\n"); + sb.append("class MicrosoftTeamsApiHandleAttributes {\n"); sb.append(" channelId: ").append(toIndentedString(channelId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponse.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponse.java new file mode 100644 index 00000000000..762c080f680 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponse.java @@ -0,0 +1,138 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Response of a handle. */ +@JsonPropertyOrder({MicrosoftTeamsApiHandleInfoResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class MicrosoftTeamsApiHandleInfoResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private MicrosoftTeamsApiHandleInfoResponseData data; + + public MicrosoftTeamsApiHandleInfoResponse data(MicrosoftTeamsApiHandleInfoResponseData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Handle data from a response. + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public MicrosoftTeamsApiHandleInfoResponseData getData() { + return data; + } + + public void setData(MicrosoftTeamsApiHandleInfoResponseData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return MicrosoftTeamsApiHandleInfoResponse + */ + @JsonAnySetter + public MicrosoftTeamsApiHandleInfoResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this MicrosoftTeamsApiHandleInfoResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MicrosoftTeamsApiHandleInfoResponse microsoftTeamsApiHandleInfoResponse = + (MicrosoftTeamsApiHandleInfoResponse) o; + return Objects.equals(this.data, microsoftTeamsApiHandleInfoResponse.data) + && Objects.equals( + this.additionalProperties, microsoftTeamsApiHandleInfoResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MicrosoftTeamsApiHandleInfoResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponseAttributes.java similarity index 71% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponseAttributes.java index a844ddd2288..15996923d82 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponseAttributes.java @@ -16,19 +16,19 @@ import java.util.Map; import java.util.Objects; -/** Tenant-based handle attributes. */ +/** Handle attributes. */ @JsonPropertyOrder({ - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.JSON_PROPERTY_CHANNEL_ID, - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.JSON_PROPERTY_CHANNEL_NAME, - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.JSON_PROPERTY_NAME, - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.JSON_PROPERTY_TEAM_ID, - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.JSON_PROPERTY_TEAM_NAME, - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.JSON_PROPERTY_TENANT_ID, - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes.JSON_PROPERTY_TENANT_NAME + MicrosoftTeamsApiHandleInfoResponseAttributes.JSON_PROPERTY_CHANNEL_ID, + MicrosoftTeamsApiHandleInfoResponseAttributes.JSON_PROPERTY_CHANNEL_NAME, + MicrosoftTeamsApiHandleInfoResponseAttributes.JSON_PROPERTY_NAME, + MicrosoftTeamsApiHandleInfoResponseAttributes.JSON_PROPERTY_TEAM_ID, + MicrosoftTeamsApiHandleInfoResponseAttributes.JSON_PROPERTY_TEAM_NAME, + MicrosoftTeamsApiHandleInfoResponseAttributes.JSON_PROPERTY_TENANT_ID, + MicrosoftTeamsApiHandleInfoResponseAttributes.JSON_PROPERTY_TENANT_NAME }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandleInfoResponseAttributes { +public class MicrosoftTeamsApiHandleInfoResponseAttributes { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CHANNEL_ID = "channel_id"; private String channelId; @@ -51,7 +51,7 @@ public class MicrosoftTeamsTenantBasedHandleInfoResponseAttributes { public static final String JSON_PROPERTY_TENANT_NAME = "tenant_name"; private String tenantName; - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes channelId(String channelId) { + public MicrosoftTeamsApiHandleInfoResponseAttributes channelId(String channelId) { this.channelId = channelId; return this; } @@ -72,7 +72,7 @@ public void setChannelId(String channelId) { this.channelId = channelId; } - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes channelName(String channelName) { + public MicrosoftTeamsApiHandleInfoResponseAttributes channelName(String channelName) { this.channelName = channelName; return this; } @@ -93,13 +93,13 @@ public void setChannelName(String channelName) { this.channelName = channelName; } - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes name(String name) { + public MicrosoftTeamsApiHandleInfoResponseAttributes name(String name) { this.name = name; return this; } /** - * Tenant-based handle name. + * Handle name. * * @return name */ @@ -114,7 +114,7 @@ public void setName(String name) { this.name = name; } - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes teamId(String teamId) { + public MicrosoftTeamsApiHandleInfoResponseAttributes teamId(String teamId) { this.teamId = teamId; return this; } @@ -135,7 +135,7 @@ public void setTeamId(String teamId) { this.teamId = teamId; } - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes teamName(String teamName) { + public MicrosoftTeamsApiHandleInfoResponseAttributes teamName(String teamName) { this.teamName = teamName; return this; } @@ -156,7 +156,7 @@ public void setTeamName(String teamName) { this.teamName = teamName; } - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes tenantId(String tenantId) { + public MicrosoftTeamsApiHandleInfoResponseAttributes tenantId(String tenantId) { this.tenantId = tenantId; return this; } @@ -177,7 +177,7 @@ public void setTenantId(String tenantId) { this.tenantId = tenantId; } - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes tenantName(String tenantName) { + public MicrosoftTeamsApiHandleInfoResponseAttributes tenantName(String tenantName) { this.tenantName = tenantName; return this; } @@ -210,10 +210,10 @@ public void setTenantName(String tenantName) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandleInfoResponseAttributes + * @return MicrosoftTeamsApiHandleInfoResponseAttributes */ @JsonAnySetter - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes putAdditionalProperty( + public MicrosoftTeamsApiHandleInfoResponseAttributes putAdditionalProperty( String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); @@ -245,9 +245,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** - * Return true if this MicrosoftTeamsTenantBasedHandleInfoResponseAttributes object is equal to o. - */ + /** Return true if this MicrosoftTeamsApiHandleInfoResponseAttributes object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -256,24 +254,19 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes - microsoftTeamsTenantBasedHandleInfoResponseAttributes = - (MicrosoftTeamsTenantBasedHandleInfoResponseAttributes) o; - return Objects.equals( - this.channelId, microsoftTeamsTenantBasedHandleInfoResponseAttributes.channelId) - && Objects.equals( - this.channelName, microsoftTeamsTenantBasedHandleInfoResponseAttributes.channelName) - && Objects.equals(this.name, microsoftTeamsTenantBasedHandleInfoResponseAttributes.name) - && Objects.equals(this.teamId, microsoftTeamsTenantBasedHandleInfoResponseAttributes.teamId) - && Objects.equals( - this.teamName, microsoftTeamsTenantBasedHandleInfoResponseAttributes.teamName) - && Objects.equals( - this.tenantId, microsoftTeamsTenantBasedHandleInfoResponseAttributes.tenantId) + MicrosoftTeamsApiHandleInfoResponseAttributes microsoftTeamsApiHandleInfoResponseAttributes = + (MicrosoftTeamsApiHandleInfoResponseAttributes) o; + return Objects.equals(this.channelId, microsoftTeamsApiHandleInfoResponseAttributes.channelId) && Objects.equals( - this.tenantName, microsoftTeamsTenantBasedHandleInfoResponseAttributes.tenantName) + this.channelName, microsoftTeamsApiHandleInfoResponseAttributes.channelName) + && Objects.equals(this.name, microsoftTeamsApiHandleInfoResponseAttributes.name) + && Objects.equals(this.teamId, microsoftTeamsApiHandleInfoResponseAttributes.teamId) + && Objects.equals(this.teamName, microsoftTeamsApiHandleInfoResponseAttributes.teamName) + && Objects.equals(this.tenantId, microsoftTeamsApiHandleInfoResponseAttributes.tenantId) + && Objects.equals(this.tenantName, microsoftTeamsApiHandleInfoResponseAttributes.tenantName) && Objects.equals( this.additionalProperties, - microsoftTeamsTenantBasedHandleInfoResponseAttributes.additionalProperties); + microsoftTeamsApiHandleInfoResponseAttributes.additionalProperties); } @Override @@ -285,7 +278,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandleInfoResponseAttributes {\n"); + sb.append("class MicrosoftTeamsApiHandleInfoResponseAttributes {\n"); sb.append(" channelId: ").append(toIndentedString(channelId)).append("\n"); sb.append(" channelName: ").append(toIndentedString(channelName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleResponseData.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponseData.java similarity index 68% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleResponseData.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponseData.java index 8f2647bc1e4..2f744db905d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoResponseData.java @@ -16,56 +16,56 @@ import java.util.Map; import java.util.Objects; -/** Tenant-based handle data from a response. */ +/** Handle data from a response. */ @JsonPropertyOrder({ - MicrosoftTeamsTenantBasedHandleResponseData.JSON_PROPERTY_ATTRIBUTES, - MicrosoftTeamsTenantBasedHandleResponseData.JSON_PROPERTY_ID, - MicrosoftTeamsTenantBasedHandleResponseData.JSON_PROPERTY_TYPE + MicrosoftTeamsApiHandleInfoResponseData.JSON_PROPERTY_ATTRIBUTES, + MicrosoftTeamsApiHandleInfoResponseData.JSON_PROPERTY_ID, + MicrosoftTeamsApiHandleInfoResponseData.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandleResponseData { +public class MicrosoftTeamsApiHandleInfoResponseData { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private MicrosoftTeamsTenantBasedHandleAttributes attributes; + private MicrosoftTeamsApiHandleInfoResponseAttributes attributes; public static final String JSON_PROPERTY_ID = "id"; private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private MicrosoftTeamsTenantBasedHandleType type = - MicrosoftTeamsTenantBasedHandleType.TENANT_BASED_HANDLE; + private MicrosoftTeamsApiHandleInfoType type = + MicrosoftTeamsApiHandleInfoType.MS_TEAMS_HANDLE_INFO; - public MicrosoftTeamsTenantBasedHandleResponseData attributes( - MicrosoftTeamsTenantBasedHandleAttributes attributes) { + public MicrosoftTeamsApiHandleInfoResponseData attributes( + MicrosoftTeamsApiHandleInfoResponseAttributes attributes) { this.attributes = attributes; this.unparsed |= attributes.unparsed; return this; } /** - * Tenant-based handle attributes. + * Handle attributes. * * @return attributes */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public MicrosoftTeamsTenantBasedHandleAttributes getAttributes() { + public MicrosoftTeamsApiHandleInfoResponseAttributes getAttributes() { return attributes; } - public void setAttributes(MicrosoftTeamsTenantBasedHandleAttributes attributes) { + public void setAttributes(MicrosoftTeamsApiHandleInfoResponseAttributes attributes) { this.attributes = attributes; } - public MicrosoftTeamsTenantBasedHandleResponseData id(String id) { + public MicrosoftTeamsApiHandleInfoResponseData id(String id) { this.id = id; return this; } /** - * The ID of the tenant-based handle. + * The ID of the handle. * * @return id */ @@ -80,26 +80,25 @@ public void setId(String id) { this.id = id; } - public MicrosoftTeamsTenantBasedHandleResponseData type( - MicrosoftTeamsTenantBasedHandleType type) { + public MicrosoftTeamsApiHandleInfoResponseData type(MicrosoftTeamsApiHandleInfoType type) { this.type = type; this.unparsed |= !type.isValid(); return this; } /** - * Specifies the tenant-based handle resource type. + * Handle resource type. * * @return type */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public MicrosoftTeamsTenantBasedHandleType getType() { + public MicrosoftTeamsApiHandleInfoType getType() { return type; } - public void setType(MicrosoftTeamsTenantBasedHandleType type) { + public void setType(MicrosoftTeamsApiHandleInfoType type) { if (!type.isValid()) { this.unparsed = true; } @@ -118,11 +117,10 @@ public void setType(MicrosoftTeamsTenantBasedHandleType type) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandleResponseData + * @return MicrosoftTeamsApiHandleInfoResponseData */ @JsonAnySetter - public MicrosoftTeamsTenantBasedHandleResponseData putAdditionalProperty( - String key, Object value) { + public MicrosoftTeamsApiHandleInfoResponseData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -153,7 +151,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsTenantBasedHandleResponseData object is equal to o. */ + /** Return true if this MicrosoftTeamsApiHandleInfoResponseData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -162,14 +160,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsTenantBasedHandleResponseData microsoftTeamsTenantBasedHandleResponseData = - (MicrosoftTeamsTenantBasedHandleResponseData) o; - return Objects.equals(this.attributes, microsoftTeamsTenantBasedHandleResponseData.attributes) - && Objects.equals(this.id, microsoftTeamsTenantBasedHandleResponseData.id) - && Objects.equals(this.type, microsoftTeamsTenantBasedHandleResponseData.type) + MicrosoftTeamsApiHandleInfoResponseData microsoftTeamsApiHandleInfoResponseData = + (MicrosoftTeamsApiHandleInfoResponseData) o; + return Objects.equals(this.attributes, microsoftTeamsApiHandleInfoResponseData.attributes) + && Objects.equals(this.id, microsoftTeamsApiHandleInfoResponseData.id) + && Objects.equals(this.type, microsoftTeamsApiHandleInfoResponseData.type) && Objects.equals( this.additionalProperties, - microsoftTeamsTenantBasedHandleResponseData.additionalProperties); + microsoftTeamsApiHandleInfoResponseData.additionalProperties); } @Override @@ -180,7 +178,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandleResponseData {\n"); + sb.append("class MicrosoftTeamsApiHandleInfoResponseData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleType.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoType.java similarity index 50% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleType.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoType.java index 313ac6260cb..34b4b7227b4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleType.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleInfoType.java @@ -18,42 +18,41 @@ import java.util.HashSet; import java.util.Set; -/** Specifies the tenant-based handle resource type. */ +/** Handle resource type. */ @JsonSerialize( - using = MicrosoftTeamsTenantBasedHandleType.MicrosoftTeamsTenantBasedHandleTypeSerializer.class) -public class MicrosoftTeamsTenantBasedHandleType extends ModelEnum { + using = MicrosoftTeamsApiHandleInfoType.MicrosoftTeamsApiHandleInfoTypeSerializer.class) +public class MicrosoftTeamsApiHandleInfoType extends ModelEnum { private static final Set allowedValues = - new HashSet(Arrays.asList("tenant-based-handle")); + new HashSet(Arrays.asList("ms-teams-handle-info")); - public static final MicrosoftTeamsTenantBasedHandleType TENANT_BASED_HANDLE = - new MicrosoftTeamsTenantBasedHandleType("tenant-based-handle"); + public static final MicrosoftTeamsApiHandleInfoType MS_TEAMS_HANDLE_INFO = + new MicrosoftTeamsApiHandleInfoType("ms-teams-handle-info"); - MicrosoftTeamsTenantBasedHandleType(String value) { + MicrosoftTeamsApiHandleInfoType(String value) { super(value, allowedValues); } - public static class MicrosoftTeamsTenantBasedHandleTypeSerializer - extends StdSerializer { - public MicrosoftTeamsTenantBasedHandleTypeSerializer( - Class t) { + public static class MicrosoftTeamsApiHandleInfoTypeSerializer + extends StdSerializer { + public MicrosoftTeamsApiHandleInfoTypeSerializer(Class t) { super(t); } - public MicrosoftTeamsTenantBasedHandleTypeSerializer() { + public MicrosoftTeamsApiHandleInfoTypeSerializer() { this(null); } @Override public void serialize( - MicrosoftTeamsTenantBasedHandleType value, JsonGenerator jgen, SerializerProvider provider) + MicrosoftTeamsApiHandleInfoType value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.value); } } @JsonCreator - public static MicrosoftTeamsTenantBasedHandleType fromValue(String value) { - return new MicrosoftTeamsTenantBasedHandleType(value); + public static MicrosoftTeamsApiHandleInfoType fromValue(String value) { + return new MicrosoftTeamsApiHandleInfoType(value); } } diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleRequestAttributes.java similarity index 74% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleRequestAttributes.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleRequestAttributes.java index c5fcb5716e1..145d14e04d1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleRequestAttributes.java @@ -17,16 +17,16 @@ import java.util.Map; import java.util.Objects; -/** Tenant-based handle attributes. */ +/** Handle attributes. */ @JsonPropertyOrder({ - MicrosoftTeamsTenantBasedHandleRequestAttributes.JSON_PROPERTY_CHANNEL_ID, - MicrosoftTeamsTenantBasedHandleRequestAttributes.JSON_PROPERTY_NAME, - MicrosoftTeamsTenantBasedHandleRequestAttributes.JSON_PROPERTY_TEAM_ID, - MicrosoftTeamsTenantBasedHandleRequestAttributes.JSON_PROPERTY_TENANT_ID + MicrosoftTeamsApiHandleRequestAttributes.JSON_PROPERTY_CHANNEL_ID, + MicrosoftTeamsApiHandleRequestAttributes.JSON_PROPERTY_NAME, + MicrosoftTeamsApiHandleRequestAttributes.JSON_PROPERTY_TEAM_ID, + MicrosoftTeamsApiHandleRequestAttributes.JSON_PROPERTY_TENANT_ID }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandleRequestAttributes { +public class MicrosoftTeamsApiHandleRequestAttributes { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CHANNEL_ID = "channel_id"; private String channelId; @@ -40,10 +40,10 @@ public class MicrosoftTeamsTenantBasedHandleRequestAttributes { public static final String JSON_PROPERTY_TENANT_ID = "tenant_id"; private String tenantId; - public MicrosoftTeamsTenantBasedHandleRequestAttributes() {} + public MicrosoftTeamsApiHandleRequestAttributes() {} @JsonCreator - public MicrosoftTeamsTenantBasedHandleRequestAttributes( + public MicrosoftTeamsApiHandleRequestAttributes( @JsonProperty(required = true, value = JSON_PROPERTY_CHANNEL_ID) String channelId, @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name, @JsonProperty(required = true, value = JSON_PROPERTY_TEAM_ID) String teamId, @@ -54,7 +54,7 @@ public MicrosoftTeamsTenantBasedHandleRequestAttributes( this.tenantId = tenantId; } - public MicrosoftTeamsTenantBasedHandleRequestAttributes channelId(String channelId) { + public MicrosoftTeamsApiHandleRequestAttributes channelId(String channelId) { this.channelId = channelId; return this; } @@ -74,13 +74,13 @@ public void setChannelId(String channelId) { this.channelId = channelId; } - public MicrosoftTeamsTenantBasedHandleRequestAttributes name(String name) { + public MicrosoftTeamsApiHandleRequestAttributes name(String name) { this.name = name; return this; } /** - * Tenant-based handle name. + * Handle name. * * @return name */ @@ -94,7 +94,7 @@ public void setName(String name) { this.name = name; } - public MicrosoftTeamsTenantBasedHandleRequestAttributes teamId(String teamId) { + public MicrosoftTeamsApiHandleRequestAttributes teamId(String teamId) { this.teamId = teamId; return this; } @@ -114,7 +114,7 @@ public void setTeamId(String teamId) { this.teamId = teamId; } - public MicrosoftTeamsTenantBasedHandleRequestAttributes tenantId(String tenantId) { + public MicrosoftTeamsApiHandleRequestAttributes tenantId(String tenantId) { this.tenantId = tenantId; return this; } @@ -146,11 +146,10 @@ public void setTenantId(String tenantId) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandleRequestAttributes + * @return MicrosoftTeamsApiHandleRequestAttributes */ @JsonAnySetter - public MicrosoftTeamsTenantBasedHandleRequestAttributes putAdditionalProperty( - String key, Object value) { + public MicrosoftTeamsApiHandleRequestAttributes putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -181,7 +180,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsTenantBasedHandleRequestAttributes object is equal to o. */ + /** Return true if this MicrosoftTeamsApiHandleRequestAttributes object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -190,17 +189,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsTenantBasedHandleRequestAttributes - microsoftTeamsTenantBasedHandleRequestAttributes = - (MicrosoftTeamsTenantBasedHandleRequestAttributes) o; - return Objects.equals( - this.channelId, microsoftTeamsTenantBasedHandleRequestAttributes.channelId) - && Objects.equals(this.name, microsoftTeamsTenantBasedHandleRequestAttributes.name) - && Objects.equals(this.teamId, microsoftTeamsTenantBasedHandleRequestAttributes.teamId) - && Objects.equals(this.tenantId, microsoftTeamsTenantBasedHandleRequestAttributes.tenantId) + MicrosoftTeamsApiHandleRequestAttributes microsoftTeamsApiHandleRequestAttributes = + (MicrosoftTeamsApiHandleRequestAttributes) o; + return Objects.equals(this.channelId, microsoftTeamsApiHandleRequestAttributes.channelId) + && Objects.equals(this.name, microsoftTeamsApiHandleRequestAttributes.name) + && Objects.equals(this.teamId, microsoftTeamsApiHandleRequestAttributes.teamId) + && Objects.equals(this.tenantId, microsoftTeamsApiHandleRequestAttributes.tenantId) && Objects.equals( this.additionalProperties, - microsoftTeamsTenantBasedHandleRequestAttributes.additionalProperties); + microsoftTeamsApiHandleRequestAttributes.additionalProperties); } @Override @@ -211,7 +208,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandleRequestAttributes {\n"); + sb.append("class MicrosoftTeamsApiHandleRequestAttributes {\n"); sb.append(" channelId: ").append(toIndentedString(channelId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateTenantBasedHandleRequestData.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleRequestData.java similarity index 66% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateTenantBasedHandleRequestData.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleRequestData.java index d14d31626a2..cc31c6eac19 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateTenantBasedHandleRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleRequestData.java @@ -17,77 +17,74 @@ import java.util.Map; import java.util.Objects; -/** Tenant-based handle data from a response. */ +/** Handle data from a response. */ @JsonPropertyOrder({ - MicrosoftTeamsUpdateTenantBasedHandleRequestData.JSON_PROPERTY_ATTRIBUTES, - MicrosoftTeamsUpdateTenantBasedHandleRequestData.JSON_PROPERTY_TYPE + MicrosoftTeamsApiHandleRequestData.JSON_PROPERTY_ATTRIBUTES, + MicrosoftTeamsApiHandleRequestData.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsUpdateTenantBasedHandleRequestData { +public class MicrosoftTeamsApiHandleRequestData { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private MicrosoftTeamsTenantBasedHandleAttributes attributes; + private MicrosoftTeamsApiHandleRequestAttributes attributes; public static final String JSON_PROPERTY_TYPE = "type"; - private MicrosoftTeamsTenantBasedHandleType type = - MicrosoftTeamsTenantBasedHandleType.TENANT_BASED_HANDLE; + private MicrosoftTeamsApiHandleType type = MicrosoftTeamsApiHandleType.HANDLE; - public MicrosoftTeamsUpdateTenantBasedHandleRequestData() {} + public MicrosoftTeamsApiHandleRequestData() {} @JsonCreator - public MicrosoftTeamsUpdateTenantBasedHandleRequestData( + public MicrosoftTeamsApiHandleRequestData( @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - MicrosoftTeamsTenantBasedHandleAttributes attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - MicrosoftTeamsTenantBasedHandleType type) { + MicrosoftTeamsApiHandleRequestAttributes attributes, + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) MicrosoftTeamsApiHandleType type) { this.attributes = attributes; this.unparsed |= attributes.unparsed; this.type = type; this.unparsed |= !type.isValid(); } - public MicrosoftTeamsUpdateTenantBasedHandleRequestData attributes( - MicrosoftTeamsTenantBasedHandleAttributes attributes) { + public MicrosoftTeamsApiHandleRequestData attributes( + MicrosoftTeamsApiHandleRequestAttributes attributes) { this.attributes = attributes; this.unparsed |= attributes.unparsed; return this; } /** - * Tenant-based handle attributes. + * Handle attributes. * * @return attributes */ @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public MicrosoftTeamsTenantBasedHandleAttributes getAttributes() { + public MicrosoftTeamsApiHandleRequestAttributes getAttributes() { return attributes; } - public void setAttributes(MicrosoftTeamsTenantBasedHandleAttributes attributes) { + public void setAttributes(MicrosoftTeamsApiHandleRequestAttributes attributes) { this.attributes = attributes; } - public MicrosoftTeamsUpdateTenantBasedHandleRequestData type( - MicrosoftTeamsTenantBasedHandleType type) { + public MicrosoftTeamsApiHandleRequestData type(MicrosoftTeamsApiHandleType type) { this.type = type; this.unparsed |= !type.isValid(); return this; } /** - * Specifies the tenant-based handle resource type. + * Specifies the handle resource type. * * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public MicrosoftTeamsTenantBasedHandleType getType() { + public MicrosoftTeamsApiHandleType getType() { return type; } - public void setType(MicrosoftTeamsTenantBasedHandleType type) { + public void setType(MicrosoftTeamsApiHandleType type) { if (!type.isValid()) { this.unparsed = true; } @@ -106,11 +103,10 @@ public void setType(MicrosoftTeamsTenantBasedHandleType type) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsUpdateTenantBasedHandleRequestData + * @return MicrosoftTeamsApiHandleRequestData */ @JsonAnySetter - public MicrosoftTeamsUpdateTenantBasedHandleRequestData putAdditionalProperty( - String key, Object value) { + public MicrosoftTeamsApiHandleRequestData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -141,7 +137,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsUpdateTenantBasedHandleRequestData object is equal to o. */ + /** Return true if this MicrosoftTeamsApiHandleRequestData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -150,15 +146,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsUpdateTenantBasedHandleRequestData - microsoftTeamsUpdateTenantBasedHandleRequestData = - (MicrosoftTeamsUpdateTenantBasedHandleRequestData) o; - return Objects.equals( - this.attributes, microsoftTeamsUpdateTenantBasedHandleRequestData.attributes) - && Objects.equals(this.type, microsoftTeamsUpdateTenantBasedHandleRequestData.type) + MicrosoftTeamsApiHandleRequestData microsoftTeamsApiHandleRequestData = + (MicrosoftTeamsApiHandleRequestData) o; + return Objects.equals(this.attributes, microsoftTeamsApiHandleRequestData.attributes) + && Objects.equals(this.type, microsoftTeamsApiHandleRequestData.type) && Objects.equals( - this.additionalProperties, - microsoftTeamsUpdateTenantBasedHandleRequestData.additionalProperties); + this.additionalProperties, microsoftTeamsApiHandleRequestData.additionalProperties); } @Override @@ -169,7 +162,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsUpdateTenantBasedHandleRequestData {\n"); + sb.append("class MicrosoftTeamsApiHandleRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentUserData.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleResponseData.java similarity index 71% rename from src/main/java/com/datadog/api/client/v2/model/IncidentUserData.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleResponseData.java index 7eb197e1dba..191bab21286 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentUserData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleResponseData.java @@ -16,54 +16,55 @@ import java.util.Map; import java.util.Objects; -/** User object returned by the API. */ +/** Handle data from a response. */ @JsonPropertyOrder({ - IncidentUserData.JSON_PROPERTY_ATTRIBUTES, - IncidentUserData.JSON_PROPERTY_ID, - IncidentUserData.JSON_PROPERTY_TYPE + MicrosoftTeamsApiHandleResponseData.JSON_PROPERTY_ATTRIBUTES, + MicrosoftTeamsApiHandleResponseData.JSON_PROPERTY_ID, + MicrosoftTeamsApiHandleResponseData.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class IncidentUserData { +public class MicrosoftTeamsApiHandleResponseData { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private IncidentUserAttributes attributes; + private MicrosoftTeamsApiHandleAttributes attributes; public static final String JSON_PROPERTY_ID = "id"; private String id; public static final String JSON_PROPERTY_TYPE = "type"; - private UsersType type = UsersType.USERS; + private MicrosoftTeamsApiHandleType type = MicrosoftTeamsApiHandleType.HANDLE; - public IncidentUserData attributes(IncidentUserAttributes attributes) { + public MicrosoftTeamsApiHandleResponseData attributes( + MicrosoftTeamsApiHandleAttributes attributes) { this.attributes = attributes; this.unparsed |= attributes.unparsed; return this; } /** - * Attributes of user object returned by the API. + * Handle attributes. * * @return attributes */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IncidentUserAttributes getAttributes() { + public MicrosoftTeamsApiHandleAttributes getAttributes() { return attributes; } - public void setAttributes(IncidentUserAttributes attributes) { + public void setAttributes(MicrosoftTeamsApiHandleAttributes attributes) { this.attributes = attributes; } - public IncidentUserData id(String id) { + public MicrosoftTeamsApiHandleResponseData id(String id) { this.id = id; return this; } /** - * ID of the user. + * The ID of the handle. * * @return id */ @@ -78,25 +79,25 @@ public void setId(String id) { this.id = id; } - public IncidentUserData type(UsersType type) { + public MicrosoftTeamsApiHandleResponseData type(MicrosoftTeamsApiHandleType type) { this.type = type; this.unparsed |= !type.isValid(); return this; } /** - * Users resource type. + * Specifies the handle resource type. * * @return type */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UsersType getType() { + public MicrosoftTeamsApiHandleType getType() { return type; } - public void setType(UsersType type) { + public void setType(MicrosoftTeamsApiHandleType type) { if (!type.isValid()) { this.unparsed = true; } @@ -115,10 +116,10 @@ public void setType(UsersType type) { * * @param key The arbitrary key to set * @param value The associated value - * @return IncidentUserData + * @return MicrosoftTeamsApiHandleResponseData */ @JsonAnySetter - public IncidentUserData putAdditionalProperty(String key, Object value) { + public MicrosoftTeamsApiHandleResponseData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -149,7 +150,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this IncidentUserData object is equal to o. */ + /** Return true if this MicrosoftTeamsApiHandleResponseData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -158,11 +159,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IncidentUserData incidentUserData = (IncidentUserData) o; - return Objects.equals(this.attributes, incidentUserData.attributes) - && Objects.equals(this.id, incidentUserData.id) - && Objects.equals(this.type, incidentUserData.type) - && Objects.equals(this.additionalProperties, incidentUserData.additionalProperties); + MicrosoftTeamsApiHandleResponseData microsoftTeamsApiHandleResponseData = + (MicrosoftTeamsApiHandleResponseData) o; + return Objects.equals(this.attributes, microsoftTeamsApiHandleResponseData.attributes) + && Objects.equals(this.id, microsoftTeamsApiHandleResponseData.id) + && Objects.equals(this.type, microsoftTeamsApiHandleResponseData.type) + && Objects.equals( + this.additionalProperties, microsoftTeamsApiHandleResponseData.additionalProperties); } @Override @@ -173,7 +176,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IncidentUserData {\n"); + sb.append("class MicrosoftTeamsApiHandleResponseData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleType.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleType.java new file mode 100644 index 00000000000..b951d134c09 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandleType.java @@ -0,0 +1,56 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** Specifies the handle resource type. */ +@JsonSerialize(using = MicrosoftTeamsApiHandleType.MicrosoftTeamsApiHandleTypeSerializer.class) +public class MicrosoftTeamsApiHandleType extends ModelEnum { + + private static final Set allowedValues = new HashSet(Arrays.asList("handle")); + + public static final MicrosoftTeamsApiHandleType HANDLE = + new MicrosoftTeamsApiHandleType("handle"); + + MicrosoftTeamsApiHandleType(String value) { + super(value, allowedValues); + } + + public static class MicrosoftTeamsApiHandleTypeSerializer + extends StdSerializer { + public MicrosoftTeamsApiHandleTypeSerializer(Class t) { + super(t); + } + + public MicrosoftTeamsApiHandleTypeSerializer() { + this(null); + } + + @Override + public void serialize( + MicrosoftTeamsApiHandleType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static MicrosoftTeamsApiHandleType fromValue(String value) { + return new MicrosoftTeamsApiHandleType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandlesResponse.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandlesResponse.java similarity index 69% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandlesResponse.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandlesResponse.java index c571cae7738..8cb672197e2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandlesResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsApiHandlesResponse.java @@ -19,52 +19,51 @@ import java.util.Map; import java.util.Objects; -/** Response with a list of tenant-based handles. */ -@JsonPropertyOrder({MicrosoftTeamsTenantBasedHandlesResponse.JSON_PROPERTY_DATA}) +/** Response with a list of handles. */ +@JsonPropertyOrder({MicrosoftTeamsApiHandlesResponse.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandlesResponse { +public class MicrosoftTeamsApiHandlesResponse { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); + private List data = new ArrayList<>(); - public MicrosoftTeamsTenantBasedHandlesResponse() {} + public MicrosoftTeamsApiHandlesResponse() {} @JsonCreator - public MicrosoftTeamsTenantBasedHandlesResponse( + public MicrosoftTeamsApiHandlesResponse( @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - List data) { + List data) { this.data = data; } - public MicrosoftTeamsTenantBasedHandlesResponse data( - List data) { + public MicrosoftTeamsApiHandlesResponse data(List data) { this.data = data; - for (MicrosoftTeamsTenantBasedHandleInfoResponseData item : data) { + for (MicrosoftTeamsApiHandleInfoResponseData item : data) { this.unparsed |= item.unparsed; } return this; } - public MicrosoftTeamsTenantBasedHandlesResponse addDataItem( - MicrosoftTeamsTenantBasedHandleInfoResponseData dataItem) { + public MicrosoftTeamsApiHandlesResponse addDataItem( + MicrosoftTeamsApiHandleInfoResponseData dataItem) { this.data.add(dataItem); this.unparsed |= dataItem.unparsed; return this; } /** - * An array of tenant-based handles. + * An array of handles. * * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -80,10 +79,10 @@ public void setData(List data) * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandlesResponse + * @return MicrosoftTeamsApiHandlesResponse */ @JsonAnySetter - public MicrosoftTeamsTenantBasedHandlesResponse putAdditionalProperty(String key, Object value) { + public MicrosoftTeamsApiHandlesResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -114,7 +113,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsTenantBasedHandlesResponse object is equal to o. */ + /** Return true if this MicrosoftTeamsApiHandlesResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -123,12 +122,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsTenantBasedHandlesResponse microsoftTeamsTenantBasedHandlesResponse = - (MicrosoftTeamsTenantBasedHandlesResponse) o; - return Objects.equals(this.data, microsoftTeamsTenantBasedHandlesResponse.data) + MicrosoftTeamsApiHandlesResponse microsoftTeamsApiHandlesResponse = + (MicrosoftTeamsApiHandlesResponse) o; + return Objects.equals(this.data, microsoftTeamsApiHandlesResponse.data) && Objects.equals( - this.additionalProperties, - microsoftTeamsTenantBasedHandlesResponse.additionalProperties); + this.additionalProperties, microsoftTeamsApiHandlesResponse.additionalProperties); } @Override @@ -139,7 +137,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandlesResponse {\n"); + sb.append("class MicrosoftTeamsApiHandlesResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleResponse.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateApiHandleRequest.java similarity index 72% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleResponse.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateApiHandleRequest.java index cb6c647c32a..caed3ed689b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateApiHandleRequest.java @@ -17,44 +17,43 @@ import java.util.Map; import java.util.Objects; -/** Response of a tenant-based handle. */ -@JsonPropertyOrder({MicrosoftTeamsTenantBasedHandleResponse.JSON_PROPERTY_DATA}) +/** Create handle request. */ +@JsonPropertyOrder({MicrosoftTeamsCreateApiHandleRequest.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandleResponse { +public class MicrosoftTeamsCreateApiHandleRequest { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DATA = "data"; - private MicrosoftTeamsTenantBasedHandleResponseData data; + private MicrosoftTeamsApiHandleRequestData data; - public MicrosoftTeamsTenantBasedHandleResponse() {} + public MicrosoftTeamsCreateApiHandleRequest() {} @JsonCreator - public MicrosoftTeamsTenantBasedHandleResponse( + public MicrosoftTeamsCreateApiHandleRequest( @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - MicrosoftTeamsTenantBasedHandleResponseData data) { + MicrosoftTeamsApiHandleRequestData data) { this.data = data; this.unparsed |= data.unparsed; } - public MicrosoftTeamsTenantBasedHandleResponse data( - MicrosoftTeamsTenantBasedHandleResponseData data) { + public MicrosoftTeamsCreateApiHandleRequest data(MicrosoftTeamsApiHandleRequestData data) { this.data = data; this.unparsed |= data.unparsed; return this; } /** - * Tenant-based handle data from a response. + * Handle data from a response. * * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public MicrosoftTeamsTenantBasedHandleResponseData getData() { + public MicrosoftTeamsApiHandleRequestData getData() { return data; } - public void setData(MicrosoftTeamsTenantBasedHandleResponseData data) { + public void setData(MicrosoftTeamsApiHandleRequestData data) { this.data = data; } @@ -70,10 +69,10 @@ public void setData(MicrosoftTeamsTenantBasedHandleResponseData data) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandleResponse + * @return MicrosoftTeamsCreateApiHandleRequest */ @JsonAnySetter - public MicrosoftTeamsTenantBasedHandleResponse putAdditionalProperty(String key, Object value) { + public MicrosoftTeamsCreateApiHandleRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -104,7 +103,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsTenantBasedHandleResponse object is equal to o. */ + /** Return true if this MicrosoftTeamsCreateApiHandleRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -113,12 +112,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsTenantBasedHandleResponse microsoftTeamsTenantBasedHandleResponse = - (MicrosoftTeamsTenantBasedHandleResponse) o; - return Objects.equals(this.data, microsoftTeamsTenantBasedHandleResponse.data) + MicrosoftTeamsCreateApiHandleRequest microsoftTeamsCreateApiHandleRequest = + (MicrosoftTeamsCreateApiHandleRequest) o; + return Objects.equals(this.data, microsoftTeamsCreateApiHandleRequest.data) && Objects.equals( - this.additionalProperties, - microsoftTeamsTenantBasedHandleResponse.additionalProperties); + this.additionalProperties, microsoftTeamsCreateApiHandleRequest.additionalProperties); } @Override @@ -129,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandleResponse {\n"); + sb.append("class MicrosoftTeamsCreateApiHandleRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateTenantBasedHandleRequest.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateApiHandleResponse.java similarity index 71% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateTenantBasedHandleRequest.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateApiHandleResponse.java index 2fc77a96584..4e6fefab2a8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateTenantBasedHandleRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsCreateApiHandleResponse.java @@ -17,44 +17,43 @@ import java.util.Map; import java.util.Objects; -/** Create tenant-based handle request. */ -@JsonPropertyOrder({MicrosoftTeamsCreateTenantBasedHandleRequest.JSON_PROPERTY_DATA}) +/** Response of a handle. */ +@JsonPropertyOrder({MicrosoftTeamsCreateApiHandleResponse.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsCreateTenantBasedHandleRequest { +public class MicrosoftTeamsCreateApiHandleResponse { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DATA = "data"; - private MicrosoftTeamsTenantBasedHandleRequestData data; + private MicrosoftTeamsApiHandleResponseData data; - public MicrosoftTeamsCreateTenantBasedHandleRequest() {} + public MicrosoftTeamsCreateApiHandleResponse() {} @JsonCreator - public MicrosoftTeamsCreateTenantBasedHandleRequest( + public MicrosoftTeamsCreateApiHandleResponse( @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - MicrosoftTeamsTenantBasedHandleRequestData data) { + MicrosoftTeamsApiHandleResponseData data) { this.data = data; this.unparsed |= data.unparsed; } - public MicrosoftTeamsCreateTenantBasedHandleRequest data( - MicrosoftTeamsTenantBasedHandleRequestData data) { + public MicrosoftTeamsCreateApiHandleResponse data(MicrosoftTeamsApiHandleResponseData data) { this.data = data; this.unparsed |= data.unparsed; return this; } /** - * Tenant-based handle data from a response. + * Handle data from a response. * * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public MicrosoftTeamsTenantBasedHandleRequestData getData() { + public MicrosoftTeamsApiHandleResponseData getData() { return data; } - public void setData(MicrosoftTeamsTenantBasedHandleRequestData data) { + public void setData(MicrosoftTeamsApiHandleResponseData data) { this.data = data; } @@ -70,11 +69,10 @@ public void setData(MicrosoftTeamsTenantBasedHandleRequestData data) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsCreateTenantBasedHandleRequest + * @return MicrosoftTeamsCreateApiHandleResponse */ @JsonAnySetter - public MicrosoftTeamsCreateTenantBasedHandleRequest putAdditionalProperty( - String key, Object value) { + public MicrosoftTeamsCreateApiHandleResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -105,7 +103,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsCreateTenantBasedHandleRequest object is equal to o. */ + /** Return true if this MicrosoftTeamsCreateApiHandleResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,12 +112,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsCreateTenantBasedHandleRequest microsoftTeamsCreateTenantBasedHandleRequest = - (MicrosoftTeamsCreateTenantBasedHandleRequest) o; - return Objects.equals(this.data, microsoftTeamsCreateTenantBasedHandleRequest.data) + MicrosoftTeamsCreateApiHandleResponse microsoftTeamsCreateApiHandleResponse = + (MicrosoftTeamsCreateApiHandleResponse) o; + return Objects.equals(this.data, microsoftTeamsCreateApiHandleResponse.data) && Objects.equals( - this.additionalProperties, - microsoftTeamsCreateTenantBasedHandleRequest.additionalProperties); + this.additionalProperties, microsoftTeamsCreateApiHandleResponse.additionalProperties); } @Override @@ -130,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsCreateTenantBasedHandleRequest {\n"); + sb.append("class MicrosoftTeamsCreateApiHandleResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoResponseData.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoResponseData.java deleted file mode 100644 index 6dd199c4a80..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoResponseData.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Tenant-based handle data from a response. */ -@JsonPropertyOrder({ - MicrosoftTeamsTenantBasedHandleInfoResponseData.JSON_PROPERTY_ATTRIBUTES, - MicrosoftTeamsTenantBasedHandleInfoResponseData.JSON_PROPERTY_ID, - MicrosoftTeamsTenantBasedHandleInfoResponseData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandleInfoResponseData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private MicrosoftTeamsTenantBasedHandleInfoResponseAttributes attributes; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private MicrosoftTeamsTenantBasedHandleInfoType type = - MicrosoftTeamsTenantBasedHandleInfoType.MS_TEAMS_TENANT_BASED_HANDLE_INFO; - - public MicrosoftTeamsTenantBasedHandleInfoResponseData attributes( - MicrosoftTeamsTenantBasedHandleInfoResponseAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * Tenant-based handle attributes. - * - * @return attributes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public MicrosoftTeamsTenantBasedHandleInfoResponseAttributes getAttributes() { - return attributes; - } - - public void setAttributes(MicrosoftTeamsTenantBasedHandleInfoResponseAttributes attributes) { - this.attributes = attributes; - } - - public MicrosoftTeamsTenantBasedHandleInfoResponseData id(String id) { - this.id = id; - return this; - } - - /** - * The ID of the tenant-based handle. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public MicrosoftTeamsTenantBasedHandleInfoResponseData type( - MicrosoftTeamsTenantBasedHandleInfoType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * Tenant-based handle resource type. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public MicrosoftTeamsTenantBasedHandleInfoType getType() { - return type; - } - - public void setType(MicrosoftTeamsTenantBasedHandleInfoType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandleInfoResponseData - */ - @JsonAnySetter - public MicrosoftTeamsTenantBasedHandleInfoResponseData putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this MicrosoftTeamsTenantBasedHandleInfoResponseData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MicrosoftTeamsTenantBasedHandleInfoResponseData - microsoftTeamsTenantBasedHandleInfoResponseData = - (MicrosoftTeamsTenantBasedHandleInfoResponseData) o; - return Objects.equals( - this.attributes, microsoftTeamsTenantBasedHandleInfoResponseData.attributes) - && Objects.equals(this.id, microsoftTeamsTenantBasedHandleInfoResponseData.id) - && Objects.equals(this.type, microsoftTeamsTenantBasedHandleInfoResponseData.type) - && Objects.equals( - this.additionalProperties, - microsoftTeamsTenantBasedHandleInfoResponseData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandleInfoResponseData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoType.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoType.java deleted file mode 100644 index 3b248ea51b2..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleInfoType.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** Tenant-based handle resource type. */ -@JsonSerialize( - using = - MicrosoftTeamsTenantBasedHandleInfoType.MicrosoftTeamsTenantBasedHandleInfoTypeSerializer - .class) -public class MicrosoftTeamsTenantBasedHandleInfoType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("ms-teams-tenant-based-handle-info")); - - public static final MicrosoftTeamsTenantBasedHandleInfoType MS_TEAMS_TENANT_BASED_HANDLE_INFO = - new MicrosoftTeamsTenantBasedHandleInfoType("ms-teams-tenant-based-handle-info"); - - MicrosoftTeamsTenantBasedHandleInfoType(String value) { - super(value, allowedValues); - } - - public static class MicrosoftTeamsTenantBasedHandleInfoTypeSerializer - extends StdSerializer { - public MicrosoftTeamsTenantBasedHandleInfoTypeSerializer( - Class t) { - super(t); - } - - public MicrosoftTeamsTenantBasedHandleInfoTypeSerializer() { - this(null); - } - - @Override - public void serialize( - MicrosoftTeamsTenantBasedHandleInfoType value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static MicrosoftTeamsTenantBasedHandleInfoType fromValue(String value) { - return new MicrosoftTeamsTenantBasedHandleInfoType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateTenantBasedHandleRequest.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateApiHandleRequest.java similarity index 70% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateTenantBasedHandleRequest.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateApiHandleRequest.java index b3dcaab3201..ae31e69ab8f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateTenantBasedHandleRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateApiHandleRequest.java @@ -17,44 +17,43 @@ import java.util.Map; import java.util.Objects; -/** Update tenant-based handle request. */ -@JsonPropertyOrder({MicrosoftTeamsUpdateTenantBasedHandleRequest.JSON_PROPERTY_DATA}) +/** Update handle request. */ +@JsonPropertyOrder({MicrosoftTeamsUpdateApiHandleRequest.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsUpdateTenantBasedHandleRequest { +public class MicrosoftTeamsUpdateApiHandleRequest { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DATA = "data"; - private MicrosoftTeamsUpdateTenantBasedHandleRequestData data; + private MicrosoftTeamsUpdateApiHandleRequestData data; - public MicrosoftTeamsUpdateTenantBasedHandleRequest() {} + public MicrosoftTeamsUpdateApiHandleRequest() {} @JsonCreator - public MicrosoftTeamsUpdateTenantBasedHandleRequest( + public MicrosoftTeamsUpdateApiHandleRequest( @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - MicrosoftTeamsUpdateTenantBasedHandleRequestData data) { + MicrosoftTeamsUpdateApiHandleRequestData data) { this.data = data; this.unparsed |= data.unparsed; } - public MicrosoftTeamsUpdateTenantBasedHandleRequest data( - MicrosoftTeamsUpdateTenantBasedHandleRequestData data) { + public MicrosoftTeamsUpdateApiHandleRequest data(MicrosoftTeamsUpdateApiHandleRequestData data) { this.data = data; this.unparsed |= data.unparsed; return this; } /** - * Tenant-based handle data from a response. + * Handle data from a response. * * @return data */ @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public MicrosoftTeamsUpdateTenantBasedHandleRequestData getData() { + public MicrosoftTeamsUpdateApiHandleRequestData getData() { return data; } - public void setData(MicrosoftTeamsUpdateTenantBasedHandleRequestData data) { + public void setData(MicrosoftTeamsUpdateApiHandleRequestData data) { this.data = data; } @@ -70,11 +69,10 @@ public void setData(MicrosoftTeamsUpdateTenantBasedHandleRequestData data) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsUpdateTenantBasedHandleRequest + * @return MicrosoftTeamsUpdateApiHandleRequest */ @JsonAnySetter - public MicrosoftTeamsUpdateTenantBasedHandleRequest putAdditionalProperty( - String key, Object value) { + public MicrosoftTeamsUpdateApiHandleRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -105,7 +103,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsUpdateTenantBasedHandleRequest object is equal to o. */ + /** Return true if this MicrosoftTeamsUpdateApiHandleRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -114,12 +112,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsUpdateTenantBasedHandleRequest microsoftTeamsUpdateTenantBasedHandleRequest = - (MicrosoftTeamsUpdateTenantBasedHandleRequest) o; - return Objects.equals(this.data, microsoftTeamsUpdateTenantBasedHandleRequest.data) + MicrosoftTeamsUpdateApiHandleRequest microsoftTeamsUpdateApiHandleRequest = + (MicrosoftTeamsUpdateApiHandleRequest) o; + return Objects.equals(this.data, microsoftTeamsUpdateApiHandleRequest.data) && Objects.equals( - this.additionalProperties, - microsoftTeamsUpdateTenantBasedHandleRequest.additionalProperties); + this.additionalProperties, microsoftTeamsUpdateApiHandleRequest.additionalProperties); } @Override @@ -130,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsUpdateTenantBasedHandleRequest {\n"); + sb.append("class MicrosoftTeamsUpdateApiHandleRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleRequestData.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateApiHandleRequestData.java similarity index 67% rename from src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleRequestData.java rename to src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateApiHandleRequestData.java index 07ec63f9b25..b6ec5db88d5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsTenantBasedHandleRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftTeamsUpdateApiHandleRequestData.java @@ -17,76 +17,74 @@ import java.util.Map; import java.util.Objects; -/** Tenant-based handle data from a response. */ +/** Handle data from a response. */ @JsonPropertyOrder({ - MicrosoftTeamsTenantBasedHandleRequestData.JSON_PROPERTY_ATTRIBUTES, - MicrosoftTeamsTenantBasedHandleRequestData.JSON_PROPERTY_TYPE + MicrosoftTeamsUpdateApiHandleRequestData.JSON_PROPERTY_ATTRIBUTES, + MicrosoftTeamsUpdateApiHandleRequestData.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class MicrosoftTeamsTenantBasedHandleRequestData { +public class MicrosoftTeamsUpdateApiHandleRequestData { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private MicrosoftTeamsTenantBasedHandleRequestAttributes attributes; + private MicrosoftTeamsApiHandleAttributes attributes; public static final String JSON_PROPERTY_TYPE = "type"; - private MicrosoftTeamsTenantBasedHandleType type = - MicrosoftTeamsTenantBasedHandleType.TENANT_BASED_HANDLE; + private MicrosoftTeamsApiHandleType type = MicrosoftTeamsApiHandleType.HANDLE; - public MicrosoftTeamsTenantBasedHandleRequestData() {} + public MicrosoftTeamsUpdateApiHandleRequestData() {} @JsonCreator - public MicrosoftTeamsTenantBasedHandleRequestData( + public MicrosoftTeamsUpdateApiHandleRequestData( @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - MicrosoftTeamsTenantBasedHandleRequestAttributes attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - MicrosoftTeamsTenantBasedHandleType type) { + MicrosoftTeamsApiHandleAttributes attributes, + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) MicrosoftTeamsApiHandleType type) { this.attributes = attributes; this.unparsed |= attributes.unparsed; this.type = type; this.unparsed |= !type.isValid(); } - public MicrosoftTeamsTenantBasedHandleRequestData attributes( - MicrosoftTeamsTenantBasedHandleRequestAttributes attributes) { + public MicrosoftTeamsUpdateApiHandleRequestData attributes( + MicrosoftTeamsApiHandleAttributes attributes) { this.attributes = attributes; this.unparsed |= attributes.unparsed; return this; } /** - * Tenant-based handle attributes. + * Handle attributes. * * @return attributes */ @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public MicrosoftTeamsTenantBasedHandleRequestAttributes getAttributes() { + public MicrosoftTeamsApiHandleAttributes getAttributes() { return attributes; } - public void setAttributes(MicrosoftTeamsTenantBasedHandleRequestAttributes attributes) { + public void setAttributes(MicrosoftTeamsApiHandleAttributes attributes) { this.attributes = attributes; } - public MicrosoftTeamsTenantBasedHandleRequestData type(MicrosoftTeamsTenantBasedHandleType type) { + public MicrosoftTeamsUpdateApiHandleRequestData type(MicrosoftTeamsApiHandleType type) { this.type = type; this.unparsed |= !type.isValid(); return this; } /** - * Specifies the tenant-based handle resource type. + * Specifies the handle resource type. * * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public MicrosoftTeamsTenantBasedHandleType getType() { + public MicrosoftTeamsApiHandleType getType() { return type; } - public void setType(MicrosoftTeamsTenantBasedHandleType type) { + public void setType(MicrosoftTeamsApiHandleType type) { if (!type.isValid()) { this.unparsed = true; } @@ -105,11 +103,10 @@ public void setType(MicrosoftTeamsTenantBasedHandleType type) { * * @param key The arbitrary key to set * @param value The associated value - * @return MicrosoftTeamsTenantBasedHandleRequestData + * @return MicrosoftTeamsUpdateApiHandleRequestData */ @JsonAnySetter - public MicrosoftTeamsTenantBasedHandleRequestData putAdditionalProperty( - String key, Object value) { + public MicrosoftTeamsUpdateApiHandleRequestData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -140,7 +137,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this MicrosoftTeamsTenantBasedHandleRequestData object is equal to o. */ + /** Return true if this MicrosoftTeamsUpdateApiHandleRequestData object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -149,13 +146,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - MicrosoftTeamsTenantBasedHandleRequestData microsoftTeamsTenantBasedHandleRequestData = - (MicrosoftTeamsTenantBasedHandleRequestData) o; - return Objects.equals(this.attributes, microsoftTeamsTenantBasedHandleRequestData.attributes) - && Objects.equals(this.type, microsoftTeamsTenantBasedHandleRequestData.type) + MicrosoftTeamsUpdateApiHandleRequestData microsoftTeamsUpdateApiHandleRequestData = + (MicrosoftTeamsUpdateApiHandleRequestData) o; + return Objects.equals(this.attributes, microsoftTeamsUpdateApiHandleRequestData.attributes) + && Objects.equals(this.type, microsoftTeamsUpdateApiHandleRequestData.type) && Objects.equals( this.additionalProperties, - microsoftTeamsTenantBasedHandleRequestData.additionalProperties); + microsoftTeamsUpdateApiHandleRequestData.additionalProperties); } @Override @@ -166,7 +163,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class MicrosoftTeamsTenantBasedHandleRequestData {\n"); + sb.append("class MicrosoftTeamsUpdateApiHandleRequestData {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.freeze deleted file mode 100644 index f6e6007e992..00000000000 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.freeze +++ /dev/null @@ -1 +0,0 @@ -2024-09-30T17:24:52.299Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.json deleted file mode 100644 index 9c946bf299c..00000000000 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.json +++ /dev/null @@ -1,58 +0,0 @@ -[ - { - "httpRequest": { - "body": { - "type": "JSON", - "json": "{\"description\":\"\",\"is_read_only\":false,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified-1727717092\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" - }, - "headers": {}, - "method": "POST", - "path": "/api/v1/dashboard", - "keepAlive": false, - "secure": true - }, - "httpResponse": { - "body": "{\"id\":\"2az-xeg-xar\",\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified-1727717092\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/2az-xeg-xar/test-createanewdashboardwithatoplistwidgetwithstackedtypeandnolegendspecified-17\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":688132644515996}],\"notify_list\":[],\"created_at\":\"2024-09-30T17:24:52.542207+00:00\",\"modified_at\":\"2024-09-30T17:24:52.542207+00:00\",\"experience_type\":\"default\",\"restricted_roles\":[]}\n", - "headers": { - "Content-Type": [ - "application/json" - ] - }, - "statusCode": 200, - "reasonPhrase": "OK" - }, - "times": { - "remainingTimes": 1 - }, - "timeToLive": { - "unlimited": true - }, - "id": "1668edb0-df4a-a19b-f3e7-73c89dbafdd3" - }, - { - "httpRequest": { - "headers": {}, - "method": "DELETE", - "path": "/api/v1/dashboard/2az-xeg-xar", - "keepAlive": false, - "secure": true - }, - "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"2az-xeg-xar\"}\n", - "headers": { - "Content-Type": [ - "application/json" - ] - }, - "statusCode": 200, - "reasonPhrase": "OK" - }, - "times": { - "remainingTimes": 1 - }, - "timeToLive": { - "unlimited": true - }, - "id": "bf18df2e-8976-3aab-55ba-5494d3060e55" - } -] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_api_handle_returns_CREATED_response.freeze b/src/test/resources/cassettes/features/v2/Create_api_handle_returns_CREATED_response.freeze new file mode 100644 index 00000000000..032d18d1ad2 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Create_api_handle_returns_CREATED_response.freeze @@ -0,0 +1 @@ +2024-10-01T14:49:03.835Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_api_handle_returns_CREATED_response.json b/src/test/resources/cassettes/features/v2/Create_api_handle_returns_CREATED_response.json new file mode 100644 index 00000000000..4f4209292ef --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Create_api_handle_returns_CREATED_response.json @@ -0,0 +1,53 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Create_api_handle_returns_CREATED_response-1727794143\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"},\"type\":\"handle\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4d853924-8004-11ef-a396-da7ad0900002\",\"type\":\"handle\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Create_api_handle_returns_CREATED_response-1727794143\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "acd2e5a5-dbe3-5fbc-8bb6-de6534157bb1" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4d853924-8004-11ef-a396-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "778bbd38-901a-963f-3090-9da138dd0127" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_api_handle_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Delete_api_handle_returns_OK_response.freeze new file mode 100644 index 00000000000..c424a36934c --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Delete_api_handle_returns_OK_response.freeze @@ -0,0 +1 @@ +2024-10-01T14:49:04.126Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_api_handle_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_api_handle_returns_OK_response.json new file mode 100644 index 00000000000..6bec6077690 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Delete_api_handle_returns_OK_response.json @@ -0,0 +1,74 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Delete_api_handle_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"},\"type\":\"handle\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4da666b2-8004-11ef-a397-da7ad0900002\",\"type\":\"handle\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Delete_api_handle_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "b4e11de5-0def-c5bf-5b7c-736f95d38639" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4da666b2-8004-11ef-a397-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "72a34476-737d-bd18-e6e7-6a6a13d150e1" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4da666b2-8004-11ef-a397-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "72a34476-737d-bd18-e6e7-6a6a13d150e2" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_api_handles_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_all_api_handles_returns_OK_response.freeze new file mode 100644 index 00000000000..e2451a0ca56 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_all_api_handles_returns_OK_response.freeze @@ -0,0 +1 @@ +2024-10-01T14:49:04.412Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_api_handles_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_all_api_handles_returns_OK_response.json new file mode 100644 index 00000000000..ef954f55050 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_all_api_handles_returns_OK_response.json @@ -0,0 +1,79 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Get_all_api_handles_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"},\"type\":\"handle\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4dd2b640-8004-11ef-a398-da7ad0900002\",\"type\":\"handle\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Get_all_api_handles_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "2aa5457d-9628-50b9-ec09-548a871cfa4f" + }, + { + "httpRequest": { + "headers": {}, + "method": "GET", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":[{\"id\":\"5f002dba-7cd2-11ef-8717-da7ad0900002\",\"type\":\"ms-teams-handle-info\",\"attributes\":{\"channel_id\":\"19:m2LnqTUOkhuzGCyeG_0xql4rbKc2ZSJ25JS6UZINc-01@thread.tacv2\",\"channel_name\":\"General\",\"name\":\"test\",\"team_id\":\"008b01f1-4b68-4e81-b8a9-cfa27ba6c112\",\"team_name\":\"incident-6252-is_this_a_new_title\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\",\"tenant_name\":\"Datadog, Inc.\"}},{\"id\":\"9fc79cf6-7ffd-11ef-b391-da7ad0900002\",\"type\":\"ms-teams-handle-info\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"channel_name\":\"General-1\",\"name\":\"TwA43H2NIrilngRZ6dOvNBVNFx4fZvPgdYaroSwcvoObDbJ8RRJtSyKCjkiV2AaVziZSfxNKrL7oV4XHAC0gDv4cuZwGzkv3hJyPGqCuUEHP89CyJMOrtkCRgCM5XeNqoK28J2todRY8ibd3S3xwIwmCK83F2bnBjVB6WEDbmO92F7B9XcIglNwPpy7KMeNRjzxy8Y3c0Ji6jYQIIMRDnawdBGWqCQmGtJ7mFPCHpYlZHKBT7uyV1gIAuGtwIr\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"team_name\":\"Chat Integrations\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\",\"tenant_name\":\"Datadog, Inc.\"}},{\"id\":\"73ffbd06-8002-11ef-af80-da7ad0900002\",\"type\":\"ms-teams-handle-info\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"channel_name\":\"General-1\",\"name\":\"TwA43H2NIrilngRZ6dOvNBVNFx4fZvPgdYaroSwcvoObDbJ8RRJtSyKCjkiV2AaVziZSfxNKrL7oV4XHAC0gDv4cuZwGzkv3hJyPGqCuUEHP89CyJMOrtkCRgCM5XeNqoK28J2todRY8ibd3S3xwIwmCK83F2bnBjVB6WEDbmO92F7B9XcIglNwPpy7KMeNRjzxy8Y3c0Ji6jYQIIMRDnawdBGWqCQmGtJ7mFPCHpYlZHKBT7uyV1gIAuGtwI\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"team_name\":\"Chat Integrations\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\",\"tenant_name\":\"Datadog, Inc.\"}},{\"id\":\"4dd2b640-8004-11ef-a398-da7ad0900002\",\"type\":\"ms-teams-handle-info\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"channel_name\":\"General-1\",\"name\":\"Test-Get_all_api_handles_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"team_name\":\"Chat Integrations\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\",\"tenant_name\":\"Datadog, Inc.\"}}]}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "99104a60-8eb0-f16e-d0e7-e0a664770147" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4dd2b640-8004-11ef-a398-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "c95531c0-c83d-381e-104b-84cdcf0c1715" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_api_handle_information_by_name_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_api_handle_information_by_name_returns_OK_response.freeze new file mode 100644 index 00000000000..f659c7f4956 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_api_handle_information_by_name_returns_OK_response.freeze @@ -0,0 +1 @@ +2024-10-01T14:49:04.773Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_api_handle_information_by_name_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_api_handle_information_by_name_returns_OK_response.json new file mode 100644 index 00000000000..b7b43f2f6f2 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_api_handle_information_by_name_returns_OK_response.json @@ -0,0 +1,79 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Get_api_handle_information_by_name_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"},\"type\":\"handle\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4e084346-8004-11ef-b4b6-da7ad0900002\",\"type\":\"handle\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Get_api_handle_information_by_name_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "534dcf1f-475f-3deb-9514-9dea909b3026" + }, + { + "httpRequest": { + "headers": {}, + "method": "GET", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/name/Test-Get_api_handle_information_by_name_returns_OK_response-1727794144", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4e084346-8004-11ef-b4b6-da7ad0900002\",\"type\":\"ms-teams-handle-info\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"channel_name\":\"General-1\",\"name\":\"Test-Get_api_handle_information_by_name_returns_OK_response-1727794144\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"team_name\":\"Chat Integrations\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\",\"tenant_name\":\"Datadog, Inc.\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "63bf2ad5-d53a-2301-bca8-4f040ee74242" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4e084346-8004-11ef-b4b6-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "73549007-4e88-410f-ea33-7b40b2f270cc" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_api_handle_information_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_api_handle_information_returns_OK_response.freeze new file mode 100644 index 00000000000..712c03f8798 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_api_handle_information_returns_OK_response.freeze @@ -0,0 +1 @@ +2024-10-01T14:49:05.113Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_api_handle_information_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_api_handle_information_returns_OK_response.json new file mode 100644 index 00000000000..b9d956e6ab7 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_api_handle_information_returns_OK_response.json @@ -0,0 +1,79 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Get_api_handle_information_returns_OK_response-1727794145\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"},\"type\":\"handle\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4e3c0816-8004-11ef-b813-da7ad0900002\",\"type\":\"handle\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Get_api_handle_information_returns_OK_response-1727794145\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "8cfc2dca-9672-e4cf-4531-ce003979d0e7" + }, + { + "httpRequest": { + "headers": {}, + "method": "GET", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4e3c0816-8004-11ef-b813-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4e3c0816-8004-11ef-b813-da7ad0900002\",\"type\":\"ms-teams-handle-info\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"channel_name\":\"General-1\",\"name\":\"Test-Get_api_handle_information_returns_OK_response-1727794145\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"team_name\":\"Chat Integrations\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\",\"tenant_name\":\"Datadog, Inc.\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "86c27b05-aef4-d546-c2a0-828cd5936072" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4e3c0816-8004-11ef-b813-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "67d24ca0-a1c6-d50c-8855-4f2e986117e4" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_findings_with_detection_type_query_param_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/List_findings_with_detection_type_query_param_returns_OK_response.freeze new file mode 100644 index 00000000000..18be96b7288 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/List_findings_with_detection_type_query_param_returns_OK_response.freeze @@ -0,0 +1 @@ +2024-09-27T19:24:51.188Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_findings_with_detection_type_query_param_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_findings_with_detection_type_query_param_returns_OK_response.json new file mode 100644 index 00000000000..bcd783c5015 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/List_findings_with_detection_type_query_param_returns_OK_response.json @@ -0,0 +1,34 @@ +[ + { + "httpRequest": { + "headers": {}, + "method": "GET", + "path": "/api/v2/posture_management/findings", + "queryStringParameters": { + "filter[detection_type]": [ + "misconfiguration", + "attack_path" + ] + }, + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":[],\"meta\":{\"page\":{\"total_filtered_count\":0},\"snapshot_timestamp\":1727465091308}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "4ec02501-f339-0117-166c-0dc56b57b505" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_api_handle_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_api_handle_returns_OK_response.freeze new file mode 100644 index 00000000000..af5a435fda0 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_api_handle_returns_OK_response.freeze @@ -0,0 +1 @@ +2024-10-01T14:49:05.470Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_api_handle_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_api_handle_returns_OK_response.json new file mode 100644 index 00000000000..62693ef3a00 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_api_handle_returns_OK_response.json @@ -0,0 +1,83 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Update_api_handle_returns_OK_response-1727794145\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"},\"type\":\"handle\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4e741fa8-8004-11ef-8fa4-da7ad0900002\",\"type\":\"handle\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"name\":\"Test-Update_api_handle_returns_OK_response-1727794145\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "e3e99a45-6502-fc23-36d0-d9c4ff0c2932" + }, + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"name\":\"Test-Update_api_handle_returns_OK_response-1727794145--updated\"},\"type\":\"handle\"}}" + }, + "headers": {}, + "method": "PATCH", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4e741fa8-8004-11ef-8fa4-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"4e741fa8-8004-11ef-8fa4-da7ad0900002\",\"type\":\"ms-teams-handle-info\",\"attributes\":{\"channel_id\":\"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\",\"channel_name\":\"General-1\",\"name\":\"Test-Update_api_handle_returns_OK_response-1727794145--updated\",\"team_id\":\"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\"team_name\":\"Chat Integrations\",\"tenant_id\":\"4d3bac44-0230-4732-9e70-cc00736f0a97\",\"tenant_name\":\"Datadog, Inc.\"}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "52e57684-6b4e-fab8-3bdf-ebc20bec925d" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/integration/ms-teams/configuration/tenant-based-handles/4e741fa8-8004-11ef-8fa4-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": {}, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "fa9b198e-46be-ec63-451c-7920dc58c75c" + } +] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature b/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature index 09231d8d789..de855fec2dd 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/dashboards.feature @@ -206,19 +206,6 @@ Feature: Dashboards And the response "widgets[0].definition.requests[0].sort.order_by[0].type" is equal to "group" And the response "widgets[0].definition.requests[0].sort.order_by[0].name" is equal to "service" - @skip-typescript @team:DataDog/dashboards-backend - Scenario: Create a new dashboard with a toplist widget with stacked type and no legend specified - Given new "CreateDashboard" request - And body with value {"title":"{{ unique }}","description":"","widgets":[{"layout":{"x":0,"y":0,"width":47,"height":15},"definition":{"title":"","title_size":"16","title_align":"left","time":{},"style":{"display": {"type": "stacked"},"scaling": "relative","palette": "dog_classic"},"type":"toplist","requests":[{"queries":[{"data_source":"metrics","name":"query1","query":"avg:system.cpu.user{*} by {service}","aggregator":"avg"}],"formulas":[{"formula":"query1"}],"sort":{"count":10,"order_by":[{"type":"group","name":"service","order":"asc"}]},"response_format":"scalar"}]}}],"template_variables":[],"layout_type":"free","is_read_only":false,"notify_list":[]} - When the request is sent - Then the response status is 200 OK - And the response "widgets[0].definition.type" is equal to "toplist" - And the response "widgets[0].definition.requests[0].sort.order_by[0].order" is equal to "asc" - And the response "widgets[0].definition.requests[0].sort.order_by[0].type" is equal to "group" - And the response "widgets[0].definition.requests[0].sort.order_by[0].name" is equal to "service" - And the response "widgets[0].definition.style.display.type" is equal to "stacked" - And the response "widgets[0].definition.style.display" does not have field "legend" - @team:DataDog/dashboards-backend Scenario: Create a new dashboard with alert_graph widget Given there is a valid "monitor" in the system diff --git a/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature b/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature index a980f84c43e..c5e2eae1bdf 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/synthetics.feature @@ -128,7 +128,7 @@ Feature: Synthetics @generated @skip @team:DataDog/synthetics-ct Scenario: Create a mobile test returns "- JSON format is wrong" response Given new "CreateSyntheticsMobileTest" request - And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} + And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["apple ipad (2022),16.4"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["apple ipad (2022),16.4"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} When the request is sent Then the response status is 400 - JSON format is wrong @@ -147,7 +147,7 @@ Feature: Synthetics @generated @skip @team:DataDog/synthetics-ct Scenario: Create a mobile test returns "Test quota is reached" response Given new "CreateSyntheticsMobileTest" request - And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} + And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["apple ipad (2022),16.4"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["apple ipad (2022),16.4"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} When the request is sent Then the response status is 402 Test quota is reached @@ -361,7 +361,7 @@ Feature: Synthetics Scenario: Edit a Mobile test returns "- JSON format is wrong" response Given new "UpdateMobileTest" request And request contains "public_id" parameter from "REPLACE.ME" - And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} + And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["apple ipad (2022),16.4"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["apple ipad (2022),16.4"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} When the request is sent Then the response status is 400 - JSON format is wrong @@ -369,7 +369,7 @@ Feature: Synthetics Scenario: Edit a Mobile test returns "- Synthetic Monitoring is not activated for the user" response Given new "UpdateMobileTest" request And request contains "public_id" parameter from "REPLACE.ME" - And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} + And body with value {"config": {"initialApplicationArguments": {"propertyNames": {"pattern": "^(?!_dd).*$"}}, "variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["apple ipad (2022),16.4"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"items": {"principals": [], "role": "editor"}}], "ci": {"executionRule": "blocking"}, "device_ids": ["apple ipad (2022),16.4"], "mobileApplication": {"referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}}, "status": "live", "steps": [{"publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"} When the request is sent Then the response status is 404 - Synthetic Monitoring is not activated for the user diff --git a/src/test/resources/com/datadog/api/client/v2/api/given.json b/src/test/resources/com/datadog/api/client/v2/api/given.json index efc7bed91b5..d3652a2a757 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/given.json +++ b/src/test/resources/com/datadog/api/client/v2/api/given.json @@ -216,13 +216,13 @@ "parameters": [ { "name": "body", - "value": "{\n \"data\": {\n \"attributes\": {\n \"name\": \"{{ unique }}\",\n \"tenant_id\": \"4d3bac44-0230-4732-9e70-cc00736f0a97\",\n \"team_id\": \"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\n \"channel_id\": \"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\"\n },\n \"type\": \"tenant-based-handle\"\n }\n}" + "value": "{\n \"data\": {\n \"attributes\": {\n \"name\": \"{{ unique }}\",\n \"tenant_id\": \"4d3bac44-0230-4732-9e70-cc00736f0a97\",\n \"team_id\": \"e5f50a58-c929-4fb3-8866-e2cd836de3c2\",\n \"channel_id\": \"19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2\"\n },\n \"type\": \"handle\"\n }\n}" } ], - "step": "there is a valid \"tenant_based_handle\" in the system", - "key": "tenant_based_handle", + "step": "there is a valid \"api_handle\" in the system", + "key": "api_handle", "tag": "Microsoft Teams Integration", - "operationId": "CreateTenantBasedHandle" + "operationId": "CreateApiHandle" }, { "parameters": [ diff --git a/src/test/resources/com/datadog/api/client/v2/api/microsoft_teams_integration.feature b/src/test/resources/com/datadog/api/client/v2/api/microsoft_teams_integration.feature index 59f31993a73..f1a34862f85 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/microsoft_teams_integration.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/microsoft_teams_integration.feature @@ -10,121 +10,132 @@ Feature: Microsoft Teams Integration And a valid "appKeyAuth" key in the system And an instance of "MicrosoftTeamsIntegration" API - @integration-only @team:DataDog/chat-integrations + @team:DataDog/chat-integrations Scenario: Create api handle returns "CREATED" response - Given new "CreateTenantBasedHandle" request - And body with value {"data": {"attributes": {"channel_id": "19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2", "name": "{{unique}}", "team_id": "e5f50a58-c929-4fb3-8866-e2cd836de3c2", "tenant_id": "4d3bac44-0230-4732-9e70-cc00736f0a97"}, "type": "tenant-based-handle"}} + Given new "CreateApiHandle" request + And body with value {"data": {"attributes": {"channel_id": "19:iD_D2xy_sAa-JV851JJYwIa6mlW9F9Nxm3SLyZq68qY1@thread.tacv2", "name": "{{unique}}", "team_id": "e5f50a58-c929-4fb3-8866-e2cd836de3c2", "tenant_id": "4d3bac44-0230-4732-9e70-cc00736f0a97"}, "type": "handle"}} When the request is sent Then the response status is 201 CREATED And the response "data.attributes.name" is equal to "{{unique}}" @generated @skip @team:DataDog/chat-integrations - Scenario: Create tenant-based handle returns "Bad Request" response - Given new "CreateTenantBasedHandle" request - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + Scenario: Create handle returns "Bad Request" response + Given new "CreateApiHandle" request + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/chat-integrations - Scenario: Create tenant-based handle returns "CREATED" response - Given new "CreateTenantBasedHandle" request - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + Scenario: Create handle returns "CREATED" response + Given new "CreateApiHandle" request + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 201 CREATED @generated @skip @team:DataDog/chat-integrations - Scenario: Create tenant-based handle returns "Conflict" response - Given new "CreateTenantBasedHandle" request - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + Scenario: Create handle returns "Conflict" response + Given new "CreateApiHandle" request + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 409 Conflict @generated @skip @team:DataDog/chat-integrations - Scenario: Create tenant-based handle returns "Failed Precondition" response - Given new "CreateTenantBasedHandle" request - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + Scenario: Create handle returns "Failed Precondition" response + Given new "CreateApiHandle" request + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 412 Failed Precondition @generated @skip @team:DataDog/chat-integrations - Scenario: Create tenant-based handle returns "Not Found" response - Given new "CreateTenantBasedHandle" request - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + Scenario: Create handle returns "Not Found" response + Given new "CreateApiHandle" request + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 404 Not Found - @integration-only @team:DataDog/chat-integrations + @team:DataDog/chat-integrations Scenario: Delete api handle returns "OK" response - Given there is a valid "tenant_based_handle" in the system - And new "DeleteTenantBasedHandle" request - And request contains "handle_id" parameter from "tenant_based_handle.data.id" + Given there is a valid "api_handle" in the system + And new "DeleteApiHandle" request + And request contains "handle_id" parameter from "api_handle.data.id" When the request is sent Then the response status is 204 OK @generated @skip @team:DataDog/chat-integrations - Scenario: Delete tenant-based handle returns "Bad Request" response - Given new "DeleteTenantBasedHandle" request + Scenario: Delete handle returns "Bad Request" response + Given new "DeleteApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/chat-integrations - Scenario: Delete tenant-based handle returns "Failed Precondition" response - Given new "DeleteTenantBasedHandle" request + Scenario: Delete handle returns "Failed Precondition" response + Given new "DeleteApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 412 Failed Precondition @generated @skip @team:DataDog/chat-integrations - Scenario: Delete tenant-based handle returns "OK" response - Given new "DeleteTenantBasedHandle" request + Scenario: Delete handle returns "OK" response + Given new "DeleteApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 OK - @integration-only @team:DataDog/chat-integrations + @team:DataDog/chat-integrations Scenario: Get all api handles returns "OK" response - Given there is a valid "tenant_based_handle" in the system - And new "ListTenantBasedHandles" request + Given there is a valid "api_handle" in the system + And new "ListApiHandles" request When the request is sent Then the response status is 200 OK - And the response "data[0].type" is equal to "ms-teams-tenant-based-handle-info" + And the response "data[0].type" is equal to "ms-teams-handle-info" @generated @skip @team:DataDog/chat-integrations - Scenario: Get all tenant-based handles returns "Bad Request" response - Given new "ListTenantBasedHandles" request + Scenario: Get all handles returns "Bad Request" response + Given new "ListApiHandles" request When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/chat-integrations - Scenario: Get all tenant-based handles returns "Failed Precondition" response - Given new "ListTenantBasedHandles" request + Scenario: Get all handles returns "Failed Precondition" response + Given new "ListApiHandles" request When the request is sent Then the response status is 412 Failed Precondition @generated @skip @team:DataDog/chat-integrations - Scenario: Get all tenant-based handles returns "Not Found" response - Given new "ListTenantBasedHandles" request + Scenario: Get all handles returns "Not Found" response + Given new "ListApiHandles" request When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/chat-integrations - Scenario: Get all tenant-based handles returns "OK" response - Given new "ListTenantBasedHandles" request + Scenario: Get all handles returns "OK" response + Given new "ListApiHandles" request When the request is sent Then the response status is 200 OK - @integration-only @team:DataDog/chat-integrations + @team:DataDog/chat-integrations + Scenario: Get api handle information by name returns "OK" response + Given there is a valid "api_handle" in the system + And new "GetApiHandleByName" request + And request contains "handle_name" parameter from "api_handle.data.attributes.name" + When the request is sent + Then the response status is 200 OK + And the response "data.attributes.channel_id" has the same value as "api_handle.data.attributes.channel_id" + And the response "data.attributes.team_id" has the same value as "api_handle.data.attributes.team_id" + And the response "data.attributes.tenant_id" has the same value as "api_handle.data.attributes.tenant_id" + + @team:DataDog/chat-integrations Scenario: Get api handle information returns "OK" response - Given there is a valid "tenant_based_handle" in the system - And new "GetTenantBasedHandle" request - And request contains "handle_id" parameter from "tenant_based_handle.data.id" + Given there is a valid "api_handle" in the system + And new "GetApiHandle" request + And request contains "handle_id" parameter from "api_handle.data.id" When the request is sent Then the response status is 200 OK - And the response "data.attributes.name" has the same value as "tenant_based_handle.data.attributes.name" - And the response "data.attributes.channel_id" has the same value as "tenant_based_handle.data.attributes.channel_id" - And the response "data.attributes.team_id" has the same value as "tenant_based_handle.data.attributes.team_id" - And the response "data.attributes.tenant_id" has the same value as "tenant_based_handle.data.attributes.tenant_id" + And the response "data.attributes.name" has the same value as "api_handle.data.attributes.name" + And the response "data.attributes.channel_id" has the same value as "api_handle.data.attributes.channel_id" + And the response "data.attributes.team_id" has the same value as "api_handle.data.attributes.team_id" + And the response "data.attributes.tenant_id" has the same value as "api_handle.data.attributes.tenant_id" @generated @skip @team:DataDog/chat-integrations Scenario: Get channel information by name returns "Bad Request" response @@ -154,79 +165,107 @@ Feature: Microsoft Teams Integration Then the response status is 200 OK @generated @skip @team:DataDog/chat-integrations - Scenario: Get tenant-based handle information returns "Bad Request" response - Given new "GetTenantBasedHandle" request + Scenario: Get handle information by name returns "Bad Request" response + Given new "GetApiHandleByName" request + And request contains "handle_name" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/chat-integrations + Scenario: Get handle information by name returns "Failed Precondition" response + Given new "GetApiHandleByName" request + And request contains "handle_name" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 412 Failed Precondition + + @generated @skip @team:DataDog/chat-integrations + Scenario: Get handle information by name returns "Not Found" response + Given new "GetApiHandleByName" request + And request contains "handle_name" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/chat-integrations + Scenario: Get handle information by name returns "OK" response + Given new "GetApiHandleByName" request + And request contains "handle_name" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:DataDog/chat-integrations + Scenario: Get handle information returns "Bad Request" response + Given new "GetApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/chat-integrations - Scenario: Get tenant-based handle information returns "Failed Precondition" response - Given new "GetTenantBasedHandle" request + Scenario: Get handle information returns "Failed Precondition" response + Given new "GetApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 412 Failed Precondition @generated @skip @team:DataDog/chat-integrations - Scenario: Get tenant-based handle information returns "Not Found" response - Given new "GetTenantBasedHandle" request + Scenario: Get handle information returns "Not Found" response + Given new "GetApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/chat-integrations - Scenario: Get tenant-based handle information returns "OK" response - Given new "GetTenantBasedHandle" request + Scenario: Get handle information returns "OK" response + Given new "GetApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @integration-only @team:DataDog/chat-integrations + @team:DataDog/chat-integrations Scenario: Update api handle returns "OK" response - Given there is a valid "tenant_based_handle" in the system - And new "UpdateTenantBasedHandle" request - And request contains "handle_id" parameter from "tenant_based_handle.data.id" - And body with value {"data": {"attributes": {"name": "{{tenant_based_handle.data.attributes.name}}--updated"}, "type": "tenant-based-handle"}} + Given there is a valid "api_handle" in the system + And new "UpdateApiHandle" request + And request contains "handle_id" parameter from "api_handle.data.id" + And body with value {"data": {"attributes": {"name": "{{api_handle.data.attributes.name}}--updated"}, "type": "handle"}} When the request is sent Then the response status is 200 OK - And the response "data.attributes.name" is equal to "{{tenant_based_handle.data.attributes.name}}--updated" + And the response "data.attributes.name" is equal to "{{api_handle.data.attributes.name}}--updated" @generated @skip @team:DataDog/chat-integrations - Scenario: Update tenant-based handle returns "Bad Request" response - Given new "UpdateTenantBasedHandle" request + Scenario: Update handle returns "Bad Request" response + Given new "UpdateApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/chat-integrations - Scenario: Update tenant-based handle returns "Conflict" response - Given new "UpdateTenantBasedHandle" request + Scenario: Update handle returns "Conflict" response + Given new "UpdateApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 409 Conflict @generated @skip @team:DataDog/chat-integrations - Scenario: Update tenant-based handle returns "Failed Precondition" response - Given new "UpdateTenantBasedHandle" request + Scenario: Update handle returns "Failed Precondition" response + Given new "UpdateApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 412 Failed Precondition @generated @skip @team:DataDog/chat-integrations - Scenario: Update tenant-based handle returns "Not Found" response - Given new "UpdateTenantBasedHandle" request + Scenario: Update handle returns "Not Found" response + Given new "UpdateApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/chat-integrations - Scenario: Update tenant-based handle returns "OK" response - Given new "UpdateTenantBasedHandle" request + Scenario: Update handle returns "OK" response + Given new "UpdateApiHandle" request And request contains "handle_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "tenant-based-handle"}} + And body with value {"data": {"attributes": {"channel_id": "fake-channel-id", "name": "fake-handle-name", "team_id": "00000000-0000-0000-0000-000000000000", "tenant_id": "00000000-0000-0000-0000-000000000001"}, "type": "handle"}} When the request is sent Then the response status is 200 OK diff --git a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature index 27e45dd3c2b..c6c949a4db8 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature @@ -485,6 +485,14 @@ Feature: Security Monitoring When the request with pagination is sent Then the response status is 200 OK + @team:DataDog/cloud-security-posture-management + Scenario: List findings with detection_type query param returns "OK" response + Given operation "ListFindings" enabled + And new "ListFindings" request + And request contains "filter[detection_type]" parameter with value ["misconfiguration", "attack_path"] + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/k9-cloud-security-platform Scenario: List rules returns "Bad Request" response Given new "ListSecurityMonitoringRules" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index 62da7c99ef9..66c71e9fbb3 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -794,16 +794,16 @@ "type": "safe" } }, - "ListTenantBasedHandles": { + "ListApiHandles": { "tag": "Microsoft Teams Integration", "undo": { "type": "safe" } }, - "CreateTenantBasedHandle": { + "CreateApiHandle": { "tag": "Microsoft Teams Integration", "undo": { - "operationId": "DeleteTenantBasedHandle", + "operationId": "DeleteApiHandle", "parameters": [ { "name": "handle_id", @@ -813,19 +813,25 @@ "type": "unsafe" } }, - "DeleteTenantBasedHandle": { + "GetApiHandleByName": { + "tag": "Microsoft Teams Integration", + "undo": { + "type": "safe" + } + }, + "DeleteApiHandle": { "tag": "Microsoft Teams Integration", "undo": { "type": "idempotent" } }, - "GetTenantBasedHandle": { + "GetApiHandle": { "tag": "Microsoft Teams Integration", "undo": { "type": "safe" } }, - "UpdateTenantBasedHandle": { + "UpdateApiHandle": { "tag": "Microsoft Teams Integration", "undo": { "type": "idempotent"