| // 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 buildCounterGoogleAnalyticsAdminV1alphaAccessBetweenFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessBetweenFilter |
| buildGoogleAnalyticsAdminV1alphaAccessBetweenFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessBetweenFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessBetweenFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessBetweenFilter < 3) { |
| o.fromValue = buildGoogleAnalyticsAdminV1alphaNumericValue(); |
| o.toValue = buildGoogleAnalyticsAdminV1alphaNumericValue(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessBetweenFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessBetweenFilter( |
| api.GoogleAnalyticsAdminV1alphaAccessBetweenFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessBetweenFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessBetweenFilter < 3) { |
| checkGoogleAnalyticsAdminV1alphaNumericValue(o.fromValue!); |
| checkGoogleAnalyticsAdminV1alphaNumericValue(o.toValue!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessBetweenFilter--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessDateRange = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessDateRange |
| buildGoogleAnalyticsAdminV1alphaAccessDateRange() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessDateRange(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDateRange++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDateRange < 3) { |
| o.endDate = 'foo'; |
| o.startDate = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDateRange--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessDateRange( |
| api.GoogleAnalyticsAdminV1alphaAccessDateRange o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDateRange++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDateRange < 3) { |
| unittest.expect( |
| o.endDate!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.startDate!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDateRange--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessDimension = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessDimension |
| buildGoogleAnalyticsAdminV1alphaAccessDimension() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessDimension(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimension++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDimension < 3) { |
| o.dimensionName = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimension--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessDimension( |
| api.GoogleAnalyticsAdminV1alphaAccessDimension o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimension++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDimension < 3) { |
| unittest.expect( |
| o.dimensionName!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimension--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionHeader = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessDimensionHeader |
| buildGoogleAnalyticsAdminV1alphaAccessDimensionHeader() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessDimensionHeader(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionHeader++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionHeader < 3) { |
| o.dimensionName = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionHeader--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessDimensionHeader( |
| api.GoogleAnalyticsAdminV1alphaAccessDimensionHeader o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionHeader++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionHeader < 3) { |
| unittest.expect( |
| o.dimensionName!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionHeader--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionValue = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessDimensionValue |
| buildGoogleAnalyticsAdminV1alphaAccessDimensionValue() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessDimensionValue(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionValue < 3) { |
| o.value = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionValue--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessDimensionValue( |
| api.GoogleAnalyticsAdminV1alphaAccessDimensionValue o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionValue < 3) { |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessDimensionValue--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessFilter |
| buildGoogleAnalyticsAdminV1alphaAccessFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessFilter < 3) { |
| o.betweenFilter = buildGoogleAnalyticsAdminV1alphaAccessBetweenFilter(); |
| o.fieldName = 'foo'; |
| o.inListFilter = buildGoogleAnalyticsAdminV1alphaAccessInListFilter(); |
| o.numericFilter = buildGoogleAnalyticsAdminV1alphaAccessNumericFilter(); |
| o.stringFilter = buildGoogleAnalyticsAdminV1alphaAccessStringFilter(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessFilter( |
| api.GoogleAnalyticsAdminV1alphaAccessFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessFilter < 3) { |
| checkGoogleAnalyticsAdminV1alphaAccessBetweenFilter(o.betweenFilter!); |
| unittest.expect( |
| o.fieldName!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAccessInListFilter(o.inListFilter!); |
| checkGoogleAnalyticsAdminV1alphaAccessNumericFilter(o.numericFilter!); |
| checkGoogleAnalyticsAdminV1alphaAccessStringFilter(o.stringFilter!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilter--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpression = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessFilterExpression |
| buildGoogleAnalyticsAdminV1alphaAccessFilterExpression() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessFilterExpression(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpression++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpression < 3) { |
| o.accessFilter = buildGoogleAnalyticsAdminV1alphaAccessFilter(); |
| o.andGroup = buildGoogleAnalyticsAdminV1alphaAccessFilterExpressionList(); |
| o.notExpression = buildGoogleAnalyticsAdminV1alphaAccessFilterExpression(); |
| o.orGroup = buildGoogleAnalyticsAdminV1alphaAccessFilterExpressionList(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpression--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessFilterExpression( |
| api.GoogleAnalyticsAdminV1alphaAccessFilterExpression o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpression++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpression < 3) { |
| checkGoogleAnalyticsAdminV1alphaAccessFilter(o.accessFilter!); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpressionList(o.andGroup!); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpression(o.notExpression!); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpressionList(o.orGroup!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpression--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessFilterExpression> |
| buildUnnamed0() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessFilterExpression(), |
| buildGoogleAnalyticsAdminV1alphaAccessFilterExpression(), |
| ]; |
| |
| void checkUnnamed0( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessFilterExpression> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpression(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpression(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpressionList = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessFilterExpressionList |
| buildGoogleAnalyticsAdminV1alphaAccessFilterExpressionList() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessFilterExpressionList(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpressionList++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpressionList < 3) { |
| o.expressions = buildUnnamed0(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpressionList--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessFilterExpressionList( |
| api.GoogleAnalyticsAdminV1alphaAccessFilterExpressionList o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpressionList++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpressionList < 3) { |
| checkUnnamed0(o.expressions!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessFilterExpressionList--; |
| } |
| |
| 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.int buildCounterGoogleAnalyticsAdminV1alphaAccessInListFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessInListFilter |
| buildGoogleAnalyticsAdminV1alphaAccessInListFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessInListFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessInListFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessInListFilter < 3) { |
| o.caseSensitive = true; |
| o.values = buildUnnamed1(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessInListFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessInListFilter( |
| api.GoogleAnalyticsAdminV1alphaAccessInListFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessInListFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessInListFilter < 3) { |
| unittest.expect(o.caseSensitive!, unittest.isTrue); |
| checkUnnamed1(o.values!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessInListFilter--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessMetric = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessMetric |
| buildGoogleAnalyticsAdminV1alphaAccessMetric() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessMetric(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetric++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessMetric < 3) { |
| o.metricName = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetric--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessMetric( |
| api.GoogleAnalyticsAdminV1alphaAccessMetric o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetric++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessMetric < 3) { |
| unittest.expect( |
| o.metricName!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetric--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessMetricHeader = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessMetricHeader |
| buildGoogleAnalyticsAdminV1alphaAccessMetricHeader() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessMetricHeader(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricHeader++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessMetricHeader < 3) { |
| o.metricName = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricHeader--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessMetricHeader( |
| api.GoogleAnalyticsAdminV1alphaAccessMetricHeader o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricHeader++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessMetricHeader < 3) { |
| unittest.expect( |
| o.metricName!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricHeader--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessMetricValue = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessMetricValue |
| buildGoogleAnalyticsAdminV1alphaAccessMetricValue() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessMetricValue(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessMetricValue < 3) { |
| o.value = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricValue--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessMetricValue( |
| api.GoogleAnalyticsAdminV1alphaAccessMetricValue o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessMetricValue < 3) { |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessMetricValue--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessNumericFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessNumericFilter |
| buildGoogleAnalyticsAdminV1alphaAccessNumericFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessNumericFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessNumericFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessNumericFilter < 3) { |
| o.operation = 'foo'; |
| o.value = buildGoogleAnalyticsAdminV1alphaNumericValue(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessNumericFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessNumericFilter( |
| api.GoogleAnalyticsAdminV1alphaAccessNumericFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessNumericFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessNumericFilter < 3) { |
| unittest.expect( |
| o.operation!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaNumericValue(o.value!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessNumericFilter--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessOrderBy = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessOrderBy |
| buildGoogleAnalyticsAdminV1alphaAccessOrderBy() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessOrderBy(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderBy++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessOrderBy < 3) { |
| o.desc = true; |
| o.dimension = |
| buildGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy(); |
| o.metric = buildGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderBy--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessOrderBy( |
| api.GoogleAnalyticsAdminV1alphaAccessOrderBy o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderBy++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessOrderBy < 3) { |
| unittest.expect(o.desc!, unittest.isTrue); |
| checkGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy(o.dimension!); |
| checkGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy(o.metric!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderBy--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy |
| buildGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy < |
| 3) { |
| o.dimensionName = 'foo'; |
| o.orderType = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy( |
| api.GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy < |
| 3) { |
| unittest.expect( |
| o.dimensionName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.orderType!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy |
| buildGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy < 3) { |
| o.metricName = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy( |
| api.GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy < 3) { |
| unittest.expect( |
| o.metricName!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessQuota = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessQuota |
| buildGoogleAnalyticsAdminV1alphaAccessQuota() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessQuota(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuota++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessQuota < 3) { |
| o.concurrentRequests = buildGoogleAnalyticsAdminV1alphaAccessQuotaStatus(); |
| o.serverErrorsPerProjectPerHour = |
| buildGoogleAnalyticsAdminV1alphaAccessQuotaStatus(); |
| o.tokensPerDay = buildGoogleAnalyticsAdminV1alphaAccessQuotaStatus(); |
| o.tokensPerHour = buildGoogleAnalyticsAdminV1alphaAccessQuotaStatus(); |
| o.tokensPerProjectPerHour = |
| buildGoogleAnalyticsAdminV1alphaAccessQuotaStatus(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuota--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessQuota( |
| api.GoogleAnalyticsAdminV1alphaAccessQuota o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuota++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessQuota < 3) { |
| checkGoogleAnalyticsAdminV1alphaAccessQuotaStatus(o.concurrentRequests!); |
| checkGoogleAnalyticsAdminV1alphaAccessQuotaStatus( |
| o.serverErrorsPerProjectPerHour!); |
| checkGoogleAnalyticsAdminV1alphaAccessQuotaStatus(o.tokensPerDay!); |
| checkGoogleAnalyticsAdminV1alphaAccessQuotaStatus(o.tokensPerHour!); |
| checkGoogleAnalyticsAdminV1alphaAccessQuotaStatus( |
| o.tokensPerProjectPerHour!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuota--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessQuotaStatus = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessQuotaStatus |
| buildGoogleAnalyticsAdminV1alphaAccessQuotaStatus() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessQuotaStatus(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuotaStatus++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessQuotaStatus < 3) { |
| o.consumed = 42; |
| o.remaining = 42; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuotaStatus--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessQuotaStatus( |
| api.GoogleAnalyticsAdminV1alphaAccessQuotaStatus o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuotaStatus++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessQuotaStatus < 3) { |
| unittest.expect( |
| o.consumed!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.remaining!, |
| unittest.equals(42), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessQuotaStatus--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessDimensionValue> |
| buildUnnamed2() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessDimensionValue(), |
| buildGoogleAnalyticsAdminV1alphaAccessDimensionValue(), |
| ]; |
| |
| void checkUnnamed2( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessDimensionValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessDimensionValue(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessDimensionValue(o[1]); |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessMetricValue> buildUnnamed3() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessMetricValue(), |
| buildGoogleAnalyticsAdminV1alphaAccessMetricValue(), |
| ]; |
| |
| void checkUnnamed3( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessMetricValue> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessMetricValue(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessMetricValue(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessRow = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessRow |
| buildGoogleAnalyticsAdminV1alphaAccessRow() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessRow(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessRow++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessRow < 3) { |
| o.dimensionValues = buildUnnamed2(); |
| o.metricValues = buildUnnamed3(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessRow--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessRow( |
| api.GoogleAnalyticsAdminV1alphaAccessRow o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessRow++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessRow < 3) { |
| checkUnnamed2(o.dimensionValues!); |
| checkUnnamed3(o.metricValues!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessRow--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAccessStringFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAccessStringFilter |
| buildGoogleAnalyticsAdminV1alphaAccessStringFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAccessStringFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAccessStringFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessStringFilter < 3) { |
| o.caseSensitive = true; |
| o.matchType = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessStringFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAccessStringFilter( |
| api.GoogleAnalyticsAdminV1alphaAccessStringFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAccessStringFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAccessStringFilter < 3) { |
| unittest.expect(o.caseSensitive!, unittest.isTrue); |
| unittest.expect( |
| o.matchType!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAccessStringFilter--; |
| } |
| |
| 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> buildUnnamed4() => [ |
| buildGoogleAnalyticsAdminV1alphaPropertySummary(), |
| buildGoogleAnalyticsAdminV1alphaPropertySummary(), |
| ]; |
| |
| void checkUnnamed4( |
| 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 = buildUnnamed4(); |
| } |
| 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'), |
| ); |
| checkUnnamed4(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 |
| 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 buildCounterGoogleAnalyticsAdminV1alphaArchiveAudienceRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaArchiveAudienceRequest |
| buildGoogleAnalyticsAdminV1alphaArchiveAudienceRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaArchiveAudienceRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveAudienceRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaArchiveAudienceRequest < 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveAudienceRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaArchiveAudienceRequest( |
| api.GoogleAnalyticsAdminV1alphaArchiveAudienceRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveAudienceRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaArchiveAudienceRequest < 3) {} |
| buildCounterGoogleAnalyticsAdminV1alphaArchiveAudienceRequest--; |
| } |
| |
| 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.int buildCounterGoogleAnalyticsAdminV1alphaAttributionSettings = 0; |
| api.GoogleAnalyticsAdminV1alphaAttributionSettings |
| buildGoogleAnalyticsAdminV1alphaAttributionSettings() { |
| final o = api.GoogleAnalyticsAdminV1alphaAttributionSettings(); |
| buildCounterGoogleAnalyticsAdminV1alphaAttributionSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAttributionSettings < 3) { |
| o.acquisitionConversionEventLookbackWindow = 'foo'; |
| o.name = 'foo'; |
| o.otherConversionEventLookbackWindow = 'foo'; |
| o.reportingAttributionModel = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAttributionSettings--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAttributionSettings( |
| api.GoogleAnalyticsAdminV1alphaAttributionSettings o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAttributionSettings++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAttributionSettings < 3) { |
| unittest.expect( |
| o.acquisitionConversionEventLookbackWindow!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.otherConversionEventLookbackWindow!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.reportingAttributionModel!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAttributionSettings--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAudienceFilterClause> |
| buildUnnamed5() => [ |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterClause(), |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterClause(), |
| ]; |
| |
| void checkUnnamed5( |
| core.List<api.GoogleAnalyticsAdminV1alphaAudienceFilterClause> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterClause(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterClause(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudience = 0; |
| api.GoogleAnalyticsAdminV1alphaAudience |
| buildGoogleAnalyticsAdminV1alphaAudience() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudience(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudience++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudience < 3) { |
| o.adsPersonalizationEnabled = true; |
| o.description = 'foo'; |
| o.displayName = 'foo'; |
| o.eventTrigger = buildGoogleAnalyticsAdminV1alphaAudienceEventTrigger(); |
| o.exclusionDurationMode = 'foo'; |
| o.filterClauses = buildUnnamed5(); |
| o.membershipDurationDays = 42; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudience--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudience( |
| api.GoogleAnalyticsAdminV1alphaAudience o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudience++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudience < 3) { |
| unittest.expect(o.adsPersonalizationEnabled!, unittest.isTrue); |
| unittest.expect( |
| o.description!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAudienceEventTrigger(o.eventTrigger!); |
| unittest.expect( |
| o.exclusionDurationMode!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed5(o.filterClauses!); |
| unittest.expect( |
| o.membershipDurationDays!, |
| unittest.equals(42), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudience--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter < |
| 3) { |
| o.atAnyPointInTime = true; |
| o.betweenFilter = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter(); |
| o.fieldName = 'foo'; |
| o.inAnyNDayPeriod = 42; |
| o.inListFilter = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter(); |
| o.numericFilter = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter(); |
| o.stringFilter = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter < |
| 3) { |
| unittest.expect(o.atAnyPointInTime!, unittest.isTrue); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter( |
| o.betweenFilter!); |
| unittest.expect( |
| o.fieldName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.inAnyNDayPeriod!, |
| unittest.equals(42), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter( |
| o.inListFilter!); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter( |
| o.numericFilter!); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter( |
| o.stringFilter!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter < |
| 3) { |
| o.fromValue = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue(); |
| o.toValue = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter < |
| 3) { |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue( |
| o.fromValue!); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue( |
| o.toValue!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter--; |
| } |
| |
| core.List<core.String> buildUnnamed6() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed6(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 |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter < |
| 3) { |
| o.caseSensitive = true; |
| o.values = buildUnnamed6(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter < |
| 3) { |
| unittest.expect(o.caseSensitive!, unittest.isTrue); |
| checkUnnamed6(o.values!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter < |
| 3) { |
| o.operation = 'foo'; |
| o.value = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter < |
| 3) { |
| unittest.expect( |
| o.operation!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue( |
| o.value!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue < |
| 3) { |
| o.doubleValue = 42.0; |
| o.int64Value = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue( |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue < |
| 3) { |
| unittest.expect( |
| o.doubleValue!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.int64Value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter < |
| 3) { |
| o.caseSensitive = true; |
| o.matchType = 'foo'; |
| o.value = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter < |
| 3) { |
| unittest.expect(o.caseSensitive!, unittest.isTrue); |
| unittest.expect( |
| o.matchType!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudienceEventFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceEventFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceEventFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceEventFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceEventFilter < 3) { |
| o.eventName = 'foo'; |
| o.eventParameterFilterExpression = |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceEventFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceEventFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceEventFilter < 3) { |
| unittest.expect( |
| o.eventName!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression( |
| o.eventParameterFilterExpression!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventFilter--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudienceEventTrigger = 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceEventTrigger |
| buildGoogleAnalyticsAdminV1alphaAudienceEventTrigger() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceEventTrigger(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventTrigger++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceEventTrigger < 3) { |
| o.eventName = 'foo'; |
| o.logCondition = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventTrigger--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceEventTrigger( |
| api.GoogleAnalyticsAdminV1alphaAudienceEventTrigger o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventTrigger++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceEventTrigger < 3) { |
| unittest.expect( |
| o.eventName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.logCondition!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceEventTrigger--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterClause = 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterClause |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterClause() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceFilterClause(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterClause++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterClause < 3) { |
| o.clauseType = 'foo'; |
| o.sequenceFilter = buildGoogleAnalyticsAdminV1alphaAudienceSequenceFilter(); |
| o.simpleFilter = buildGoogleAnalyticsAdminV1alphaAudienceSimpleFilter(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterClause--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceFilterClause( |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterClause o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterClause++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterClause < 3) { |
| unittest.expect( |
| o.clauseType!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAudienceSequenceFilter(o.sequenceFilter!); |
| checkGoogleAnalyticsAdminV1alphaAudienceSimpleFilter(o.simpleFilter!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterClause--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpression = 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterExpression |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceFilterExpression(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpression++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpression < 3) { |
| o.andGroup = buildGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList(); |
| o.dimensionOrMetricFilter = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter(); |
| o.eventFilter = buildGoogleAnalyticsAdminV1alphaAudienceEventFilter(); |
| o.notExpression = |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression(); |
| o.orGroup = buildGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpression--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression( |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterExpression o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpression++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpression < 3) { |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList(o.andGroup!); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter( |
| o.dimensionOrMetricFilter!); |
| checkGoogleAnalyticsAdminV1alphaAudienceEventFilter(o.eventFilter!); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression(o.notExpression!); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList(o.orGroup!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpression--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAudienceFilterExpression> |
| buildUnnamed7() => [ |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression(), |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression(), |
| ]; |
| |
| void checkUnnamed7( |
| core.List<api.GoogleAnalyticsAdminV1alphaAudienceFilterExpression> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList < 3) { |
| o.filterExpressions = buildUnnamed7(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList( |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList < 3) { |
| checkUnnamed7(o.filterExpressions!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList--; |
| } |
| |
| core.List< |
| api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep> |
| buildUnnamed8() => [ |
| buildGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep(), |
| buildGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep(), |
| ]; |
| |
| void checkUnnamed8( |
| core.List< |
| api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep> |
| o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep( |
| o[0]); |
| checkGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep( |
| o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceSequenceFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilter < 3) { |
| o.scope = 'foo'; |
| o.sequenceMaximumDuration = 'foo'; |
| o.sequenceSteps = buildUnnamed8(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceSequenceFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilter < 3) { |
| unittest.expect( |
| o.scope!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.sequenceMaximumDuration!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed8(o.sequenceSteps!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilter--; |
| } |
| |
| core.int |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep = |
| 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep |
| buildGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep() { |
| final o = api |
| .GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep < |
| 3) { |
| o.constraintDuration = 'foo'; |
| o.filterExpression = |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression(); |
| o.immediatelyFollows = true; |
| o.scope = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep( |
| api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep < |
| 3) { |
| unittest.expect( |
| o.constraintDuration!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression( |
| o.filterExpression!); |
| unittest.expect(o.immediatelyFollows!, unittest.isTrue); |
| unittest.expect( |
| o.scope!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep--; |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaAudienceSimpleFilter = 0; |
| api.GoogleAnalyticsAdminV1alphaAudienceSimpleFilter |
| buildGoogleAnalyticsAdminV1alphaAudienceSimpleFilter() { |
| final o = api.GoogleAnalyticsAdminV1alphaAudienceSimpleFilter(); |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSimpleFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceSimpleFilter < 3) { |
| o.filterExpression = |
| buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression(); |
| o.scope = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSimpleFilter--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAudienceSimpleFilter( |
| api.GoogleAnalyticsAdminV1alphaAudienceSimpleFilter o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSimpleFilter++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAudienceSimpleFilter < 3) { |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression( |
| o.filterExpression!); |
| unittest.expect( |
| o.scope!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAudienceSimpleFilter--; |
| } |
| |
| core.List<core.String> buildUnnamed9() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed9(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> buildUnnamed10() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed10(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 = buildUnnamed9(); |
| o.effectiveRoles = buildUnnamed10(); |
| o.emailAddress = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAuditUserLink( |
| api.GoogleAnalyticsAdminV1alphaAuditUserLink o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLink < 3) { |
| checkUnnamed9(o.directRoles!); |
| checkUnnamed10(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> buildUnnamed11() => [ |
| buildGoogleAnalyticsAdminV1alphaAuditUserLink(), |
| buildGoogleAnalyticsAdminV1alphaAuditUserLink(), |
| ]; |
| |
| void checkUnnamed11(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 = buildUnnamed11(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaAuditUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed11(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaAuditUserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaCreateUserLinkRequest> |
| buildUnnamed12() => [ |
| buildGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(), |
| buildGoogleAnalyticsAdminV1alphaCreateUserLinkRequest(), |
| ]; |
| |
| void checkUnnamed12( |
| 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 = buildUnnamed12(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest( |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest < 3) { |
| unittest.expect(o.notifyNewUsers!, unittest.isTrue); |
| checkUnnamed12(o.requests!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed13() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed13(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 = buildUnnamed13(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse < 3) { |
| checkUnnamed13(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest> |
| buildUnnamed14() => [ |
| buildGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(), |
| buildGoogleAnalyticsAdminV1alphaDeleteUserLinkRequest(), |
| ]; |
| |
| void checkUnnamed14( |
| 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 = buildUnnamed14(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest( |
| api.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest < 3) { |
| checkUnnamed14(o.requests!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed15() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed15(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 = buildUnnamed15(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse < 3) { |
| checkUnnamed15(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest> |
| buildUnnamed16() => [ |
| buildGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(), |
| buildGoogleAnalyticsAdminV1alphaUpdateUserLinkRequest(), |
| ]; |
| |
| void checkUnnamed16( |
| 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 = buildUnnamed16(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest( |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest < 3) { |
| checkUnnamed16(o.requests!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed17() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed17(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 = buildUnnamed17(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse < 3) { |
| checkUnnamed17(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.attributionSettings = |
| buildGoogleAnalyticsAdminV1alphaAttributionSettings(); |
| 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!); |
| checkGoogleAnalyticsAdminV1alphaAttributionSettings(o.attributionSettings!); |
| 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> |
| buildUnnamed18() => [ |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChange(), |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryChange(), |
| ]; |
| |
| void checkUnnamed18( |
| 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 = buildUnnamed18(); |
| 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'), |
| ); |
| checkUnnamed18(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> buildUnnamed19() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed19(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 = buildUnnamed19(); |
| 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'), |
| ); |
| checkUnnamed19(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 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> buildUnnamed20() => [ |
| buildGoogleAnalyticsAdminV1alphaAccountSummary(), |
| buildGoogleAnalyticsAdminV1alphaAccountSummary(), |
| ]; |
| |
| void checkUnnamed20( |
| 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 = buildUnnamed20(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListAccountSummariesResponse( |
| api.GoogleAnalyticsAdminV1alphaListAccountSummariesResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse < 3) { |
| checkUnnamed20(o.accountSummaries!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountSummariesResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccount> buildUnnamed21() => [ |
| buildGoogleAnalyticsAdminV1alphaAccount(), |
| buildGoogleAnalyticsAdminV1alphaAccount(), |
| ]; |
| |
| void checkUnnamed21(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 = buildUnnamed21(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListAccountsResponse( |
| api.GoogleAnalyticsAdminV1alphaListAccountsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse < 3) { |
| checkUnnamed21(o.accounts!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAccountsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAudience> buildUnnamed22() => [ |
| buildGoogleAnalyticsAdminV1alphaAudience(), |
| buildGoogleAnalyticsAdminV1alphaAudience(), |
| ]; |
| |
| void checkUnnamed22(core.List<api.GoogleAnalyticsAdminV1alphaAudience> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAudience(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAudience(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaListAudiencesResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaListAudiencesResponse |
| buildGoogleAnalyticsAdminV1alphaListAudiencesResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaListAudiencesResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaListAudiencesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAudiencesResponse < 3) { |
| o.audiences = buildUnnamed22(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAudiencesResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListAudiencesResponse( |
| api.GoogleAnalyticsAdminV1alphaListAudiencesResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListAudiencesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListAudiencesResponse < 3) { |
| checkUnnamed22(o.audiences!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListAudiencesResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaConversionEvent> buildUnnamed23() => [ |
| buildGoogleAnalyticsAdminV1alphaConversionEvent(), |
| buildGoogleAnalyticsAdminV1alphaConversionEvent(), |
| ]; |
| |
| void checkUnnamed23( |
| 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 = buildUnnamed23(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListConversionEventsResponse( |
| api.GoogleAnalyticsAdminV1alphaListConversionEventsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse < 3) { |
| checkUnnamed23(o.conversionEvents!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListConversionEventsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaCustomDimension> buildUnnamed24() => [ |
| buildGoogleAnalyticsAdminV1alphaCustomDimension(), |
| buildGoogleAnalyticsAdminV1alphaCustomDimension(), |
| ]; |
| |
| void checkUnnamed24( |
| 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 = buildUnnamed24(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse( |
| api.GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse < 3) { |
| checkUnnamed24(o.customDimensions!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomDimensionsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaCustomMetric> buildUnnamed25() => [ |
| buildGoogleAnalyticsAdminV1alphaCustomMetric(), |
| buildGoogleAnalyticsAdminV1alphaCustomMetric(), |
| ]; |
| |
| void checkUnnamed25(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 = buildUnnamed25(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListCustomMetricsResponse( |
| api.GoogleAnalyticsAdminV1alphaListCustomMetricsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse < 3) { |
| checkUnnamed25(o.customMetrics!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListCustomMetricsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDataStream> buildUnnamed26() => [ |
| buildGoogleAnalyticsAdminV1alphaDataStream(), |
| buildGoogleAnalyticsAdminV1alphaDataStream(), |
| ]; |
| |
| void checkUnnamed26(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 = buildUnnamed26(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListDataStreamsResponse( |
| api.GoogleAnalyticsAdminV1alphaListDataStreamsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse < 3) { |
| checkUnnamed26(o.dataStreams!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDataStreamsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal> |
| buildUnnamed27() => [ |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(), |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal(), |
| ]; |
| |
| void checkUnnamed27( |
| 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 = buildUnnamed27(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse( |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse < |
| 3) { |
| checkUnnamed27(o.displayVideo360AdvertiserLinkProposals!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink> |
| buildUnnamed28() => [ |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(), |
| buildGoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink(), |
| ]; |
| |
| void checkUnnamed28( |
| 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 = buildUnnamed28(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse |
| o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse < |
| 3) { |
| checkUnnamed28(o.displayVideo360AdvertiserLinks!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaFirebaseLink> buildUnnamed29() => [ |
| buildGoogleAnalyticsAdminV1alphaFirebaseLink(), |
| buildGoogleAnalyticsAdminV1alphaFirebaseLink(), |
| ]; |
| |
| void checkUnnamed29(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 = buildUnnamed29(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse < 3) { |
| checkUnnamed29(o.firebaseLinks!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListFirebaseLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaGoogleAdsLink> buildUnnamed30() => [ |
| buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(), |
| buildGoogleAnalyticsAdminV1alphaGoogleAdsLink(), |
| ]; |
| |
| void checkUnnamed30(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 = buildUnnamed30(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse < 3) { |
| checkUnnamed30(o.googleAdsLinks!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret> |
| buildUnnamed31() => [ |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(), |
| buildGoogleAnalyticsAdminV1alphaMeasurementProtocolSecret(), |
| ]; |
| |
| void checkUnnamed31( |
| 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 = buildUnnamed31(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse( |
| api.GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse < |
| 3) { |
| checkUnnamed31(o.measurementProtocolSecrets!); |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaProperty> buildUnnamed32() => [ |
| buildGoogleAnalyticsAdminV1alphaProperty(), |
| buildGoogleAnalyticsAdminV1alphaProperty(), |
| ]; |
| |
| void checkUnnamed32(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 = buildUnnamed32(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListPropertiesResponse( |
| api.GoogleAnalyticsAdminV1alphaListPropertiesResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed32(o.properties!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListPropertiesResponse--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaUserLink> buildUnnamed33() => [ |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| buildGoogleAnalyticsAdminV1alphaUserLink(), |
| ]; |
| |
| void checkUnnamed33(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 = buildUnnamed33(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaListUserLinksResponse( |
| api.GoogleAnalyticsAdminV1alphaListUserLinksResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse < 3) { |
| unittest.expect( |
| o.nextPageToken!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed33(o.userLinks!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaListUserLinksResponse--; |
| } |
| |
| 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 buildCounterGoogleAnalyticsAdminV1alphaNumericValue = 0; |
| api.GoogleAnalyticsAdminV1alphaNumericValue |
| buildGoogleAnalyticsAdminV1alphaNumericValue() { |
| final o = api.GoogleAnalyticsAdminV1alphaNumericValue(); |
| buildCounterGoogleAnalyticsAdminV1alphaNumericValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaNumericValue < 3) { |
| o.doubleValue = 42.0; |
| o.int64Value = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaNumericValue--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaNumericValue( |
| api.GoogleAnalyticsAdminV1alphaNumericValue o) { |
| buildCounterGoogleAnalyticsAdminV1alphaNumericValue++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaNumericValue < 3) { |
| unittest.expect( |
| o.doubleValue!, |
| unittest.equals(42.0), |
| ); |
| unittest.expect( |
| o.int64Value!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaNumericValue--; |
| } |
| |
| 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.propertyType = '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.propertyType!, |
| 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.parent = 'foo'; |
| o.property = 'foo'; |
| o.propertyType = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaPropertySummary--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaPropertySummary( |
| api.GoogleAnalyticsAdminV1alphaPropertySummary o) { |
| buildCounterGoogleAnalyticsAdminV1alphaPropertySummary++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaPropertySummary < 3) { |
| unittest.expect( |
| o.displayName!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.parent!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.property!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.propertyType!, |
| 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<api.GoogleAnalyticsAdminV1alphaAccessDateRange> buildUnnamed34() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessDateRange(), |
| buildGoogleAnalyticsAdminV1alphaAccessDateRange(), |
| ]; |
| |
| void checkUnnamed34( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessDateRange> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessDateRange(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessDateRange(o[1]); |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessDimension> buildUnnamed35() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessDimension(), |
| buildGoogleAnalyticsAdminV1alphaAccessDimension(), |
| ]; |
| |
| void checkUnnamed35( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessDimension> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessDimension(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessDimension(o[1]); |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessMetric> buildUnnamed36() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessMetric(), |
| buildGoogleAnalyticsAdminV1alphaAccessMetric(), |
| ]; |
| |
| void checkUnnamed36(core.List<api.GoogleAnalyticsAdminV1alphaAccessMetric> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessMetric(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessMetric(o[1]); |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessOrderBy> buildUnnamed37() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessOrderBy(), |
| buildGoogleAnalyticsAdminV1alphaAccessOrderBy(), |
| ]; |
| |
| void checkUnnamed37(core.List<api.GoogleAnalyticsAdminV1alphaAccessOrderBy> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessOrderBy(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessOrderBy(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportRequest = 0; |
| api.GoogleAnalyticsAdminV1alphaRunAccessReportRequest |
| buildGoogleAnalyticsAdminV1alphaRunAccessReportRequest() { |
| final o = api.GoogleAnalyticsAdminV1alphaRunAccessReportRequest(); |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportRequest < 3) { |
| o.dateRanges = buildUnnamed34(); |
| o.dimensionFilter = |
| buildGoogleAnalyticsAdminV1alphaAccessFilterExpression(); |
| o.dimensions = buildUnnamed35(); |
| o.limit = 'foo'; |
| o.metricFilter = buildGoogleAnalyticsAdminV1alphaAccessFilterExpression(); |
| o.metrics = buildUnnamed36(); |
| o.offset = 'foo'; |
| o.orderBys = buildUnnamed37(); |
| o.returnEntityQuota = true; |
| o.timeZone = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaRunAccessReportRequest( |
| api.GoogleAnalyticsAdminV1alphaRunAccessReportRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportRequest < 3) { |
| checkUnnamed34(o.dateRanges!); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpression(o.dimensionFilter!); |
| checkUnnamed35(o.dimensions!); |
| unittest.expect( |
| o.limit!, |
| unittest.equals('foo'), |
| ); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpression(o.metricFilter!); |
| checkUnnamed36(o.metrics!); |
| unittest.expect( |
| o.offset!, |
| unittest.equals('foo'), |
| ); |
| checkUnnamed37(o.orderBys!); |
| unittest.expect(o.returnEntityQuota!, unittest.isTrue); |
| unittest.expect( |
| o.timeZone!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessDimensionHeader> |
| buildUnnamed38() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessDimensionHeader(), |
| buildGoogleAnalyticsAdminV1alphaAccessDimensionHeader(), |
| ]; |
| |
| void checkUnnamed38( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessDimensionHeader> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessDimensionHeader(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessDimensionHeader(o[1]); |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessMetricHeader> buildUnnamed39() => |
| [ |
| buildGoogleAnalyticsAdminV1alphaAccessMetricHeader(), |
| buildGoogleAnalyticsAdminV1alphaAccessMetricHeader(), |
| ]; |
| |
| void checkUnnamed39( |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessMetricHeader> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessMetricHeader(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessMetricHeader(o[1]); |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaAccessRow> buildUnnamed40() => [ |
| buildGoogleAnalyticsAdminV1alphaAccessRow(), |
| buildGoogleAnalyticsAdminV1alphaAccessRow(), |
| ]; |
| |
| void checkUnnamed40(core.List<api.GoogleAnalyticsAdminV1alphaAccessRow> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkGoogleAnalyticsAdminV1alphaAccessRow(o[0]); |
| checkGoogleAnalyticsAdminV1alphaAccessRow(o[1]); |
| } |
| |
| core.int buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportResponse = 0; |
| api.GoogleAnalyticsAdminV1alphaRunAccessReportResponse |
| buildGoogleAnalyticsAdminV1alphaRunAccessReportResponse() { |
| final o = api.GoogleAnalyticsAdminV1alphaRunAccessReportResponse(); |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportResponse < 3) { |
| o.dimensionHeaders = buildUnnamed38(); |
| o.metricHeaders = buildUnnamed39(); |
| o.quota = buildGoogleAnalyticsAdminV1alphaAccessQuota(); |
| o.rowCount = 42; |
| o.rows = buildUnnamed40(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaRunAccessReportResponse( |
| api.GoogleAnalyticsAdminV1alphaRunAccessReportResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportResponse < 3) { |
| checkUnnamed38(o.dimensionHeaders!); |
| checkUnnamed39(o.metricHeaders!); |
| checkGoogleAnalyticsAdminV1alphaAccessQuota(o.quota!); |
| unittest.expect( |
| o.rowCount!, |
| unittest.equals(42), |
| ); |
| checkUnnamed40(o.rows!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaRunAccessReportResponse--; |
| } |
| |
| core.List<core.String> buildUnnamed41() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed41(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> buildUnnamed42() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed42(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> buildUnnamed43() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed43(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 = buildUnnamed41(); |
| o.actorEmail = buildUnnamed42(); |
| o.earliestChangeTime = 'foo'; |
| o.latestChangeTime = 'foo'; |
| o.pageSize = 42; |
| o.pageToken = 'foo'; |
| o.property = 'foo'; |
| o.resourceType = buildUnnamed43(); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest( |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest o) { |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest < |
| 3) { |
| checkUnnamed41(o.action!); |
| checkUnnamed42(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'), |
| ); |
| checkUnnamed43(o.resourceType!); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest--; |
| } |
| |
| core.List<api.GoogleAnalyticsAdminV1alphaChangeHistoryEvent> buildUnnamed44() => |
| [ |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryEvent(), |
| buildGoogleAnalyticsAdminV1alphaChangeHistoryEvent(), |
| ]; |
| |
| void checkUnnamed44( |
| 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 = buildUnnamed44(); |
| o.nextPageToken = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse( |
| api.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse o) { |
| buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse < |
| 3) { |
| checkUnnamed44(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> buildUnnamed45() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed45(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 = buildUnnamed45(); |
| o.emailAddress = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaUserLink--; |
| return o; |
| } |
| |
| void checkGoogleAnalyticsAdminV1alphaUserLink( |
| api.GoogleAnalyticsAdminV1alphaUserLink o) { |
| buildCounterGoogleAnalyticsAdminV1alphaUserLink++; |
| if (buildCounterGoogleAnalyticsAdminV1alphaUserLink < 3) { |
| checkUnnamed45(o.directRoles!); |
| unittest.expect( |
| o.emailAddress!, |
| unittest.equals('foo'), |
| ); |
| unittest.expect( |
| o.name!, |
| unittest.equals('foo'), |
| ); |
| } |
| buildCounterGoogleAnalyticsAdminV1alphaUserLink--; |
| } |
| |
| 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> buildUnnamed46() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed46(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> buildUnnamed47() => [ |
| 'foo', |
| 'foo', |
| ]; |
| |
| void checkUnnamed47(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-GoogleAnalyticsAdminV1alphaAccessBetweenFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessBetweenFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessBetweenFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessBetweenFilter(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessDateRange', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessDateRange(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessDateRange.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessDateRange(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessDimension', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessDimension(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessDimension.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessDimension(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessDimensionHeader', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessDimensionHeader(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessDimensionHeader.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessDimensionHeader(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessDimensionValue', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessDimensionValue(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessDimensionValue.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessDimensionValue(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessFilter', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessFilter(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessFilterExpression', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessFilterExpression(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessFilterExpression.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpression(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAccessFilterExpressionList', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessFilterExpressionList(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAccessFilterExpressionList.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessFilterExpressionList(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessInListFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessInListFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessInListFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessInListFilter(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessMetric', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessMetric(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessMetric.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessMetric(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessMetricHeader', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessMetricHeader(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessMetricHeader.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessMetricHeader(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessMetricValue', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessMetricValue(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessMetricValue.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessMetricValue(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessNumericFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessNumericFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessNumericFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessNumericFilter(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessOrderBy', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessOrderBy(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessOrderBy.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessOrderBy(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessQuota', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessQuota(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessQuota.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessQuota(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessQuotaStatus', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessQuotaStatus(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessQuotaStatus.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessQuotaStatus(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessRow', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessRow(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessRow.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessRow(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAccessStringFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAccessStringFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAccessStringFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAccessStringFilter(od); |
| }); |
| }); |
| |
| 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-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-GoogleAnalyticsAdminV1alphaArchiveAudienceRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaArchiveAudienceRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaArchiveAudienceRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaArchiveAudienceRequest(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-GoogleAnalyticsAdminV1alphaAttributionSettings', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAttributionSettings(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAttributionSettings.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAttributionSettings(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAudience', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudience(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAudience.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudience(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue( |
| od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter( |
| od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAudienceEventFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudienceEventFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAudienceEventFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceEventFilter(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAudienceEventTrigger', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudienceEventTrigger(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAudienceEventTrigger.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceEventTrigger(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAudienceFilterClause', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudienceFilterClause(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAudienceFilterClause.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterClause(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceFilterExpression', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudienceFilterExpression(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterExpression.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpression(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceFilterExpressionList(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAudienceSequenceFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudienceSequenceFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceSequenceFilter(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = |
| buildGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep |
| .fromJson(oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep( |
| od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GoogleAnalyticsAdminV1alphaAudienceSimpleFilter', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaAudienceSimpleFilter(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaAudienceSimpleFilter.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudienceSimpleFilter(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-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-GoogleAnalyticsAdminV1alphaListAudiencesResponse', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaListAudiencesResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaListAudiencesResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaListAudiencesResponse(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-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-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-GoogleAnalyticsAdminV1alphaNumericValue', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaNumericValue(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaNumericValue.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaNumericValue(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-GoogleAnalyticsAdminV1alphaRunAccessReportRequest', |
| () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaRunAccessReportRequest(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = api.GoogleAnalyticsAdminV1alphaRunAccessReportRequest.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaRunAccessReportRequest(od); |
| }); |
| }); |
| |
| unittest.group( |
| 'obj-schema-GoogleAnalyticsAdminV1alphaRunAccessReportResponse', () { |
| unittest.test('to-json--from-json', () async { |
| final o = buildGoogleAnalyticsAdminV1alphaRunAccessReportResponse(); |
| final oJson = convert.jsonDecode(convert.jsonEncode(o)); |
| final od = |
| api.GoogleAnalyticsAdminV1alphaRunAccessReportResponse.fromJson( |
| oJson as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaRunAccessReportResponse(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-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 = buildUnnamed46(); |
| 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--getAttributionSettings', () 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(buildGoogleAnalyticsAdminV1alphaAttributionSettings()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.getAttributionSettings(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAttributionSettings( |
| response as api.GoogleAnalyticsAdminV1alphaAttributionSettings); |
| }); |
| |
| 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--runAccessReport', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaRunAccessReportRequest(); |
| final arg_entity = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaRunAccessReportRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaRunAccessReportRequest(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(buildGoogleAnalyticsAdminV1alphaRunAccessReportResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.runAccessReport(arg_request, arg_entity, |
| $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaRunAccessReportResponse( |
| response as api.GoogleAnalyticsAdminV1alphaRunAccessReportResponse); |
| }); |
| |
| unittest.test('method--updateAttributionSettings', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaAttributionSettings(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaAttributionSettings.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAttributionSettings(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(buildGoogleAnalyticsAdminV1alphaAttributionSettings()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.updateAttributionSettings( |
| arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAttributionSettings( |
| response as api.GoogleAnalyticsAdminV1alphaAttributionSettings); |
| }); |
| |
| 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-PropertiesAudiencesResource', () { |
| unittest.test('method--archive', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.audiences; |
| final arg_request = |
| buildGoogleAnalyticsAdminV1alphaArchiveAudienceRequest(); |
| final arg_name = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = |
| api.GoogleAnalyticsAdminV1alphaArchiveAudienceRequest.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaArchiveAudienceRequest(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.audiences; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaAudience(); |
| final arg_parent = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaAudience.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudience(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(buildGoogleAnalyticsAdminV1alphaAudience()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = |
| await res.create(arg_request, arg_parent, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAudience( |
| response as api.GoogleAnalyticsAdminV1alphaAudience); |
| }); |
| |
| unittest.test('method--get', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.audiences; |
| 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(buildGoogleAnalyticsAdminV1alphaAudience()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.get(arg_name, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAudience( |
| response as api.GoogleAnalyticsAdminV1alphaAudience); |
| }); |
| |
| unittest.test('method--list', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.audiences; |
| 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(buildGoogleAnalyticsAdminV1alphaListAudiencesResponse()); |
| 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); |
| checkGoogleAnalyticsAdminV1alphaListAudiencesResponse( |
| response as api.GoogleAnalyticsAdminV1alphaListAudiencesResponse); |
| }); |
| |
| unittest.test('method--patch', () async { |
| final mock = HttpServerMock(); |
| final res = api.GoogleAnalyticsAdminApi(mock).properties.audiences; |
| final arg_request = buildGoogleAnalyticsAdminV1alphaAudience(); |
| final arg_name = 'foo'; |
| final arg_updateMask = 'foo'; |
| final arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| final obj = api.GoogleAnalyticsAdminV1alphaAudience.fromJson( |
| json as core.Map<core.String, core.dynamic>); |
| checkGoogleAnalyticsAdminV1alphaAudience(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(buildGoogleAnalyticsAdminV1alphaAudience()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| final response = await res.patch(arg_request, arg_name, |
| updateMask: arg_updateMask, $fields: arg_$fields); |
| checkGoogleAnalyticsAdminV1alphaAudience( |
| response as api.GoogleAnalyticsAdminV1alphaAudience); |
| }); |
| }); |
| |
| 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-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 = buildUnnamed47(); |
| 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); |
| }); |
| }); |
| } |