| // ignore_for_file: camel_case_types |
| // ignore_for_file: cascade_invocations |
| // ignore_for_file: comment_references |
| // ignore_for_file: file_names |
| // ignore_for_file: library_names |
| // ignore_for_file: lines_longer_than_80_chars |
| // ignore_for_file: non_constant_identifier_names |
| // ignore_for_file: prefer_const_declarations |
| // ignore_for_file: prefer_expression_function_bodies |
| // ignore_for_file: prefer_final_locals |
| // ignore_for_file: prefer_interpolation_to_compose_strings |
| // ignore_for_file: unnecessary_brace_in_string_interps |
| // ignore_for_file: unnecessary_cast |
| // ignore_for_file: unnecessary_lambdas |
| // ignore_for_file: unnecessary_parenthesis |
| // ignore_for_file: unnecessary_string_interpolations |
| // ignore_for_file: unused_local_variable |
| |
| import 'dart:async' as async; |
| import 'dart:convert' as convert; |
| import 'dart:core' as core; |
| |
| import 'package:googleapis_beta/analyticsadmin/v1alpha.dart' as api; |
| import 'package:http/http.dart' as http; |
| import 'package:test/test.dart' as unittest; |
| |
| import '../test_shared.dart'; |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccount = 0; |
| api.GoogleAnalyticsAdminV1alphaAccount |
| buildGoogleAnalyticsAdminV1alphaAccount() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccount(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccount++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccount < 3) { |
| o.createTime = 'foo'; |
| o.deleted = true; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.regionCode = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccount--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccount( |
| api.GoogleAnalyticsAdminV1alphaAccount o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccount++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccount < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect(o.deleted!, unittest.isTrue); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.regionCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccount--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaPropertySummary> buildUnnamed0() => [ |
| buildGoogleAnalyticsAdminV1alphaPropertySummary(), |
| buildGoogleAnalyticsAdminV1alphaPropertySummary(), |
| ]; |
| |
| void checkUnnamed0( |
| core.List<api.GoogleAnalyticsAdminV1alphaPropertySummary> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaPropertySummary(o[0]); |
| checkGoogleAnalyticsAdminV1alphaPropertySummary(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccountSummary = 0; |
| api.GoogleAnalyticsAdminV1alphaAccountSummary |
| buildGoogleAnalyticsAdminV1alphaAccountSummary() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccountSummary(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccountSummary++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccountSummary < 3) { |
| o.account = 'foo'; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.propertySummaries = buildUnnamed0(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccountSummary--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccountSummary( |
| api.GoogleAnalyticsAdminV1alphaAccountSummary o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccountSummary++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccountSummary < 3) { |
| unittest.expect( |
| o.account!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed0(o.propertySummaries!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccountSummary--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest |
| buildGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest() { |
| final o = |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest < |
| 3) { |
| o.acknowledgement = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest( |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest < |
| 3) { |
| unittest.expect( |
| o.acknowledgement!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse |
| buildGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse() { |
| final o = |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse( |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAndroidAppDataStream = 0; |
| api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream |
| buildGoogleAnalyticsAdminV1alphaAndroidAppDataStream() { |
| final o = api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream(); |
| buildCounterGoogleAnalyticsAdminV1alphaAndroidAppDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAndroidAppDataStream < 3) { |
| o.createTime = 'foo'; |
| o.displayName = 'foo'; |
| o.firebaseAppId = 'foo'; |
| o.name = 'foo'; |
| o.packageName = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAndroidAppDataStream--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAndroidAppDataStream( |
| api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAndroidAppDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAndroidAppDataStream < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.firebaseAppId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.packageName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAndroidAppDataStream--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest |
| buildGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest( |
| api.GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse |
| buildGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse < |
| 3) { |
| o.displayVideo360AdvertiserLink = |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse( |
| api.GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse < |
| 3) { |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink( |
| o.displayVideo360AdvertiserLink!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest |
| buildGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest( |
| api.GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest |
| buildGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest < 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest( |
| api.GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest < 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest--; |
| } |
| |
| core.List<core.String> buildUnnamed1() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed1(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.List<core.String> buildUnnamed2() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed2(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink = 0; |
| api.GoogleAnalyticsAdminV1alphaAuditUserLink |
| buildGoogleAnalyticsAdminV1alphaAuditUserLink() { |
| final o = api.GoogleAnalyticsAdminV1alphaAuditUserLink(); |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink < 3) { |
| o.directRoles = buildUnnamed1(); |
| o.effectiveRoles = buildUnnamed2(); |
| o.emailAddress = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAuditUserLink( |
| api.GoogleAnalyticsAdminV1alphaAuditUserLink o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink < 3) { |
| checkUnnamed1(o.directRoles!); |
| checkUnnamed2(o.effectiveRoles!); |
| unittest.expect( |
| o.emailAddress!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest |
| buildGoogleAnalyticsAdminV1alphaAuditUserLinksRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksRequest < 3) { |
| o.pageSize = 42; |
| o.pageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAuditUserLinksRequest( |
| api.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksRequest < 3) { |
| unittest.expect( |
| o.pageSize!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.pageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAuditUserLink> buildUnnamed3() => [ |
| buildGoogleAnalyticsAdminV1alphaAuditUserLink(), |
| buildGoogleAnalyticsAdminV1alphaAuditUserLink(), |
| ]; |
| |
| void checkUnnamed3(core.List<api.GoogleAnalyticsAdminV1alphaAuditUserLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLink(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse |
| buildGoogleAnalyticsAdminV1alphaAuditUserLinksResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.userLinks = buildUnnamed3(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAuditUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed3(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaCreateUserLinkRequest> |
| buildUnnamed4() => [ |
| buildGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(), |
| buildGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(), |
| ]; |
| |
| void checkUnnamed4( |
| core.List<api.GoogleAnalyticsAdminV1alphaCreateUserLinkRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(o[0]); |
| checkGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest |
| buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest < 3) { |
| o.notifyNewUsers = true; |
| o.requests = buildUnnamed4(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest( |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest < 3) { |
| unittest.expect(o.notifyNewUsers!, unittest.isTrue); |
| checkUnnamed4(o.requests!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed5() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed5(core.List<api.GoogleAnalyticsAdminV1alphaUserLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse |
| buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse < 3) { |
| o.userLinks = buildUnnamed5(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse < 3) { |
| checkUnnamed5(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest> |
| buildUnnamed6() => [ |
| buildGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(), |
| buildGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(), |
| ]; |
| |
| void checkUnnamed6( |
| core.List<api.GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(o[0]); |
| checkGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest |
| buildGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest < 3) { |
| o.requests = buildUnnamed6(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest( |
| api.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest < 3) { |
| checkUnnamed6(o.requests!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed7() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed7(core.List<api.GoogleAnalyticsAdminV1alphaUserLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse |
| buildGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse < 3) { |
| o.userLinks = buildUnnamed7(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse < 3) { |
| checkUnnamed7(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest> |
| buildUnnamed8() => [ |
| buildGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(), |
| buildGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(), |
| ]; |
| |
| void checkUnnamed8( |
| core.List<api.GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(o[0]); |
| checkGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest |
| buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest < 3) { |
| o.requests = buildUnnamed8(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest( |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest < 3) { |
| checkUnnamed8(o.requests!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed9() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed9(core.List<api.GoogleAnalyticsAdminV1alphaUserLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse |
| buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse < 3) { |
| o.userLinks = buildUnnamed9(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse < 3) { |
| checkUnnamed9(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest |
| buildGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest( |
| api.GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest < |
| 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChange = 0; |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryChange |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChange() { |
| final o = api.GoogleAnalyticsAdminV1alphaChangeHistoryChange(); |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChange++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChange < 3) { |
| o.action = 'foo'; |
| o.resource = 'foo'; |
| o.resourceAfterChange = |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource(); |
| o.resourceBeforeChange = |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChange--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaChangeHistoryChange( |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryChange o) { |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChange++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChange < 3) { |
| unittest.expect( |
| o.action!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.resource!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource( |
| o.resourceAfterChange!); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource( |
| o.resourceBeforeChange!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChange--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource() { |
| final o = |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource(); |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource < |
| 3) { |
| o.account = buildGoogleAnalyticsAdminV1alphaAccount(); |
| o.conversionEvent = buildGoogleAnalyticsAdminV1alphaConversionEvent(); |
| o.customDimension = buildGoogleAnalyticsAdminV1alphaCustomDimension(); |
| o.customMetric = buildGoogleAnalyticsAdminV1alphaCustomMetric(); |
| o.dataRetentionSettings = |
| buildGoogleAnalyticsAdminV1alphaDataRetentionSettings(); |
| o.dataStream = buildGoogleAnalyticsAdminV1alphaDataStream(); |
| o.displayVideo360AdvertiserLink = |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(); |
| o.displayVideo360AdvertiserLinkProposal = |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(); |
| o.firebaseLink = buildGoogleAnalyticsAdminV1alphaFirebaseLink(); |
| o.googleAdsLink = buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(); |
| o.googleSignalsSettings = |
| buildGoogleAnalyticsAdminV1alphaGoogleSignalsSettings(); |
| o.measurementProtocolSecret = |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(); |
| o.property = buildGoogleAnalyticsAdminV1alphaProperty(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource( |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource o) { |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource < |
| 3) { |
| checkGoogleAnalyticsAdminV1alphaAccount(o.account!); |
| checkGoogleAnalyticsAdminV1alphaConversionEvent(o.conversionEvent!); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension(o.customDimension!); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric(o.customMetric!); |
| checkGoogleAnalyticsAdminV1alphaDataRetentionSettings( |
| o.dataRetentionSettings!); |
| checkGoogleAnalyticsAdminV1alphaDataStream(o.dataStream!); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink( |
| o.displayVideo360AdvertiserLink!); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal( |
| o.displayVideo360AdvertiserLinkProposal!); |
| checkGoogleAnalyticsAdminV1alphaFirebaseLink(o.firebaseLink!); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink(o.googleAdsLink!); |
| checkGoogleAnalyticsAdminV1alphaGoogleSignalsSettings( |
| o.googleSignalsSettings!); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret( |
| o.measurementProtocolSecret!); |
| checkGoogleAnalyticsAdminV1alphaProperty(o.property!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaChangeHistoryChange> |
| buildUnnamed10() => [ |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChange(), |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChange(), |
| ]; |
| |
| void checkUnnamed10( |
| core.List<api.GoogleAnalyticsAdminV1alphaChangeHistoryChange> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryChange(o[0]); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryChange(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryEvent = 0; |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryEvent |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryEvent() { |
| final o = api.GoogleAnalyticsAdminV1alphaChangeHistoryEvent(); |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryEvent++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryEvent < 3) { |
| o.actorType = 'foo'; |
| o.changeTime = 'foo'; |
| o.changes = buildUnnamed10(); |
| o.changesFiltered = true; |
| o.id = 'foo'; |
| o.userActorEmail = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryEvent--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaChangeHistoryEvent( |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryEvent o) { |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryEvent++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryEvent < 3) { |
| unittest.expect( |
| o.actorType!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.changeTime!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed10(o.changes!); |
| unittest.expect(o.changesFiltered!, unittest.isTrue); |
| unittest.expect( |
| o.id!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.userActorEmail!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaChangeHistoryEvent--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaConversionEvent = 0; |
| api.GoogleAnalyticsAdminV1alphaConversionEvent |
| buildGoogleAnalyticsAdminV1alphaConversionEvent() { |
| final o = api.GoogleAnalyticsAdminV1alphaConversionEvent(); |
| buildCounterGoogleAnalyticsAdminV1alphaConversionEvent++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaConversionEvent < 3) { |
| o.createTime = 'foo'; |
| o.custom = true; |
| o.deletable = true; |
| o.eventName = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaConversionEvent--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaConversionEvent( |
| api.GoogleAnalyticsAdminV1alphaConversionEvent o) { |
| buildCounterGoogleAnalyticsAdminV1alphaConversionEvent++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaConversionEvent < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect(o.custom!, unittest.isTrue); |
| unittest.expect(o.deletable!, unittest.isTrue); |
| unittest.expect( |
| o.eventName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaConversionEvent--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaCreateUserLinkRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaCreateUserLinkRequest |
| buildGoogleAnalyticsAdminV1alphaCreateUserLinkRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaCreateUserLinkRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaCreateUserLinkRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCreateUserLinkRequest < 3) { |
| o.notifyNewUser = true; |
| o.parent = 'foo'; |
| o.userLink = buildGoogleAnalyticsAdminV1alphaUserLink(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaCreateUserLinkRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaCreateUserLinkRequest( |
| api.GoogleAnalyticsAdminV1alphaCreateUserLinkRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaCreateUserLinkRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCreateUserLinkRequest < 3) { |
| unittest.expect(o.notifyNewUser!, unittest.isTrue); |
| unittest.expect( |
| o.parent!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o.userLink!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaCreateUserLinkRequest--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaCustomDimension = 0; |
| api.GoogleAnalyticsAdminV1alphaCustomDimension |
| buildGoogleAnalyticsAdminV1alphaCustomDimension() { |
| final o = api.GoogleAnalyticsAdminV1alphaCustomDimension(); |
| buildCounterGoogleAnalyticsAdminV1alphaCustomDimension++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCustomDimension < 3) { |
| o.description = 'foo'; |
| o.disallowAdsPersonalization = true; |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.parameterName = 'foo'; |
| o.scope = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaCustomDimension--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaCustomDimension( |
| api.GoogleAnalyticsAdminV1alphaCustomDimension o) { |
| buildCounterGoogleAnalyticsAdminV1alphaCustomDimension++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCustomDimension < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect(o.disallowAdsPersonalization!, unittest.isTrue); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.parameterName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.scope!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaCustomDimension--; |
| } |
| |
| core.List<core.String> buildUnnamed11() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed11(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaCustomMetric = 0; |
| api.GoogleAnalyticsAdminV1alphaCustomMetric |
| buildGoogleAnalyticsAdminV1alphaCustomMetric() { |
| final o = api.GoogleAnalyticsAdminV1alphaCustomMetric(); |
| buildCounterGoogleAnalyticsAdminV1alphaCustomMetric++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCustomMetric < 3) { |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.measurementUnit = 'foo'; |
| o.name = 'foo'; |
| o.parameterName = 'foo'; |
| o.restrictedMetricType = buildUnnamed11(); |
| o.scope = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaCustomMetric--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaCustomMetric( |
| api.GoogleAnalyticsAdminV1alphaCustomMetric o) { |
| buildCounterGoogleAnalyticsAdminV1alphaCustomMetric++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaCustomMetric < 3) { |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.measurementUnit!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.parameterName!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed11(o.restrictedMetricType!); |
| unittest.expect( |
| o.scope!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaCustomMetric--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDataRetentionSettings = 0; |
| api.GoogleAnalyticsAdminV1alphaDataRetentionSettings |
| buildGoogleAnalyticsAdminV1alphaDataRetentionSettings() { |
| final o = api.GoogleAnalyticsAdminV1alphaDataRetentionSettings(); |
| buildCounterGoogleAnalyticsAdminV1alphaDataRetentionSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataRetentionSettings < 3) { |
| o.eventDataRetention = 'foo'; |
| o.name = 'foo'; |
| o.resetUserDataOnNewActivity = true; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataRetentionSettings--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDataRetentionSettings( |
| api.GoogleAnalyticsAdminV1alphaDataRetentionSettings o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDataRetentionSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataRetentionSettings < 3) { |
| unittest.expect( |
| o.eventDataRetention!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect(o.resetUserDataOnNewActivity!, unittest.isTrue); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataRetentionSettings--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDataSharingSettings = 0; |
| api.GoogleAnalyticsAdminV1alphaDataSharingSettings |
| buildGoogleAnalyticsAdminV1alphaDataSharingSettings() { |
| final o = api.GoogleAnalyticsAdminV1alphaDataSharingSettings(); |
| buildCounterGoogleAnalyticsAdminV1alphaDataSharingSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataSharingSettings < 3) { |
| o.name = 'foo'; |
| o.sharingWithGoogleAnySalesEnabled = true; |
| o.sharingWithGoogleAssignedSalesEnabled = true; |
| o.sharingWithGoogleProductsEnabled = true; |
| o.sharingWithGoogleSupportEnabled = true; |
| o.sharingWithOthersEnabled = true; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataSharingSettings--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDataSharingSettings( |
| api.GoogleAnalyticsAdminV1alphaDataSharingSettings o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDataSharingSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataSharingSettings < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect(o.sharingWithGoogleAnySalesEnabled!, unittest.isTrue); |
| unittest.expect(o.sharingWithGoogleAssignedSalesEnabled!, unittest.isTrue); |
| unittest.expect(o.sharingWithGoogleProductsEnabled!, unittest.isTrue); |
| unittest.expect(o.sharingWithGoogleSupportEnabled!, unittest.isTrue); |
| unittest.expect(o.sharingWithOthersEnabled!, unittest.isTrue); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataSharingSettings--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDataStream = 0; |
| api.GoogleAnalyticsAdminV1alphaDataStream |
| buildGoogleAnalyticsAdminV1alphaDataStream() { |
| final o = api.GoogleAnalyticsAdminV1alphaDataStream(); |
| buildCounterGoogleAnalyticsAdminV1alphaDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStream < 3) { |
| o.androidAppStreamData = |
| buildGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData(); |
| o.createTime = 'foo'; |
| o.displayName = 'foo'; |
| o.iosAppStreamData = |
| buildGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData(); |
| o.name = 'foo'; |
| o.type = 'foo'; |
| o.updateTime = 'foo'; |
| o.webStreamData = buildGoogleAnalyticsAdminV1alphaDataStreamWebStreamData(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStream--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDataStream( |
| api.GoogleAnalyticsAdminV1alphaDataStream o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStream < 3) { |
| checkGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData( |
| o.androidAppStreamData!); |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData( |
| o.iosAppStreamData!); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.type!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaDataStreamWebStreamData(o.webStreamData!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStream--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData |
| buildGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData() { |
| final o = api.GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData(); |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData < |
| 3) { |
| o.firebaseAppId = 'foo'; |
| o.packageName = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData( |
| api.GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData < |
| 3) { |
| unittest.expect( |
| o.firebaseAppId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.packageName!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData = 0; |
| api.GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData |
| buildGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData() { |
| final o = api.GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData(); |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData < 3) { |
| o.bundleId = 'foo'; |
| o.firebaseAppId = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData( |
| api.GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData < 3) { |
| unittest.expect( |
| o.bundleId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.firebaseAppId!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDataStreamWebStreamData = 0; |
| api.GoogleAnalyticsAdminV1alphaDataStreamWebStreamData |
| buildGoogleAnalyticsAdminV1alphaDataStreamWebStreamData() { |
| final o = api.GoogleAnalyticsAdminV1alphaDataStreamWebStreamData(); |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamWebStreamData++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStreamWebStreamData < 3) { |
| o.defaultUri = 'foo'; |
| o.firebaseAppId = 'foo'; |
| o.measurementId = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamWebStreamData--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDataStreamWebStreamData( |
| api.GoogleAnalyticsAdminV1alphaDataStreamWebStreamData o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamWebStreamData++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDataStreamWebStreamData < 3) { |
| unittest.expect( |
| o.defaultUri!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.firebaseAppId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.measurementId!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDataStreamWebStreamData--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest |
| buildGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest < 3) { |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest( |
| api.GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink() { |
| final o = api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(); |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink < |
| 3) { |
| o.adsPersonalizationEnabled = true; |
| o.advertiserDisplayName = 'foo'; |
| o.advertiserId = 'foo'; |
| o.campaignDataSharingEnabled = true; |
| o.costDataSharingEnabled = true; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink( |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink < |
| 3) { |
| unittest.expect(o.adsPersonalizationEnabled!, unittest.isTrue); |
| unittest.expect( |
| o.advertiserDisplayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.advertiserId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect(o.campaignDataSharingEnabled!, unittest.isTrue); |
| unittest.expect(o.costDataSharingEnabled!, unittest.isTrue); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal() { |
| final o = |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(); |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal < |
| 3) { |
| o.adsPersonalizationEnabled = true; |
| o.advertiserDisplayName = 'foo'; |
| o.advertiserId = 'foo'; |
| o.campaignDataSharingEnabled = true; |
| o.costDataSharingEnabled = true; |
| o.linkProposalStatusDetails = |
| buildGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails(); |
| o.name = 'foo'; |
| o.validationEmail = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal( |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal o) { |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal < |
| 3) { |
| unittest.expect(o.adsPersonalizationEnabled!, unittest.isTrue); |
| unittest.expect( |
| o.advertiserDisplayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.advertiserId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect(o.campaignDataSharingEnabled!, unittest.isTrue); |
| unittest.expect(o.costDataSharingEnabled!, unittest.isTrue); |
| checkGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails( |
| o.linkProposalStatusDetails!); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.validationEmail!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaFirebaseLink = 0; |
| api.GoogleAnalyticsAdminV1alphaFirebaseLink |
| buildGoogleAnalyticsAdminV1alphaFirebaseLink() { |
| final o = api.GoogleAnalyticsAdminV1alphaFirebaseLink(); |
| buildCounterGoogleAnalyticsAdminV1alphaFirebaseLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaFirebaseLink < 3) { |
| o.createTime = 'foo'; |
| o.name = 'foo'; |
| o.project = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaFirebaseLink--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaFirebaseLink( |
| api.GoogleAnalyticsAdminV1alphaFirebaseLink o) { |
| buildCounterGoogleAnalyticsAdminV1alphaFirebaseLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaFirebaseLink < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.project!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaFirebaseLink--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaGlobalSiteTag = 0; |
| api.GoogleAnalyticsAdminV1alphaGlobalSiteTag |
| buildGoogleAnalyticsAdminV1alphaGlobalSiteTag() { |
| final o = api.GoogleAnalyticsAdminV1alphaGlobalSiteTag(); |
| buildCounterGoogleAnalyticsAdminV1alphaGlobalSiteTag++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaGlobalSiteTag < 3) { |
| o.name = 'foo'; |
| o.snippet = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaGlobalSiteTag--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaGlobalSiteTag( |
| api.GoogleAnalyticsAdminV1alphaGlobalSiteTag o) { |
| buildCounterGoogleAnalyticsAdminV1alphaGlobalSiteTag++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaGlobalSiteTag < 3) { |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.snippet!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaGlobalSiteTag--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaGoogleAdsLink = 0; |
| api.GoogleAnalyticsAdminV1alphaGoogleAdsLink |
| buildGoogleAnalyticsAdminV1alphaGoogleAdsLink() { |
| final o = api.GoogleAnalyticsAdminV1alphaGoogleAdsLink(); |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleAdsLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaGoogleAdsLink < 3) { |
| o.adsPersonalizationEnabled = true; |
| o.canManageClients = true; |
| o.createTime = 'foo'; |
| o.creatorEmailAddress = 'foo'; |
| o.customerId = 'foo'; |
| o.name = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleAdsLink--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaGoogleAdsLink( |
| api.GoogleAnalyticsAdminV1alphaGoogleAdsLink o) { |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleAdsLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaGoogleAdsLink < 3) { |
| unittest.expect(o.adsPersonalizationEnabled!, unittest.isTrue); |
| unittest.expect(o.canManageClients!, unittest.isTrue); |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.creatorEmailAddress!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.customerId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleAdsLink--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaGoogleSignalsSettings = 0; |
| api.GoogleAnalyticsAdminV1alphaGoogleSignalsSettings |
| buildGoogleAnalyticsAdminV1alphaGoogleSignalsSettings() { |
| final o = api.GoogleAnalyticsAdminV1alphaGoogleSignalsSettings(); |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleSignalsSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaGoogleSignalsSettings < 3) { |
| o.consent = 'foo'; |
| o.name = 'foo'; |
| o.state = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleSignalsSettings--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaGoogleSignalsSettings( |
| api.GoogleAnalyticsAdminV1alphaGoogleSignalsSettings o) { |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleSignalsSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaGoogleSignalsSettings < 3) { |
| unittest.expect( |
| o.consent!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.state!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaGoogleSignalsSettings--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaIosAppDataStream = 0; |
| api.GoogleAnalyticsAdminV1alphaIosAppDataStream |
| buildGoogleAnalyticsAdminV1alphaIosAppDataStream() { |
| final o = api.GoogleAnalyticsAdminV1alphaIosAppDataStream(); |
| buildCounterGoogleAnalyticsAdminV1alphaIosAppDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaIosAppDataStream < 3) { |
| o.bundleId = 'foo'; |
| o.createTime = 'foo'; |
| o.displayName = 'foo'; |
| o.firebaseAppId = 'foo'; |
| o.name = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaIosAppDataStream--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaIosAppDataStream( |
| api.GoogleAnalyticsAdminV1alphaIosAppDataStream o) { |
| buildCounterGoogleAnalyticsAdminV1alphaIosAppDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaIosAppDataStream < 3) { |
| unittest.expect( |
| o.bundleId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.firebaseAppId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaIosAppDataStream--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails = 0; |
| api.GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails |
| buildGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails() { |
| final o = api.GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails(); |
| buildCounterGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails < 3) { |
| o.linkProposalInitiatingProduct = 'foo'; |
| o.linkProposalState = 'foo'; |
| o.requestorEmail = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails( |
| api.GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails o) { |
| buildCounterGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails < 3) { |
| unittest.expect( |
| o.linkProposalInitiatingProduct!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.linkProposalState!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.requestorEmail!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccountSummary> buildUnnamed12() => [ |
| buildGoogleAnalyticsAdminV1alphaAccountSummary(), |
| buildGoogleAnalyticsAdminV1alphaAccountSummary(), |
| ]; |
| |
| void checkUnnamed12( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccountSummary> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccountSummary(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccountSummary(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListAccountSummariesResponse |
| buildGoogleAnalyticsAdminV1alphaListAccountSummariesResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListAccountSummariesResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse < 3) { |
| o.accountSummaries = buildUnnamed12(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListAccountSummariesResponse( |
| api.GoogleAnalyticsAdminV1alphaListAccountSummariesResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse < 3) { |
| checkUnnamed12(o.accountSummaries!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccount> buildUnnamed13() => [ |
| buildGoogleAnalyticsAdminV1alphaAccount(), |
| buildGoogleAnalyticsAdminV1alphaAccount(), |
| ]; |
| |
| void checkUnnamed13(core.List<api.GoogleAnalyticsAdminV1alphaAccount> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccount(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccount(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListAccountsResponse |
| buildGoogleAnalyticsAdminV1alphaListAccountsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListAccountsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse < 3) { |
| o.accounts = buildUnnamed13(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListAccountsResponse( |
| api.GoogleAnalyticsAdminV1alphaListAccountsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse < 3) { |
| checkUnnamed13(o.accounts!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream> |
| buildUnnamed14() => [ |
| buildGoogleAnalyticsAdminV1alphaAndroidAppDataStream(), |
| buildGoogleAnalyticsAdminV1alphaAndroidAppDataStream(), |
| ]; |
| |
| void checkUnnamed14( |
| core.List<api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAndroidAppDataStream(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAndroidAppDataStream(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse |
| buildGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse < |
| 3) { |
| o.androidAppDataStreams = buildUnnamed14(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse( |
| api.GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse < |
| 3) { |
| checkUnnamed14(o.androidAppDataStreams!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaConversionEvent> buildUnnamed15() => [ |
| buildGoogleAnalyticsAdminV1alphaConversionEvent(), |
| buildGoogleAnalyticsAdminV1alphaConversionEvent(), |
| ]; |
| |
| void checkUnnamed15( |
| core.List<api.GoogleAnalyticsAdminV1alphaConversionEvent> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaConversionEvent(o[0]); |
| checkGoogleAnalyticsAdminV1alphaConversionEvent(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListConversionEventsResponse |
| buildGoogleAnalyticsAdminV1alphaListConversionEventsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListConversionEventsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse < 3) { |
| o.conversionEvents = buildUnnamed15(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListConversionEventsResponse( |
| api.GoogleAnalyticsAdminV1alphaListConversionEventsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse < 3) { |
| checkUnnamed15(o.conversionEvents!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaCustomDimension> buildUnnamed16() => [ |
| buildGoogleAnalyticsAdminV1alphaCustomDimension(), |
| buildGoogleAnalyticsAdminV1alphaCustomDimension(), |
| ]; |
| |
| void checkUnnamed16( |
| core.List<api.GoogleAnalyticsAdminV1alphaCustomDimension> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension(o[0]); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse |
| buildGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse < 3) { |
| o.customDimensions = buildUnnamed16(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse( |
| api.GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse < 3) { |
| checkUnnamed16(o.customDimensions!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaCustomMetric> buildUnnamed17() => [ |
| buildGoogleAnalyticsAdminV1alphaCustomMetric(), |
| buildGoogleAnalyticsAdminV1alphaCustomMetric(), |
| ]; |
| |
| void checkUnnamed17(core.List<api.GoogleAnalyticsAdminV1alphaCustomMetric> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric(o[0]); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListCustomMetricsResponse |
| buildGoogleAnalyticsAdminV1alphaListCustomMetricsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListCustomMetricsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse < 3) { |
| o.customMetrics = buildUnnamed17(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListCustomMetricsResponse( |
| api.GoogleAnalyticsAdminV1alphaListCustomMetricsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse < 3) { |
| checkUnnamed17(o.customMetrics!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDataStream> buildUnnamed18() => [ |
| buildGoogleAnalyticsAdminV1alphaDataStream(), |
| buildGoogleAnalyticsAdminV1alphaDataStream(), |
| ]; |
| |
| void checkUnnamed18(core.List<api.GoogleAnalyticsAdminV1alphaDataStream> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaDataStream(o[0]); |
| checkGoogleAnalyticsAdminV1alphaDataStream(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListDataStreamsResponse |
| buildGoogleAnalyticsAdminV1alphaListDataStreamsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListDataStreamsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse < 3) { |
| o.dataStreams = buildUnnamed18(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListDataStreamsResponse( |
| api.GoogleAnalyticsAdminV1alphaListDataStreamsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse < 3) { |
| checkUnnamed18(o.dataStreams!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal> |
| buildUnnamed19() => [ |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(), |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(), |
| ]; |
| |
| void checkUnnamed19( |
| core.List< |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(o[0]); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse |
| buildGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse < |
| 3) { |
| o.displayVideo360AdvertiserLinkProposals = buildUnnamed19(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse( |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse < |
| 3) { |
| checkUnnamed19(o.displayVideo360AdvertiserLinkProposals!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink> |
| buildUnnamed20() => [ |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(), |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(), |
| ]; |
| |
| void checkUnnamed20( |
| core.List<api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse |
| buildGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse < |
| 3) { |
| o.displayVideo360AdvertiserLinks = buildUnnamed20(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse < |
| 3) { |
| checkUnnamed20(o.displayVideo360AdvertiserLinks!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaFirebaseLink> buildUnnamed21() => [ |
| buildGoogleAnalyticsAdminV1alphaFirebaseLink(), |
| buildGoogleAnalyticsAdminV1alphaFirebaseLink(), |
| ]; |
| |
| void checkUnnamed21(core.List<api.GoogleAnalyticsAdminV1alphaFirebaseLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaFirebaseLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaFirebaseLink(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse |
| buildGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse < 3) { |
| o.firebaseLinks = buildUnnamed21(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse < 3) { |
| checkUnnamed21(o.firebaseLinks!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaGoogleAdsLink> buildUnnamed22() => [ |
| buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(), |
| buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(), |
| ]; |
| |
| void checkUnnamed22(core.List<api.GoogleAnalyticsAdminV1alphaGoogleAdsLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse |
| buildGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse < 3) { |
| o.googleAdsLinks = buildUnnamed22(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse < 3) { |
| checkUnnamed22(o.googleAdsLinks!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaIosAppDataStream> buildUnnamed23() => [ |
| buildGoogleAnalyticsAdminV1alphaIosAppDataStream(), |
| buildGoogleAnalyticsAdminV1alphaIosAppDataStream(), |
| ]; |
| |
| void checkUnnamed23( |
| core.List<api.GoogleAnalyticsAdminV1alphaIosAppDataStream> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaIosAppDataStream(o[0]); |
| checkGoogleAnalyticsAdminV1alphaIosAppDataStream(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse |
| buildGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse < |
| 3) { |
| o.iosAppDataStreams = buildUnnamed23(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse( |
| api.GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse < |
| 3) { |
| checkUnnamed23(o.iosAppDataStreams!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret> |
| buildUnnamed24() => [ |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(), |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(), |
| ]; |
| |
| void checkUnnamed24( |
| core.List<api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(o[0]); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse |
| buildGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse() { |
| final o = |
| api.GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse < |
| 3) { |
| o.measurementProtocolSecrets = buildUnnamed24(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse( |
| api.GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse < |
| 3) { |
| checkUnnamed24(o.measurementProtocolSecrets!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaProperty> buildUnnamed25() => [ |
| buildGoogleAnalyticsAdminV1alphaProperty(), |
| buildGoogleAnalyticsAdminV1alphaProperty(), |
| ]; |
| |
| void checkUnnamed25(core.List<api.GoogleAnalyticsAdminV1alphaProperty> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaProperty(o[0]); |
| checkGoogleAnalyticsAdminV1alphaProperty(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListPropertiesResponse |
| buildGoogleAnalyticsAdminV1alphaListPropertiesResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListPropertiesResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.properties = buildUnnamed25(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListPropertiesResponse( |
| api.GoogleAnalyticsAdminV1alphaListPropertiesResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed25(o.properties!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed26() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed26(core.List<api.GoogleAnalyticsAdminV1alphaUserLink> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[0]); |
| checkGoogleAnalyticsAdminV1alphaUserLink(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListUserLinksResponse |
| buildGoogleAnalyticsAdminV1alphaListUserLinksResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListUserLinksResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.userLinks = buildUnnamed26(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed26(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaWebDataStream> buildUnnamed27() => [ |
| buildGoogleAnalyticsAdminV1alphaWebDataStream(), |
| buildGoogleAnalyticsAdminV1alphaWebDataStream(), |
| ]; |
| |
| void checkUnnamed27(core.List<api.GoogleAnalyticsAdminV1alphaWebDataStream> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream(o[0]); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse |
| buildGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse < 3) { |
| o.nextPageToken = 'foo'; |
| o.webDataStreams = buildUnnamed27(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse( |
| api.GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed27(o.webDataStreams!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret = 0; |
| api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret() { |
| final o = api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(); |
| buildCounterGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret < 3) { |
| o.displayName = 'foo'; |
| o.name = 'foo'; |
| o.secretValue = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret( |
| api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret o) { |
| buildCounterGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret < 3) { |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.secretValue!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaProperty = 0; |
| api.GoogleAnalyticsAdminV1alphaProperty |
| buildGoogleAnalyticsAdminV1alphaProperty() { |
| final o = api.GoogleAnalyticsAdminV1alphaProperty(); |
| buildCounterGoogleAnalyticsAdminV1alphaProperty++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaProperty < 3) { |
| o.account = 'foo'; |
| o.createTime = 'foo'; |
| o.currencyCode = 'foo'; |
| o.deleteTime = 'foo'; |
| o.displayName = 'foo'; |
| o.expireTime = 'foo'; |
| o.industryCategory = 'foo'; |
| o.name = 'foo'; |
| o.parent = 'foo'; |
| o.serviceLevel = 'foo'; |
| o.timeZone = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaProperty--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaProperty( |
| api.GoogleAnalyticsAdminV1alphaProperty o) { |
| buildCounterGoogleAnalyticsAdminV1alphaProperty++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaProperty < 3) { |
| unittest.expect( |
| o.account!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.currencyCode!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.deleteTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.expireTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.industryCategory!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.parent!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.serviceLevel!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.timeZone!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaProperty--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaPropertySummary = 0; |
| api.GoogleAnalyticsAdminV1alphaPropertySummary |
| buildGoogleAnalyticsAdminV1alphaPropertySummary() { |
| final o = api.GoogleAnalyticsAdminV1alphaPropertySummary(); |
| buildCounterGoogleAnalyticsAdminV1alphaPropertySummary++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaPropertySummary < 3) { |
| o.displayName = 'foo'; |
| o.property = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaPropertySummary--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaPropertySummary( |
| api.GoogleAnalyticsAdminV1alphaPropertySummary o) { |
| buildCounterGoogleAnalyticsAdminV1alphaPropertySummary++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaPropertySummary < 3) { |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.property!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaPropertySummary--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest |
| buildGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest < |
| 3) { |
| o.account = buildGoogleAnalyticsAdminV1alphaAccount(); |
| o.redirectUri = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest( |
| api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest < |
| 3) { |
| checkGoogleAnalyticsAdminV1alphaAccount(o.account!); |
| unittest.expect( |
| o.redirectUri!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse |
| buildGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse < |
| 3) { |
| o.accountTicketId = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse( |
| api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse < |
| 3) { |
| unittest.expect( |
| o.accountTicketId!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse--; |
| } |
| |
| core.List<core.String> buildUnnamed28() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed28(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.List<core.String> buildUnnamed29() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed29(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.List<core.String> buildUnnamed30() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed30(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest |
| buildGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest < |
| 3) { |
| o.action = buildUnnamed28(); |
| o.actorEmail = buildUnnamed29(); |
| o.earliestChangeTime = 'foo'; |
| o.latestChangeTime = 'foo'; |
| o.pageSize = 42; |
| o.pageToken = 'foo'; |
| o.property = 'foo'; |
| o.resourceType = buildUnnamed30(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest( |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest < |
| 3) { |
| checkUnnamed28(o.action!); |
| checkUnnamed29(o.actorEmail!); |
| unittest.expect( |
| o.earliestChangeTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.latestChangeTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.pageSize!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.pageToken!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.property!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed30(o.resourceType!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaChangeHistoryEvent> buildUnnamed31() => |
| [ |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryEvent(), |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryEvent(), |
| ]; |
| |
| void checkUnnamed31( |
| core.List<api.GoogleAnalyticsAdminV1alphaChangeHistoryEvent> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryEvent(o[0]); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryEvent(o[1]); |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse |
| buildGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse < |
| 3) { |
| o.changeHistoryEvents = buildUnnamed31(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse( |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse < |
| 3) { |
| checkUnnamed31(o.changeHistoryEvents!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest |
| buildGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest < 3) { |
| o.userLink = buildGoogleAnalyticsAdminV1alphaUserLink(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest( |
| api.GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest < 3) { |
| checkGoogleAnalyticsAdminV1alphaUserLink(o.userLink!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest--; |
| } |
| |
| core.List<core.String> buildUnnamed32() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed32(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaUserLink = 0; |
| api.GoogleAnalyticsAdminV1alphaUserLink |
| buildGoogleAnalyticsAdminV1alphaUserLink() { |
| final o = api.GoogleAnalyticsAdminV1alphaUserLink(); |
| buildCounterGoogleAnalyticsAdminV1alphaUserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaUserLink < 3) { |
| o.directRoles = buildUnnamed32(); |
| o.emailAddress = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaUserLink--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaUserLink( |
| api.GoogleAnalyticsAdminV1alphaUserLink o) { |
| buildCounterGoogleAnalyticsAdminV1alphaUserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaUserLink < 3) { |
| checkUnnamed32(o.directRoles!); |
| unittest.expect( |
| o.emailAddress!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaUserLink--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaWebDataStream = 0; |
| api.GoogleAnalyticsAdminV1alphaWebDataStream |
| buildGoogleAnalyticsAdminV1alphaWebDataStream() { |
| final o = api.GoogleAnalyticsAdminV1alphaWebDataStream(); |
| buildCounterGoogleAnalyticsAdminV1alphaWebDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaWebDataStream < 3) { |
| o.createTime = 'foo'; |
| o.defaultUri = 'foo'; |
| o.displayName = 'foo'; |
| o.firebaseAppId = 'foo'; |
| o.measurementId = 'foo'; |
| o.name = 'foo'; |
| o.updateTime = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaWebDataStream--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaWebDataStream( |
| api.GoogleAnalyticsAdminV1alphaWebDataStream o) { |
| buildCounterGoogleAnalyticsAdminV1alphaWebDataStream++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaWebDataStream < 3) { |
| unittest.expect( |
| o.createTime!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.defaultUri!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.firebaseAppId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.measurementId!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.updateTime!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaWebDataStream--; |
| } |
| |
| core.int buildCounterGoogleProtobufEmpty = 0; |
| api.GoogleProtobufEmpty buildGoogleProtobufEmpty() { |
| final o = api.GoogleProtobufEmpty(); |
| buildCounterGoogleProtobufEmpty++; |
| if (buildCounterGoogleProtobufEmpty < 3) {} |
| buildCounterGoogleProtobufEmpty--; |
| return o; |
| } |
| |
| void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { |
| buildCounterGoogleProtobufEmpty++; |
| if (buildCounterGoogleProtobufEmpty < 3) {} |
| buildCounterGoogleProtobufEmpty--; |
| } |
| |
| core.List<core.String> buildUnnamed33() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed33(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| core.List<core.String> buildUnnamed34() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed34(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect( |
| o[0], |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o[1], |
| unittest.equals('foo'), |
| ); |
| } |
| |
| void main() { |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccount', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccount(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccount.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccount(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccountSummary', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccountSummary(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccountSummary.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccountSummary(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAndroidAppDataStream', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAndroidAppDataStream(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAndroidAppDataStream(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAuditUserLink', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAuditUserLink(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAuditUserLink.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLink(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAuditUserLinksRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAuditUserLinksRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLinksRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAuditUserLinksResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAuditUserLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLinksResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest( |
| od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaChangeHistoryChange', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaChangeHistoryChange(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaChangeHistoryChange.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryChange(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource( |
| od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaChangeHistoryEvent', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaChangeHistoryEvent(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaChangeHistoryEvent.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaChangeHistoryEvent(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaConversionEvent', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaConversionEvent(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaConversionEvent.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaConversionEvent(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaCreateUserLinkRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaCreateUserLinkRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaCustomDimension', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaCustomDimension(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaCustomDimension.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaCustomMetric', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaCustomMetric(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaCustomMetric.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaDataRetentionSettings', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaDataRetentionSettings(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaDataRetentionSettings.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataRetentionSettings(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaDataSharingSettings', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaDataSharingSettings(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaDataSharingSettings.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataSharingSettings(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaDataStream', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaDataStream(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaDataStream.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataStream(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaDataStreamWebStreamData', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaDataStreamWebStreamData(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaDataStreamWebStreamData.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataStreamWebStreamData(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaFirebaseLink', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaFirebaseLink(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaFirebaseLink.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaFirebaseLink(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaGlobalSiteTag', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaGlobalSiteTag(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaGlobalSiteTag.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaGlobalSiteTag(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaGoogleAdsLink', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaGoogleAdsLink.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaGoogleSignalsSettings', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaGoogleSignalsSettings(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaGoogleSignalsSettings(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaIosAppDataStream', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaIosAppDataStream(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaIosAppDataStream.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaIosAppDataStream(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaLinkProposalStatusDetails(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListAccountSummariesResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListAccountSummariesResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListAccountSummariesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListAccountSummariesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaListAccountsResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListAccountsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaListAccountsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListAccountsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListConversionEventsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListConversionEventsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListConversionEventsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListConversionEventsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListCustomMetricsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListCustomMetricsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListCustomMetricsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListCustomMetricsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListDataStreamsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListDataStreamsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListDataStreamsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListDataStreamsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse( |
| od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaListPropertiesResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListPropertiesResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaListPropertiesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListPropertiesResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaListUserLinksResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListUserLinksResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaListUserLinksResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListUserLinksResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaProperty', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaProperty(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaProperty.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaProperty(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaPropertySummary', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaPropertySummary(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaPropertySummary.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaPropertySummary(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaUserLink', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaUserLink(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaUserLink.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaUserLink(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaWebDataStream', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaWebDataStream(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaWebDataStream.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleProtobufEmpty', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleProtobufEmpty(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleProtobufEmpty.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleProtobufEmpty(od); |
| }); |
| }); |
| |
| unittest.group('resource-AccountSummariesResource', () { |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accountSummaries; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 24), |
| unittest.equals('v1alpha/accountSummaries'), |
| ); |
| pathOffset += 24; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListAccountSummariesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list( |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListAccountSummariesResponse(response |
| as api.GoogleAnalyticsAdminV1alphaListAccountSummariesResponse); |
| }); |
| }); |
| |
| unittest.group('resource-AccountsResource', () { |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaAccount()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAccount( |
| response as api.GoogleAnalyticsAdminV1alphaAccount); |
| }); |
| |
| unittest.test('method--getDataSharingSettings', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaDataSharingSettings()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.getDataSharingSettings(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDataSharingSettings( |
| response as api.GoogleAnalyticsAdminV1alphaDataSharingSettings); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_showDeleted = true; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 16), |
| unittest.equals('v1alpha/accounts'), |
| ); |
| pathOffset += 16; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['showDeleted']!.first, |
| unittest.equals('$arg_showDeleted'), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaListAccountsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list( |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| showDeleted: arg_showDeleted, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListAccountsResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListAccountsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaAccount(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaAccount.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccount(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaAccount()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAccount( |
| response as api.GoogleAnalyticsAdminV1alphaAccount); |
| }); |
| |
| unittest.test('method--provisionAccountTicket', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest(); |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 39), |
| unittest.equals('v1alpha/accounts:provisionAccountTicket'), |
| ); |
| pathOffset += 39; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.provisionAccountTicket(arg_request, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse(response |
| as api.GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse); |
| }); |
| |
| unittest.test('method--searchChangeHistoryEvents', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest(); |
| final arg_account = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.searchChangeHistoryEvents( |
| arg_request, arg_account, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse(response |
| as api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse); |
| }); |
| }); |
| |
| unittest.group('resource-AccountsUserLinksResource', () { |
| unittest.test('method--audit', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaAuditUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaAuditUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.audit(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLinksResponse( |
| response as api.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse); |
| }); |
| |
| unittest.test('method--batchCreate', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.batchCreate(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse(response |
| as api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse); |
| }); |
| |
| unittest.test('method--batchDelete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.batchDelete(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--batchGet', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_parent = 'foo'; |
| final arg_names = buildUnnamed33(); |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['names']!, |
| unittest.equals(arg_names), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.batchGet(arg_parent, |
| names: arg_names, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse( |
| response as api.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse); |
| }); |
| |
| unittest.test('method--batchUpdate', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.batchUpdate(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse(response |
| as api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse); |
| }); |
| |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaUserLink(); |
| final arg_parent = 'foo'; |
| final arg_notifyNewUser = true; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaUserLink.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaUserLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['notifyNewUser']!.first, |
| unittest.equals('$arg_notifyNewUser'), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaUserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.create(arg_request, arg_parent, |
| notifyNewUser: arg_notifyNewUser, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaUserLink( |
| response as api.GoogleAnalyticsAdminV1alphaUserLink); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaUserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaUserLink( |
| response as api.GoogleAnalyticsAdminV1alphaUserLink); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaListUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListUserLinksResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListUserLinksResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).accounts.userLinks; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaUserLink(); |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaUserLink.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaUserLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaUserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.patch(arg_request, arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaUserLink( |
| response as api.GoogleAnalyticsAdminV1alphaUserLink); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesResource', () { |
| unittest.test('method--acknowledgeUserDataCollection', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest(); |
| final arg_property = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest( |
| obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.acknowledgeUserDataCollection( |
| arg_request, arg_property, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse( |
| response as api |
| .GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse); |
| }); |
| |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaProperty(); |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaProperty.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaProperty(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 18), |
| unittest.equals('v1alpha/properties'), |
| ); |
| pathOffset += 18; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaProperty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.create(arg_request, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaProperty( |
| response as api.GoogleAnalyticsAdminV1alphaProperty); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaProperty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaProperty( |
| response as api.GoogleAnalyticsAdminV1alphaProperty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaProperty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaProperty( |
| response as api.GoogleAnalyticsAdminV1alphaProperty); |
| }); |
| |
| unittest.test('method--getDataRetentionSettings', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaDataRetentionSettings()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.getDataRetentionSettings(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDataRetentionSettings( |
| response as api.GoogleAnalyticsAdminV1alphaDataRetentionSettings); |
| }); |
| |
| unittest.test('method--getGoogleSignalsSettings', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaGoogleSignalsSettings()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.getGoogleSignalsSettings(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaGoogleSignalsSettings( |
| response as api.GoogleAnalyticsAdminV1alphaGoogleSignalsSettings); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_filter = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_showDeleted = true; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 18), |
| unittest.equals('v1alpha/properties'), |
| ); |
| pathOffset += 18; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['filter']!.first, |
| unittest.equals(arg_filter), |
| ); |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['showDeleted']!.first, |
| unittest.equals('$arg_showDeleted'), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaListPropertiesResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list( |
| filter: arg_filter, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| showDeleted: arg_showDeleted, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListPropertiesResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListPropertiesResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaProperty(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaProperty.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaProperty(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaProperty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaProperty( |
| response as api.GoogleAnalyticsAdminV1alphaProperty); |
| }); |
| |
| unittest.test('method--updateDataRetentionSettings', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaDataRetentionSettings(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaDataRetentionSettings.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataRetentionSettings(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaDataRetentionSettings()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.updateDataRetentionSettings( |
| arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDataRetentionSettings( |
| response as api.GoogleAnalyticsAdminV1alphaDataRetentionSettings); |
| }); |
| |
| unittest.test('method--updateGoogleSignalsSettings', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaGoogleSignalsSettings(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaGoogleSignalsSettings(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaGoogleSignalsSettings()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.updateGoogleSignalsSettings( |
| arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaGoogleSignalsSettings( |
| response as api.GoogleAnalyticsAdminV1alphaGoogleSignalsSettings); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesAndroidAppDataStreamsResource', () { |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.androidAppDataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.androidAppDataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaAndroidAppDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAndroidAppDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.androidAppDataStreams; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse(response |
| as api.GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.androidAppDataStreams; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaAndroidAppDataStream(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAndroidAppDataStream(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaAndroidAppDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAndroidAppDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaAndroidAppDataStream); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesConversionEventsResource', () { |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.conversionEvents; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaConversionEvent(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaConversionEvent.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaConversionEvent(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaConversionEvent()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaConversionEvent( |
| response as api.GoogleAnalyticsAdminV1alphaConversionEvent); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.conversionEvents; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.conversionEvents; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaConversionEvent()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaConversionEvent( |
| response as api.GoogleAnalyticsAdminV1alphaConversionEvent); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.conversionEvents; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListConversionEventsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListConversionEventsResponse(response |
| as api.GoogleAnalyticsAdminV1alphaListConversionEventsResponse); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesCustomDimensionsResource', () { |
| unittest.test('method--archive', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customDimensions; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest(); |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.archive(arg_request, arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customDimensions; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaCustomDimension(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaCustomDimension.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaCustomDimension()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension( |
| response as api.GoogleAnalyticsAdminV1alphaCustomDimension); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customDimensions; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaCustomDimension()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension( |
| response as api.GoogleAnalyticsAdminV1alphaCustomDimension); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customDimensions; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse(response |
| as api.GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customDimensions; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaCustomDimension(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaCustomDimension.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaCustomDimension()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaCustomDimension( |
| response as api.GoogleAnalyticsAdminV1alphaCustomDimension); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesCustomMetricsResource', () { |
| unittest.test('method--archive', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customMetrics; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest(); |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.archive(arg_request, arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customMetrics; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaCustomMetric(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaCustomMetric.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaCustomMetric()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric( |
| response as api.GoogleAnalyticsAdminV1alphaCustomMetric); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customMetrics; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaCustomMetric()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric( |
| response as api.GoogleAnalyticsAdminV1alphaCustomMetric); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customMetrics; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListCustomMetricsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListCustomMetricsResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListCustomMetricsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.customMetrics; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaCustomMetric(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaCustomMetric.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaCustomMetric()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaCustomMetric( |
| response as api.GoogleAnalyticsAdminV1alphaCustomMetric); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesDataStreamsResource', () { |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.dataStreams; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaDataStream(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaDataStream.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataStream(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaDataStream); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.dataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.dataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaDataStream); |
| }); |
| |
| unittest.test('method--getGlobalSiteTag', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.dataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaGlobalSiteTag()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.getGlobalSiteTag(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaGlobalSiteTag( |
| response as api.GoogleAnalyticsAdminV1alphaGlobalSiteTag); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.dataStreams; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaListDataStreamsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListDataStreamsResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListDataStreamsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.dataStreams; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaDataStream(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaDataStream.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDataStream(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaDataStream); |
| }); |
| }); |
| |
| unittest.group( |
| 'resource-PropertiesDataStreamsMeasurementProtocolSecretsResource', () { |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .dataStreams |
| .measurementProtocolSecrets; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret( |
| response as api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .dataStreams |
| .measurementProtocolSecrets; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .dataStreams |
| .measurementProtocolSecrets; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret( |
| response as api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .dataStreams |
| .measurementProtocolSecrets; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse( |
| response as api |
| .GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .dataStreams |
| .measurementProtocolSecrets; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret( |
| response as api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret); |
| }); |
| }); |
| |
| unittest.group( |
| 'resource-PropertiesDisplayVideo360AdvertiserLinkProposalsResource', () { |
| unittest.test('method--approve', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinkProposals; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest(); |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest( |
| obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.approve(arg_request, arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse( |
| response as api |
| .GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse); |
| }); |
| |
| unittest.test('method--cancel', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinkProposals; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest(); |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest( |
| obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.cancel(arg_request, arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal( |
| response as api |
| .GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal); |
| }); |
| |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinkProposals; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal( |
| obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal( |
| response as api |
| .GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinkProposals; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinkProposals; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal( |
| response as api |
| .GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinkProposals; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse( |
| response as api |
| .GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesDisplayVideo360AdvertiserLinksResource', |
| () { |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(response |
| as api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(response |
| as api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinks; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse( |
| response as api |
| .GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock) |
| .properties |
| .displayVideo360AdvertiserLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink |
| .fromJson(json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(response |
| as api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesFirebaseLinksResource', () { |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.firebaseLinks; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaFirebaseLink(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaFirebaseLink.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaFirebaseLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaFirebaseLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaFirebaseLink( |
| response as api.GoogleAnalyticsAdminV1alphaFirebaseLink); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.firebaseLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.firebaseLinks; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesGoogleAdsLinksResource', () { |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.googleAdsLinks; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaGoogleAdsLink.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaGoogleAdsLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink( |
| response as api.GoogleAnalyticsAdminV1alphaGoogleAdsLink); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.googleAdsLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.googleAdsLinks; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse(response |
| as api.GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.googleAdsLinks; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaGoogleAdsLink.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaGoogleAdsLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaGoogleAdsLink( |
| response as api.GoogleAnalyticsAdminV1alphaGoogleAdsLink); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesIosAppDataStreamsResource', () { |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.iosAppDataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.iosAppDataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaIosAppDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaIosAppDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaIosAppDataStream); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.iosAppDataStreams; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse(response |
| as api.GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = |
| api.GoogleAnalyticsAdminApi(mock).properties.iosAppDataStreams; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaIosAppDataStream(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaIosAppDataStream.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaIosAppDataStream(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaIosAppDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaIosAppDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaIosAppDataStream); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesUserLinksResource', () { |
| unittest.test('method--audit', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaAuditUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaAuditUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.audit(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAuditUserLinksResponse( |
| response as api.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse); |
| }); |
| |
| unittest.test('method--batchCreate', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.batchCreate(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse(response |
| as api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse); |
| }); |
| |
| unittest.test('method--batchDelete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.batchDelete(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--batchGet', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_parent = 'foo'; |
| final arg_names = buildUnnamed34(); |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['names']!, |
| unittest.equals(arg_names), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.batchGet(arg_parent, |
| names: arg_names, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse( |
| response as api.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse); |
| }); |
| |
| unittest.test('method--batchUpdate', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.batchUpdate(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse(response |
| as api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse); |
| }); |
| |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaUserLink(); |
| final arg_parent = 'foo'; |
| final arg_notifyNewUser = true; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaUserLink.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaUserLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['notifyNewUser']!.first, |
| unittest.equals('$arg_notifyNewUser'), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaUserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.create(arg_request, arg_parent, |
| notifyNewUser: arg_notifyNewUser, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaUserLink( |
| response as api.GoogleAnalyticsAdminV1alphaUserLink); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaUserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaUserLink( |
| response as api.GoogleAnalyticsAdminV1alphaUserLink); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaListUserLinksResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListUserLinksResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListUserLinksResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.userLinks; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaUserLink(); |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaUserLink.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaUserLink(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = |
| convert.json.encode(buildGoogleAnalyticsAdminV1alphaUserLink()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.patch(arg_request, arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaUserLink( |
| response as api.GoogleAnalyticsAdminV1alphaUserLink); |
| }); |
| }); |
| |
| unittest.group('resource-PropertiesWebDataStreamsResource', () { |
| unittest.test('method--create', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.webDataStreams; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaWebDataStream(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaWebDataStream.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaWebDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaWebDataStream); |
| }); |
| |
| unittest.test('method--delete', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.webDataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode(buildGoogleProtobufEmpty()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.delete(arg_name, $fields: arg_$fields); |
| checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.webDataStreams; |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaWebDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaWebDataStream); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.webDataStreams; |
| final arg_parent = 'foo'; |
| final arg_pageSize = 42; |
| final arg_pageToken = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| core.int.parse(queryMap['pageSize']!.first), |
| unittest.equals(arg_pageSize), |
| ); |
| unittest.expect( |
| queryMap['pageToken']!.first, |
| unittest.equals(arg_pageToken), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json.encode( |
| buildGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.list(arg_parent, |
| pageSize: arg_pageSize, |
| pageToken: arg_pageToken, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaListWebDataStreamsResponse(response |
| as api.GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.webDataStreams; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaWebDataStream(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaWebDataStream.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream(obj); |
| |
| final path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), |
| unittest.equals('/'), |
| ); |
| pathOffset += 1; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 8), |
| unittest.equals('v1alpha/'), |
| ); |
| pathOffset += 8; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| final query = (req.url).query; |
| var queryOffset = 0; |
| final queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(core.String n, core.String v) => |
| queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| final keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect( |
| queryMap['updateMask']!.first, |
| unittest.equals(arg_updateMask), |
| ); |
| unittest.expect( |
| queryMap['fields']!.first, |
| unittest.equals(arg_$fields), |
| ); |
| |
| final h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| final resp = convert.json |
| .encode(buildGoogleAnalyticsAdminV1alphaWebDataStream()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaWebDataStream( |
| response as api.GoogleAnalyticsAdminV1alphaWebDataStream); |
| }); |
| }); |
| } |