diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 04d41ce1f74..bd3be903620 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -999,6 +999,42 @@ "https://www.googleapis.com/auth/analytics.edit" ] }, + "createRollupProperty": { + "description": "Create a roll-up property and all roll-up property source links.", + "flatPath": "v1alpha/properties:createRollupProperty", + "httpMethod": "POST", + "id": "analyticsadmin.properties.createRollupProperty", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/properties:createRollupProperty", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "createSubproperty": { + "description": "Create a subproperty and a subproperty event filter that applies to the created subproperty.", + "flatPath": "v1alpha/properties:createSubproperty", + "httpMethod": "POST", + "id": "analyticsadmin.properties.createSubproperty", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/properties:createSubproperty", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, "delete": { "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", "flatPath": "v1alpha/properties/{propertiesId}", @@ -4129,6 +4165,126 @@ } } }, + "rollupPropertySourceLinks": { + "methods": { + "create": { + "description": "Creates a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks", + "httpMethod": "POST", + "id": "analyticsadmin.properties.rollupPropertySourceLinks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Format: properties/{property_id} Example: properties/1234", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/rollupPropertySourceLinks", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "delete": { + "description": "Deletes a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks/{rollupPropertySourceLinksId}", + "httpMethod": "DELETE", + "id": "analyticsadmin.properties.rollupPropertySourceLinks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} Example: properties/1234/rollupPropertySourceLinks/5678", + "location": "path", + "pattern": "^properties/[^/]+/rollupPropertySourceLinks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "get": { + "description": "Lookup for a single roll-up property source Link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks/{rollupPropertySourceLinksId}", + "httpMethod": "GET", + "id": "analyticsadmin.properties.rollupPropertySourceLinks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the roll-up property source link to lookup. Format: properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} Example: properties/123/rollupPropertySourceLinks/456", + "location": "path", + "pattern": "^properties/[^/]+/rollupPropertySourceLinks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "list": { + "description": "Lists roll-up property source Links on a property. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks", + "httpMethod": "GET", + "id": "analyticsadmin.properties.rollupPropertySourceLinks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListRollupPropertySourceLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRollupPropertySourceLinks` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the roll-up property to list roll-up property source links under. Format: properties/{property_id} Example: properties/1234", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/rollupPropertySourceLinks", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + } + } + }, "searchAds360Links": { "methods": { "create": { @@ -4283,6 +4439,160 @@ } } }, + "subpropertyEventFilters": { + "methods": { + "create": { + "description": "Creates a subproperty Event Filter.", + "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters", + "httpMethod": "POST", + "id": "analyticsadmin.properties.subpropertyEventFilters.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The ordinary property for which to create a subproperty event filter. Format: properties/property_id Example: properties/123", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/subpropertyEventFilters", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "delete": { + "description": "Deletes a subproperty event filter.", + "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters/{subpropertyEventFiltersId}", + "httpMethod": "DELETE", + "id": "analyticsadmin.properties.subpropertyEventFilters.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the subproperty event filter to delete. Format: properties/property_id/subpropertyEventFilters/subproperty_event_filter Example: properties/123/subpropertyEventFilters/456", + "location": "path", + "pattern": "^properties/[^/]+/subpropertyEventFilters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "get": { + "description": "Lookup for a single subproperty Event Filter.", + "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters/{subpropertyEventFiltersId}", + "httpMethod": "GET", + "id": "analyticsadmin.properties.subpropertyEventFilters.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the subproperty event filter to lookup. Format: properties/property_id/subpropertyEventFilters/subproperty_event_filter Example: properties/123/subpropertyEventFilters/456", + "location": "path", + "pattern": "^properties/[^/]+/subpropertyEventFilters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "list": { + "description": "List all subproperty Event Filters on a property.", + "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters", + "httpMethod": "GET", + "id": "analyticsadmin.properties.subpropertyEventFilters.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubpropertyEventFilters` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the ordinary property. Format: properties/property_id Example: properties/123", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/subpropertyEventFilters", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "patch": { + "description": "Updates a subproperty Event Filter.", + "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters/{subpropertyEventFiltersId}", + "httpMethod": "PATCH", + "id": "analyticsadmin.properties.subpropertyEventFilters.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Format: properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} Example: properties/1234/subpropertyEventFilters/5678", + "location": "path", + "pattern": "^properties/[^/]+/subpropertyEventFilters/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update. Field names must be in snake case (for example, \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + } + } + }, "userLinks": { "methods": { "audit": { @@ -4584,7 +4894,7 @@ } } }, - "revision": "20230927", + "revision": "20231001", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -6355,6 +6665,76 @@ "properties": {}, "type": "object" }, + "GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest": { + "description": "Request message for CreateRollupProperty RPC.", + "id": "GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest", + "properties": { + "rollupProperty": { + "$ref": "GoogleAnalyticsAdminV1alphaProperty", + "description": "Required. The roll-up property to create." + }, + "sourceProperties": { + "description": "Optional. The resource names of properties that will be sources to the created roll-up property.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse": { + "description": "Response message for CreateRollupProperty RPC.", + "id": "GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse", + "properties": { + "rollupProperty": { + "$ref": "GoogleAnalyticsAdminV1alphaProperty", + "description": "The created roll-up property." + }, + "rollupPropertySourceLinks": { + "description": "The created roll-up property source links.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest": { + "description": "Request message for CreateSubproperty RPC.", + "id": "GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest", + "properties": { + "parent": { + "description": "Required. The ordinary property for which to create a subproperty. Format: properties/property_id Example: properties/123", + "type": "string" + }, + "subproperty": { + "$ref": "GoogleAnalyticsAdminV1alphaProperty", + "description": "Required. The subproperty to create." + }, + "subpropertyEventFilter": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter", + "description": "Optional. The subproperty event filter to create on an ordinary property." + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse": { + "description": "Response message for CreateSubproperty RPC.", + "id": "GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse", + "properties": { + "subproperty": { + "$ref": "GoogleAnalyticsAdminV1alphaProperty", + "description": "The created subproperty." + }, + "subpropertyEventFilter": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter", + "description": "The created subproperty event filter." + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest": { "description": "Request message for CreateUserLink RPC. Users can have multiple email addresses associated with their Google account, and one of these email addresses is the \"primary\" email address. Any of the email addresses associated with a Google account may be used for a new UserLink, but the returned UserLink will always contain the \"primary\" email address. As a result, the input and output email address for this request may differ.", "id": "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest", @@ -7663,6 +8043,24 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse": { + "description": "Response message for ListRollupPropertySourceLinks RPC.", + "id": "GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "rollupPropertySourceLinks": { + "description": "List of RollupPropertySourceLinks.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse": { "description": "Response message for ListSKAdNetworkConversionValueSchemas RPC", "id": "GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse", @@ -7699,6 +8097,24 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse": { + "description": "Response message for ListSubpropertyEventFilter RPC.", + "id": "GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "subpropertyEventFilters": { + "description": "List of subproperty event filters.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaListUserLinksResponse": { "description": "Response message for ListUserLinks RPC.", "id": "GoogleAnalyticsAdminV1alphaListUserLinksResponse", @@ -7951,7 +8367,7 @@ "type": "string" }, "propertyType": { - "description": "Immutable. The property type for this Property resource. When creating a property, if the type is \"PROPERTY_TYPE_UNSPECIFIED\", then \"ORDINARY_PROPERTY\" will be implied. \"SUBPROPERTY\" and \"ROLLUP_PROPERTY\" types cannot yet be created with the Google Analytics Admin API.", + "description": "Immutable. The property type for this Property resource. When creating a property, if the type is \"PROPERTY_TYPE_UNSPECIFIED\", then \"ORDINARY_PROPERTY\" will be implied.", "enum": [ "PROPERTY_TYPE_UNSPECIFIED", "PROPERTY_TYPE_ORDINARY", @@ -8055,6 +8471,22 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink": { + "description": "A link that references a source property under the parent rollup property.", + "id": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink", + "properties": { + "name": { + "description": "Output only. Resource name of this RollupPropertySourceLink. Format: 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' Format: 'properties/123/rollupPropertySourceLinks/456'", + "readOnly": true, + "type": "string" + }, + "sourceProperty": { + "description": "Immutable. Resource name of the source property. Format: properties/{property_id} Example: \"properties/789\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaRunAccessReportRequest": { "description": "The request for a Data Access Record Report.", "id": "GoogleAnalyticsAdminV1alphaRunAccessReportRequest", @@ -8372,6 +8804,143 @@ "properties": {}, "type": "object" }, + "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter": { + "description": "A resource message representing a GA4 Subproperty event filter.", + "id": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter", + "properties": { + "applyToProperty": { + "description": "Immutable. Resource name of the Subproperty that uses this filter.", + "type": "string" + }, + "filterClauses": { + "description": "Required. Unordered list. Filter clauses that define the SubpropertyEventFilter. All clauses are AND'ed together to determine what data is sent to the subproperty.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause" + }, + "type": "array" + }, + "name": { + "description": "Output only. Format: properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} Example: properties/1234/subpropertyEventFilters/5678", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause": { + "description": "A clause for defining a filter. A filter may be inclusive (events satisfying the filter clause are included in the subproperty's data) or exclusive (events satisfying the filter clause are excluded from the subproperty's data).", + "id": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause", + "properties": { + "filterClauseType": { + "description": "Required. The type for the filter clause.", + "enum": [ + "FILTER_CLAUSE_TYPE_UNSPECIFIED", + "INCLUDE", + "EXCLUDE" + ], + "enumDescriptions": [ + "Filter clause type unknown or not specified.", + "Events will be included in the Sub property if the filter clause is met.", + "Events will be excluded from the Sub property if the filter clause is met." + ], + "type": "string" + }, + "filterExpression": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression", + "description": "Required. The logical expression for what events are sent to the subproperty." + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition": { + "description": "A specific filter expression", + "id": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition", + "properties": { + "fieldName": { + "description": "Required. The field that is being filtered.", + "type": "string" + }, + "nullFilter": { + "description": "A filter for null values.", + "type": "boolean" + }, + "stringFilter": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter", + "description": "A filter for a string-type dimension that matches a particular pattern." + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter": { + "description": "A filter for a string-type dimension that matches a particular pattern.", + "id": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter", + "properties": { + "caseSensitive": { + "description": "Optional. If true, the string value is case sensitive. If false, the match is case-insensitive.", + "type": "boolean" + }, + "matchType": { + "description": "Required. The match type for the string filter.", + "enum": [ + "MATCH_TYPE_UNSPECIFIED", + "EXACT", + "BEGINS_WITH", + "ENDS_WITH", + "CONTAINS", + "FULL_REGEXP", + "PARTIAL_REGEXP" + ], + "enumDescriptions": [ + "Match type unknown or not specified.", + "Exact match of the string value.", + "Begins with the string value.", + "Ends with the string value.", + "Contains the string value.", + "Full regular expression matches with the string value.", + "Partial regular expression matches with the string value." + ], + "type": "string" + }, + "value": { + "description": "Required. The string value used for the matching.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression": { + "description": "A logical expression of Subproperty event filters.", + "id": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression", + "properties": { + "filterCondition": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition", + "description": "Creates a filter that matches a specific event. This cannot be set on the top level SubpropertyEventFilterExpression." + }, + "notExpression": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression", + "description": "A filter expression to be NOT'ed (inverted, complemented). It can only include a filter. This cannot be set on the top level SubpropertyEventFilterExpression." + }, + "orGroup": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList", + "description": "A list of expressions to OR’ed together. Must only contain not_expression or filter_condition expressions." + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList": { + "description": "A list of Subproperty event filter expressions.", + "id": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList", + "properties": { + "filterExpressions": { + "description": "Required. Unordered list. A list of Subproperty event filter expressions", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest": { "description": "Request message for UpdateAccessBinding RPC.", "id": "GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest", diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 21f604161df..499d8d96669 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -231,7 +231,9 @@ func NewPropertiesService(s *Service) *PropertiesService { rs.ExpandedDataSets = NewPropertiesExpandedDataSetsService(s) rs.FirebaseLinks = NewPropertiesFirebaseLinksService(s) rs.GoogleAdsLinks = NewPropertiesGoogleAdsLinksService(s) + rs.RollupPropertySourceLinks = NewPropertiesRollupPropertySourceLinksService(s) rs.SearchAds360Links = NewPropertiesSearchAds360LinksService(s) + rs.SubpropertyEventFilters = NewPropertiesSubpropertyEventFiltersService(s) rs.UserLinks = NewPropertiesUserLinksService(s) return rs } @@ -267,8 +269,12 @@ type PropertiesService struct { GoogleAdsLinks *PropertiesGoogleAdsLinksService + RollupPropertySourceLinks *PropertiesRollupPropertySourceLinksService + SearchAds360Links *PropertiesSearchAds360LinksService + SubpropertyEventFilters *PropertiesSubpropertyEventFiltersService + UserLinks *PropertiesUserLinksService } @@ -434,6 +440,15 @@ type PropertiesGoogleAdsLinksService struct { s *Service } +func NewPropertiesRollupPropertySourceLinksService(s *Service) *PropertiesRollupPropertySourceLinksService { + rs := &PropertiesRollupPropertySourceLinksService{s: s} + return rs +} + +type PropertiesRollupPropertySourceLinksService struct { + s *Service +} + func NewPropertiesSearchAds360LinksService(s *Service) *PropertiesSearchAds360LinksService { rs := &PropertiesSearchAds360LinksService{s: s} return rs @@ -443,6 +458,15 @@ type PropertiesSearchAds360LinksService struct { s *Service } +func NewPropertiesSubpropertyEventFiltersService(s *Service) *PropertiesSubpropertyEventFiltersService { + rs := &PropertiesSubpropertyEventFiltersService{s: s} + return rs +} + +type PropertiesSubpropertyEventFiltersService struct { + s *Service +} + func NewPropertiesUserLinksService(s *Service) *PropertiesUserLinksService { rs := &PropertiesUserLinksService{s: s} return rs @@ -3584,6 +3608,150 @@ type GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse struct { googleapi.ServerResponse `json:"-"` } +// GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest: Request +// message for CreateRollupProperty RPC. +type GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest struct { + // RollupProperty: Required. The roll-up property to create. + RollupProperty *GoogleAnalyticsAdminV1alphaProperty `json:"rollupProperty,omitempty"` + + // SourceProperties: Optional. The resource names of properties that + // will be sources to the created roll-up property. + SourceProperties []string `json:"sourceProperties,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RollupProperty") 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. "RollupProperty") 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 *GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse: Response +// message for CreateRollupProperty RPC. +type GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse struct { + // RollupProperty: The created roll-up property. + RollupProperty *GoogleAnalyticsAdminV1alphaProperty `json:"rollupProperty,omitempty"` + + // RollupPropertySourceLinks: The created roll-up property source links. + RollupPropertySourceLinks []*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink `json:"rollupPropertySourceLinks,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "RollupProperty") 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. "RollupProperty") 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 *GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest: Request message +// for CreateSubproperty RPC. +type GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest struct { + // Parent: Required. The ordinary property for which to create a + // subproperty. Format: properties/property_id Example: properties/123 + Parent string `json:"parent,omitempty"` + + // Subproperty: Required. The subproperty to create. + Subproperty *GoogleAnalyticsAdminV1alphaProperty `json:"subproperty,omitempty"` + + // SubpropertyEventFilter: Optional. The subproperty event filter to + // create on an ordinary property. + SubpropertyEventFilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter `json:"subpropertyEventFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parent") 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. "Parent") 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 *GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse: Response +// message for CreateSubproperty RPC. +type GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse struct { + // Subproperty: The created subproperty. + Subproperty *GoogleAnalyticsAdminV1alphaProperty `json:"subproperty,omitempty"` + + // SubpropertyEventFilter: The created subproperty event filter. + SubpropertyEventFilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter `json:"subpropertyEventFilter,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Subproperty") 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. "Subproperty") 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 *GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaCreateUserLinkRequest: Request message for // CreateUserLink RPC. Users can have multiple email addresses // associated with their Google account, and one of these email @@ -6063,6 +6231,44 @@ func (s *GoogleAnalyticsAdminV1alphaListPropertiesResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse: +// Response message for ListRollupPropertySourceLinks RPC. +type GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // RollupPropertySourceLinks: List of RollupPropertySourceLinks. + RollupPropertySourceLinks []*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink `json:"rollupPropertySourceLinks,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasRespon // se: Response message for ListSKAdNetworkConversionValueSchemas RPC type GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse struct { @@ -6142,6 +6348,44 @@ func (s *GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse: +// Response message for ListSubpropertyEventFilter RPC. +type GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SubpropertyEventFilters: List of subproperty event filters. + SubpropertyEventFilters []*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter `json:"subpropertyEventFilters,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaListUserLinksResponse: Response message // for ListUserLinks RPC. type GoogleAnalyticsAdminV1alphaListUserLinksResponse struct { @@ -6495,8 +6739,7 @@ type GoogleAnalyticsAdminV1alphaProperty struct { // PropertyType: Immutable. The property type for this Property // resource. When creating a property, if the type is // "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be - // implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be - // created with the Google Analytics Admin API. + // implied. // // Possible values: // "PROPERTY_TYPE_UNSPECIFIED" - Unknown or unspecified property type @@ -6673,6 +6916,46 @@ func (s *GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaRollupPropertySourceLink: A link that +// references a source property under the parent rollup property. +type GoogleAnalyticsAdminV1alphaRollupPropertySourceLink struct { + // Name: Output only. Resource name of this RollupPropertySourceLink. + // Format: + // 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_s + // ource_link}' Format: 'properties/123/rollupPropertySourceLinks/456' + Name string `json:"name,omitempty"` + + // SourceProperty: Immutable. Resource name of the source property. + // Format: properties/{property_id} Example: "properties/789" + SourceProperty string `json:"sourceProperty,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaRollupPropertySourceLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaRunAccessReportRequest: The request for a // Data Access Record Report. type GoogleAnalyticsAdminV1alphaRunAccessReportRequest struct { @@ -7148,13 +7431,28 @@ type GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse struc googleapi.ServerResponse `json:"-"` } -// GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest: Request -// message for UpdateAccessBinding RPC. -type GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest struct { - // AccessBinding: Required. The access binding to update. - AccessBinding *GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBinding,omitempty"` +// GoogleAnalyticsAdminV1alphaSubpropertyEventFilter: A resource message +// representing a GA4 Subproperty event filter. +type GoogleAnalyticsAdminV1alphaSubpropertyEventFilter struct { + // ApplyToProperty: Immutable. Resource name of the Subproperty that + // uses this filter. + ApplyToProperty string `json:"applyToProperty,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessBinding") to + // FilterClauses: Required. Unordered list. Filter clauses that define + // the SubpropertyEventFilter. All clauses are AND'ed together to + // determine what data is sent to the subproperty. + FilterClauses []*GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause `json:"filterClauses,omitempty"` + + // Name: Output only. Format: + // properties/{ordinary_property_id}/subpropertyEventFilters/{sub_propert + // y_event_filter} Example: properties/1234/subpropertyEventFilters/5678 + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ApplyToProperty") 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 @@ -7162,28 +7460,44 @@ type GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessBinding") 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 is a list of field names (e.g. "ApplyToProperty") 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 *GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest +func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilter raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest: Request message for -// UpdateUserLink RPC. -type GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest struct { - // UserLink: Required. The user link to update. - UserLink *GoogleAnalyticsAdminV1alphaUserLink `json:"userLink,omitempty"` +// GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause: A clause for +// defining a filter. A filter may be inclusive (events satisfying the +// filter clause are included in the subproperty's data) or exclusive +// (events satisfying the filter clause are excluded from the +// subproperty's data). +type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause struct { + // FilterClauseType: Required. The type for the filter clause. + // + // Possible values: + // "FILTER_CLAUSE_TYPE_UNSPECIFIED" - Filter clause type unknown or + // not specified. + // "INCLUDE" - Events will be included in the Sub property if the + // filter clause is met. + // "EXCLUDE" - Events will be excluded from the Sub property if the + // filter clause is met. + FilterClauseType string `json:"filterClauseType,omitempty"` - // ForceSendFields is a list of field names (e.g. "UserLink") to + // FilterExpression: Required. The logical expression for what events + // are sent to the subproperty. + FilterExpression *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression `json:"filterExpression,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FilterClauseType") 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 @@ -7191,24 +7505,238 @@ type GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UserLink") 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 is a list of field names (e.g. "FilterClauseType") 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 *GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest +func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAnalyticsAdminV1alphaUserLink: A resource message representing -// a user's permissions on an Account or Property resource. -type GoogleAnalyticsAdminV1alphaUserLink struct { +// GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition: A +// specific filter expression +type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition struct { + // FieldName: Required. The field that is being filtered. + FieldName string `json:"fieldName,omitempty"` + + // NullFilter: A filter for null values. + NullFilter bool `json:"nullFilter,omitempty"` + + // StringFilter: A filter for a string-type dimension that matches a + // particular pattern. + StringFilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter `json:"stringFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FieldName") 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. "FieldName") 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 *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter +// : A filter for a string-type dimension that matches a particular +// pattern. +type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter struct { + // CaseSensitive: Optional. If true, the string value is case sensitive. + // If false, the match is case-insensitive. + CaseSensitive bool `json:"caseSensitive,omitempty"` + + // MatchType: Required. The match type for the string filter. + // + // Possible values: + // "MATCH_TYPE_UNSPECIFIED" - Match type unknown or not specified. + // "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 regular expression matches with the string + // value. + // "PARTIAL_REGEXP" - Partial regular expression matches with the + // string value. + MatchType string `json:"matchType,omitempty"` + + // Value: Required. 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 *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression: A +// logical expression of Subproperty event filters. +type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression struct { + // FilterCondition: Creates a filter that matches a specific event. This + // cannot be set on the top level SubpropertyEventFilterExpression. + FilterCondition *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition `json:"filterCondition,omitempty"` + + // NotExpression: A filter expression to be NOT'ed (inverted, + // complemented). It can only include a filter. This cannot be set on + // the top level SubpropertyEventFilterExpression. + NotExpression *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression `json:"notExpression,omitempty"` + + // OrGroup: A list of expressions to OR’ed together. Must only contain + // not_expression or filter_condition expressions. + OrGroup *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList `json:"orGroup,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FilterCondition") 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. "FilterCondition") 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 *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList: A +// list of Subproperty event filter expressions. +type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList struct { + // FilterExpressions: Required. Unordered list. A list of Subproperty + // event filter expressions + FilterExpressions []*GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression `json:"filterExpressions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FilterExpressions") + // 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. "FilterExpressions") 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 *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest: Request +// message for UpdateAccessBinding RPC. +type GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest struct { + // AccessBinding: Required. The access binding to update. + AccessBinding *GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBinding,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessBinding") 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. "AccessBinding") 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 *GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest: Request message for +// UpdateUserLink RPC. +type GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest struct { + // UserLink: Required. The user link to update. + UserLink *GoogleAnalyticsAdminV1alphaUserLink `json:"userLink,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UserLink") 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. "UserLink") 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 *GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaUserLink: A resource message representing +// a user's permissions on an Account or Property resource. +type GoogleAnalyticsAdminV1alphaUserLink struct { // DirectRoles: Roles directly assigned to this user for this account or // property. Valid values: predefinedRoles/viewer // predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin @@ -12071,37 +12599,28 @@ func (c *PropertiesCreateConnectedSiteTagCall) Do(opts ...googleapi.CallOption) } -// method id "analyticsadmin.properties.delete": +// method id "analyticsadmin.properties.createRollupProperty": -type PropertiesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesCreateRollupPropertyCall struct { + s *Service + googleanalyticsadminv1alphacreaterolluppropertyrequest *GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Marks target Property as soft-deleted (ie: "trashed") and -// returns it. This API does not have a method to restore soft-deleted -// properties. However, they can be restored using the Trash Can UI. If -// the properties are not restored before the expiration time, the -// Property and all child resources (eg: GoogleAdsLinks, Streams, -// UserLinks) will be permanently purged. -// https://support.google.com/analytics/answer/6154772 Returns an error -// if the target is not found, or is not a GA4 Property. -// -// - name: The name of the Property to soft-delete. Format: -// properties/{property_id} Example: "properties/1000". -func (r *PropertiesService) Delete(name string) *PropertiesDeleteCall { - c := &PropertiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// CreateRollupProperty: Create a roll-up property and all roll-up +// property source links. +func (r *PropertiesService) CreateRollupProperty(googleanalyticsadminv1alphacreaterolluppropertyrequest *GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest) *PropertiesCreateRollupPropertyCall { + c := &PropertiesCreateRollupPropertyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphacreaterolluppropertyrequest = googleanalyticsadminv1alphacreaterolluppropertyrequest 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 *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCall { +func (c *PropertiesCreateRollupPropertyCall) Fields(s ...googleapi.Field) *PropertiesCreateRollupPropertyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12109,21 +12628,21 @@ func (c *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCal // 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 *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCall { +func (c *PropertiesCreateRollupPropertyCall) Context(ctx context.Context) *PropertiesCreateRollupPropertyCall { 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 *PropertiesDeleteCall) Header() http.Header { +func (c *PropertiesCreateRollupPropertyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesCreateRollupPropertyCall) 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_ { @@ -12131,30 +12650,34 @@ func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacreaterolluppropertyrequest) + 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/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:createRollupProperty") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.delete" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "analyticsadmin.properties.createRollupProperty" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse.ServerRespons +// e.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 *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) { +func (c *PropertiesCreateRollupPropertyCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12173,7 +12696,7 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaProperty{ + ret := &GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12185,25 +12708,18 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } return ret, nil // { - // "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", - // "flatPath": "v1alpha/properties/{propertiesId}", - // "httpMethod": "DELETE", - // "id": "analyticsadmin.properties.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\"", - // "location": "path", - // "pattern": "^properties/[^/]+$", - // "required": true, - // "type": "string" - // } + // "description": "Create a roll-up property and all roll-up property source links.", + // "flatPath": "v1alpha/properties:createRollupProperty", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.createRollupProperty", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:createRollupProperty", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest" // }, - // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.edit" @@ -12212,21 +12728,290 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } -// method id "analyticsadmin.properties.deleteConnectedSiteTag": +// method id "analyticsadmin.properties.createSubproperty": -type PropertiesDeleteConnectedSiteTagCall struct { - s *Service - googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesCreateSubpropertyCall struct { + s *Service + googleanalyticsadminv1alphacreatesubpropertyrequest *GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DeleteConnectedSiteTag: Deletes a connected site tag for a Universal -// Analytics property. Note: this has no effect on GA4 properties. -func (r *PropertiesService) DeleteConnectedSiteTag(googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest) *PropertiesDeleteConnectedSiteTagCall { - c := &PropertiesDeleteConnectedSiteTagCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googleanalyticsadminv1alphadeleteconnectedsitetagrequest = googleanalyticsadminv1alphadeleteconnectedsitetagrequest +// CreateSubproperty: Create a subproperty and a subproperty event +// filter that applies to the created subproperty. +func (r *PropertiesService) CreateSubproperty(googleanalyticsadminv1alphacreatesubpropertyrequest *GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest) *PropertiesCreateSubpropertyCall { + c := &PropertiesCreateSubpropertyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphacreatesubpropertyrequest = googleanalyticsadminv1alphacreatesubpropertyrequest + 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 *PropertiesCreateSubpropertyCall) Fields(s ...googleapi.Field) *PropertiesCreateSubpropertyCall { + 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 *PropertiesCreateSubpropertyCall) Context(ctx context.Context) *PropertiesCreateSubpropertyCall { + 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 *PropertiesCreateSubpropertyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesCreateSubpropertyCall) 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.googleanalyticsadminv1alphacreatesubpropertyrequest) + 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/properties:createSubproperty") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.createSubproperty" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse.ServerResponse.H +// eader 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 *PropertiesCreateSubpropertyCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse{ + 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": "Create a subproperty and a subproperty event filter that applies to the created subproperty.", + // "flatPath": "v1alpha/properties:createSubproperty", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.createSubproperty", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:createSubproperty", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.delete": + +type PropertiesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Marks target Property as soft-deleted (ie: "trashed") and +// returns it. This API does not have a method to restore soft-deleted +// properties. However, they can be restored using the Trash Can UI. If +// the properties are not restored before the expiration time, the +// Property and all child resources (eg: GoogleAdsLinks, Streams, +// UserLinks) will be permanently purged. +// https://support.google.com/analytics/answer/6154772 Returns an error +// if the target is not found, or is not a GA4 Property. +// +// - name: The name of the Property to soft-delete. Format: +// properties/{property_id} Example: "properties/1000". +func (r *PropertiesService) Delete(name string) *PropertiesDeleteCall { + c := &PropertiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCall { + 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 *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCall { + 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 *PropertiesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDeleteCall) 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 + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.delete" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaProperty.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 *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaProperty{ + 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": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", + // "flatPath": "v1alpha/properties/{propertiesId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.properties.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\"", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.deleteConnectedSiteTag": + +type PropertiesDeleteConnectedSiteTagCall struct { + s *Service + googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DeleteConnectedSiteTag: Deletes a connected site tag for a Universal +// Analytics property. Note: this has no effect on GA4 properties. +func (r *PropertiesService) DeleteConnectedSiteTag(googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest) *PropertiesDeleteConnectedSiteTagCall { + c := &PropertiesDeleteConnectedSiteTagCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphadeleteconnectedsitetagrequest = googleanalyticsadminv1alphadeleteconnectedsitetagrequest return c } @@ -28468,31 +29253,1467 @@ func (c *PropertiesGoogleAdsLinksPatchCall) Do(opts ...googleapi.CallOption) (*G } -// method id "analyticsadmin.properties.searchAds360Links.create": +// method id "analyticsadmin.properties.rollupPropertySourceLinks.create": -type PropertiesSearchAds360LinksCreateCall struct { - s *Service - parent string +type PropertiesRollupPropertySourceLinksCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alpharolluppropertysourcelink *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a roll-up property source link. Only roll-up +// properties can have source links, so this method will throw an error +// if used on other types of properties. +// +// - parent: Format: properties/{property_id} Example: properties/1234. +func (r *PropertiesRollupPropertySourceLinksService) Create(parent string, googleanalyticsadminv1alpharolluppropertysourcelink *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink) *PropertiesRollupPropertySourceLinksCreateCall { + c := &PropertiesRollupPropertySourceLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alpharolluppropertysourcelink = googleanalyticsadminv1alpharolluppropertysourcelink + 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 *PropertiesRollupPropertySourceLinksCreateCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksCreateCall { + 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 *PropertiesRollupPropertySourceLinksCreateCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksCreateCall { + 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 *PropertiesRollupPropertySourceLinksCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesRollupPropertySourceLinksCreateCall) 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.googleanalyticsadminv1alpharolluppropertysourcelink) + 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/{+parent}/rollupPropertySourceLinks") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink.ServerResponse.He +// ader 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 *PropertiesRollupPropertySourceLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaRollupPropertySourceLink{ + 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 a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + // "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.rollupPropertySourceLinks.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Format: properties/{property_id} Example: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/rollupPropertySourceLinks", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.rollupPropertySourceLinks.delete": + +type PropertiesRollupPropertySourceLinksDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a roll-up property source link. Only roll-up +// properties can have source links, so this method will throw an error +// if used on other types of properties. +// +// - name: Format: +// properties/{property_id}/rollupPropertySourceLinks/{rollup_property_ +// source_link_id} Example: +// properties/1234/rollupPropertySourceLinks/5678. +func (r *PropertiesRollupPropertySourceLinksService) Delete(name string) *PropertiesRollupPropertySourceLinksDeleteCall { + c := &PropertiesRollupPropertySourceLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *PropertiesRollupPropertySourceLinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksDeleteCall { + 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 *PropertiesRollupPropertySourceLinksDeleteCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksDeleteCall { + 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 *PropertiesRollupPropertySourceLinksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesRollupPropertySourceLinksDeleteCall) 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 + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *PropertiesRollupPropertySourceLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + 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": "Deletes a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + // "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks/{rollupPropertySourceLinksId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.properties.rollupPropertySourceLinks.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} Example: properties/1234/rollupPropertySourceLinks/5678", + // "location": "path", + // "pattern": "^properties/[^/]+/rollupPropertySourceLinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.rollupPropertySourceLinks.get": + +type PropertiesRollupPropertySourceLinksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Lookup for a single roll-up property source Link. Only roll-up +// properties can have source links, so this method will throw an error +// if used on other types of properties. +// +// - name: The name of the roll-up property source link to lookup. +// Format: +// properties/{property_id}/rollupPropertySourceLinks/{rollup_property_ +// source_link_id} Example: +// properties/123/rollupPropertySourceLinks/456. +func (r *PropertiesRollupPropertySourceLinksService) Get(name string) *PropertiesRollupPropertySourceLinksGetCall { + c := &PropertiesRollupPropertySourceLinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *PropertiesRollupPropertySourceLinksGetCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *PropertiesRollupPropertySourceLinksGetCall) IfNoneMatch(entityTag string) *PropertiesRollupPropertySourceLinksGetCall { + c.ifNoneMatch_ = entityTag + 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 *PropertiesRollupPropertySourceLinksGetCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksGetCall { + 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 *PropertiesRollupPropertySourceLinksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesRollupPropertySourceLinksGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink.ServerResponse.He +// ader 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 *PropertiesRollupPropertySourceLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaRollupPropertySourceLink{ + 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": "Lookup for a single roll-up property source Link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + // "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks/{rollupPropertySourceLinksId}", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.rollupPropertySourceLinks.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the roll-up property source link to lookup. Format: properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} Example: properties/123/rollupPropertySourceLinks/456", + // "location": "path", + // "pattern": "^properties/[^/]+/rollupPropertySourceLinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.rollupPropertySourceLinks.list": + +type PropertiesRollupPropertySourceLinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists roll-up property source Links on a property. Only roll-up +// properties can have source links, so this method will throw an error +// if used on other types of properties. +// +// - parent: The name of the roll-up property to list roll-up property +// source links under. Format: properties/{property_id} Example: +// properties/1234. +func (r *PropertiesRollupPropertySourceLinksService) List(parent string) *PropertiesRollupPropertySourceLinksListCall { + c := &PropertiesRollupPropertySourceLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of resources to return. The service may return fewer than this value, +// even if there are additional pages. If unspecified, at most 50 +// resources will be returned. The maximum value is 200; (higher values +// will be coerced to the maximum) +func (c *PropertiesRollupPropertySourceLinksListCall) PageSize(pageSize int64) *PropertiesRollupPropertySourceLinksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListRollupPropertySourceLinks` call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to `ListRollupPropertySourceLinks` must +// match the call that provided the page token. +func (c *PropertiesRollupPropertySourceLinksListCall) PageToken(pageToken string) *PropertiesRollupPropertySourceLinksListCall { + c.urlParams_.Set("pageToken", pageToken) + 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 *PropertiesRollupPropertySourceLinksListCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *PropertiesRollupPropertySourceLinksListCall) IfNoneMatch(entityTag string) *PropertiesRollupPropertySourceLinksListCall { + c.ifNoneMatch_ = entityTag + 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 *PropertiesRollupPropertySourceLinksListCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksListCall { + 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 *PropertiesRollupPropertySourceLinksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesRollupPropertySourceLinksListCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/rollupPropertySourceLinks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.list" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse.Serv +// erResponse.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 *PropertiesRollupPropertySourceLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse{ + 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": "Lists roll-up property source Links on a property. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", + // "flatPath": "v1alpha/properties/{propertiesId}/rollupPropertySourceLinks", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.rollupPropertySourceLinks.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListRollupPropertySourceLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRollupPropertySourceLinks` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the roll-up property to list roll-up property source links under. Format: properties/{property_id} Example: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/rollupPropertySourceLinks", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PropertiesRollupPropertySourceLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "analyticsadmin.properties.searchAds360Links.create": + +type PropertiesSearchAds360LinksCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a SearchAds360Link. +// +// - parent: Example format: properties/1234. +func (r *PropertiesSearchAds360LinksService) Create(parent string, googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link) *PropertiesSearchAds360LinksCreateCall { + c := &PropertiesSearchAds360LinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphasearchads360link = googleanalyticsadminv1alphasearchads360link + 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 *PropertiesSearchAds360LinksCreateCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksCreateCall { + 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 *PropertiesSearchAds360LinksCreateCall) Context(ctx context.Context) *PropertiesSearchAds360LinksCreateCall { + 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 *PropertiesSearchAds360LinksCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesSearchAds360LinksCreateCall) 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.googleanalyticsadminv1alphasearchads360link) + 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/{+parent}/searchAds360Links") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.searchAds360Links.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaSearchAds360Link or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaSearchAds360Link.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 *PropertiesSearchAds360LinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{ + 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 a SearchAds360Link.", + // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.searchAds360Links.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Example format: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/searchAds360Links", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.searchAds360Links.delete": + +type PropertiesSearchAds360LinksDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a SearchAds360Link on a property. +// +// - name: The name of the SearchAds360Link to delete. Example format: +// properties/1234/SearchAds360Links/5678. +func (r *PropertiesSearchAds360LinksService) Delete(name string) *PropertiesSearchAds360LinksDeleteCall { + c := &PropertiesSearchAds360LinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *PropertiesSearchAds360LinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksDeleteCall { + 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 *PropertiesSearchAds360LinksDeleteCall) Context(ctx context.Context) *PropertiesSearchAds360LinksDeleteCall { + 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 *PropertiesSearchAds360LinksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesSearchAds360LinksDeleteCall) 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 + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.searchAds360Links.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *PropertiesSearchAds360LinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + 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": "Deletes a SearchAds360Link on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links/{searchAds360LinksId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.properties.searchAds360Links.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the SearchAds360Link to delete. Example format: properties/1234/SearchAds360Links/5678", + // "location": "path", + // "pattern": "^properties/[^/]+/searchAds360Links/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.searchAds360Links.get": + +type PropertiesSearchAds360LinksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Look up a single SearchAds360Link +// +// - name: The name of the SearchAds360Link to get. Example format: +// properties/1234/SearchAds360Link/5678. +func (r *PropertiesSearchAds360LinksService) Get(name string) *PropertiesSearchAds360LinksGetCall { + c := &PropertiesSearchAds360LinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *PropertiesSearchAds360LinksGetCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *PropertiesSearchAds360LinksGetCall) IfNoneMatch(entityTag string) *PropertiesSearchAds360LinksGetCall { + c.ifNoneMatch_ = entityTag + 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 *PropertiesSearchAds360LinksGetCall) Context(ctx context.Context) *PropertiesSearchAds360LinksGetCall { + 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 *PropertiesSearchAds360LinksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesSearchAds360LinksGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.searchAds360Links.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaSearchAds360Link or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaSearchAds360Link.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 *PropertiesSearchAds360LinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{ + 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": "Look up a single SearchAds360Link", + // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links/{searchAds360LinksId}", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.searchAds360Links.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the SearchAds360Link to get. Example format: properties/1234/SearchAds360Link/5678", + // "location": "path", + // "pattern": "^properties/[^/]+/searchAds360Links/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// method id "analyticsadmin.properties.searchAds360Links.list": + +type PropertiesSearchAds360LinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all SearchAds360Links on a property. +// +// - parent: Example format: properties/1234. +func (r *PropertiesSearchAds360LinksService) List(parent string) *PropertiesSearchAds360LinksListCall { + c := &PropertiesSearchAds360LinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of resources to return. If unspecified, at most 50 resources will be +// returned. The maximum value is 200 (higher values will be coerced to +// the maximum). +func (c *PropertiesSearchAds360LinksListCall) PageSize(pageSize int64) *PropertiesSearchAds360LinksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListSearchAds360Links` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListSearchAds360Links` must match the call +// that provided the page token. +func (c *PropertiesSearchAds360LinksListCall) PageToken(pageToken string) *PropertiesSearchAds360LinksListCall { + c.urlParams_.Set("pageToken", pageToken) + 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 *PropertiesSearchAds360LinksListCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *PropertiesSearchAds360LinksListCall) IfNoneMatch(entityTag string) *PropertiesSearchAds360LinksListCall { + c.ifNoneMatch_ = entityTag + 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 *PropertiesSearchAds360LinksListCall) Context(ctx context.Context) *PropertiesSearchAds360LinksListCall { + 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 *PropertiesSearchAds360LinksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesSearchAds360LinksListCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/searchAds360Links") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.searchAds360Links.list" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse.ServerRespon +// se.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 *PropertiesSearchAds360LinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse{ + 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": "Lists all SearchAds360Links on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.searchAds360Links.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListSearchAds360Links` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSearchAds360Links` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Example format: properties/1234", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/searchAds360Links", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PropertiesSearchAds360LinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "analyticsadmin.properties.searchAds360Links.patch": + +type PropertiesSearchAds360LinksPatchCall struct { + s *Service + name string googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a SearchAds360Link. +// Patch: Updates a SearchAds360Link on a property. +// +// - name: Output only. The resource name for this SearchAds360Link +// resource. Format: +// properties/{propertyId}/searchAds360Links/{linkId} Note: linkId is +// not the Search Ads 360 advertiser ID. +func (r *PropertiesSearchAds360LinksService) Patch(name string, googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link) *PropertiesSearchAds360LinksPatchCall { + c := &PropertiesSearchAds360LinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphasearchads360link = googleanalyticsadminv1alphasearchads360link + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. Omitted fields will not be updated. To +// replace the entire entity, use one path with the string "*" to match +// all fields. +func (c *PropertiesSearchAds360LinksPatchCall) UpdateMask(updateMask string) *PropertiesSearchAds360LinksPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *PropertiesSearchAds360LinksPatchCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksPatchCall { + 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 *PropertiesSearchAds360LinksPatchCall) Context(ctx context.Context) *PropertiesSearchAds360LinksPatchCall { + 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 *PropertiesSearchAds360LinksPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesSearchAds360LinksPatchCall) 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.googleanalyticsadminv1alphasearchads360link) + 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/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.searchAds360Links.patch" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaSearchAds360Link or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaSearchAds360Link.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 *PropertiesSearchAds360LinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{ + 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": "Updates a SearchAds360Link on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links/{searchAds360LinksId}", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.properties.searchAds360Links.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name for this SearchAds360Link resource. Format: properties/{propertyId}/searchAds360Links/{linkId} Note: linkId is not the Search Ads 360 advertiser ID", + // "location": "path", + // "pattern": "^properties/[^/]+/searchAds360Links/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.subpropertyEventFilters.create": + +type PropertiesSubpropertyEventFiltersCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a subproperty Event Filter. // -// - parent: Example format: properties/1234. -func (r *PropertiesSearchAds360LinksService) Create(parent string, googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link) *PropertiesSearchAds360LinksCreateCall { - c := &PropertiesSearchAds360LinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The ordinary property for which to create a subproperty +// event filter. Format: properties/property_id Example: +// properties/123. +func (r *PropertiesSubpropertyEventFiltersService) Create(parent string, googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter) *PropertiesSubpropertyEventFiltersCreateCall { + c := &PropertiesSubpropertyEventFiltersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googleanalyticsadminv1alphasearchads360link = googleanalyticsadminv1alphasearchads360link + c.googleanalyticsadminv1alphasubpropertyeventfilter = googleanalyticsadminv1alphasubpropertyeventfilter 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 *PropertiesSearchAds360LinksCreateCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksCreateCall { +func (c *PropertiesSubpropertyEventFiltersCreateCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28500,21 +30721,21 @@ func (c *PropertiesSearchAds360LinksCreateCall) Fields(s ...googleapi.Field) *Pr // 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 *PropertiesSearchAds360LinksCreateCall) Context(ctx context.Context) *PropertiesSearchAds360LinksCreateCall { +func (c *PropertiesSubpropertyEventFiltersCreateCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersCreateCall { 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 *PropertiesSearchAds360LinksCreateCall) Header() http.Header { +func (c *PropertiesSubpropertyEventFiltersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesSearchAds360LinksCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesSubpropertyEventFiltersCreateCall) 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_ { @@ -28522,14 +30743,14 @@ func (c *PropertiesSearchAds360LinksCreateCall) doRequest(alt string) (*http.Res } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasearchads360link) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasubpropertyeventfilter) 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/{+parent}/searchAds360Links") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/subpropertyEventFilters") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -28542,16 +30763,16 @@ func (c *PropertiesSearchAds360LinksCreateCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.searchAds360Links.create" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaSearchAds360Link or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "analyticsadmin.properties.subpropertyEventFilters.create" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaSearchAds360Link.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter.ServerResponse.Head +// er 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 *PropertiesSearchAds360LinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, error) { +func (c *PropertiesSubpropertyEventFiltersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28570,7 +30791,7 @@ func (c *PropertiesSearchAds360LinksCreateCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{ + ret := &GoogleAnalyticsAdminV1alphaSubpropertyEventFilter{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -28582,28 +30803,28 @@ func (c *PropertiesSearchAds360LinksCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates a SearchAds360Link.", - // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links", + // "description": "Creates a subproperty Event Filter.", + // "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters", // "httpMethod": "POST", - // "id": "analyticsadmin.properties.searchAds360Links.create", + // "id": "analyticsadmin.properties.subpropertyEventFilters.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. Example format: properties/1234", + // "description": "Required. The ordinary property for which to create a subproperty event filter. Format: properties/property_id Example: properties/123", // "location": "path", // "pattern": "^properties/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/searchAds360Links", + // "path": "v1alpha/{+parent}/subpropertyEventFilters", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.edit" @@ -28612,9 +30833,9 @@ func (c *PropertiesSearchAds360LinksCreateCall) Do(opts ...googleapi.CallOption) } -// method id "analyticsadmin.properties.searchAds360Links.delete": +// method id "analyticsadmin.properties.subpropertyEventFilters.delete": -type PropertiesSearchAds360LinksDeleteCall struct { +type PropertiesSubpropertyEventFiltersDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -28622,12 +30843,14 @@ type PropertiesSearchAds360LinksDeleteCall struct { header_ http.Header } -// Delete: Deletes a SearchAds360Link on a property. +// Delete: Deletes a subproperty event filter. // -// - name: The name of the SearchAds360Link to delete. Example format: -// properties/1234/SearchAds360Links/5678. -func (r *PropertiesSearchAds360LinksService) Delete(name string) *PropertiesSearchAds360LinksDeleteCall { - c := &PropertiesSearchAds360LinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name of the subproperty event filter to delete. +// Format: +// properties/property_id/subpropertyEventFilters/subproperty_event_fil +// ter Example: properties/123/subpropertyEventFilters/456. +func (r *PropertiesSubpropertyEventFiltersService) Delete(name string) *PropertiesSubpropertyEventFiltersDeleteCall { + c := &PropertiesSubpropertyEventFiltersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -28635,7 +30858,7 @@ func (r *PropertiesSearchAds360LinksService) Delete(name string) *PropertiesSear // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PropertiesSearchAds360LinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksDeleteCall { +func (c *PropertiesSubpropertyEventFiltersDeleteCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28643,21 +30866,21 @@ func (c *PropertiesSearchAds360LinksDeleteCall) Fields(s ...googleapi.Field) *Pr // 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 *PropertiesSearchAds360LinksDeleteCall) Context(ctx context.Context) *PropertiesSearchAds360LinksDeleteCall { +func (c *PropertiesSubpropertyEventFiltersDeleteCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersDeleteCall { 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 *PropertiesSearchAds360LinksDeleteCall) Header() http.Header { +func (c *PropertiesSubpropertyEventFiltersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesSearchAds360LinksDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesSubpropertyEventFiltersDeleteCall) 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_ { @@ -28680,14 +30903,14 @@ func (c *PropertiesSearchAds360LinksDeleteCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.searchAds360Links.delete" call. +// Do executes the "analyticsadmin.properties.subpropertyEventFilters.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *PropertiesSearchAds360LinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *PropertiesSubpropertyEventFiltersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28718,18 +30941,18 @@ func (c *PropertiesSearchAds360LinksDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes a SearchAds360Link on a property.", - // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links/{searchAds360LinksId}", + // "description": "Deletes a subproperty event filter.", + // "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters/{subpropertyEventFiltersId}", // "httpMethod": "DELETE", - // "id": "analyticsadmin.properties.searchAds360Links.delete", + // "id": "analyticsadmin.properties.subpropertyEventFilters.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the SearchAds360Link to delete. Example format: properties/1234/SearchAds360Links/5678", + // "description": "Required. Resource name of the subproperty event filter to delete. Format: properties/property_id/subpropertyEventFilters/subproperty_event_filter Example: properties/123/subpropertyEventFilters/456", // "location": "path", - // "pattern": "^properties/[^/]+/searchAds360Links/[^/]+$", + // "pattern": "^properties/[^/]+/subpropertyEventFilters/[^/]+$", // "required": true, // "type": "string" // } @@ -28745,9 +30968,9 @@ func (c *PropertiesSearchAds360LinksDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "analyticsadmin.properties.searchAds360Links.get": +// method id "analyticsadmin.properties.subpropertyEventFilters.get": -type PropertiesSearchAds360LinksGetCall struct { +type PropertiesSubpropertyEventFiltersGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -28756,12 +30979,14 @@ type PropertiesSearchAds360LinksGetCall struct { header_ http.Header } -// Get: Look up a single SearchAds360Link +// Get: Lookup for a single subproperty Event Filter. // -// - name: The name of the SearchAds360Link to get. Example format: -// properties/1234/SearchAds360Link/5678. -func (r *PropertiesSearchAds360LinksService) Get(name string) *PropertiesSearchAds360LinksGetCall { - c := &PropertiesSearchAds360LinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name of the subproperty event filter to lookup. +// Format: +// properties/property_id/subpropertyEventFilters/subproperty_event_fil +// ter Example: properties/123/subpropertyEventFilters/456. +func (r *PropertiesSubpropertyEventFiltersService) Get(name string) *PropertiesSubpropertyEventFiltersGetCall { + c := &PropertiesSubpropertyEventFiltersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -28769,7 +30994,7 @@ func (r *PropertiesSearchAds360LinksService) Get(name string) *PropertiesSearchA // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PropertiesSearchAds360LinksGetCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksGetCall { +func (c *PropertiesSubpropertyEventFiltersGetCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28779,7 +31004,7 @@ func (c *PropertiesSearchAds360LinksGetCall) Fields(s ...googleapi.Field) *Prope // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *PropertiesSearchAds360LinksGetCall) IfNoneMatch(entityTag string) *PropertiesSearchAds360LinksGetCall { +func (c *PropertiesSubpropertyEventFiltersGetCall) IfNoneMatch(entityTag string) *PropertiesSubpropertyEventFiltersGetCall { c.ifNoneMatch_ = entityTag return c } @@ -28787,21 +31012,21 @@ func (c *PropertiesSearchAds360LinksGetCall) IfNoneMatch(entityTag string) *Prop // 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 *PropertiesSearchAds360LinksGetCall) Context(ctx context.Context) *PropertiesSearchAds360LinksGetCall { +func (c *PropertiesSubpropertyEventFiltersGetCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersGetCall { 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 *PropertiesSearchAds360LinksGetCall) Header() http.Header { +func (c *PropertiesSubpropertyEventFiltersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesSearchAds360LinksGetCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesSubpropertyEventFiltersGetCall) 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_ { @@ -28827,16 +31052,16 @@ func (c *PropertiesSearchAds360LinksGetCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.searchAds360Links.get" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaSearchAds360Link or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "analyticsadmin.properties.subpropertyEventFilters.get" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaSearchAds360Link.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter.ServerResponse.Head +// er 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 *PropertiesSearchAds360LinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, error) { +func (c *PropertiesSubpropertyEventFiltersGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -28855,7 +31080,7 @@ func (c *PropertiesSearchAds360LinksGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{ + ret := &GoogleAnalyticsAdminV1alphaSubpropertyEventFilter{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -28867,25 +31092,25 @@ func (c *PropertiesSearchAds360LinksGetCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Look up a single SearchAds360Link", - // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links/{searchAds360LinksId}", + // "description": "Lookup for a single subproperty Event Filter.", + // "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters/{subpropertyEventFiltersId}", // "httpMethod": "GET", - // "id": "analyticsadmin.properties.searchAds360Links.get", + // "id": "analyticsadmin.properties.subpropertyEventFilters.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the SearchAds360Link to get. Example format: properties/1234/SearchAds360Link/5678", + // "description": "Required. Resource name of the subproperty event filter to lookup. Format: properties/property_id/subpropertyEventFilters/subproperty_event_filter Example: properties/123/subpropertyEventFilters/456", // "location": "path", - // "pattern": "^properties/[^/]+/searchAds360Links/[^/]+$", + // "pattern": "^properties/[^/]+/subpropertyEventFilters/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.edit", @@ -28895,9 +31120,9 @@ func (c *PropertiesSearchAds360LinksGetCall) Do(opts ...googleapi.CallOption) (* } -// method id "analyticsadmin.properties.searchAds360Links.list": +// method id "analyticsadmin.properties.subpropertyEventFilters.list": -type PropertiesSearchAds360LinksListCall struct { +type PropertiesSubpropertyEventFiltersListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -28906,30 +31131,32 @@ type PropertiesSearchAds360LinksListCall struct { header_ http.Header } -// List: Lists all SearchAds360Links on a property. +// List: List all subproperty Event Filters on a property. // -// - parent: Example format: properties/1234. -func (r *PropertiesSearchAds360LinksService) List(parent string) *PropertiesSearchAds360LinksListCall { - c := &PropertiesSearchAds360LinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: Resource name of the ordinary property. Format: +// properties/property_id Example: properties/123. +func (r *PropertiesSubpropertyEventFiltersService) List(parent string) *PropertiesSubpropertyEventFiltersListCall { + c := &PropertiesSubpropertyEventFiltersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of resources to return. If unspecified, at most 50 resources will be -// returned. The maximum value is 200 (higher values will be coerced to -// the maximum). -func (c *PropertiesSearchAds360LinksListCall) PageSize(pageSize int64) *PropertiesSearchAds360LinksListCall { +// of resources to return. The service may return fewer than this value, +// even if there are additional pages. If unspecified, at most 50 +// resources will be returned. The maximum value is 200; (higher values +// will be coerced to the maximum) +func (c *PropertiesSubpropertyEventFiltersListCall) PageSize(pageSize int64) *PropertiesSubpropertyEventFiltersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListSearchAds360Links` call. Provide this -// to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListSearchAds360Links` must match the call -// that provided the page token. -func (c *PropertiesSearchAds360LinksListCall) PageToken(pageToken string) *PropertiesSearchAds360LinksListCall { +// received from a previous `ListSubpropertyEventFilters` call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListSubpropertyEventFilters` must match the +// call that provided the page token. +func (c *PropertiesSubpropertyEventFiltersListCall) PageToken(pageToken string) *PropertiesSubpropertyEventFiltersListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -28937,7 +31164,7 @@ func (c *PropertiesSearchAds360LinksListCall) PageToken(pageToken string) *Prope // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PropertiesSearchAds360LinksListCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksListCall { +func (c *PropertiesSubpropertyEventFiltersListCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -28947,7 +31174,7 @@ func (c *PropertiesSearchAds360LinksListCall) Fields(s ...googleapi.Field) *Prop // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *PropertiesSearchAds360LinksListCall) IfNoneMatch(entityTag string) *PropertiesSearchAds360LinksListCall { +func (c *PropertiesSubpropertyEventFiltersListCall) IfNoneMatch(entityTag string) *PropertiesSubpropertyEventFiltersListCall { c.ifNoneMatch_ = entityTag return c } @@ -28955,21 +31182,21 @@ func (c *PropertiesSearchAds360LinksListCall) IfNoneMatch(entityTag string) *Pro // 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 *PropertiesSearchAds360LinksListCall) Context(ctx context.Context) *PropertiesSearchAds360LinksListCall { +func (c *PropertiesSubpropertyEventFiltersListCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersListCall { 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 *PropertiesSearchAds360LinksListCall) Header() http.Header { +func (c *PropertiesSubpropertyEventFiltersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesSearchAds360LinksListCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesSubpropertyEventFiltersListCall) 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_ { @@ -28982,7 +31209,7 @@ func (c *PropertiesSearchAds360LinksListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/searchAds360Links") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/subpropertyEventFilters") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -28995,17 +31222,17 @@ func (c *PropertiesSearchAds360LinksListCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.searchAds360Links.list" call. +// Do executes the "analyticsadmin.properties.subpropertyEventFilters.list" call. // Exactly one of -// *GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// *GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse.ServerRespon -// se.Header or (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse.Server +// Response.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 *PropertiesSearchAds360LinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse, error) { +func (c *PropertiesSubpropertyEventFiltersListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29024,7 +31251,7 @@ func (c *PropertiesSearchAds360LinksListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse{ + ret := &GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29036,36 +31263,36 @@ func (c *PropertiesSearchAds360LinksListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists all SearchAds360Links on a property.", - // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links", + // "description": "List all subproperty Event Filters on a property.", + // "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters", // "httpMethod": "GET", - // "id": "analyticsadmin.properties.searchAds360Links.list", + // "id": "analyticsadmin.properties.subpropertyEventFilters.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "pageSize": { - // "description": "The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).", + // "description": "Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous `ListSearchAds360Links` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSearchAds360Links` must match the call that provided the page token.", + // "description": "Optional. A page token, received from a previous `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubpropertyEventFilters` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Example format: properties/1234", + // "description": "Required. Resource name of the ordinary property. Format: properties/property_id Example: properties/123", // "location": "path", // "pattern": "^properties/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/searchAds360Links", + // "path": "v1alpha/{+parent}/subpropertyEventFilters", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse" + // "$ref": "GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.edit", @@ -29078,7 +31305,7 @@ func (c *PropertiesSearchAds360LinksListCall) Do(opts ...googleapi.CallOption) ( // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *PropertiesSearchAds360LinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse) error) error { +func (c *PropertiesSubpropertyEventFiltersListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -29096,35 +31323,36 @@ func (c *PropertiesSearchAds360LinksListCall) Pages(ctx context.Context, f func( } } -// method id "analyticsadmin.properties.searchAds360Links.patch": +// method id "analyticsadmin.properties.subpropertyEventFilters.patch": -type PropertiesSearchAds360LinksPatchCall struct { - s *Service - name string - googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesSubpropertyEventFiltersPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a SearchAds360Link on a property. +// Patch: Updates a subproperty Event Filter. // -// - name: Output only. The resource name for this SearchAds360Link -// resource. Format: -// properties/{propertyId}/searchAds360Links/{linkId} Note: linkId is -// not the Search Ads 360 advertiser ID. -func (r *PropertiesSearchAds360LinksService) Patch(name string, googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link) *PropertiesSearchAds360LinksPatchCall { - c := &PropertiesSearchAds360LinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Format: +// properties/{ordinary_property_id}/subpropertyEventFilters/{sub_prope +// rty_event_filter} Example: +// properties/1234/subpropertyEventFilters/5678. +func (r *PropertiesSubpropertyEventFiltersService) Patch(name string, googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter) *PropertiesSubpropertyEventFiltersPatchCall { + c := &PropertiesSubpropertyEventFiltersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googleanalyticsadminv1alphasearchads360link = googleanalyticsadminv1alphasearchads360link + c.googleanalyticsadminv1alphasubpropertyeventfilter = googleanalyticsadminv1alphasubpropertyeventfilter return c } // UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to be updated. Omitted fields will not be updated. To +// list of fields to update. Field names must be in snake case (for +// example, "field_to_update"). Omitted fields will not be updated. To // replace the entire entity, use one path with the string "*" to match // all fields. -func (c *PropertiesSearchAds360LinksPatchCall) UpdateMask(updateMask string) *PropertiesSearchAds360LinksPatchCall { +func (c *PropertiesSubpropertyEventFiltersPatchCall) UpdateMask(updateMask string) *PropertiesSubpropertyEventFiltersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -29132,7 +31360,7 @@ func (c *PropertiesSearchAds360LinksPatchCall) UpdateMask(updateMask string) *Pr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PropertiesSearchAds360LinksPatchCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksPatchCall { +func (c *PropertiesSubpropertyEventFiltersPatchCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -29140,21 +31368,21 @@ func (c *PropertiesSearchAds360LinksPatchCall) Fields(s ...googleapi.Field) *Pro // 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 *PropertiesSearchAds360LinksPatchCall) Context(ctx context.Context) *PropertiesSearchAds360LinksPatchCall { +func (c *PropertiesSubpropertyEventFiltersPatchCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersPatchCall { 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 *PropertiesSearchAds360LinksPatchCall) Header() http.Header { +func (c *PropertiesSubpropertyEventFiltersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesSearchAds360LinksPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesSubpropertyEventFiltersPatchCall) 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_ { @@ -29162,7 +31390,7 @@ func (c *PropertiesSearchAds360LinksPatchCall) doRequest(alt string) (*http.Resp } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasearchads360link) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasubpropertyeventfilter) if err != nil { return nil, err } @@ -29182,16 +31410,16 @@ func (c *PropertiesSearchAds360LinksPatchCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.searchAds360Links.patch" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaSearchAds360Link or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "analyticsadmin.properties.subpropertyEventFilters.patch" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleAnalyticsAdminV1alphaSearchAds360Link.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter.ServerResponse.Head +// er 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 *PropertiesSearchAds360LinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, error) { +func (c *PropertiesSubpropertyEventFiltersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -29210,7 +31438,7 @@ func (c *PropertiesSearchAds360LinksPatchCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{ + ret := &GoogleAnalyticsAdminV1alphaSubpropertyEventFilter{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -29222,23 +31450,23 @@ func (c *PropertiesSearchAds360LinksPatchCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Updates a SearchAds360Link on a property.", - // "flatPath": "v1alpha/properties/{propertiesId}/searchAds360Links/{searchAds360LinksId}", + // "description": "Updates a subproperty Event Filter.", + // "flatPath": "v1alpha/properties/{propertiesId}/subpropertyEventFilters/{subpropertyEventFiltersId}", // "httpMethod": "PATCH", - // "id": "analyticsadmin.properties.searchAds360Links.patch", + // "id": "analyticsadmin.properties.subpropertyEventFilters.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource name for this SearchAds360Link resource. Format: properties/{propertyId}/searchAds360Links/{linkId} Note: linkId is not the Search Ads 360 advertiser ID", + // "description": "Output only. Format: properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} Example: properties/1234/subpropertyEventFilters/5678", // "location": "path", - // "pattern": "^properties/[^/]+/searchAds360Links/[^/]+$", + // "pattern": "^properties/[^/]+/subpropertyEventFilters/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "description": "Required. The list of fields to update. Field names must be in snake case (for example, \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -29246,10 +31474,10 @@ func (c *PropertiesSearchAds360LinksPatchCall) Do(opts ...googleapi.CallOption) // }, // "path": "v1alpha/{+name}", // "request": { - // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" // }, // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaSearchAds360Link" + // "$ref": "GoogleAnalyticsAdminV1alphaSubpropertyEventFilter" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.edit" diff --git a/analyticsadmin/v1beta/analyticsadmin-api.json b/analyticsadmin/v1beta/analyticsadmin-api.json index f264e9498d5..ff007be85e5 100644 --- a/analyticsadmin/v1beta/analyticsadmin-api.json +++ b/analyticsadmin/v1beta/analyticsadmin-api.json @@ -1628,7 +1628,7 @@ } } }, - "revision": "20230809", + "revision": "20231001", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1betaAccessBetweenFilter": { @@ -2950,7 +2950,7 @@ "type": "string" }, "propertyType": { - "description": "Immutable. The property type for this Property resource. When creating a property, if the type is \"PROPERTY_TYPE_UNSPECIFIED\", then \"ORDINARY_PROPERTY\" will be implied. \"SUBPROPERTY\" and \"ROLLUP_PROPERTY\" types cannot yet be created with the Google Analytics Admin API.", + "description": "Immutable. The property type for this Property resource. When creating a property, if the type is \"PROPERTY_TYPE_UNSPECIFIED\", then \"ORDINARY_PROPERTY\" will be implied.", "enum": [ "PROPERTY_TYPE_UNSPECIFIED", "PROPERTY_TYPE_ORDINARY", diff --git a/analyticsadmin/v1beta/analyticsadmin-gen.go b/analyticsadmin/v1beta/analyticsadmin-gen.go index cae69392532..3a95168575b 100644 --- a/analyticsadmin/v1beta/analyticsadmin-gen.go +++ b/analyticsadmin/v1beta/analyticsadmin-gen.go @@ -2489,8 +2489,7 @@ type GoogleAnalyticsAdminV1betaProperty struct { // PropertyType: Immutable. The property type for this Property // resource. When creating a property, if the type is // "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be - // implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be - // created with the Google Analytics Admin API. + // implied. // // Possible values: // "PROPERTY_TYPE_UNSPECIFIED" - Unknown or unspecified property type diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 5f5ff52d7c0..aa3243d4799 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1095,7 +1095,7 @@ } } }, - "revision": "20230911", + "revision": "20230925", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -2256,7 +2256,7 @@ "description": "List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following values: * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a blocklist. * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions act as an allowlist. * SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this case, these exemptions act as an allowlist, in addition to the already allowlisted system apps. Supported on Android 14 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14." }, "showWorkContactsInPersonalProfile": { - "description": "Whether contacts stored in the work profile can be shown in personal profile contact searches and incoming calls.", + "description": "Whether personal apps can access contacts stored in the work profile.See also exemptions_to_show_work_contacts_in_personal_profile.", "enum": [ "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIED", "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED", @@ -2264,9 +2264,9 @@ "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM" ], "enumDescriptions": [ - "Unspecified. Defaults to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED.", - "Prevents work profile contacts from appearing in personal profile contact searches and incoming calls", - "Default. Allows work profile contacts to appear in personal profile contact searches and incoming calls", + "Unspecified. Defaults to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. When this is set, exemptions_to_show_work_contacts_in_personal_profile must not be set.", + "Prevents personal apps from accessing work profile contacts and looking up work contacts. When this is set, personal apps specified in exemptions_to_show_work_contacts_in_personal_profile are allowlisted and can access work profile contacts directly. Supported on Android 7.0 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 7.0.", + "Default. Allows apps in the personal profile to access work profile contacts including contact searches and incoming calls. When this is set, personal apps specified in exemptions_to_show_work_contacts_in_personal_profile are blocklisted and can not access work profile contacts directly. Supported on Android 7.0 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 7.0.", "Prevents most personal apps from accessing work profile contacts including contact searches and incoming calls, except for the OEM default Dialer, Messages, and Contacts apps. Neither user-configured Dialer, Messages, and Contacts apps, nor any other system or play installed apps, will be able to query work contacts directly. When this is set, personal apps specified in exemptions_to_show_work_contacts_in_personal_profile are allowlisted and can access work profile contacts. Supported on Android 14 and above. If this is set on a device with Android version less than 14, the behaviour falls back to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED and a nonComplianceDetail with API_LEVEL is reported." ], "type": "string" @@ -4642,6 +4642,7 @@ "FACE", "IRIS", "BIOMETRICS", + "SHORTCUTS", "ALL_FEATURES" ], "enumDescriptions": [ @@ -4655,6 +4656,7 @@ "Disable face authentication on secure keyguard screens.", "Disable iris authentication on secure keyguard screens.", "Disable all biometric authentication on secure keyguard screens.", + "Disable all shortcuts on secure keyguard screen on Android 14 and above.", "Disable all current and future keyguard customizations." ], "type": "string" @@ -5231,7 +5233,7 @@ "type": "object" }, "SigninDetail": { - "description": "A resource containing sign in details for an enterprise.", + "description": "A resource containing sign in details for an enterprise. Use enterprises to manage SigninDetails for a given enterprise. For an enterprise, we can have any number of SigninDetails that is uniquely identified by combination of the following three fields (signin_url, allow_personal_usage, token_tag). One cannot create two SigninDetails with the same (signin_url, allow_personal_usage, token_tag). (token_tag is an optional field) Patch: The operation updates the current list of SigninDetails with the new list of SigninDetails. If the stored SigninDetail configuration is passed, it returns the same signin_enrollment_token and qr_code. If we pass multiple identical SigninDetail configurations that are not stored, it will store the first one amongst those SigninDetail configurations and if the configuration already exists we cannot request it more than once in a particular patch API call, otherwise it will give a duplicate key error and the whole operation will fail. If we remove certain SigninDetail configuration from the request then it will get removed from the storage. And then we can request for another signin_enrollment_token and qr_code for the same SigninDetail configuration.", "id": "SigninDetail", "properties": { "allowPersonalUsage": { @@ -5259,6 +5261,10 @@ "signinUrl": { "description": "Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The sign-in endpoint should finish authentication flow with a URL in the form of https://enterprise.google.com/android/enroll?et= for a successful login, or https://enterprise.google.com/android/enroll/invalid for a failed login.", "type": "string" + }, + "tokenTag": { + "description": "An EMM-specified tag to distinguish between instances of SigninDetail.", + "type": "string" } }, "type": "object" diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index b52a699d43f..cca2a244c28 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -1927,19 +1927,30 @@ type CrossProfilePolicies struct { // is less than 14. ExemptionsToShowWorkContactsInPersonalProfile *PackageNameList `json:"exemptionsToShowWorkContactsInPersonalProfile,omitempty"` - // ShowWorkContactsInPersonalProfile: Whether contacts stored in the - // work profile can be shown in personal profile contact searches and - // incoming calls. + // ShowWorkContactsInPersonalProfile: Whether personal apps can access + // contacts stored in the work profile.See also + // exemptions_to_show_work_contacts_in_personal_profile. // // Possible values: // "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIED" - Unspecified. - // Defaults to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. - // "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED" - Prevents work - // profile contacts from appearing in personal profile contact searches - // and incoming calls + // Defaults to SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. When this + // is set, exemptions_to_show_work_contacts_in_personal_profile must not + // be set. + // "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED" - Prevents + // personal apps from accessing work profile contacts and looking up + // work contacts. When this is set, personal apps specified in + // exemptions_to_show_work_contacts_in_personal_profile are allowlisted + // and can access work profile contacts directly. Supported on Android + // 7.0 and above. A nonComplianceDetail with API_LEVEL is reported if + // the Android version is less than 7.0. // "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED" - Default. Allows - // work profile contacts to appear in personal profile contact searches - // and incoming calls + // apps in the personal profile to access work profile contacts + // including contact searches and incoming calls. When this is set, + // personal apps specified in + // exemptions_to_show_work_contacts_in_personal_profile are blocklisted + // and can not access work profile contacts directly. Supported on + // Android 7.0 and above. A nonComplianceDetail with API_LEVEL is + // reported if the Android version is less than 7.0. // "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM" - // Prevents most personal apps from accessing work profile contacts // including contact searches and incoming calls, except for the OEM @@ -5430,6 +5441,8 @@ type Policy struct { // "IRIS" - Disable iris authentication on secure keyguard screens. // "BIOMETRICS" - Disable all biometric authentication on secure // keyguard screens. + // "SHORTCUTS" - Disable all shortcuts on secure keyguard screen on + // Android 14 and above. // "ALL_FEATURES" - Disable all current and future keyguard // customizations. KeyguardDisabledFeatures []string `json:"keyguardDisabledFeatures,omitempty"` @@ -6165,7 +6178,24 @@ func (s *SetupAction) MarshalJSON() ([]byte, error) { } // SigninDetail: A resource containing sign in details for an -// enterprise. +// enterprise. Use enterprises to manage SigninDetails for a given +// enterprise. For an enterprise, we can have any number of +// SigninDetails that is uniquely identified by combination of the +// following three fields (signin_url, allow_personal_usage, token_tag). +// One cannot create two SigninDetails with the same (signin_url, +// allow_personal_usage, token_tag). (token_tag is an optional field) +// Patch: The operation updates the current list of SigninDetails with +// the new list of SigninDetails. If the stored SigninDetail +// configuration is passed, it returns the same signin_enrollment_token +// and qr_code. If we pass multiple identical SigninDetail +// configurations that are not stored, it will store the first one +// amongst those SigninDetail configurations and if the configuration +// already exists we cannot request it more than once in a particular +// patch API call, otherwise it will give a duplicate key error and the +// whole operation will fail. If we remove certain SigninDetail +// configuration from the request then it will get removed from the +// storage. And then we can request for another signin_enrollment_token +// and qr_code for the same SigninDetail configuration. type SigninDetail struct { // AllowPersonalUsage: Controls whether personal usage is allowed on a // device provisioned with this enrollment token.For company-owned @@ -6204,6 +6234,10 @@ type SigninDetail struct { // failed login. SigninUrl string `json:"signinUrl,omitempty"` + // TokenTag: An EMM-specified tag to distinguish between instances of + // SigninDetail. + TokenTag string `json:"tokenTag,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowPersonalUsage") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index 30d8c84d600..8eed5b840b3 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -18,6 +18,13 @@ "description": "A service to modify your BigQuery flat-rate reservations.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/bigquery/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.me-central2.rep.googleapis.com/", + "location": "me-central2" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -824,7 +831,7 @@ } } }, - "revision": "20230720", + "revision": "20230928", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 2199a957c6e..4a5770b33a5 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -957,7 +957,7 @@ } } }, - "revision": "20230921", + "revision": "20230928", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1712,7 +1712,7 @@ "type": "array" }, "persistValues": { - "description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/chat/api/guides/message-formats/cards) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.", + "description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/chat/api/guides/v1/messages/create#create) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.", "type": "boolean" } }, @@ -1835,7 +1835,7 @@ }, "fixedFooter": { "$ref": "GoogleAppsCardV1CardFixedFooter", - "description": "The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/message-formats/cards)." + "description": "The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/v1/messages/create#create)." }, "header": { "$ref": "GoogleAppsCardV1CardHeader", @@ -1889,7 +1889,7 @@ "type": "object" }, "GoogleAppsCardV1CardFixedFooter": { - "description": "A persistent (sticky) footer that that appears at the bottom of the card. For an example in Google Chat apps, see [Card footer](https://developers.google.com/chat/ui/widgets/card-fixed-footer). Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/message-formats/cards).", + "description": "A persistent (sticky) footer that that appears at the bottom of the card. For an example in Google Chat apps, see [Card footer](https://developers.google.com/chat/ui/widgets/card-fixed-footer). Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/v1/messages/create#create).", "id": "GoogleAppsCardV1CardFixedFooter", "properties": { "primaryButton": { @@ -2089,7 +2089,7 @@ "description": "A switch widget that a user can click to change its state and trigger an action." }, "text": { - "description": "Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "topLabel": { @@ -2370,7 +2370,7 @@ "type": "boolean" }, "header": { - "description": "Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "uncollapsibleWidgetsCount": { @@ -2591,7 +2591,7 @@ "type": "object" }, "GoogleAppsCardV1TextParagraph": { - "description": "A paragraph of text that supports formatting. For an example in Google Chat apps, see [Text paragraph](https://developers.google.com/chat/ui/widgets/text-paragraph). For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards##card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "A paragraph of text that supports formatting. For an example in Google Chat apps, see [Text paragraph](https://developers.google.com/chat/ui/widgets/text-paragraph). For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "id": "GoogleAppsCardV1TextParagraph", "properties": { "text": { @@ -2659,7 +2659,7 @@ }, "textParagraph": { "$ref": "GoogleAppsCardV1TextParagraph", - "description": "Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). For example, the following JSON creates a bolded text: ``` \"textParagraph\": { \"text\": \" *bold text*\" } ```" + "description": "Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). For example, the following JSON creates a bolded text: ``` \"textParagraph\": { \"text\": \" *bold text*\" } ```" } }, "type": "object" @@ -2847,7 +2847,7 @@ "id": "KeyValue", "properties": { "bottomLabel": { - "description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "button": { @@ -2855,7 +2855,7 @@ "description": "A button that can be clicked to trigger an action." }, "content": { - "description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "contentMultiline": { @@ -2941,7 +2941,7 @@ "description": "The `onclick` action. Only the top label, bottom label, and content region are clickable." }, "topLabel": { - "description": "The text of the top label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "The text of the top label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" } }, @@ -3213,7 +3213,7 @@ "description": "If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [space](https://developers.google.com/chat/api/reference/rest/v1/spaces) `name`." }, "text": { - "description": "Plain-text body of the message. The first link to an image, video, or web page generates a [preview chip](https://developers.google.com/chat/how-tos/preview-links). You can also [@mention a Google Chat user](https://developers.google.com/chat/format-messages#messages-@mention), or everyone in the space. To learn about creating text messages, see [Create a text message](https://developers.google.com/chat/api/guides/message-formats/text).", + "description": "Plain-text body of the message. The first link to an image, video, or web page generates a [preview chip](https://developers.google.com/chat/how-tos/preview-links). You can also [@mention a Google Chat user](https://developers.google.com/chat/format-messages#messages-@mention), or everyone in the space. To learn about creating text messages, see [Send a text message](https://developers.google.com/chat/api/guides/v1/messages/create#create-text-messages).", "type": "string" }, "thread": { @@ -3297,7 +3297,7 @@ "id": "Section", "properties": { "header": { - "description": "The header of the section. Formatted text is supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "The header of the section. Formatted text is supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "widgets": { @@ -3565,7 +3565,7 @@ "type": "object" }, "TextParagraph": { - "description": "A paragraph of text. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", + "description": "A paragraph of text. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "id": "TextParagraph", "properties": { "text": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 6036949ead1..1f722e1098f 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1659,7 +1659,7 @@ type GoogleAppsCardV1Action struct { // action is being processed, set `LoadIndicator` // (https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) // to `NONE`. For card messages - // (https://developers.google.com/chat/api/guides/message-formats/cards) + // (https://developers.google.com/chat/api/guides/v1/messages/create#create) // in Chat apps, you must also set the action's `ResponseType` // (https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#responsetype) // to `UPDATE_MESSAGE` and use the same `card_id` @@ -1934,7 +1934,7 @@ type GoogleAppsCardV1Card struct { // Add-ons and Chat apps. For Chat apps, you can use fixed footers in // dialogs (https://developers.google.com/chat/how-tos/dialogs), but not // card messages - // (https://developers.google.com/chat/api/guides/message-formats/cards). + // (https://developers.google.com/chat/api/guides/v1/messages/create#create). FixedFooter *GoogleAppsCardV1CardFixedFooter `json:"fixedFooter,omitempty"` // Header: The header of the card. A header usually contains a leading @@ -2033,7 +2033,7 @@ func (s *GoogleAppsCardV1CardAction) MarshalJSON() ([]byte, error) { // Add-ons and Chat apps. For Chat apps, you can use fixed footers in // dialogs (https://developers.google.com/chat/how-tos/dialogs), but not // card messages -// (https://developers.google.com/chat/api/guides/message-formats/cards). +// (https://developers.google.com/chat/api/guides/v1/messages/create#create). type GoogleAppsCardV1CardFixedFooter struct { // PrimaryButton: The primary button of the fixed footer. The button // must be a text button with text and color set. @@ -2339,7 +2339,7 @@ type GoogleAppsCardV1DecoratedText struct { // Text: Required. The primary text. Supports simple formatting. For // more information about formatting text, see Formatting text in Google // Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) + // (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Text string `json:"text,omitempty"` @@ -2857,7 +2857,7 @@ type GoogleAppsCardV1Section struct { // Header: Text that appears at the top of a section. Supports simple // HTML formatted text. For more information about formatting text, see // Formatting text in Google Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) + // (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Header string `json:"header,omitempty"` @@ -3293,7 +3293,7 @@ func (s *GoogleAppsCardV1TextInput) MarshalJSON() ([]byte, error) { // (https://developers.google.com/chat/ui/widgets/text-paragraph). For // more information about formatting text, see Formatting text in Google // Chat apps -// (https://developers.google.com/chat/api/guides/message-formats/cards##card-formatting) +// (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). type GoogleAppsCardV1TextParagraph struct { @@ -3427,7 +3427,7 @@ type GoogleAppsCardV1Widget struct { // TextParagraph: Displays a text paragraph. Supports simple HTML // formatted text. For more information about formatting text, see // Formatting text in Google Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) + // (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). // For example, the following JSON creates a bolded text: ``` @@ -3709,7 +3709,7 @@ type KeyValue struct { // BottomLabel: The text of the bottom label. Formatted text supported. // For more information about formatting text, see Formatting text in // Google Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). BottomLabel string `json:"bottomLabel,omitempty"` @@ -3720,7 +3720,7 @@ type KeyValue struct { // Content: The text of the content. Formatted text supported and always // required. For more information about formatting text, see Formatting // text in Google Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Content string `json:"content,omitempty"` @@ -3775,7 +3775,7 @@ type KeyValue struct { // TopLabel: The text of the top label. Formatted text supported. For // more information about formatting text, see Formatting text in Google // Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). TopLabel string `json:"topLabel,omitempty"` @@ -4221,8 +4221,8 @@ type Message struct { // also @mention a Google Chat user // (https://developers.google.com/chat/format-messages#messages-@mention), // or everyone in the space. To learn about creating text messages, see - // Create a text message - // (https://developers.google.com/chat/api/guides/message-formats/text). + // Send a text message + // (https://developers.google.com/chat/api/guides/v1/messages/create#create-text-messages). Text string `json:"text,omitempty"` // Thread: The thread the message belongs to. For example usage, see @@ -4407,7 +4407,7 @@ type Section struct { // Header: The header of the section. Formatted text is supported. For // more information about formatting text, see Formatting text in Google // Chat apps - // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Header string `json:"header,omitempty"` @@ -4882,7 +4882,7 @@ func (s *TextButton) MarshalJSON() ([]byte, error) { // TextParagraph: A paragraph of text. Formatted text supported. For // more information about formatting text, see Formatting text in Google // Chat apps -// (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) +// (https://developers.google.com/chat/format-messages#card-formatting) // and Formatting text in Google Workspace Add-ons // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). type TextParagraph struct { diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index 8471a0e7d50..61794e7382e 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -557,48 +557,9 @@ } } }, - "revision": "20230926", + "revision": "20231001", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { - "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": { - "id": "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle", - "properties": { - "deprecatedInFavorOf": { - "description": "In the event that this policy was deprecated in favor of another policy, the fully qualified namespace(s) of the new policies as they will show in PolicyAPI.", - "items": { - "type": "string" - }, - "type": "array" - }, - "description": { - "description": "Description about current life cycle.", - "type": "string" - }, - "endSupport": { - "$ref": "GoogleTypeDate", - "description": "End supporting date for current policy." - }, - "policyApiLifecycleStage": { - "description": "Indicate current life cycle stage of the policy API.", - "enum": [ - "API_UNSPECIFIED", - "API_PREVIEW", - "API_DEVELOPMENT", - "API_CURRENT", - "API_DEPRECATED" - ], - "enumDescriptions": [ - "unspecified.", - "Policy is not working yet, but giving developers heads up on format. This stage can transfer to API_DEVELOPEMNT or API_CURRENT.", - "Policy can change format in backward incompatible way (breaking change). This stage can transfer to API_CURRENT or API_DEPRECATED. This could be used for policies launched only to TTs or launched to selected customers for emergency usage.", - "Policy in official format. Policy can change format in backward compatible way (non-breaking change). Example: this policy can introduce a new field, which is considered non-breaking change, when field masks are properly utilized. This stage can transfer to API_DEPRECATED.", - "Please stop using this policy. This policy is deprecated and may/will be removed in the future. Most likely a new policy was introduced to replace this one." - ], - "type": "string" - } - }, - "type": "object" - }, "GoogleChromePolicyVersionsV1AdditionalTargetKeyName": { "description": "Additional key names that will be used to identify the target of the policy value.", "id": "GoogleChromePolicyVersionsV1AdditionalTargetKeyName", @@ -963,6 +924,46 @@ }, "type": "object" }, + "GoogleChromePolicyVersionsV1PolicyApiLifecycle": { + "description": "Lifecycle information.", + "id": "GoogleChromePolicyVersionsV1PolicyApiLifecycle", + "properties": { + "deprecatedInFavorOf": { + "description": "In the event that this policy was deprecated in favor of another policy, the fully qualified namespace(s) of the new policies as they will show in PolicyAPI. Could only be set if policy_api_lifecycle_stage is API_DEPRECATED.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "Description about current life cycle.", + "type": "string" + }, + "endSupport": { + "$ref": "GoogleTypeDate", + "description": "End supporting date for current policy. Attempting to modify a policy after its end support date will result in a Bad Request (400 error). Could only be set if policy_api_lifecycle_stage is API_DEPRECATED." + }, + "policyApiLifecycleStage": { + "description": "Indicates current life cycle stage of the policy API.", + "enum": [ + "API_UNSPECIFIED", + "API_PREVIEW", + "API_DEVELOPMENT", + "API_CURRENT", + "API_DEPRECATED" + ], + "enumDescriptions": [ + "Policy Api Lifecycle is Unspecified.", + "Policy is not working yet, but giving developers heads up on format. This stage can transfer to API_DEVELOPEMNT or API_CURRENT.", + "Policy can change format in backward incompatible way (breaking change). This stage can transfer to API_CURRENT or API_DEPRECATED. This could be used for policies launched only to TTs or launched to selected customers for emergency usage.", + "Policy in official format. Policy can change format in backward compatible way (non-breaking change). Example: this policy can introduce a new field, which is considered non-breaking change, when field masks are properly utilized. This stage can transfer to API_DEPRECATED.", + "Please stop using this policy. This policy is deprecated and may/will be removed in the future. Most likely a new policy was introduced to replace this one." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleChromePolicyVersionsV1PolicyModificationError": { "description": "Error information for a modification request of a specific policy on a specific target.", "id": "GoogleChromePolicyVersionsV1PolicyModificationError", @@ -1077,7 +1078,7 @@ "type": "array" }, "policyApiLifecycle": { - "$ref": "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle", + "$ref": "GoogleChromePolicyVersionsV1PolicyApiLifecycle", "description": "Output only. Current lifecycle information.", "readOnly": true }, diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index 0b9fefd0fc9..f2cd2e79895 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -242,65 +242,6 @@ type MediaService struct { s *Service } -type ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle struct { - // DeprecatedInFavorOf: In the event that this policy was deprecated in - // favor of another policy, the fully qualified namespace(s) of the new - // policies as they will show in PolicyAPI. - DeprecatedInFavorOf []string `json:"deprecatedInFavorOf,omitempty"` - - // Description: Description about current life cycle. - Description string `json:"description,omitempty"` - - // EndSupport: End supporting date for current policy. - EndSupport *GoogleTypeDate `json:"endSupport,omitempty"` - - // PolicyApiLifecycleStage: Indicate current life cycle stage of the - // policy API. - // - // Possible values: - // "API_UNSPECIFIED" - unspecified. - // "API_PREVIEW" - Policy is not working yet, but giving developers - // heads up on format. This stage can transfer to API_DEVELOPEMNT or - // API_CURRENT. - // "API_DEVELOPMENT" - Policy can change format in backward - // incompatible way (breaking change). This stage can transfer to - // API_CURRENT or API_DEPRECATED. This could be used for policies - // launched only to TTs or launched to selected customers for emergency - // usage. - // "API_CURRENT" - Policy in official format. Policy can change format - // in backward compatible way (non-breaking change). Example: this - // policy can introduce a new field, which is considered non-breaking - // change, when field masks are properly utilized. This stage can - // transfer to API_DEPRECATED. - // "API_DEPRECATED" - Please stop using this policy. This policy is - // deprecated and may/will be removed in the future. Most likely a new - // policy was introduced to replace this one. - PolicyApiLifecycleStage string `json:"policyApiLifecycleStage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DeprecatedInFavorOf") - // 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. "DeprecatedInFavorOf") 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 *ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle) MarshalJSON() ([]byte, error) { - type NoMethod ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleChromePolicyVersionsV1AdditionalTargetKeyName: Additional key // names that will be used to identify the target of the policy value. type GoogleChromePolicyVersionsV1AdditionalTargetKeyName struct { @@ -1045,6 +986,71 @@ func (s *GoogleChromePolicyVersionsV1NumericRangeConstraint) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromePolicyVersionsV1PolicyApiLifecycle: Lifecycle +// information. +type GoogleChromePolicyVersionsV1PolicyApiLifecycle struct { + // DeprecatedInFavorOf: In the event that this policy was deprecated in + // favor of another policy, the fully qualified namespace(s) of the new + // policies as they will show in PolicyAPI. Could only be set if + // policy_api_lifecycle_stage is API_DEPRECATED. + DeprecatedInFavorOf []string `json:"deprecatedInFavorOf,omitempty"` + + // Description: Description about current life cycle. + Description string `json:"description,omitempty"` + + // EndSupport: End supporting date for current policy. Attempting to + // modify a policy after its end support date will result in a Bad + // Request (400 error). Could only be set if policy_api_lifecycle_stage + // is API_DEPRECATED. + EndSupport *GoogleTypeDate `json:"endSupport,omitempty"` + + // PolicyApiLifecycleStage: Indicates current life cycle stage of the + // policy API. + // + // Possible values: + // "API_UNSPECIFIED" - Policy Api Lifecycle is Unspecified. + // "API_PREVIEW" - Policy is not working yet, but giving developers + // heads up on format. This stage can transfer to API_DEVELOPEMNT or + // API_CURRENT. + // "API_DEVELOPMENT" - Policy can change format in backward + // incompatible way (breaking change). This stage can transfer to + // API_CURRENT or API_DEPRECATED. This could be used for policies + // launched only to TTs or launched to selected customers for emergency + // usage. + // "API_CURRENT" - Policy in official format. Policy can change format + // in backward compatible way (non-breaking change). Example: this + // policy can introduce a new field, which is considered non-breaking + // change, when field masks are properly utilized. This stage can + // transfer to API_DEPRECATED. + // "API_DEPRECATED" - Please stop using this policy. This policy is + // deprecated and may/will be removed in the future. Most likely a new + // policy was introduced to replace this one. + PolicyApiLifecycleStage string `json:"policyApiLifecycleStage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeprecatedInFavorOf") + // 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. "DeprecatedInFavorOf") 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 *GoogleChromePolicyVersionsV1PolicyApiLifecycle) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromePolicyVersionsV1PolicyApiLifecycle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromePolicyVersionsV1PolicyModificationError: Error // information for a modification request of a specific policy on a // specific target. @@ -1189,7 +1195,7 @@ type GoogleChromePolicyVersionsV1PolicySchema struct { Notices []*GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription `json:"notices,omitempty"` // PolicyApiLifecycle: Output only. Current lifecycle information. - PolicyApiLifecycle *ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle `json:"policyApiLifecycle,omitempty"` + PolicyApiLifecycle *GoogleChromePolicyVersionsV1PolicyApiLifecycle `json:"policyApiLifecycle,omitempty"` // PolicyDescription: Output only. Description about the policy schema // for user consumption. diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index d58925a8c5d..266dc54175f 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -2174,7 +2174,7 @@ ] }, "requestreview": { - "description": "Requests a review of free listings in a specific region. This method is only available to selected merchants.", + "description": "Requests a review of free listings in a specific region.", "flatPath": "{merchantId}/freelistingsprogram/requestreview", "httpMethod": "POST", "id": "content.freelistingsprogram.requestreview", @@ -2560,7 +2560,7 @@ ] }, "setomnichannelexperience": { - "description": "Sets the omnichannel experience for the specified country.", + "description": "Sets the omnichannel experience for the specified country. Only supported for merchants whose POS data provider is trusted to enable the corresponding experience. For more context, see these help articles [about LFP](https://support.google.com/merchants/answer/7676652) and [how to get started](https://support.google.com/merchants/answer/7676578) with it.", "flatPath": "{merchantId}/liasettings/{accountId}/setomnichannelexperience", "httpMethod": "POST", "id": "content.liasettings.setomnichannelexperience", @@ -6461,7 +6461,7 @@ ] }, "requestreview": { - "description": "Requests a review of Shopping ads in a specific region. This method is only available to selected merchants.", + "description": "Requests a review of Shopping ads in a specific region.", "flatPath": "{merchantId}/shoppingadsprogram/requestreview", "httpMethod": "POST", "id": "content.shoppingadsprogram.requestreview", @@ -6488,7 +6488,7 @@ } } }, - "revision": "20230914", + "revision": "20231001", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 18f2dbab9be..c46fd91b751 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -31256,7 +31256,7 @@ type FreelistingsprogramRequestreviewCall struct { } // Requestreview: Requests a review of free listings in a specific -// region. This method is only available to selected merchants. +// region. // // - merchantId: The ID of the account. func (r *FreelistingsprogramService) Requestreview(merchantId int64, requestreviewfreelistingsrequest *RequestReviewFreeListingsRequest) *FreelistingsprogramRequestreviewCall { @@ -31332,7 +31332,7 @@ func (c *FreelistingsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) } return nil // { - // "description": "Requests a review of free listings in a specific region. This method is only available to selected merchants.", + // "description": "Requests a review of free listings in a specific region.", // "flatPath": "{merchantId}/freelistingsprogram/requestreview", // "httpMethod": "POST", // "id": "content.freelistingsprogram.requestreview", @@ -33053,7 +33053,12 @@ type LiasettingsSetomnichannelexperienceCall struct { } // Setomnichannelexperience: Sets the omnichannel experience for the -// specified country. +// specified country. Only supported for merchants whose POS data +// provider is trusted to enable the corresponding experience. For more +// context, see these help articles about LFP +// (https://support.google.com/merchants/answer/7676652) and how to get +// started (https://support.google.com/merchants/answer/7676578) with +// it. // // - accountId: The ID of the account for which to retrieve accessible // Business Profiles. @@ -33180,7 +33185,7 @@ func (c *LiasettingsSetomnichannelexperienceCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Sets the omnichannel experience for the specified country.", + // "description": "Sets the omnichannel experience for the specified country. Only supported for merchants whose POS data provider is trusted to enable the corresponding experience. For more context, see these help articles [about LFP](https://support.google.com/merchants/answer/7676652) and [how to get started](https://support.google.com/merchants/answer/7676578) with it.", // "flatPath": "{merchantId}/liasettings/{accountId}/setomnichannelexperience", // "httpMethod": "POST", // "id": "content.liasettings.setomnichannelexperience", @@ -50693,7 +50698,7 @@ type ShoppingadsprogramRequestreviewCall struct { } // Requestreview: Requests a review of Shopping ads in a specific -// region. This method is only available to selected merchants. +// region. // // - merchantId: The ID of the account. func (r *ShoppingadsprogramService) Requestreview(merchantId int64, requestreviewshoppingadsrequest *RequestReviewShoppingAdsRequest) *ShoppingadsprogramRequestreviewCall { @@ -50769,7 +50774,7 @@ func (c *ShoppingadsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) e } return nil // { - // "description": "Requests a review of Shopping ads in a specific region. This method is only available to selected merchants.", + // "description": "Requests a review of Shopping ads in a specific region.", // "flatPath": "{merchantId}/shoppingadsprogram/requestreview", // "httpMethod": "POST", // "id": "content.shoppingadsprogram.requestreview", diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index a83c3f3b615..bfbfd16bad8 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -4750,7 +4750,7 @@ } } }, - "revision": "20230907", + "revision": "20231001", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -5957,6 +5957,13 @@ "$ref": "Kubernetes", "description": "Kubernetes resources associated with the finding." }, + "loadBalancers": { + "description": "The load balancers associated with the finding.", + "items": { + "$ref": "LoadBalancer" + }, + "type": "array" + }, "mitreAttack": { "$ref": "MitreAttack", "description": "MITRE ATT\u0026CK tactics and techniques related to this finding. See: https://attack.mitre.org" @@ -6024,6 +6031,10 @@ "description": "Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.", "readOnly": true }, + "securityPosture": { + "$ref": "SecurityPosture", + "description": "The security posture associated with the finding." + }, "severity": { "description": "The severity of the finding. This field is managed by the source that writes the finding.", "enum": [ @@ -7126,6 +7137,13 @@ }, "type": "array" }, + "objects": { + "description": "Kubernetes objects related to the finding.", + "items": { + "$ref": "Object" + }, + "type": "array" + }, "pods": { "description": "Kubernetes [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) associated with the finding. This field contains Pod records for each container that is owned by a Pod.", "items": { @@ -7496,6 +7514,17 @@ }, "type": "object" }, + "LoadBalancer": { + "description": "Contains information related to the load balancer associated with the finding.", + "id": "LoadBalancer", + "properties": { + "name": { + "description": "The name of the load balancer associated with the finding.", + "type": "string" + } + }, + "type": "object" + }, "MemoryHashSignature": { "description": "A signature corresponding to memory page hashes.", "id": "MemoryHashSignature", @@ -7831,6 +7860,29 @@ }, "type": "object" }, + "Object": { + "description": "Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.", + "id": "Object", + "properties": { + "group": { + "description": "Kubernetes object group, such as \"policy.k8s.io/v1\".", + "type": "string" + }, + "kind": { + "description": "Kubernetes object kind, such as “Namespace”.", + "type": "string" + }, + "name": { + "description": "Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.", + "type": "string" + }, + "ns": { + "description": "Kubernetes object namespace. Must be a valid DNS label. Named \"ns\" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.", + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -8226,6 +8278,33 @@ }, "type": "object" }, + "SecurityPosture": { + "description": "Represents a posture that is deployed on Google Cloud by the Security Command Center Posture Management service. A posture contains one or more policy sets. A policy set is a group of policies that enforce a set of security rules on Google Cloud.", + "id": "SecurityPosture", + "properties": { + "changedPolicy": { + "description": "The name of the policy that has been updated, for example, `projects/{project_id}/policies/{constraint_name}`.", + "type": "string" + }, + "name": { + "description": "Name of the posture, for example, `organizations/{org_id}/locations/{location}/postures/{posture_name}`.", + "type": "string" + }, + "postureDeployment": { + "description": "The name of the posture deployment, for example, `projects/{project_id}/posturedeployments/{posture_deployment_id}`.", + "type": "string" + }, + "postureDeploymentResource": { + "description": "The project, folder, or organization on which the posture is deployed, for example, `projects/{project_id}`.", + "type": "string" + }, + "revisionId": { + "description": "The version of the posture, for example, `c7cfa2a8`.", + "type": "string" + } + }, + "type": "object" + }, "ServiceAccountDelegationInfo": { "description": "Identity delegation history of an authenticated service account.", "id": "ServiceAccountDelegationInfo", @@ -8335,7 +8414,7 @@ "id": "Source", "properties": { "canonicalName": { - "description": "The canonical name of the finding. It's either \"organizations/{organization_id}/sources/{source_id}\", \"folders/{folder_id}/sources/{source_id}\" or \"projects/{project_number}/sources/{source_id}\", depending on the closest CRM ancestor of the resource associated with the finding.", + "description": "The canonical name of the finding source. It's either \"organizations/{organization_id}/sources/{source_id}\", \"folders/{folder_id}/sources/{source_id}\", or \"projects/{project_number}/sources/{source_id}\", depending on the closest CRM ancestor of the resource associated with the finding.", "type": "string" }, "description": { diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 591dc3b7f79..18ba9f2143e 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -2616,6 +2616,9 @@ type Finding struct { // Kubernetes: Kubernetes resources associated with the finding. Kubernetes *Kubernetes `json:"kubernetes,omitempty"` + // LoadBalancers: The load balancers associated with the finding. + LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"` + // MitreAttack: MITRE ATT&CK tactics and techniques related to this // finding. See: https://attack.mitre.org MitreAttack *MitreAttack `json:"mitreAttack,omitempty"` @@ -2688,6 +2691,9 @@ type Finding struct { // SecurityMarks resource that belongs to the finding. SecurityMarks *SecurityMarks `json:"securityMarks,omitempty"` + // SecurityPosture: The security posture associated with the finding. + SecurityPosture *SecurityPosture `json:"securityPosture,omitempty"` + // Severity: The severity of the finding. This field is managed by the // source that writes the finding. // @@ -4605,6 +4611,9 @@ type Kubernetes struct { // information. Nodes []*Node `json:"nodes,omitempty"` + // Objects: Kubernetes objects related to the finding. + Objects []*Object `json:"objects,omitempty"` + // Pods: Kubernetes Pods // (https://cloud.google.com/kubernetes-engine/docs/concepts/pod) // associated with the finding. This field contains Pod records for each @@ -5306,6 +5315,35 @@ func (s *ListValuedResourcesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LoadBalancer: Contains information related to the load balancer +// associated with the finding. +type LoadBalancer struct { + // Name: The name of the load balancer associated with the finding. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *LoadBalancer) MarshalJSON() ([]byte, error) { + type NoMethod LoadBalancer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MemoryHashSignature: A signature corresponding to memory page hashes. type MemoryHashSignature struct { // BinaryFamily: The binary family. @@ -5620,6 +5658,48 @@ func (s *NotificationConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Object: Kubernetes object related to the finding, uniquely identified +// by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, +// Binding, or AccessReview. +type Object struct { + // Group: Kubernetes object group, such as "policy.k8s.io/v1". + Group string `json:"group,omitempty"` + + // Kind: Kubernetes object kind, such as “Namespace”. + Kind string `json:"kind,omitempty"` + + // Name: Kubernetes object name. For details see + // https://kubernetes.io/docs/concepts/overview/working-with-objects/names/. + Name string `json:"name,omitempty"` + + // Ns: Kubernetes object namespace. Must be a valid DNS label. Named + // "ns" to avoid collision with C++ namespace keyword. For details see + // https://kubernetes.io/docs/tasks/administer-cluster/namespaces/. + Ns string `json:"ns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Group") 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. "Group") 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 *Object) MarshalJSON() ([]byte, error) { + type NoMethod Object + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -6325,6 +6405,53 @@ func (s *SecurityMarks) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SecurityPosture: Represents a posture that is deployed on Google +// Cloud by the Security Command Center Posture Management service. A +// posture contains one or more policy sets. A policy set is a group of +// policies that enforce a set of security rules on Google Cloud. +type SecurityPosture struct { + // ChangedPolicy: The name of the policy that has been updated, for + // example, `projects/{project_id}/policies/{constraint_name}`. + ChangedPolicy string `json:"changedPolicy,omitempty"` + + // Name: Name of the posture, for example, + // `organizations/{org_id}/locations/{location}/postures/{posture_name}`. + Name string `json:"name,omitempty"` + + // PostureDeployment: The name of the posture deployment, for example, + // `projects/{project_id}/posturedeployments/{posture_deployment_id}`. + PostureDeployment string `json:"postureDeployment,omitempty"` + + // PostureDeploymentResource: The project, folder, or organization on + // which the posture is deployed, for example, `projects/{project_id}`. + PostureDeploymentResource string `json:"postureDeploymentResource,omitempty"` + + // RevisionId: The version of the posture, for example, `c7cfa2a8`. + RevisionId string `json:"revisionId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChangedPolicy") 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. "ChangedPolicy") 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 *SecurityPosture) MarshalJSON() ([]byte, error) { + type NoMethod SecurityPosture + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceAccountDelegationInfo: Identity delegation history of an // authenticated service account. type ServiceAccountDelegationInfo struct { @@ -6521,9 +6648,9 @@ func (s *Simulation) MarshalJSON() ([]byte, error) { // a container of findings that come from the same scanner, logger, // monitor, and other tools. type Source struct { - // CanonicalName: The canonical name of the finding. It's either + // CanonicalName: The canonical name of the finding source. It's either // "organizations/{organization_id}/sources/{source_id}", - // "folders/{folder_id}/sources/{source_id}" or + // "folders/{folder_id}/sources/{source_id}", or // "projects/{project_number}/sources/{source_id}", depending on the // closest CRM ancestor of the resource associated with the finding. CanonicalName string `json:"canonicalName,omitempty"` diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index dc8afa96a2b..f988ad93ec0 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20230907", + "revision": "20231001", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1822,6 +1822,13 @@ "$ref": "Kubernetes", "description": "Kubernetes resources associated with the finding." }, + "loadBalancers": { + "description": "The load balancers associated with the finding.", + "items": { + "$ref": "LoadBalancer" + }, + "type": "array" + }, "mitreAttack": { "$ref": "MitreAttack", "description": "MITRE ATT\u0026CK tactics and techniques related to this finding. See: https://attack.mitre.org" @@ -1889,6 +1896,10 @@ "description": "Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.", "readOnly": true }, + "securityPosture": { + "$ref": "SecurityPosture", + "description": "The security posture associated with the finding." + }, "severity": { "description": "The severity of the finding. This field is managed by the source that writes the finding.", "enum": [ @@ -3046,6 +3057,13 @@ }, "type": "array" }, + "objects": { + "description": "Kubernetes objects related to the finding.", + "items": { + "$ref": "Object" + }, + "type": "array" + }, "pods": { "description": "Kubernetes [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) associated with the finding. This field contains Pod records for each container that is owned by a Pod.", "items": { @@ -3199,6 +3217,17 @@ }, "type": "object" }, + "LoadBalancer": { + "description": "Contains information related to the load balancer associated with the finding.", + "id": "LoadBalancer", + "properties": { + "name": { + "description": "The name of the load balancer associated with the finding.", + "type": "string" + } + }, + "type": "object" + }, "MemoryHashSignature": { "description": "A signature corresponding to memory page hashes.", "id": "MemoryHashSignature", @@ -3506,6 +3535,29 @@ }, "type": "object" }, + "Object": { + "description": "Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.", + "id": "Object", + "properties": { + "group": { + "description": "Kubernetes object group, such as \"policy.k8s.io/v1\".", + "type": "string" + }, + "kind": { + "description": "Kubernetes object kind, such as “Namespace”.", + "type": "string" + }, + "name": { + "description": "Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.", + "type": "string" + }, + "ns": { + "description": "Kubernetes object namespace. Must be a valid DNS label. Named \"ns\" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.", + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -3795,6 +3847,33 @@ }, "type": "object" }, + "SecurityPosture": { + "description": "Represents a posture that is deployed on Google Cloud by the Security Command Center Posture Management service. A posture contains one or more policy sets. A policy set is a group of policies that enforce a set of security rules on Google Cloud.", + "id": "SecurityPosture", + "properties": { + "changedPolicy": { + "description": "The name of the policy that has been updated, for example, `projects/{project_id}/policies/{constraint_name}`.", + "type": "string" + }, + "name": { + "description": "Name of the posture, for example, `organizations/{org_id}/locations/{location}/postures/{posture_name}`.", + "type": "string" + }, + "postureDeployment": { + "description": "The name of the posture deployment, for example, `projects/{project_id}/posturedeployments/{posture_deployment_id}`.", + "type": "string" + }, + "postureDeploymentResource": { + "description": "The project, folder, or organization on which the posture is deployed, for example, `projects/{project_id}`.", + "type": "string" + }, + "revisionId": { + "description": "The version of the posture, for example, `c7cfa2a8`.", + "type": "string" + } + }, + "type": "object" + }, "ServiceAccountDelegationInfo": { "description": "Identity delegation history of an authenticated service account.", "id": "ServiceAccountDelegationInfo", diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 9f95d97baa8..68a5ee00f9d 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -1644,6 +1644,9 @@ type Finding struct { // Kubernetes: Kubernetes resources associated with the finding. Kubernetes *Kubernetes `json:"kubernetes,omitempty"` + // LoadBalancers: The load balancers associated with the finding. + LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"` + // MitreAttack: MITRE ATT&CK tactics and techniques related to this // finding. See: https://attack.mitre.org MitreAttack *MitreAttack `json:"mitreAttack,omitempty"` @@ -1716,6 +1719,9 @@ type Finding struct { // SecurityMarks resource that belongs to the finding. SecurityMarks *SecurityMarks `json:"securityMarks,omitempty"` + // SecurityPosture: The security posture associated with the finding. + SecurityPosture *SecurityPosture `json:"securityPosture,omitempty"` + // Severity: The severity of the finding. This field is managed by the // source that writes the finding. // @@ -3645,6 +3651,9 @@ type Kubernetes struct { // information. Nodes []*Node `json:"nodes,omitempty"` + // Objects: Kubernetes objects related to the finding. + Objects []*Object `json:"objects,omitempty"` + // Pods: Kubernetes Pods // (https://cloud.google.com/kubernetes-engine/docs/concepts/pod) // associated with the finding. This field contains Pod records for each @@ -3909,6 +3918,35 @@ func (s *ListSourcesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LoadBalancer: Contains information related to the load balancer +// associated with the finding. +type LoadBalancer struct { + // Name: The name of the load balancer associated with the finding. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *LoadBalancer) MarshalJSON() ([]byte, error) { + type NoMethod LoadBalancer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MemoryHashSignature: A signature corresponding to memory page hashes. type MemoryHashSignature struct { // BinaryFamily: The binary family. @@ -4167,6 +4205,48 @@ func (s *NodePool) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Object: Kubernetes object related to the finding, uniquely identified +// by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, +// Binding, or AccessReview. +type Object struct { + // Group: Kubernetes object group, such as "policy.k8s.io/v1". + Group string `json:"group,omitempty"` + + // Kind: Kubernetes object kind, such as “Namespace”. + Kind string `json:"kind,omitempty"` + + // Name: Kubernetes object name. For details see + // https://kubernetes.io/docs/concepts/overview/working-with-objects/names/. + Name string `json:"name,omitempty"` + + // Ns: Kubernetes object namespace. Must be a valid DNS label. Named + // "ns" to avoid collision with C++ namespace keyword. For details see + // https://kubernetes.io/docs/tasks/administer-cluster/namespaces/. + Ns string `json:"ns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Group") 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. "Group") 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 *Object) MarshalJSON() ([]byte, error) { + type NoMethod Object + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -4702,6 +4782,53 @@ func (s *SecurityMarks) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SecurityPosture: Represents a posture that is deployed on Google +// Cloud by the Security Command Center Posture Management service. A +// posture contains one or more policy sets. A policy set is a group of +// policies that enforce a set of security rules on Google Cloud. +type SecurityPosture struct { + // ChangedPolicy: The name of the policy that has been updated, for + // example, `projects/{project_id}/policies/{constraint_name}`. + ChangedPolicy string `json:"changedPolicy,omitempty"` + + // Name: Name of the posture, for example, + // `organizations/{org_id}/locations/{location}/postures/{posture_name}`. + Name string `json:"name,omitempty"` + + // PostureDeployment: The name of the posture deployment, for example, + // `projects/{project_id}/posturedeployments/{posture_deployment_id}`. + PostureDeployment string `json:"postureDeployment,omitempty"` + + // PostureDeploymentResource: The project, folder, or organization on + // which the posture is deployed, for example, `projects/{project_id}`. + PostureDeploymentResource string `json:"postureDeploymentResource,omitempty"` + + // RevisionId: The version of the posture, for example, `c7cfa2a8`. + RevisionId string `json:"revisionId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChangedPolicy") 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. "ChangedPolicy") 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 *SecurityPosture) MarshalJSON() ([]byte, error) { + type NoMethod SecurityPosture + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceAccountDelegationInfo: Identity delegation history of an // authenticated service account. type ServiceAccountDelegationInfo struct { diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index d0922b88d34..5f13fc148b9 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -157,31 +157,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getOnboardingState": { - "description": "Retrieve the OnboardingState of a resource.", - "flatPath": "v1beta2/folders/{foldersId}/onboardingState", - "httpMethod": "GET", - "id": "securitycenter.folders.getOnboardingState", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState", - "location": "path", - "pattern": "^folders/[^/]+/onboardingState$", - "required": true, - "type": "string" - } - }, - "path": "v1beta2/{+name}", - "response": { - "$ref": "OnboardingState" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "getRapidVulnerabilityDetectionSettings": { "description": "Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.", "flatPath": "v1beta2/folders/{foldersId}/rapidVulnerabilityDetectionSettings", @@ -741,31 +716,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getOnboardingState": { - "description": "Retrieve the OnboardingState of a resource.", - "flatPath": "v1beta2/organizations/{organizationsId}/onboardingState", - "httpMethod": "GET", - "id": "securitycenter.organizations.getOnboardingState", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState", - "location": "path", - "pattern": "^organizations/[^/]+/onboardingState$", - "required": true, - "type": "string" - } - }, - "path": "v1beta2/{+name}", - "response": { - "$ref": "OnboardingState" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "getRapidVulnerabilityDetectionSettings": { "description": "Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.", "flatPath": "v1beta2/organizations/{organizationsId}/rapidVulnerabilityDetectionSettings", @@ -1350,31 +1300,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getOnboardingState": { - "description": "Retrieve the OnboardingState of a resource.", - "flatPath": "v1beta2/projects/{projectsId}/onboardingState", - "httpMethod": "GET", - "id": "securitycenter.projects.getOnboardingState", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState", - "location": "path", - "pattern": "^projects/[^/]+/onboardingState$", - "required": true, - "type": "string" - } - }, - "path": "v1beta2/{+name}", - "response": { - "$ref": "OnboardingState" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "getRapidVulnerabilityDetectionSettings": { "description": "Get the RapidVulnerabilityDetectionSettings resource. In the returned settings response, a missing field only indicates that it was not explicitly set, so no assumption should be made about these fields. In other words, GetRapidVulnerabilityDetectionSettings does not calculate the effective service settings for the resource, which accounts for inherited settings and defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this purpose.", "flatPath": "v1beta2/projects/{projectsId}/rapidVulnerabilityDetectionSettings", @@ -1981,7 +1906,7 @@ } } }, - "revision": "20230907", + "revision": "20231001", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2914,6 +2839,13 @@ "$ref": "Kubernetes", "description": "Kubernetes resources associated with the finding." }, + "loadBalancers": { + "description": "The load balancers associated with the finding.", + "items": { + "$ref": "LoadBalancer" + }, + "type": "array" + }, "mitreAttack": { "$ref": "MitreAttack", "description": "MITRE ATT\u0026CK tactics and techniques related to this finding. See: https://attack.mitre.org" @@ -2981,6 +2913,10 @@ "description": "Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.", "readOnly": true }, + "securityPosture": { + "$ref": "SecurityPosture", + "description": "The security posture associated with the finding." + }, "severity": { "description": "The severity of the finding. This field is managed by the source that writes the finding.", "enum": [ @@ -3906,6 +3842,13 @@ }, "type": "array" }, + "objects": { + "description": "Kubernetes objects related to the finding.", + "items": { + "$ref": "Object" + }, + "type": "array" + }, "pods": { "description": "Kubernetes [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) associated with the finding. This field contains Pod records for each container that is owned by a Pod.", "items": { @@ -3938,6 +3881,17 @@ }, "type": "object" }, + "LoadBalancer": { + "description": "Contains information related to the load balancer associated with the finding.", + "id": "LoadBalancer", + "properties": { + "name": { + "description": "The name of the load balancer associated with the finding.", + "type": "string" + } + }, + "type": "object" + }, "MemoryHashSignature": { "description": "A signature corresponding to memory page hashes.", "id": "MemoryHashSignature", @@ -4245,26 +4199,24 @@ }, "type": "object" }, - "OnboardingState": { - "description": "Resource capturing onboarding information for a given CRM resource.", - "id": "OnboardingState", + "Object": { + "description": "Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.", + "id": "Object", "properties": { + "group": { + "description": "Kubernetes object group, such as \"policy.k8s.io/v1\".", + "type": "string" + }, + "kind": { + "description": "Kubernetes object kind, such as “Namespace”.", + "type": "string" + }, "name": { - "description": "The resource name of the OnboardingState. Format: organizations/{organization}/onboardingState Format: folders/{folder}/onboardingState Format: projects/{project}/onboardingState", + "description": "Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.", "type": "string" }, - "onboardingLevel": { - "description": "Describes the level a given organization, folder, or project is onboarded with SCC. If the resource wasn't onboarded, NOT_FOUND would have been thrown.", - "enum": [ - "ONBOARDING_LEVEL_UNSPECIFIED", - "ONBOARDING_LEVEL_PROJECT", - "ONBOARDING_LEVEL_ORGANIZATION" - ], - "enumDescriptions": [ - "Unused.", - "This resource is onboarded at the project level. Only possible for projects.", - "This resource is onboarded at the organization level. Possible for organizations, folders, and projects." - ], + "ns": { + "description": "Kubernetes object namespace. Must be a valid DNS label. Named \"ns\" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.", "type": "string" } }, @@ -4549,6 +4501,33 @@ }, "type": "object" }, + "SecurityPosture": { + "description": "Represents a posture that is deployed on Google Cloud by the Security Command Center Posture Management service. A posture contains one or more policy sets. A policy set is a group of policies that enforce a set of security rules on Google Cloud.", + "id": "SecurityPosture", + "properties": { + "changedPolicy": { + "description": "The name of the policy that has been updated, for example, `projects/{project_id}/policies/{constraint_name}`.", + "type": "string" + }, + "name": { + "description": "Name of the posture, for example, `organizations/{org_id}/locations/{location}/postures/{posture_name}`.", + "type": "string" + }, + "postureDeployment": { + "description": "The name of the posture deployment, for example, `projects/{project_id}/posturedeployments/{posture_deployment_id}`.", + "type": "string" + }, + "postureDeploymentResource": { + "description": "The project, folder, or organization on which the posture is deployed, for example, `projects/{project_id}`.", + "type": "string" + }, + "revisionId": { + "description": "The version of the posture, for example, `c7cfa2a8`.", + "type": "string" + } + }, + "type": "object" + }, "ServiceAccountDelegationInfo": { "description": "Identity delegation history of an authenticated service account.", "id": "ServiceAccountDelegationInfo", diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index cf7132a939e..2d4388e98b1 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -1788,6 +1788,9 @@ type Finding struct { // Kubernetes: Kubernetes resources associated with the finding. Kubernetes *Kubernetes `json:"kubernetes,omitempty"` + // LoadBalancers: The load balancers associated with the finding. + LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"` + // MitreAttack: MITRE ATT&CK tactics and techniques related to this // finding. See: https://attack.mitre.org MitreAttack *MitreAttack `json:"mitreAttack,omitempty"` @@ -1860,6 +1863,9 @@ type Finding struct { // SecurityMarks resource that belongs to the finding. SecurityMarks *SecurityMarks `json:"securityMarks,omitempty"` + // SecurityPosture: The security posture associated with the finding. + SecurityPosture *SecurityPosture `json:"securityPosture,omitempty"` + // Severity: The severity of the finding. This field is managed by the // source that writes the finding. // @@ -3303,6 +3309,9 @@ type Kubernetes struct { // information. Nodes []*Node `json:"nodes,omitempty"` + // Objects: Kubernetes objects related to the finding. + Objects []*Object `json:"objects,omitempty"` + // Pods: Kubernetes Pods // (https://cloud.google.com/kubernetes-engine/docs/concepts/pod) // associated with the finding. This field contains Pod records for each @@ -3371,6 +3380,35 @@ func (s *Label) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LoadBalancer: Contains information related to the load balancer +// associated with the finding. +type LoadBalancer struct { + // Name: The name of the load balancer associated with the finding. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *LoadBalancer) MarshalJSON() ([]byte, error) { + type NoMethod LoadBalancer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MemoryHashSignature: A signature corresponding to memory page hashes. type MemoryHashSignature struct { // BinaryFamily: The binary family. @@ -3629,33 +3667,26 @@ func (s *NodePool) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// OnboardingState: Resource capturing onboarding information for a -// given CRM resource. -type OnboardingState struct { - // Name: The resource name of the OnboardingState. Format: - // organizations/{organization}/onboardingState Format: - // folders/{folder}/onboardingState Format: - // projects/{project}/onboardingState - Name string `json:"name,omitempty"` +// Object: Kubernetes object related to the finding, uniquely identified +// by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, +// Binding, or AccessReview. +type Object struct { + // Group: Kubernetes object group, such as "policy.k8s.io/v1". + Group string `json:"group,omitempty"` - // OnboardingLevel: Describes the level a given organization, folder, or - // project is onboarded with SCC. If the resource wasn't onboarded, - // NOT_FOUND would have been thrown. - // - // Possible values: - // "ONBOARDING_LEVEL_UNSPECIFIED" - Unused. - // "ONBOARDING_LEVEL_PROJECT" - This resource is onboarded at the - // project level. Only possible for projects. - // "ONBOARDING_LEVEL_ORGANIZATION" - This resource is onboarded at the - // organization level. Possible for organizations, folders, and - // projects. - OnboardingLevel string `json:"onboardingLevel,omitempty"` + // Kind: Kubernetes object kind, such as “Namespace”. + Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Name: Kubernetes object name. For details see + // https://kubernetes.io/docs/concepts/overview/working-with-objects/names/. + Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // Ns: Kubernetes object namespace. Must be a valid DNS label. Named + // "ns" to avoid collision with C++ namespace keyword. For details see + // https://kubernetes.io/docs/tasks/administer-cluster/namespaces/. + Ns string `json:"ns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Group") 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 @@ -3663,7 +3694,7 @@ type OnboardingState struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API + // NullFields is a list of field names (e.g. "Group") 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 @@ -3672,8 +3703,8 @@ type OnboardingState struct { NullFields []string `json:"-"` } -func (s *OnboardingState) MarshalJSON() ([]byte, error) { - type NoMethod OnboardingState +func (s *Object) MarshalJSON() ([]byte, error) { + type NoMethod Object raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -4109,6 +4140,53 @@ func (s *SecurityMarks) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SecurityPosture: Represents a posture that is deployed on Google +// Cloud by the Security Command Center Posture Management service. A +// posture contains one or more policy sets. A policy set is a group of +// policies that enforce a set of security rules on Google Cloud. +type SecurityPosture struct { + // ChangedPolicy: The name of the policy that has been updated, for + // example, `projects/{project_id}/policies/{constraint_name}`. + ChangedPolicy string `json:"changedPolicy,omitempty"` + + // Name: Name of the posture, for example, + // `organizations/{org_id}/locations/{location}/postures/{posture_name}`. + Name string `json:"name,omitempty"` + + // PostureDeployment: The name of the posture deployment, for example, + // `projects/{project_id}/posturedeployments/{posture_deployment_id}`. + PostureDeployment string `json:"postureDeployment,omitempty"` + + // PostureDeploymentResource: The project, folder, or organization on + // which the posture is deployed, for example, `projects/{project_id}`. + PostureDeploymentResource string `json:"postureDeploymentResource,omitempty"` + + // RevisionId: The version of the posture, for example, `c7cfa2a8`. + RevisionId string `json:"revisionId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChangedPolicy") 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. "ChangedPolicy") 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 *SecurityPosture) MarshalJSON() ([]byte, error) { + type NoMethod SecurityPosture + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceAccountDelegationInfo: Identity delegation history of an // authenticated service account. type ServiceAccountDelegationInfo struct { @@ -4729,155 +4807,6 @@ func (c *FoldersGetEventThreatDetectionSettingsCall) Do(opts ...googleapi.CallOp } -// method id "securitycenter.folders.getOnboardingState": - -type FoldersGetOnboardingStateCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetOnboardingState: Retrieve the OnboardingState of a resource. -// -// - name: The name of the OnboardingState to retrieve. Formats: * -// organizations/{organization}/onboardingState * -// folders/{folder}/onboardingState * -// projects/{project}/onboardingState. -func (r *FoldersService) GetOnboardingState(name string) *FoldersGetOnboardingStateCall { - c := &FoldersGetOnboardingStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - 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 *FoldersGetOnboardingStateCall) Fields(s ...googleapi.Field) *FoldersGetOnboardingStateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *FoldersGetOnboardingStateCall) IfNoneMatch(entityTag string) *FoldersGetOnboardingStateCall { - c.ifNoneMatch_ = entityTag - 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 *FoldersGetOnboardingStateCall) Context(ctx context.Context) *FoldersGetOnboardingStateCall { - 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 *FoldersGetOnboardingStateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FoldersGetOnboardingStateCall) 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()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "securitycenter.folders.getOnboardingState" call. -// Exactly one of *OnboardingState or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OnboardingState.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 *FoldersGetOnboardingStateCall) Do(opts ...googleapi.CallOption) (*OnboardingState, 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, gensupport.WrapError(&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, gensupport.WrapError(err) - } - ret := &OnboardingState{ - 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": "Retrieve the OnboardingState of a resource.", - // "flatPath": "v1beta2/folders/{foldersId}/onboardingState", - // "httpMethod": "GET", - // "id": "securitycenter.folders.getOnboardingState", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState", - // "location": "path", - // "pattern": "^folders/[^/]+/onboardingState$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "OnboardingState" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "securitycenter.folders.getRapidVulnerabilityDetectionSettings": type FoldersGetRapidVulnerabilityDetectionSettingsCall struct { @@ -7880,155 +7809,6 @@ func (c *OrganizationsGetEventThreatDetectionSettingsCall) Do(opts ...googleapi. } -// method id "securitycenter.organizations.getOnboardingState": - -type OrganizationsGetOnboardingStateCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetOnboardingState: Retrieve the OnboardingState of a resource. -// -// - name: The name of the OnboardingState to retrieve. Formats: * -// organizations/{organization}/onboardingState * -// folders/{folder}/onboardingState * -// projects/{project}/onboardingState. -func (r *OrganizationsService) GetOnboardingState(name string) *OrganizationsGetOnboardingStateCall { - c := &OrganizationsGetOnboardingStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - 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 *OrganizationsGetOnboardingStateCall) Fields(s ...googleapi.Field) *OrganizationsGetOnboardingStateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsGetOnboardingStateCall) IfNoneMatch(entityTag string) *OrganizationsGetOnboardingStateCall { - c.ifNoneMatch_ = entityTag - 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 *OrganizationsGetOnboardingStateCall) Context(ctx context.Context) *OrganizationsGetOnboardingStateCall { - 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 *OrganizationsGetOnboardingStateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationsGetOnboardingStateCall) 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()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "securitycenter.organizations.getOnboardingState" call. -// Exactly one of *OnboardingState or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OnboardingState.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 *OrganizationsGetOnboardingStateCall) Do(opts ...googleapi.CallOption) (*OnboardingState, 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, gensupport.WrapError(&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, gensupport.WrapError(err) - } - ret := &OnboardingState{ - 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": "Retrieve the OnboardingState of a resource.", - // "flatPath": "v1beta2/organizations/{organizationsId}/onboardingState", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.getOnboardingState", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState", - // "location": "path", - // "pattern": "^organizations/[^/]+/onboardingState$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "OnboardingState" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "securitycenter.organizations.getRapidVulnerabilityDetectionSettings": type OrganizationsGetRapidVulnerabilityDetectionSettingsCall struct { @@ -11178,155 +10958,6 @@ func (c *ProjectsGetEventThreatDetectionSettingsCall) Do(opts ...googleapi.CallO } -// method id "securitycenter.projects.getOnboardingState": - -type ProjectsGetOnboardingStateCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetOnboardingState: Retrieve the OnboardingState of a resource. -// -// - name: The name of the OnboardingState to retrieve. Formats: * -// organizations/{organization}/onboardingState * -// folders/{folder}/onboardingState * -// projects/{project}/onboardingState. -func (r *ProjectsService) GetOnboardingState(name string) *ProjectsGetOnboardingStateCall { - c := &ProjectsGetOnboardingStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - 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 *ProjectsGetOnboardingStateCall) Fields(s ...googleapi.Field) *ProjectsGetOnboardingStateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsGetOnboardingStateCall) IfNoneMatch(entityTag string) *ProjectsGetOnboardingStateCall { - c.ifNoneMatch_ = entityTag - 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 *ProjectsGetOnboardingStateCall) Context(ctx context.Context) *ProjectsGetOnboardingStateCall { - 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 *ProjectsGetOnboardingStateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsGetOnboardingStateCall) 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()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "securitycenter.projects.getOnboardingState" call. -// Exactly one of *OnboardingState or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OnboardingState.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 *ProjectsGetOnboardingStateCall) Do(opts ...googleapi.CallOption) (*OnboardingState, 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, gensupport.WrapError(&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, gensupport.WrapError(err) - } - ret := &OnboardingState{ - 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": "Retrieve the OnboardingState of a resource.", - // "flatPath": "v1beta2/projects/{projectsId}/onboardingState", - // "httpMethod": "GET", - // "id": "securitycenter.projects.getOnboardingState", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the OnboardingState to retrieve. Formats: * organizations/{organization}/onboardingState * folders/{folder}/onboardingState * projects/{project}/onboardingState", - // "location": "path", - // "pattern": "^projects/[^/]+/onboardingState$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "OnboardingState" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "securitycenter.projects.getRapidVulnerabilityDetectionSettings": type ProjectsGetRapidVulnerabilityDetectionSettingsCall struct {