diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 65c8e682d09..ec1ae53f6cc 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -889,35 +889,6 @@ "https://www.googleapis.com/auth/analytics.edit" ] }, - "runAccessReport": { - "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", - "flatPath": "v1alpha/properties/{propertiesId}:runAccessReport", - "httpMethod": "POST", - "id": "analyticsadmin.properties.runAccessReport", - "parameterOrder": [ - "entity" - ], - "parameters": { - "entity": { - "description": "The Data Access Report is requested for this property. For example if \"123\" is your GA4 property ID, then entity should be \"properties/123\".", - "location": "path", - "pattern": "^properties/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+entity}:runAccessReport", - "request": { - "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportRequest" - }, - "response": { - "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/analytics.edit", - "https://www.googleapis.com/auth/analytics.readonly" - ] - }, "updateAttributionSettings": { "description": "Updates attribution settings on a property.", "flatPath": "v1alpha/properties/{propertiesId}/attributionSettings", @@ -2645,373 +2616,9 @@ } } }, - "revision": "20220625", + "revision": "20220706", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { - "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { - "description": "To express that the result needs to be between two numbers (inclusive).", - "id": "GoogleAnalyticsAdminV1alphaAccessBetweenFilter", - "properties": { - "fromValue": { - "$ref": "GoogleAnalyticsAdminV1alphaNumericValue", - "description": "Begins with this number." - }, - "toValue": { - "$ref": "GoogleAnalyticsAdminV1alphaNumericValue", - "description": "Ends with this number." - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessDateRange": { - "description": "A contiguous range of days: startDate, startDate + 1, ..., endDate.", - "id": "GoogleAnalyticsAdminV1alphaAccessDateRange", - "properties": { - "endDate": { - "description": "The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.", - "type": "string" - }, - "startDate": { - "description": "The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessDimension": { - "description": "Dimensions are attributes of your data. For example, the dimension `userEmail` indicates the email of the user that accessed reporting data. Dimension values in report responses are strings.", - "id": "GoogleAnalyticsAdminV1alphaAccessDimension", - "properties": { - "dimensionName": { - "description": "The API name of the dimension. Dimensions are referenced by name in `dimensionFilter` and `orderBys`.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessDimensionHeader": { - "description": "Describes a dimension column in the report. Dimensions requested in a report produce column entries within rows and DimensionHeaders. However, dimensions used exclusively within filters or expressions do not produce columns in a report; correspondingly, those dimensions do not produce headers.", - "id": "GoogleAnalyticsAdminV1alphaAccessDimensionHeader", - "properties": { - "dimensionName": { - "description": "The dimension's name; for example 'country'.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessDimensionValue": { - "description": "The value of a dimension.", - "id": "GoogleAnalyticsAdminV1alphaAccessDimensionValue", - "properties": { - "value": { - "description": "The dimension value. For example, this value may be 'France' for the 'country' dimension.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessFilter": { - "description": "An expression to filter dimension or metric values.", - "id": "GoogleAnalyticsAdminV1alphaAccessFilter", - "properties": { - "betweenFilter": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessBetweenFilter", - "description": "A filter for two values." - }, - "fieldName": { - "description": "The dimension name or metric name.", - "type": "string" - }, - "inListFilter": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessInListFilter", - "description": "A filter for in list values." - }, - "numericFilter": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessNumericFilter", - "description": "A filter for numeric or date values." - }, - "stringFilter": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessStringFilter", - "description": "Strings related filter." - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessFilterExpression": { - "description": "Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics.", - "id": "GoogleAnalyticsAdminV1alphaAccessFilterExpression", - "properties": { - "accessFilter": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessFilter", - "description": "A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics." - }, - "andGroup": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessFilterExpressionList", - "description": "Each of the FilterExpressions in the and_group has an AND relationship." - }, - "notExpression": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessFilterExpression", - "description": "The FilterExpression is NOT of not_expression." - }, - "orGroup": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessFilterExpressionList", - "description": "Each of the FilterExpressions in the or_group has an OR relationship." - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessFilterExpressionList": { - "description": "A list of filter expressions.", - "id": "GoogleAnalyticsAdminV1alphaAccessFilterExpressionList", - "properties": { - "expressions": { - "description": "A list of filter expressions.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessFilterExpression" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessInListFilter": { - "description": "The result needs to be in a list of string values.", - "id": "GoogleAnalyticsAdminV1alphaAccessInListFilter", - "properties": { - "caseSensitive": { - "description": "If true, the string value is case sensitive.", - "type": "boolean" - }, - "values": { - "description": "The list of string values. Must be non-empty.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessMetric": { - "description": "The quantitative measurements of a report. For example, the metric `accessCount` is the total number of data access records.", - "id": "GoogleAnalyticsAdminV1alphaAccessMetric", - "properties": { - "metricName": { - "description": "The API name of the metric. Metrics are referenced by name in `metricFilter` \u0026 `orderBys`.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessMetricHeader": { - "description": "Describes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers.", - "id": "GoogleAnalyticsAdminV1alphaAccessMetricHeader", - "properties": { - "metricName": { - "description": "The metric's name; for example 'accessCount'.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessMetricValue": { - "description": "The value of a metric.", - "id": "GoogleAnalyticsAdminV1alphaAccessMetricValue", - "properties": { - "value": { - "description": "The measurement value. For example, this value may be '13'.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessNumericFilter": { - "description": "Filters for numeric or date values.", - "id": "GoogleAnalyticsAdminV1alphaAccessNumericFilter", - "properties": { - "operation": { - "description": "The operation type for this filter.", - "enum": [ - "OPERATION_UNSPECIFIED", - "EQUAL", - "LESS_THAN", - "LESS_THAN_OR_EQUAL", - "GREATER_THAN", - "GREATER_THAN_OR_EQUAL" - ], - "enumDescriptions": [ - "Unspecified.", - "Equal", - "Less than", - "Less than or equal", - "Greater than", - "Greater than or equal" - ], - "type": "string" - }, - "value": { - "$ref": "GoogleAnalyticsAdminV1alphaNumericValue", - "description": "A numeric value or a date value." - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessOrderBy": { - "description": "Order bys define how rows will be sorted in the response. For example, ordering rows by descending access count is one ordering, and ordering rows by the country string is a different ordering.", - "id": "GoogleAnalyticsAdminV1alphaAccessOrderBy", - "properties": { - "desc": { - "description": "If true, sorts by descending order. If false or unspecified, sorts in ascending order.", - "type": "boolean" - }, - "dimension": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy", - "description": "Sorts results by a dimension's values." - }, - "metric": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy", - "description": "Sorts results by a metric's values." - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy": { - "description": "Sorts by dimension values.", - "id": "GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy", - "properties": { - "dimensionName": { - "description": "A dimension name in the request to order by.", - "type": "string" - }, - "orderType": { - "description": "Controls the rule for dimension value ordering.", - "enum": [ - "ORDER_TYPE_UNSPECIFIED", - "ALPHANUMERIC", - "CASE_INSENSITIVE_ALPHANUMERIC", - "NUMERIC" - ], - "enumDescriptions": [ - "Unspecified.", - "Alphanumeric sort by Unicode code point. For example, \"2\" \u003c \"A\" \u003c \"X\" \u003c \"b\" \u003c \"z\".", - "Case insensitive alphanumeric sort by lower case Unicode code point. For example, \"2\" \u003c \"A\" \u003c \"b\" \u003c \"X\" \u003c \"z\".", - "Dimension values are converted to numbers before sorting. For example in NUMERIC sort, \"25\" \u003c \"100\", and in `ALPHANUMERIC` sort, \"100\" \u003c \"25\". Non-numeric dimension values all have equal ordering value below all numeric values." - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy": { - "description": "Sorts by metric values.", - "id": "GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy", - "properties": { - "metricName": { - "description": "A metric name in the request to order by.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessQuota": { - "description": "Current state of all quotas for this Analytics property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors.", - "id": "GoogleAnalyticsAdminV1alphaAccessQuota", - "properties": { - "concurrentRequests": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessQuotaStatus", - "description": "Properties can use up to 50 concurrent requests." - }, - "serverErrorsPerProjectPerHour": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessQuotaStatus", - "description": "Properties and cloud project pairs can have up to 50 server errors per hour." - }, - "tokensPerDay": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessQuotaStatus", - "description": "Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens." - }, - "tokensPerHour": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessQuotaStatus", - "description": "Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas." - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessQuotaStatus": { - "description": "Current state for a particular quota group.", - "id": "GoogleAnalyticsAdminV1alphaAccessQuotaStatus", - "properties": { - "consumed": { - "description": "Quota consumed by this request.", - "format": "int32", - "type": "integer" - }, - "remaining": { - "description": "Quota remaining after this request.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessRow": { - "description": "Access report data for each row.", - "id": "GoogleAnalyticsAdminV1alphaAccessRow", - "properties": { - "dimensionValues": { - "description": "List of dimension values. These values are in the same order as specified in the request.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessDimensionValue" - }, - "type": "array" - }, - "metricValues": { - "description": "List of metric values. These values are in the same order as specified in the request.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessMetricValue" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaAccessStringFilter": { - "description": "The filter for strings.", - "id": "GoogleAnalyticsAdminV1alphaAccessStringFilter", - "properties": { - "caseSensitive": { - "description": "If true, the string value is case sensitive.", - "type": "boolean" - }, - "matchType": { - "description": "The match type for this filter.", - "enum": [ - "MATCH_TYPE_UNSPECIFIED", - "EXACT", - "BEGINS_WITH", - "ENDS_WITH", - "CONTAINS", - "FULL_REGEXP", - "PARTIAL_REGEXP" - ], - "enumDescriptions": [ - "Unspecified", - "Exact match of the string value.", - "Begins with the string value.", - "Ends with the string value.", - "Contains the string value.", - "Full match for the regular expression with the string value.", - "Partial match for the regular expression with the string value." - ], - "type": "string" - }, - "value": { - "description": "The string value used for the matching.", - "type": "string" - } - }, - "type": "object" - }, "GoogleAnalyticsAdminV1alphaAccount": { "description": "A resource message representing a Google Analytics account.", "id": "GoogleAnalyticsAdminV1alphaAccount", @@ -4354,23 +3961,6 @@ }, "type": "object" }, - "GoogleAnalyticsAdminV1alphaNumericValue": { - "description": "To represent a number.", - "id": "GoogleAnalyticsAdminV1alphaNumericValue", - "properties": { - "doubleValue": { - "description": "Double value", - "format": "double", - "type": "number" - }, - "int64Value": { - "description": "Integer value", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "GoogleAnalyticsAdminV1alphaProperty": { "description": "A resource message representing a Google Analytics GA4 property.", "id": "GoogleAnalyticsAdminV1alphaProperty", @@ -4581,104 +4171,6 @@ }, "type": "object" }, - "GoogleAnalyticsAdminV1alphaRunAccessReportRequest": { - "description": "The request for a Data Access Record Report.", - "id": "GoogleAnalyticsAdminV1alphaRunAccessReportRequest", - "properties": { - "dateRanges": { - "description": "Date ranges of access records to read. If multiple date ranges are requested, each response row will contain a zero based date range index. If two date ranges overlap, the access records for the overlapping days is included in the response rows for both date ranges. Requests are allowed up to 2 date ranges.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessDateRange" - }, - "type": "array" - }, - "dimensionFilter": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessFilterExpression", - "description": "Dimension filters allow you to restrict report response to specific dimension values which match the filter. For example, filtering on access records of a single user. To learn more, see [Fundamentals of Dimension Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) for examples. Metrics cannot be used in this filter." - }, - "dimensions": { - "description": "The dimensions requested and displayed in the response. Requests are allowed up to 9 dimensions.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessDimension" - }, - "type": "array" - }, - "limit": { - "description": "The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 rows per request, no matter how many you ask for. `limit` must be positive. The API may return fewer rows than the requested `limit`, if there aren't as many remaining rows as the `limit`. For instance, there are fewer than 300 possible values for the dimension `country`, so when reporting on only `country`, you can't get more than 300 rows, even if you set `limit` to a higher value. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).", - "format": "int64", - "type": "string" - }, - "metricFilter": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessFilterExpression", - "description": "Metric filters allow you to restrict report response to specific metric values which match the filter. Metric filters are applied after aggregating the report's rows, similar to SQL having-clause. Dimensions cannot be used in this filter." - }, - "metrics": { - "description": "The metrics requested and displayed in the response. Requests are allowed up to 10 metrics.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessMetric" - }, - "type": "array" - }, - "offset": { - "description": "The row count of the start row. The first row is counted as row 0. If offset is unspecified, it is treated as 0. If offset is zero, then this method will return the first page of results with `limit` entries. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).", - "format": "int64", - "type": "string" - }, - "orderBys": { - "description": "Specifies how rows are ordered in the response.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessOrderBy" - }, - "type": "array" - }, - "returnPropertyQuota": { - "description": "Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).", - "type": "boolean" - }, - "timeZone": { - "description": "This request's time zone if specified. If unspecified, the property's time zone is used. The request's time zone is used to interpret the start \u0026 end dates of the report. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example \"America/New_York\" or \"Asia/Tokyo\".", - "type": "string" - } - }, - "type": "object" - }, - "GoogleAnalyticsAdminV1alphaRunAccessReportResponse": { - "description": "The customized Data Access Record Report response.", - "id": "GoogleAnalyticsAdminV1alphaRunAccessReportResponse", - "properties": { - "dimensionHeaders": { - "description": "The header for a column in the report that corresponds to a specific dimension. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessDimensionHeader" - }, - "type": "array" - }, - "metricHeaders": { - "description": "The header for a column in the report that corresponds to a specific metric. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessMetricHeader" - }, - "type": "array" - }, - "quota": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessQuota", - "description": "The quota state for this Analytics property including this request." - }, - "rowCount": { - "description": "The total number of rows in the query result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).", - "format": "int32", - "type": "integer" - }, - "rows": { - "description": "Rows of dimension value combinations and metric values in the report.", - "items": { - "$ref": "GoogleAnalyticsAdminV1alphaAccessRow" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest": { "description": "Request message for SearchChangeHistoryEvents RPC.", "id": "GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest", diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 9ad0b3853f0..31f16015c18 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -317,716 +317,6 @@ type PropertiesUserLinksService struct { s *Service } -// GoogleAnalyticsAdminV1alphaAccessBetweenFilter: To express that the -// result needs to be between two numbers (inclusive). -type GoogleAnalyticsAdminV1alphaAccessBetweenFilter struct { - // FromValue: Begins with this number. - FromValue *GoogleAnalyticsAdminV1alphaNumericValue `json:"fromValue,omitempty"` - - // ToValue: Ends with this number. - ToValue *GoogleAnalyticsAdminV1alphaNumericValue `json:"toValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FromValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FromValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessBetweenFilter) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessBetweenFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessDateRange: A contiguous range of -// days: startDate, startDate + 1, ..., endDate. -type GoogleAnalyticsAdminV1alphaAccessDateRange struct { - // EndDate: The inclusive end date for the query in the format - // `YYYY-MM-DD`. Cannot be before `startDate`. The format `NdaysAgo`, - // `yesterday`, or `today` is also accepted, and in that case, the date - // is inferred based on the current time in the request's time zone. - EndDate string `json:"endDate,omitempty"` - - // StartDate: The inclusive start date for the query in the format - // `YYYY-MM-DD`. Cannot be after `endDate`. The format `NdaysAgo`, - // `yesterday`, or `today` is also accepted, and in that case, the date - // is inferred based on the current time in the request's time zone. - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessDateRange) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessDateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessDimension: Dimensions are attributes -// of your data. For example, the dimension `userEmail` indicates the -// email of the user that accessed reporting data. Dimension values in -// report responses are strings. -type GoogleAnalyticsAdminV1alphaAccessDimension struct { - // DimensionName: The API name of the dimension. Dimensions are - // referenced by name in `dimensionFilter` and `orderBys`. - DimensionName string `json:"dimensionName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessDimension) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessDimensionHeader: Describes a -// dimension column in the report. Dimensions requested in a report -// produce column entries within rows and DimensionHeaders. However, -// dimensions used exclusively within filters or expressions do not -// produce columns in a report; correspondingly, those dimensions do not -// produce headers. -type GoogleAnalyticsAdminV1alphaAccessDimensionHeader struct { - // DimensionName: The dimension's name; for example 'country'. - DimensionName string `json:"dimensionName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessDimensionHeader) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessDimensionHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessDimensionValue: The value of a -// dimension. -type GoogleAnalyticsAdminV1alphaAccessDimensionValue struct { - // Value: The dimension value. For example, this value may be 'France' - // for the 'country' dimension. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessDimensionValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessDimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessFilter: An expression to filter -// dimension or metric values. -type GoogleAnalyticsAdminV1alphaAccessFilter struct { - // BetweenFilter: A filter for two values. - BetweenFilter *GoogleAnalyticsAdminV1alphaAccessBetweenFilter `json:"betweenFilter,omitempty"` - - // FieldName: The dimension name or metric name. - FieldName string `json:"fieldName,omitempty"` - - // InListFilter: A filter for in list values. - InListFilter *GoogleAnalyticsAdminV1alphaAccessInListFilter `json:"inListFilter,omitempty"` - - // NumericFilter: A filter for numeric or date values. - NumericFilter *GoogleAnalyticsAdminV1alphaAccessNumericFilter `json:"numericFilter,omitempty"` - - // StringFilter: Strings related filter. - StringFilter *GoogleAnalyticsAdminV1alphaAccessStringFilter `json:"stringFilter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BetweenFilter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BetweenFilter") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessFilter) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessFilterExpression: Expresses -// dimension or metric filters. The fields in the same expression need -// to be either all dimensions or all metrics. -type GoogleAnalyticsAdminV1alphaAccessFilterExpression struct { - // AccessFilter: A primitive filter. In the same FilterExpression, all - // of the filter's field names need to be either all dimensions or all - // metrics. - AccessFilter *GoogleAnalyticsAdminV1alphaAccessFilter `json:"accessFilter,omitempty"` - - // AndGroup: Each of the FilterExpressions in the and_group has an AND - // relationship. - AndGroup *GoogleAnalyticsAdminV1alphaAccessFilterExpressionList `json:"andGroup,omitempty"` - - // NotExpression: The FilterExpression is NOT of not_expression. - NotExpression *GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"notExpression,omitempty"` - - // OrGroup: Each of the FilterExpressions in the or_group has an OR - // relationship. - OrGroup *GoogleAnalyticsAdminV1alphaAccessFilterExpressionList `json:"orGroup,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AccessFilter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessFilter") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessFilterExpression) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessFilterExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessFilterExpressionList: A list of -// filter expressions. -type GoogleAnalyticsAdminV1alphaAccessFilterExpressionList struct { - // Expressions: A list of filter expressions. - Expressions []*GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"expressions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Expressions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expressions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessFilterExpressionList) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessFilterExpressionList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessInListFilter: The result needs to be -// in a list of string values. -type GoogleAnalyticsAdminV1alphaAccessInListFilter struct { - // CaseSensitive: If true, the string value is case sensitive. - CaseSensitive bool `json:"caseSensitive,omitempty"` - - // Values: The list of string values. Must be non-empty. - Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CaseSensitive") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaseSensitive") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessInListFilter) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessInListFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessMetric: The quantitative -// measurements of a report. For example, the metric `accessCount` is -// the total number of data access records. -type GoogleAnalyticsAdminV1alphaAccessMetric struct { - // MetricName: The API name of the metric. Metrics are referenced by - // name in `metricFilter` & `orderBys`. - MetricName string `json:"metricName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MetricName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MetricName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessMetric) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessMetric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessMetricHeader: Describes a metric -// column in the report. Visible metrics requested in a report produce -// column entries within rows and MetricHeaders. However, metrics used -// exclusively within filters or expressions do not produce columns in a -// report; correspondingly, those metrics do not produce headers. -type GoogleAnalyticsAdminV1alphaAccessMetricHeader struct { - // MetricName: The metric's name; for example 'accessCount'. - MetricName string `json:"metricName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MetricName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MetricName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessMetricHeader) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessMetricHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessMetricValue: The value of a metric. -type GoogleAnalyticsAdminV1alphaAccessMetricValue struct { - // Value: The measurement value. For example, this value may be '13'. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessMetricValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessMetricValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessNumericFilter: Filters for numeric -// or date values. -type GoogleAnalyticsAdminV1alphaAccessNumericFilter struct { - // Operation: The operation type for this filter. - // - // Possible values: - // "OPERATION_UNSPECIFIED" - Unspecified. - // "EQUAL" - Equal - // "LESS_THAN" - Less than - // "LESS_THAN_OR_EQUAL" - Less than or equal - // "GREATER_THAN" - Greater than - // "GREATER_THAN_OR_EQUAL" - Greater than or equal - Operation string `json:"operation,omitempty"` - - // Value: A numeric value or a date value. - Value *GoogleAnalyticsAdminV1alphaNumericValue `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Operation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Operation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessNumericFilter) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessNumericFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessOrderBy: Order bys define how rows -// will be sorted in the response. For example, ordering rows by -// descending access count is one ordering, and ordering rows by the -// country string is a different ordering. -type GoogleAnalyticsAdminV1alphaAccessOrderBy struct { - // Desc: If true, sorts by descending order. If false or unspecified, - // sorts in ascending order. - Desc bool `json:"desc,omitempty"` - - // Dimension: Sorts results by a dimension's values. - Dimension *GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy `json:"dimension,omitempty"` - - // Metric: Sorts results by a metric's values. - Metric *GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy `json:"metric,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Desc") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Desc") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessOrderBy) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessOrderBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy: Sorts by -// dimension values. -type GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy struct { - // DimensionName: A dimension name in the request to order by. - DimensionName string `json:"dimensionName,omitempty"` - - // OrderType: Controls the rule for dimension value ordering. - // - // Possible values: - // "ORDER_TYPE_UNSPECIFIED" - Unspecified. - // "ALPHANUMERIC" - Alphanumeric sort by Unicode code point. For - // example, "2" < "A" < "X" < "b" < "z". - // "CASE_INSENSITIVE_ALPHANUMERIC" - Case insensitive alphanumeric - // sort by lower case Unicode code point. For example, "2" < "A" < "b" < - // "X" < "z". - // "NUMERIC" - Dimension values are converted to numbers before - // sorting. For example in NUMERIC sort, "25" < "100", and in - // `ALPHANUMERIC` sort, "100" < "25". Non-numeric dimension values all - // have equal ordering value below all numeric values. - OrderType string `json:"orderType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy: Sorts by -// metric values. -type GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy struct { - // MetricName: A metric name in the request to order by. - MetricName string `json:"metricName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MetricName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MetricName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessQuota: Current state of all quotas -// for this Analytics property. If any quota for a property is -// exhausted, all requests to that property will return Resource -// Exhausted errors. -type GoogleAnalyticsAdminV1alphaAccessQuota struct { - // ConcurrentRequests: Properties can use up to 50 concurrent requests. - ConcurrentRequests *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"concurrentRequests,omitempty"` - - // ServerErrorsPerProjectPerHour: Properties and cloud project pairs can - // have up to 50 server errors per hour. - ServerErrorsPerProjectPerHour *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"serverErrorsPerProjectPerHour,omitempty"` - - // TokensPerDay: Properties can use 250,000 tokens per day. Most - // requests consume fewer than 10 tokens. - TokensPerDay *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"tokensPerDay,omitempty"` - - // TokensPerHour: Properties can use 50,000 tokens per hour. An API - // request consumes a single number of tokens, and that number is - // deducted from both the hourly and daily quotas. - TokensPerHour *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"tokensPerHour,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConcurrentRequests") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConcurrentRequests") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessQuota) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessQuota - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessQuotaStatus: Current state for a -// particular quota group. -type GoogleAnalyticsAdminV1alphaAccessQuotaStatus struct { - // Consumed: Quota consumed by this request. - Consumed int64 `json:"consumed,omitempty"` - - // Remaining: Quota remaining after this request. - Remaining int64 `json:"remaining,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Consumed") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Consumed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessQuotaStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessQuotaStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessRow: Access report data for each -// row. -type GoogleAnalyticsAdminV1alphaAccessRow struct { - // DimensionValues: List of dimension values. These values are in the - // same order as specified in the request. - DimensionValues []*GoogleAnalyticsAdminV1alphaAccessDimensionValue `json:"dimensionValues,omitempty"` - - // MetricValues: List of metric values. These values are in the same - // order as specified in the request. - MetricValues []*GoogleAnalyticsAdminV1alphaAccessMetricValue `json:"metricValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessRow) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessRow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaAccessStringFilter: The filter for -// strings. -type GoogleAnalyticsAdminV1alphaAccessStringFilter struct { - // CaseSensitive: If true, the string value is case sensitive. - CaseSensitive bool `json:"caseSensitive,omitempty"` - - // MatchType: The match type for this filter. - // - // Possible values: - // "MATCH_TYPE_UNSPECIFIED" - Unspecified - // "EXACT" - Exact match of the string value. - // "BEGINS_WITH" - Begins with the string value. - // "ENDS_WITH" - Ends with the string value. - // "CONTAINS" - Contains the string value. - // "FULL_REGEXP" - Full match for the regular expression with the - // string value. - // "PARTIAL_REGEXP" - Partial match for the regular expression with - // the string value. - MatchType string `json:"matchType,omitempty"` - - // Value: The string value used for the matching. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CaseSensitive") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaseSensitive") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaAccessStringFilter) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaAccessStringFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleAnalyticsAdminV1alphaAccount: A resource message representing a // Google Analytics account. type GoogleAnalyticsAdminV1alphaAccount struct { @@ -3379,51 +2669,6 @@ func (s *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAnalyticsAdminV1alphaNumericValue: To represent a number. -type GoogleAnalyticsAdminV1alphaNumericValue struct { - // DoubleValue: Double value - DoubleValue float64 `json:"doubleValue,omitempty"` - - // Int64Value: Integer value - Int64Value int64 `json:"int64Value,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "DoubleValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaNumericValue) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaNumericValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleAnalyticsAdminV1alphaNumericValue) UnmarshalJSON(data []byte) error { - type NoMethod GoogleAnalyticsAdminV1alphaNumericValue - var s1 struct { - DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.DoubleValue = float64(s1.DoubleValue) - return nil -} - // GoogleAnalyticsAdminV1alphaProperty: A resource message representing // a Google Analytics GA4 property. type GoogleAnalyticsAdminV1alphaProperty struct { @@ -3677,155 +2922,6 @@ func (s *GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAnalyticsAdminV1alphaRunAccessReportRequest: The request for a -// Data Access Record Report. -type GoogleAnalyticsAdminV1alphaRunAccessReportRequest struct { - // DateRanges: Date ranges of access records to read. If multiple date - // ranges are requested, each response row will contain a zero based - // date range index. If two date ranges overlap, the access records for - // the overlapping days is included in the response rows for both date - // ranges. Requests are allowed up to 2 date ranges. - DateRanges []*GoogleAnalyticsAdminV1alphaAccessDateRange `json:"dateRanges,omitempty"` - - // DimensionFilter: Dimension filters allow you to restrict report - // response to specific dimension values which match the filter. For - // example, filtering on access records of a single user. To learn more, - // see Fundamentals of Dimension Filters - // (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - // for examples. Metrics cannot be used in this filter. - DimensionFilter *GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"dimensionFilter,omitempty"` - - // Dimensions: The dimensions requested and displayed in the response. - // Requests are allowed up to 9 dimensions. - Dimensions []*GoogleAnalyticsAdminV1alphaAccessDimension `json:"dimensions,omitempty"` - - // Limit: The number of rows to return. If unspecified, 10,000 rows are - // returned. The API returns a maximum of 100,000 rows per request, no - // matter how many you ask for. `limit` must be positive. The API may - // return fewer rows than the requested `limit`, if there aren't as many - // remaining rows as the `limit`. For instance, there are fewer than 300 - // possible values for the dimension `country`, so when reporting on - // only `country`, you can't get more than 300 rows, even if you set - // `limit` to a higher value. To learn more about this pagination - // parameter, see Pagination - // (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - Limit int64 `json:"limit,omitempty,string"` - - // MetricFilter: Metric filters allow you to restrict report response to - // specific metric values which match the filter. Metric filters are - // applied after aggregating the report's rows, similar to SQL - // having-clause. Dimensions cannot be used in this filter. - MetricFilter *GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"metricFilter,omitempty"` - - // Metrics: The metrics requested and displayed in the response. - // Requests are allowed up to 10 metrics. - Metrics []*GoogleAnalyticsAdminV1alphaAccessMetric `json:"metrics,omitempty"` - - // Offset: The row count of the start row. The first row is counted as - // row 0. If offset is unspecified, it is treated as 0. If offset is - // zero, then this method will return the first page of results with - // `limit` entries. To learn more about this pagination parameter, see - // Pagination - // (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - Offset int64 `json:"offset,omitempty,string"` - - // OrderBys: Specifies how rows are ordered in the response. - OrderBys []*GoogleAnalyticsAdminV1alphaAccessOrderBy `json:"orderBys,omitempty"` - - // ReturnPropertyQuota: Toggles whether to return the current state of - // this Analytics Property's quota. Quota is returned in PropertyQuota - // (#PropertyQuota). - ReturnPropertyQuota bool `json:"returnPropertyQuota,omitempty"` - - // TimeZone: This request's time zone if specified. If unspecified, the - // property's time zone is used. The request's time zone is used to - // interpret the start & end dates of the report. Formatted as strings - // from the IANA Time Zone database (https://www.iana.org/time-zones); - // for example "America/New_York" or "Asia/Tokyo". - TimeZone string `json:"timeZone,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DateRanges") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRanges") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaRunAccessReportRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaRunAccessReportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleAnalyticsAdminV1alphaRunAccessReportResponse: The customized -// Data Access Record Report response. -type GoogleAnalyticsAdminV1alphaRunAccessReportResponse struct { - // DimensionHeaders: The header for a column in the report that - // corresponds to a specific dimension. The number of DimensionHeaders - // and ordering of DimensionHeaders matches the dimensions present in - // rows. - DimensionHeaders []*GoogleAnalyticsAdminV1alphaAccessDimensionHeader `json:"dimensionHeaders,omitempty"` - - // MetricHeaders: The header for a column in the report that corresponds - // to a specific metric. The number of MetricHeaders and ordering of - // MetricHeaders matches the metrics present in rows. - MetricHeaders []*GoogleAnalyticsAdminV1alphaAccessMetricHeader `json:"metricHeaders,omitempty"` - - // Quota: The quota state for this Analytics property including this - // request. - Quota *GoogleAnalyticsAdminV1alphaAccessQuota `json:"quota,omitempty"` - - // RowCount: The total number of rows in the query result. `rowCount` is - // independent of the number of rows returned in the response, the - // `limit` request parameter, and the `offset` request parameter. For - // example if a query returns 175 rows and includes `limit` of 50 in the - // API request, the response will contain `rowCount` of 175 but only 50 - // rows. To learn more about this pagination parameter, see Pagination - // (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - RowCount int64 `json:"rowCount,omitempty"` - - // Rows: Rows of dimension value combinations and metric values in the - // report. - Rows []*GoogleAnalyticsAdminV1alphaAccessRow `json:"rows,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DimensionHeaders") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionHeaders") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAnalyticsAdminV1alphaRunAccessReportResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaRunAccessReportResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest: Request // message for SearchChangeHistoryEvents RPC. type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { @@ -8295,164 +7391,6 @@ func (c *PropertiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytics } -// method id "analyticsadmin.properties.runAccessReport": - -type PropertiesRunAccessReportCall struct { - s *Service - entity string - googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// RunAccessReport: Returns a customized report of data access records. -// The report provides records of each time a user reads Google -// Analytics reporting data. Access records are retained for up to 2 -// years. Data Access Reports can be requested for a property. The -// property must be in Google Analytics 360. This method is only -// available to Administrators. These data access records include GA4 UI -// Reporting, GA4 UI Explorations, GA4 Data API, and other products like -// Firebase & Admob that can retrieve data from Google Analytics through -// a linkage. These records don't include property configuration changes -// like adding a stream or changing a property's time zone. For -// configuration change history, see searchChangeHistoryEvents -// (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). -// -// - entity: The Data Access Report is requested for this property. For -// example if "123" is your GA4 property ID, then entity should be -// "properties/123". -func (r *PropertiesService) RunAccessReport(entity string, googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest) *PropertiesRunAccessReportCall { - c := &PropertiesRunAccessReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entity = entity - c.googleanalyticsadminv1alpharunaccessreportrequest = googleanalyticsadminv1alpharunaccessreportrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *PropertiesRunAccessReportCall) Fields(s ...googleapi.Field) *PropertiesRunAccessReportCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *PropertiesRunAccessReportCall) Context(ctx context.Context) *PropertiesRunAccessReportCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *PropertiesRunAccessReportCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PropertiesRunAccessReportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alpharunaccessreportrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+entity}:runAccessReport") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "entity": c.entity, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "analyticsadmin.properties.runAccessReport" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaRunAccessReportResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleAnalyticsAdminV1alphaRunAccessReportResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *PropertiesRunAccessReportCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRunAccessReportResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &GoogleAnalyticsAdminV1alphaRunAccessReportResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", - // "flatPath": "v1alpha/properties/{propertiesId}:runAccessReport", - // "httpMethod": "POST", - // "id": "analyticsadmin.properties.runAccessReport", - // "parameterOrder": [ - // "entity" - // ], - // "parameters": { - // "entity": { - // "description": "The Data Access Report is requested for this property. For example if \"123\" is your GA4 property ID, then entity should be \"properties/123\".", - // "location": "path", - // "pattern": "^properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+entity}:runAccessReport", - // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportRequest" - // }, - // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaRunAccessReportResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics.edit", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - // method id "analyticsadmin.properties.updateAttributionSettings": type PropertiesUpdateAttributionSettingsCall struct { diff --git a/api-list.json b/api-list.json index 79b9354973a..a3402545c61 100644 --- a/api-list.json +++ b/api-list.json @@ -577,7 +577,7 @@ "name": "baremetalsolution", "version": "v1alpha1", "title": "Bare Metal Solution API", - "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", + "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -592,7 +592,7 @@ "name": "baremetalsolution", "version": "v1", "title": "Bare Metal Solution API", - "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", + "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -607,7 +607,7 @@ "name": "baremetalsolution", "version": "v2", "title": "Bare Metal Solution API", - "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", + "description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.", "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v2", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -991,21 +991,6 @@ "documentationLink": "https://cloud.google.com/asset-inventory/docs/quickstart", "preferred": false }, - { - "kind": "discovery#directoryItem", - "id": "cloudasset:v1p4beta1", - "name": "cloudasset", - "version": "v1p4beta1", - "title": "Cloud Asset API", - "description": "The cloud asset API manages the history and inventory of cloud resources.", - "discoveryRestUrl": "https://cloudasset.googleapis.com/$discovery/rest?version=v1p4beta1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/asset-inventory/docs/quickstart", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "cloudasset:v1p5beta1", diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 23de35ec9e9..1325da03e29 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -595,7 +595,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The field paths to be updated, comma separated if there are multiple. Currently supported field paths: * text * cards * attachment", + "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - attachment", "format": "google-fieldmask", "location": "query", "type": "string" diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 67607351529..60a398d53ad 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -6332,8 +6332,10 @@ func (r *SpacesMessagesService) Update(name string, message *Message) *SpacesMes } // UpdateMask sets the optional parameter "updateMask": Required. The -// field paths to be updated, comma separated if there are multiple. -// Currently supported field paths: * text * cards * attachment +// field paths to update. Separate multiple values with commas. +// Currently supported field paths: - text - cards (Requires service +// account authentication (/chat/api/guides/auth/service-accounts).) - +// attachment func (c *SpacesMessagesUpdateCall) UpdateMask(updateMask string) *SpacesMessagesUpdateCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -6446,7 +6448,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e // "type": "string" // }, // "updateMask": { - // "description": "Required. The field paths to be updated, comma separated if there are multiple. Currently supported field paths: * text * cards * attachment", + // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - attachment", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index 89c8531e1f8..7917c422d16 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -278,53 +278,9 @@ } } } - }, - "media": { - "methods": { - "upload": { - "description": "Creates an enterprise file from the content provided by user. Returns a public download url for end user.", - "flatPath": "v1/customers/{customersId}/policies/files:uploadPolicyFile", - "httpMethod": "POST", - "id": "chromepolicy.media.upload", - "mediaUpload": { - "accept": [ - "*/*" - ], - "protocols": { - "simple": { - "multipart": true, - "path": "/upload/v1/{+customer}/policies/files:uploadPolicyFile" - } - } - }, - "parameterOrder": [ - "customer" - ], - "parameters": { - "customer": { - "description": "Required. The customer for which the file upload will apply.", - "location": "path", - "pattern": "^customers/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+customer}/policies/files:uploadPolicyFile", - "request": { - "$ref": "GoogleChromePolicyV1UploadPolicyFileRequest" - }, - "response": { - "$ref": "GoogleChromePolicyV1UploadPolicyFileResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/chrome.management.policy" - ], - "supportsMediaUpload": true - } - } } }, - "revision": "20220627", + "revision": "20220706", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": { @@ -780,28 +736,6 @@ }, "type": "object" }, - "GoogleChromePolicyV1UploadPolicyFileRequest": { - "description": "Request message for uploading a file for a policy. Next ID: 5", - "id": "GoogleChromePolicyV1UploadPolicyFileRequest", - "properties": { - "policyField": { - "description": "Required. The fully qualified policy schema and field name this file is uploaded for. This information will be used to validate the content type of the file.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleChromePolicyV1UploadPolicyFileResponse": { - "description": "Response message for downloading an uploaded file. Next ID: 2", - "id": "GoogleChromePolicyV1UploadPolicyFileResponse", - "properties": { - "downloadUri": { - "description": "The uri for end user to download the file.", - "type": "string" - } - }, - "type": "object" - }, "GoogleProtobufEmpty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "GoogleProtobufEmpty", diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index 3c7732021d4..9a36894b462 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -128,7 +128,6 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.Customers = NewCustomersService(s) - s.Media = NewMediaService(s) return s, nil } @@ -138,8 +137,6 @@ type Service struct { UserAgent string // optional additional User-Agent fragment Customers *CustomersService - - Media *MediaService } func (s *Service) userAgent() string { @@ -194,15 +191,6 @@ type CustomersPolicySchemasService struct { s *Service } -func NewMediaService(s *Service) *MediaService { - rs := &MediaService{s: s} - return rs -} - -type MediaService struct { - s *Service -} - type ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle struct { // Description: Description about current life cycle. Description string `json:"description,omitempty"` @@ -972,70 +960,6 @@ func (s *GoogleChromePolicyV1ResolvedPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChromePolicyV1UploadPolicyFileRequest: Request message for -// uploading a file for a policy. Next ID: 5 -type GoogleChromePolicyV1UploadPolicyFileRequest struct { - // PolicyField: Required. The fully qualified policy schema and field - // name this file is uploaded for. This information will be used to - // validate the content type of the file. - PolicyField string `json:"policyField,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PolicyField") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PolicyField") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleChromePolicyV1UploadPolicyFileRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromePolicyV1UploadPolicyFileRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleChromePolicyV1UploadPolicyFileResponse: Response message for -// downloading an uploaded file. Next ID: 2 -type GoogleChromePolicyV1UploadPolicyFileResponse struct { - // DownloadUri: The uri for end user to download the file. - DownloadUri string `json:"downloadUri,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DownloadUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DownloadUri") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleChromePolicyV1UploadPolicyFileResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromePolicyV1UploadPolicyFileResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleProtobufEmpty: A generic empty message that you can re-use to // avoid defining duplicated empty messages in your APIs. A typical // example is to use it as the request or the response type of an API @@ -2185,228 +2109,3 @@ func (c *CustomersPolicySchemasListCall) Pages(ctx context.Context, f func(*Goog c.PageToken(x.NextPageToken) } } - -// method id "chromepolicy.media.upload": - -type MediaUploadCall struct { - s *Service - customer string - googlechromepolicyv1uploadpolicyfilerequest *GoogleChromePolicyV1UploadPolicyFileRequest - urlParams_ gensupport.URLParams - mediaInfo_ *gensupport.MediaInfo - ctx_ context.Context - header_ http.Header -} - -// Upload: Creates an enterprise file from the content provided by user. -// Returns a public download url for end user. -// -// - customer: The customer for which the file upload will apply. -func (r *MediaService) Upload(customer string, googlechromepolicyv1uploadpolicyfilerequest *GoogleChromePolicyV1UploadPolicyFileRequest) *MediaUploadCall { - c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.customer = customer - c.googlechromepolicyv1uploadpolicyfilerequest = googlechromepolicyv1uploadpolicyfilerequest - return c -} - -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by -// googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. -// At most one of Media and ResumableMedia may be set. -func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall { - c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) - return c -} - -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. -// -// Deprecated: use Media instead. -// -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. -func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall { - c.ctx_ = ctx - c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) - return c -} - -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). -func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall { - c.mediaInfo_.SetProgressUpdater(pu) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -// This context will supersede any context previously provided to the -// ResumableMedia method. -func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *MediaUploadCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlechromepolicyv1uploadpolicyfilerequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+customer}/policies/files:uploadPolicyFile") - if c.mediaInfo_ != nil { - urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1/{+customer}/policies/files:uploadPolicyFile") - c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) - } - if body == nil { - body = new(bytes.Buffer) - reqHeaders.Set("Content-Type", "application/json") - } - body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) - defer cleanup() - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - req.GetBody = getBody - googleapi.Expand(req.URL, map[string]string{ - "customer": c.customer, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "chromepolicy.media.upload" call. -// Exactly one of *GoogleChromePolicyV1UploadPolicyFileResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleChromePolicyV1UploadPolicyFileResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleChromePolicyV1UploadPolicyFileResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) - if rx != nil { - rx.Client = c.s.client - rx.UserAgent = c.s.userAgent() - ctx := c.ctx_ - if ctx == nil { - ctx = context.TODO() - } - res, err = rx.Upload(ctx) - if err != nil { - return nil, err - } - defer res.Body.Close() - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - } - ret := &GoogleChromePolicyV1UploadPolicyFileResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates an enterprise file from the content provided by user. Returns a public download url for end user.", - // "flatPath": "v1/customers/{customersId}/policies/files:uploadPolicyFile", - // "httpMethod": "POST", - // "id": "chromepolicy.media.upload", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/v1/{+customer}/policies/files:uploadPolicyFile" - // } - // } - // }, - // "parameterOrder": [ - // "customer" - // ], - // "parameters": { - // "customer": { - // "description": "Required. The customer for which the file upload will apply.", - // "location": "path", - // "pattern": "^customers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+customer}/policies/files:uploadPolicyFile", - // "request": { - // "$ref": "GoogleChromePolicyV1UploadPolicyFileRequest" - // }, - // "response": { - // "$ref": "GoogleChromePolicyV1UploadPolicyFileResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/chrome.management.policy" - // ], - // "supportsMediaUpload": true - // } - -} diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index d61e1f59b13..490afa610a9 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -1582,7 +1582,7 @@ } } }, - "revision": "20220617", + "revision": "20220701", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { @@ -2548,12 +2548,12 @@ "type": "string" }, "rsaAesWrappedKey": { - "description": "Optional. Wrapped key material produced with RSA_OAEP_3072_SHA1_AES_256 or RSA_OAEP_4096_SHA1_AES_256 or RSA_OAEP_3072_SHA256_AES_256 or RSA_OAEP_4096_SHA256_AES_256. This field contains the concatenation of two wrapped keys: 1. An ephemeral AES-256 wrapping key wrapped with the public_key using RSAES-OAEP with SHA-1/SHA-256, MGF1 with SHA-1/SHA-256, and an empty label. 2. The key to be imported, wrapped with the ephemeral AES-256 key using AES-KWP (RFC 5649). If importing symmetric key material, it is expected that the unwrapped key contains plain bytes. If importing asymmetric key material, it is expected that the unwrapped key is in PKCS#8-encoded DER format (the PrivateKeyInfo structure from RFC 5208). This format is the same as the format produced by PKCS#11 mechanism CKM_RSA_AES_KEY_WRAP.", + "description": "Optional. This field has the same meaning as wrapped_key. Prefer to use that field in new work. Either that field or this field (but not both) must be specified.", "format": "byte", "type": "string" }, "wrappedKey": { - "description": "Optional. Wrapped key material produced with (RSA_OAEP_3072_SHA1_AES_256 or RSA_OAEP_4096_SHA1_AES_256 or RSA_OAEP_3072_SHA256_AES_256 or RSA_OAEP_4096_SHA256_AES_256) for which, this field contains the concatenation of: 1. An ephemeral AES-256 wrapping key wrapped with the public_key using RSAES-OAEP with SHA-1/SHA-256, MGF1 with SHA-1/SHA-256, and an empty label. 2. The key to be imported, wrapped with the ephemeral AES-256 key using AES-KWP (RFC 5649), or (RSA_OAEP_3072_SHA256 or RSA_OAEP_4096_SHA256) for which, this field contains the key to be imported, wrapped with the public_key using RSAES-OAEP with SHA-256, MGF1 with SHA-256, and an empty label. If importing symmetric key material, it is expected that the unwrapped key contains plain bytes. If importing asymmetric key material, it is expected that the unwrapped key is in PKCS#8-encoded DER format (the PrivateKeyInfo structure from RFC 5208). This format is the same as the format produced by PKCS#11 mechanism CKM_RSA_AES_KEY_WRAP.", + "description": "Optional. The wrapped key material to import. Before wrapping, key material must be formatted. If importing symmetric key material, the expected key material format is plain bytes. If importing asymmetric key material, the expected key material format is PKCS#8-encoded DER (the PrivateKeyInfo structure from RFC 5208). When wrapping with import methods (RSA_OAEP_3072_SHA1_AES_256 or RSA_OAEP_4096_SHA1_AES_256 or RSA_OAEP_3072_SHA256_AES_256 or RSA_OAEP_4096_SHA256_AES_256), this field must contain the concatenation of: 1. An ephemeral AES-256 wrapping key wrapped with the public_key using RSAES-OAEP with SHA-1/SHA-256, MGF1 with SHA-1/SHA-256, and an empty label. 2. The formatted key to be imported, wrapped with the ephemeral AES-256 key using AES-KWP (RFC 5649). This format is the same as the format produced by PKCS#11 mechanism CKM_RSA_AES_KEY_WRAP. When wrapping with import methods (RSA_OAEP_3072_SHA256 or RSA_OAEP_4096_SHA256), this field must contain the formatted key to be imported, wrapped with the public_key using RSAES-OAEP with SHA-256, MGF1 with SHA-256, and an empty label.", "format": "byte", "type": "string" } @@ -2761,7 +2761,7 @@ "type": "object" }, "ListEkmConnectionsResponse": { - "description": "Response message for KeyManagementService.ListEkmConnections.", + "description": "Response message for EkmService.ListEkmConnections.", "id": "ListEkmConnectionsResponse", "properties": { "ekmConnections": { diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index 769d0fbe149..0da30387ea4 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -1807,37 +1807,28 @@ type ImportCryptoKeyVersionRequest struct { // this key material. ImportJob string `json:"importJob,omitempty"` - // RsaAesWrappedKey: Optional. Wrapped key material produced with - // RSA_OAEP_3072_SHA1_AES_256 or RSA_OAEP_4096_SHA1_AES_256 or - // RSA_OAEP_3072_SHA256_AES_256 or RSA_OAEP_4096_SHA256_AES_256. This - // field contains the concatenation of two wrapped keys: 1. An ephemeral - // AES-256 wrapping key wrapped with the public_key using RSAES-OAEP - // with SHA-1/SHA-256, MGF1 with SHA-1/SHA-256, and an empty label. 2. - // The key to be imported, wrapped with the ephemeral AES-256 key using - // AES-KWP (RFC 5649). If importing symmetric key material, it is - // expected that the unwrapped key contains plain bytes. If importing - // asymmetric key material, it is expected that the unwrapped key is in - // PKCS#8-encoded DER format (the PrivateKeyInfo structure from RFC - // 5208). This format is the same as the format produced by PKCS#11 - // mechanism CKM_RSA_AES_KEY_WRAP. + // RsaAesWrappedKey: Optional. This field has the same meaning as + // wrapped_key. Prefer to use that field in new work. Either that field + // or this field (but not both) must be specified. RsaAesWrappedKey string `json:"rsaAesWrappedKey,omitempty"` - // WrappedKey: Optional. Wrapped key material produced with - // (RSA_OAEP_3072_SHA1_AES_256 or RSA_OAEP_4096_SHA1_AES_256 or - // RSA_OAEP_3072_SHA256_AES_256 or RSA_OAEP_4096_SHA256_AES_256) for - // which, this field contains the concatenation of: 1. An ephemeral - // AES-256 wrapping key wrapped with the public_key using RSAES-OAEP - // with SHA-1/SHA-256, MGF1 with SHA-1/SHA-256, and an empty label. 2. - // The key to be imported, wrapped with the ephemeral AES-256 key using - // AES-KWP (RFC 5649), or (RSA_OAEP_3072_SHA256 or RSA_OAEP_4096_SHA256) - // for which, this field contains the key to be imported, wrapped with - // the public_key using RSAES-OAEP with SHA-256, MGF1 with SHA-256, and - // an empty label. If importing symmetric key material, it is expected - // that the unwrapped key contains plain bytes. If importing asymmetric - // key material, it is expected that the unwrapped key is in - // PKCS#8-encoded DER format (the PrivateKeyInfo structure from RFC - // 5208). This format is the same as the format produced by PKCS#11 - // mechanism CKM_RSA_AES_KEY_WRAP. + // WrappedKey: Optional. The wrapped key material to import. Before + // wrapping, key material must be formatted. If importing symmetric key + // material, the expected key material format is plain bytes. If + // importing asymmetric key material, the expected key material format + // is PKCS#8-encoded DER (the PrivateKeyInfo structure from RFC 5208). + // When wrapping with import methods (RSA_OAEP_3072_SHA1_AES_256 or + // RSA_OAEP_4096_SHA1_AES_256 or RSA_OAEP_3072_SHA256_AES_256 or + // RSA_OAEP_4096_SHA256_AES_256), this field must contain the + // concatenation of: 1. An ephemeral AES-256 wrapping key wrapped with + // the public_key using RSAES-OAEP with SHA-1/SHA-256, MGF1 with + // SHA-1/SHA-256, and an empty label. 2. The formatted key to be + // imported, wrapped with the ephemeral AES-256 key using AES-KWP (RFC + // 5649). This format is the same as the format produced by PKCS#11 + // mechanism CKM_RSA_AES_KEY_WRAP. When wrapping with import methods + // (RSA_OAEP_3072_SHA256 or RSA_OAEP_4096_SHA256), this field must + // contain the formatted key to be imported, wrapped with the public_key + // using RSAES-OAEP with SHA-256, MGF1 with SHA-256, and an empty label. WrappedKey string `json:"wrappedKey,omitempty"` // ForceSendFields is a list of field names (e.g. "Algorithm") to @@ -2182,7 +2173,7 @@ func (s *ListCryptoKeysResponse) MarshalJSON() ([]byte, error) { } // ListEkmConnectionsResponse: Response message for -// KeyManagementService.ListEkmConnections. +// EkmService.ListEkmConnections. type ListEkmConnectionsResponse struct { // EkmConnections: The list of EkmConnections. EkmConnections []*EkmConnection `json:"ekmConnections,omitempty"` diff --git a/datastream/v1alpha1/datastream-api.json b/datastream/v1alpha1/datastream-api.json index 3f4652bf9d1..13a773a90da 100644 --- a/datastream/v1alpha1/datastream-api.json +++ b/datastream/v1alpha1/datastream-api.json @@ -1196,7 +1196,7 @@ } } }, - "revision": "20220405", + "revision": "20220629", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -2672,7 +2672,7 @@ "id": "VpcPeeringConfig", "properties": { "subnet": { - "description": "Required. A free subnet for peering. (CIDR of /29) TODO(b/172995841) add validators.", + "description": "Required. A free subnet for peering. (CIDR of /29)", "type": "string" }, "vpcName": { diff --git a/datastream/v1alpha1/datastream-gen.go b/datastream/v1alpha1/datastream-gen.go index 333584a3957..a36a034dd93 100644 --- a/datastream/v1alpha1/datastream-gen.go +++ b/datastream/v1alpha1/datastream-gen.go @@ -2381,7 +2381,6 @@ func (s *ValidationResult) MarshalJSON() ([]byte, error) { // peering between Datastream and the consumer's VPC. type VpcPeeringConfig struct { // Subnet: Required. A free subnet for peering. (CIDR of /29) - // TODO(b/172995841) add validators. Subnet string `json:"subnet,omitempty"` // VpcName: Required. fully qualified name of the VPC Datastream will diff --git a/dns/v1/dns-api.json b/dns/v1/dns-api.json index 2a0f9342a22..f0e24c15c65 100644 --- a/dns/v1/dns-api.json +++ b/dns/v1/dns-api.json @@ -1824,7 +1824,7 @@ } } }, - "revision": "20220629", + "revision": "20220630", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -3282,7 +3282,7 @@ ], "enumDescriptions": [ "", - "Skip a less-specific ResponsePolicyRule and continue normal query logic. This can be used with a less-specific wildcard selector to exempt a subset of the wildcard ResponsePolicyRule from the ResponsePolicy behavior and query the public Internet instead. For instance, if these rules exist: *.example.com -\u003e LocalData 1.2.3.4 foo.example.com -\u003e Behavior 'bypassResponsePolicy' Then a query for 'foo.example.com' skips the wildcard." + "Skip a less-specific ResponsePolicyRule and continue normal query logic. This can be used with a less-specific wildcard selector to exempt a subset of the wildcard ResponsePolicyRule from the ResponsePolicy behavior and query the public Internet instead. For instance, if these rules exist: *.example.com -\u003e LocalData 1.2.3.4 foo.example.com -\u003e Behavior 'bypassResponsePolicy' Then a query for 'foo.example.com' skips the wildcard. This additionally functions to facilitate the allowlist feature. RPZs can be applied to multiple levels in the (eventually org, folder, project, network) hierarchy. If a rule is applied at a higher level of the hierarchy, adding a passthru rule at a lower level will supersede that, and a query from an affected vm to that domain will be exempt from the RPZ and proceed to normal resolution behavior." ], "type": "string" }, diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index 11e81a7ef91..600b4f8ef54 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -2817,7 +2817,13 @@ type ResponsePolicyRule struct { // public Internet instead. For instance, if these rules exist: // *.example.com -> LocalData 1.2.3.4 foo.example.com -> Behavior // 'bypassResponsePolicy' Then a query for 'foo.example.com' skips the - // wildcard. + // wildcard. This additionally functions to facilitate the allowlist + // feature. RPZs can be applied to multiple levels in the (eventually + // org, folder, project, network) hierarchy. If a rule is applied at a + // higher level of the hierarchy, adding a passthru rule at a lower + // level will supersede that, and a query from an affected vm to that + // domain will be exempt from the RPZ and proceed to normal resolution + // behavior. Behavior string `json:"behavior,omitempty"` // DnsName: The DNS name (wildcard or exact) to apply this rule to. Must diff --git a/dns/v1beta2/dns-api.json b/dns/v1beta2/dns-api.json index b9255cdfe52..76212ca8d4f 100644 --- a/dns/v1beta2/dns-api.json +++ b/dns/v1beta2/dns-api.json @@ -1821,7 +1821,7 @@ } } }, - "revision": "20220629", + "revision": "20220630", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -3330,7 +3330,7 @@ ], "enumDescriptions": [ "", - "Skip a less-specific ResponsePolicyRule and continue normal query logic. This can be used with a less-specific wildcard selector to exempt a subset of the wildcard ResponsePolicyRule from the ResponsePolicy behavior and query the public Internet instead. For instance, if these rules exist: *.example.com -\u003e LocalData 1.2.3.4 foo.example.com -\u003e Behavior 'bypassResponsePolicy' Then a query for 'foo.example.com' skips the wildcard." + "Skip a less-specific ResponsePolicyRule and continue normal query logic. This can be used with a less-specific wildcard selector to exempt a subset of the wildcard ResponsePolicyRule from the ResponsePolicy behavior and query the public Internet instead. For instance, if these rules exist: *.example.com -\u003e LocalData 1.2.3.4 foo.example.com -\u003e Behavior 'bypassResponsePolicy' Then a query for 'foo.example.com' skips the wildcard. This additionally functions to facilitate the allowlist feature. RPZs can be applied to multiple levels in the (eventually org, folder, project, network) hierarchy. If a rule is applied at a higher level of the hierarchy, adding a passthru rule at a lower level will supersede that, and a query from an affected vm to that domain will be exempt from the RPZ and proceed to normal resolution behavior." ], "type": "string" }, diff --git a/dns/v1beta2/dns-gen.go b/dns/v1beta2/dns-gen.go index 0eca81e7b72..99e317c2967 100644 --- a/dns/v1beta2/dns-gen.go +++ b/dns/v1beta2/dns-gen.go @@ -2899,7 +2899,13 @@ type ResponsePolicyRule struct { // public Internet instead. For instance, if these rules exist: // *.example.com -> LocalData 1.2.3.4 foo.example.com -> Behavior // 'bypassResponsePolicy' Then a query for 'foo.example.com' skips the - // wildcard. + // wildcard. This additionally functions to facilitate the allowlist + // feature. RPZs can be applied to multiple levels in the (eventually + // org, folder, project, network) hierarchy. If a rule is applied at a + // higher level of the hierarchy, adding a passthru rule at a lower + // level will supersede that, and a query from an affected vm to that + // domain will be exempt from the RPZ and proceed to normal resolution + // behavior. Behavior string `json:"behavior,omitempty"` // DnsName: The DNS name (wildcard or exact) to apply this rule to. Must