From f0ca9f2039365c44fe88ae162384b22867476a98 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 30 Jul 2024 07:08:41 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- appengine/v1/appengine-api.json | 20 +- appengine/v1/appengine-gen.go | 18 +- appengine/v1beta/appengine-api.json | 20 +- appengine/v1beta/appengine-gen.go | 18 +- artifactregistry/v1/artifactregistry-api.json | 4 +- artifactregistry/v1/artifactregistry-gen.go | 8 +- .../v1beta1/artifactregistry-api.json | 4 +- .../v1beta1/artifactregistry-gen.go | 8 +- .../v1beta2/artifactregistry-api.json | 4 +- .../v1beta2/artifactregistry-gen.go | 8 +- bigquery/v2/bigquery-api.json | 24 +- bigquery/v2/bigquery-gen.go | 18 +- chat/v1/chat-api.json | 18 +- chat/v1/chat-gen.go | 21 +- drive/v2/drive-api.json | 6 +- drive/v2/drive-gen.go | 8 +- drive/v3/drive-api.json | 8 +- drive/v3/drive-gen.go | 12 +- file/v1/file-api.json | 85 +- file/v1/file-gen.go | 124 -- file/v1beta1/file-api.json | 85 +- file/v1beta1/file-gen.go | 124 -- .../v1alpha/firebaseappdistribution-api.json | 219 +++- .../v1alpha/firebaseappdistribution-gen.go | 284 +++- .../accounts_v1beta/merchantapi-api.json | 56 +- .../accounts_v1beta/merchantapi-gen.go | 175 --- monitoring/v1/monitoring-api.json | 62 +- monitoring/v1/monitoring-gen.go | 47 +- monitoring/v3/monitoring-api.json | 10 +- monitoring/v3/monitoring-gen.go | 17 +- .../v1beta1/networksecurity-api.json | 539 +++++++- .../v1beta1/networksecurity-gen.go | 1161 +++++++++++++++++ walletobjects/v1/walletobjects-api.json | 9 +- walletobjects/v1/walletobjects-gen.go | 4 + workloadmanager/v1/workloadmanager-api.json | 72 +- workloadmanager/v1/workloadmanager-gen.go | 68 +- 36 files changed, 2589 insertions(+), 779 deletions(-) diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index 6c0782b8935..225390c1251 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -1718,7 +1718,7 @@ } } }, - "revision": "20240415", + "revision": "20240722", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3699,7 +3699,8 @@ "type": "object" }, "id": { - "description": "Relative name of the service within the application. Example: default.@OutputOnly", + "description": "Output only. Relative name of the service within the application. Example: default.@OutputOnly", + "readOnly": true, "type": "string" }, "labels": { @@ -3710,7 +3711,8 @@ "type": "object" }, "name": { - "description": "Full path to the Service resource in the API. Example: apps/myapp/services/default.@OutputOnly", + "description": "Output only. Full path to the Service resource in the API. Example: apps/myapp/services/default.@OutputOnly", + "readOnly": true, "type": "string" }, "networkSettings": { @@ -4026,7 +4028,8 @@ "type": "string" }, "createdBy": { - "description": "Email address of the user who created this version.@OutputOnly", + "description": "Output only. Email address of the user who created this version.@OutputOnly", + "readOnly": true, "type": "string" }, "defaultExpiration": { @@ -4039,8 +4042,9 @@ "description": "Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set." }, "diskUsageBytes": { - "description": "Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly", + "description": "Output only. Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly", "format": "int64", + "readOnly": true, "type": "string" }, "endpointsApiService": { @@ -4145,7 +4149,8 @@ "description": "A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Manually scaled versions are sometimes referred to as \"backends\"." }, "name": { - "description": "Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly", + "description": "Output only. Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly", + "readOnly": true, "type": "string" }, "network": { @@ -4203,7 +4208,8 @@ "type": "boolean" }, "versionUrl": { - "description": "Serving URL for this version. Example: \"https://myversion-dot-myservice-dot-myapp.appspot.com\"@OutputOnly", + "description": "Output only. Serving URL for this version. Example: \"https://myversion-dot-myservice-dot-myapp.appspot.com\"@OutputOnly", + "readOnly": true, "type": "string" }, "vm": { diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index 4c18985bfb8..2464c563617 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -2853,8 +2853,8 @@ type Service struct { // this field won't be provided by default and can be requested by setting the // IncludeExtraData field in GetServiceRequest GeneratedCustomerMetadata googleapi.RawMessage `json:"generatedCustomerMetadata,omitempty"` - // Id: Relative name of the service within the application. Example: - // default.@OutputOnly + // Id: Output only. Relative name of the service within the application. + // Example: default.@OutputOnly Id string `json:"id,omitempty"` // Labels: A set of labels to apply to this service. Labels are key/value pairs // that describe the service and all resources that belong to it (e.g., @@ -2867,7 +2867,7 @@ type Service struct { // must start with a lowercase letter or an international character. Each // service can have at most 32 labels. Labels map[string]string `json:"labels,omitempty"` - // Name: Full path to the Service resource in the API. Example: + // Name: Output only. Full path to the Service resource in the API. Example: // apps/myapp/services/default.@OutputOnly Name string `json:"name,omitempty"` // NetworkSettings: Ingress settings for this service. Will apply to all @@ -3265,7 +3265,8 @@ type Version struct { BuildEnvVariables map[string]string `json:"buildEnvVariables,omitempty"` // CreateTime: Time that this version was created.@OutputOnly CreateTime string `json:"createTime,omitempty"` - // CreatedBy: Email address of the user who created this version.@OutputOnly + // CreatedBy: Output only. Email address of the user who created this + // version.@OutputOnly CreatedBy string `json:"createdBy,omitempty"` // DefaultExpiration: Duration that static files should be cached by web // proxies and browsers. Only applicable if the corresponding @@ -3277,8 +3278,9 @@ type Version struct { // Deployment: Code and application artifacts that make up this version.Only // returned in GET requests if view=FULL is set. Deployment *Deployment `json:"deployment,omitempty"` - // DiskUsageBytes: Total size in bytes of all the files that are included in - // this version and currently hosted on the App Engine disk.@OutputOnly + // DiskUsageBytes: Output only. Total size in bytes of all the files that are + // included in this version and currently hosted on the App Engine + // disk.@OutputOnly DiskUsageBytes int64 `json:"diskUsageBytes,omitempty,string"` // EndpointsApiService: Cloud Endpoints configuration.If endpoints_api_service // is set, the Cloud Endpoints Extensible Service Proxy will be provided to @@ -3349,7 +3351,7 @@ type Version struct { // to perform complex initialization and rely on the state of its memory over // time. Manually scaled versions are sometimes referred to as "backends". ManualScaling *ManualScaling `json:"manualScaling,omitempty"` - // Name: Full path to the Version resource in the API. Example: + // Name: Output only. Full path to the Version resource in the API. Example: // apps/myapp/services/default/versions/v1.@OutputOnly Name string `json:"name,omitempty"` // Network: Extra network settings. Only applicable in the App Engine flexible @@ -3394,7 +3396,7 @@ type Version struct { // Threadsafe: Whether multiple requests can be dispatched to this version at // once. Threadsafe bool `json:"threadsafe,omitempty"` - // VersionUrl: Serving URL for this version. Example: + // VersionUrl: Output only. Serving URL for this version. Example: // "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly VersionUrl string `json:"versionUrl,omitempty"` // Vm: Whether to deploy this version in a container on a virtual machine. diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index c18f2b71f69..b25dc2e75f7 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -1918,7 +1918,7 @@ } } }, - "revision": "20240415", + "revision": "20240722", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3948,7 +3948,8 @@ "type": "object" }, "id": { - "description": "Relative name of the service within the application. Example: default.@OutputOnly", + "description": "Output only. Relative name of the service within the application. Example: default.@OutputOnly", + "readOnly": true, "type": "string" }, "labels": { @@ -3959,7 +3960,8 @@ "type": "object" }, "name": { - "description": "Full path to the Service resource in the API. Example: apps/myapp/services/default.@OutputOnly", + "description": "Output only. Full path to the Service resource in the API. Example: apps/myapp/services/default.@OutputOnly", + "readOnly": true, "type": "string" }, "networkSettings": { @@ -4273,7 +4275,8 @@ "type": "string" }, "createdBy": { - "description": "Email address of the user who created this version.@OutputOnly", + "description": "Output only. Email address of the user who created this version.@OutputOnly", + "readOnly": true, "type": "string" }, "defaultExpiration": { @@ -4286,8 +4289,9 @@ "description": "Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set." }, "diskUsageBytes": { - "description": "Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly", + "description": "Output only. Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly", "format": "int64", + "readOnly": true, "type": "string" }, "endpointsApiService": { @@ -4392,7 +4396,8 @@ "description": "A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Manually scaled versions are sometimes referred to as \"backends\"." }, "name": { - "description": "Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly", + "description": "Output only. Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly", + "readOnly": true, "type": "string" }, "network": { @@ -4450,7 +4455,8 @@ "type": "boolean" }, "versionUrl": { - "description": "Serving URL for this version. Example: \"https://myversion-dot-myservice-dot-myapp.appspot.com\"@OutputOnly", + "description": "Output only. Serving URL for this version. Example: \"https://myversion-dot-myservice-dot-myapp.appspot.com\"@OutputOnly", + "readOnly": true, "type": "string" }, "vm": { diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 235392e73a1..6a86d77808d 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -2944,8 +2944,8 @@ type Service struct { // this field won't be provided by default and can be requested by setting the // IncludeExtraData field in GetServiceRequest GeneratedCustomerMetadata googleapi.RawMessage `json:"generatedCustomerMetadata,omitempty"` - // Id: Relative name of the service within the application. Example: - // default.@OutputOnly + // Id: Output only. Relative name of the service within the application. + // Example: default.@OutputOnly Id string `json:"id,omitempty"` // Labels: A set of labels to apply to this service. Labels are key/value pairs // that describe the service and all resources that belong to it (e.g., @@ -2958,7 +2958,7 @@ type Service struct { // must start with a lowercase letter or an international character. Each // service can have at most 32 labels. Labels map[string]string `json:"labels,omitempty"` - // Name: Full path to the Service resource in the API. Example: + // Name: Output only. Full path to the Service resource in the API. Example: // apps/myapp/services/default.@OutputOnly Name string `json:"name,omitempty"` // NetworkSettings: Ingress settings for this service. Will apply to all @@ -3355,7 +3355,8 @@ type Version struct { BuildEnvVariables map[string]string `json:"buildEnvVariables,omitempty"` // CreateTime: Time that this version was created.@OutputOnly CreateTime string `json:"createTime,omitempty"` - // CreatedBy: Email address of the user who created this version.@OutputOnly + // CreatedBy: Output only. Email address of the user who created this + // version.@OutputOnly CreatedBy string `json:"createdBy,omitempty"` // DefaultExpiration: Duration that static files should be cached by web // proxies and browsers. Only applicable if the corresponding @@ -3367,8 +3368,9 @@ type Version struct { // Deployment: Code and application artifacts that make up this version.Only // returned in GET requests if view=FULL is set. Deployment *Deployment `json:"deployment,omitempty"` - // DiskUsageBytes: Total size in bytes of all the files that are included in - // this version and currently hosted on the App Engine disk.@OutputOnly + // DiskUsageBytes: Output only. Total size in bytes of all the files that are + // included in this version and currently hosted on the App Engine + // disk.@OutputOnly DiskUsageBytes int64 `json:"diskUsageBytes,omitempty,string"` // EndpointsApiService: Cloud Endpoints configuration.If endpoints_api_service // is set, the Cloud Endpoints Extensible Service Proxy will be provided to @@ -3439,7 +3441,7 @@ type Version struct { // to perform complex initialization and rely on the state of its memory over // time. Manually scaled versions are sometimes referred to as "backends". ManualScaling *ManualScaling `json:"manualScaling,omitempty"` - // Name: Full path to the Version resource in the API. Example: + // Name: Output only. Full path to the Version resource in the API. Example: // apps/myapp/services/default/versions/v1.@OutputOnly Name string `json:"name,omitempty"` // Network: Extra network settings. Only applicable in the App Engine flexible @@ -3484,7 +3486,7 @@ type Version struct { // Threadsafe: Whether multiple requests can be dispatched to this version at // once. Threadsafe bool `json:"threadsafe,omitempty"` - // VersionUrl: Serving URL for this version. Example: + // VersionUrl: Output only. Serving URL for this version. Example: // "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly VersionUrl string `json:"versionUrl,omitempty"` // Vm: Whether to deploy this version in a container on a virtual machine. diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index 3924a36838c..360e8598038 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -1637,7 +1637,7 @@ ], "parameters": { "filter": { - "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`. * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/a%2Fb%2F*\"` --\u003e tags with an ID starting with \"a/b/\". * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/*%2Fb%2Fc\"` --\u003e tags with an ID ending with \"/b/c\". * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/*%2Fb%2F*\"` --\u003e tags with an ID containing \"/b/\".", + "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`.", "location": "query", "type": "string" }, @@ -2013,7 +2013,7 @@ } } }, - "revision": "20240717", + "revision": "20240724", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 30a8a0c1723..aa257792729 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -8055,13 +8055,7 @@ func (r *ProjectsLocationsRepositoriesPackagesTagsService) List(parent string) * // eligible for filtering are: * `version` An example of using a filter: * // `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ // versions/1.0" --> Tags that are applied to the version `1.0` in package -// `pkg1`. * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/a%2Fb%2F*" --> tags with an ID starting with "a/b/". * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/*%2Fb%2Fc" --> tags with an ID ending with "/b/c". * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/*%2Fb%2F*" --> tags with an ID containing "/b/". +// `pkg1`. func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Filter(filter string) *ProjectsLocationsRepositoriesPackagesTagsListCall { c.urlParams_.Set("filter", filter) return c diff --git a/artifactregistry/v1beta1/artifactregistry-api.json b/artifactregistry/v1beta1/artifactregistry-api.json index fcfd64e8ad1..0045ba8eee0 100644 --- a/artifactregistry/v1beta1/artifactregistry-api.json +++ b/artifactregistry/v1beta1/artifactregistry-api.json @@ -937,7 +937,7 @@ ], "parameters": { "filter": { - "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`. * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/a%2Fb%2F*\"` --\u003e tags with an ID starting with \"a/b/\". * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/*%2Fb%2Fc\"` --\u003e tags with an ID ending with \"/b/c\". * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/*%2Fb%2F*\"` --\u003e tags with an ID containing \"/b/\".", + "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`.", "location": "query", "type": "string" }, @@ -1146,7 +1146,7 @@ } } }, - "revision": "20240528", + "revision": "20240724", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index 5a8cc9c1579..1c92fcf4974 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -3324,13 +3324,7 @@ func (r *ProjectsLocationsRepositoriesPackagesTagsService) List(parent string) * // eligible for filtering are: * `version` An example of using a filter: * // `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ // versions/1.0" --> Tags that are applied to the version `1.0` in package -// `pkg1`. * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/a%2Fb%2F*" --> tags with an ID starting with "a/b/". * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/*%2Fb%2Fc" --> tags with an ID ending with "/b/c". * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/*%2Fb%2F*" --> tags with an ID containing "/b/". +// `pkg1`. func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Filter(filter string) *ProjectsLocationsRepositoriesPackagesTagsListCall { c.urlParams_.Set("filter", filter) return c diff --git a/artifactregistry/v1beta2/artifactregistry-api.json b/artifactregistry/v1beta2/artifactregistry-api.json index da244946b99..504abc748cd 100644 --- a/artifactregistry/v1beta2/artifactregistry-api.json +++ b/artifactregistry/v1beta2/artifactregistry-api.json @@ -1133,7 +1133,7 @@ ], "parameters": { "filter": { - "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`. * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/a%2Fb%2F*\"` --\u003e tags with an ID starting with \"a/b/\". * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/*%2Fb%2Fc\"` --\u003e tags with an ID ending with \"/b/c\". * `name=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/*%2Fb%2F*\"` --\u003e tags with an ID containing \"/b/\".", + "description": "An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `version` An example of using a filter: * `version=\"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0\"` --\u003e Tags that are applied to the version `1.0` in package `pkg1`.", "location": "query", "type": "string" }, @@ -1414,7 +1414,7 @@ } } }, - "revision": "20240717", + "revision": "20240724", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index c8ec54bd7ab..e1081339043 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -4571,13 +4571,7 @@ func (r *ProjectsLocationsRepositoriesPackagesTagsService) List(parent string) * // eligible for filtering are: * `version` An example of using a filter: * // `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/ // versions/1.0" --> Tags that are applied to the version `1.0` in package -// `pkg1`. * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/a%2Fb%2F*" --> tags with an ID starting with "a/b/". * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/*%2Fb%2Fc" --> tags with an ID ending with "/b/c". * -// `name="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tag -// s/*%2Fb%2F*" --> tags with an ID containing "/b/". +// `pkg1`. func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) Filter(filter string) *ProjectsLocationsRepositoriesPackagesTagsListCall { c.urlParams_.Set("filter", filter) return c diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index ad8ffd27112..efb1cdd4051 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1935,7 +1935,7 @@ } } }, - "revision": "20240629", + "revision": "20240714", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -3100,7 +3100,7 @@ "id": "Dataset", "properties": { "access": { - "description": "Optional. An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;", + "description": "Optional. An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; If you patch a dataset, then this field is overwritten by the patched dataset's access field. To add entities, you must supply the entire existing access array in addition to any new entities that you want to add.", "items": { "description": "An object that defines dataset access for an entity.", "properties": { @@ -3296,7 +3296,8 @@ "type": "string" }, "tags": { - "description": "Output only. Tags for the Dataset.", + "deprecated": true, + "description": "Output only. Tags for the dataset. To provide tags as inputs, use the `resourceTags` field.", "items": { "description": "A global tag managed by Resource Manager. https://cloud.google.com/iam/docs/tags-access-control#definitions", "properties": { @@ -5506,6 +5507,23 @@ "description": "Output only. Statistics for data-masking. Present only for query and extract jobs.", "readOnly": true }, + "edition": { + "description": "Output only. Name of edition corresponding to the reservation for this job at the time of this update.", + "enum": [ + "RESERVATION_EDITION_UNSPECIFIED", + "STANDARD", + "ENTERPRISE", + "ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "Default value, which will be treated as ENTERPRISE.", + "Standard edition.", + "Enterprise edition.", + "Enterprise plus edition." + ], + "readOnly": true, + "type": "string" + }, "endTime": { "description": "Output only. End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state.", "format": "int64", diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index f7f76e03eb4..258a44bd538 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -1936,7 +1936,10 @@ type Dataset struct { // for the following entities: access.specialGroup: projectReaders; // access.role: READER; access.specialGroup: projectWriters; access.role: // WRITER; access.specialGroup: projectOwners; access.role: OWNER; - // access.userByEmail: [dataset creator email]; access.role: OWNER; + // access.userByEmail: [dataset creator email]; access.role: OWNER; If you + // patch a dataset, then this field is overwritten by the patched dataset's + // access field. To add entities, you must supply the entire existing access + // array in addition to any new entities that you want to add. Access []*DatasetAccess `json:"access,omitempty"` // CreationTime: Output only. The time when this dataset was created, in // milliseconds since the epoch. @@ -2079,7 +2082,8 @@ type Dataset struct { // "LOGICAL" - Billing for logical bytes. // "PHYSICAL" - Billing for physical bytes. StorageBillingModel string `json:"storageBillingModel,omitempty"` - // Tags: Output only. Tags for the Dataset. + // Tags: Output only. Tags for the dataset. To provide tags as inputs, use the + // `resourceTags` field. Tags []*DatasetTags `json:"tags,omitempty"` // Type: Output only. Same as `type` in `ListFormatDataset`. The type of the // dataset, one of: * DEFAULT - only accessible by owner and authorized @@ -5026,6 +5030,16 @@ type JobStatistics struct { // DataMaskingStatistics: Output only. Statistics for data-masking. Present // only for query and extract jobs. DataMaskingStatistics *DataMaskingStatistics `json:"dataMaskingStatistics,omitempty"` + // Edition: Output only. Name of edition corresponding to the reservation for + // this job at the time of this update. + // + // Possible values: + // "RESERVATION_EDITION_UNSPECIFIED" - Default value, which will be treated + // as ENTERPRISE. + // "STANDARD" - Standard edition. + // "ENTERPRISE" - Enterprise edition. + // "ENTERPRISE_PLUS" - Enterprise plus edition. + Edition string `json:"edition,omitempty"` // EndTime: Output only. End time of this job, in milliseconds since the epoch. // This field will be present whenever a job is in the DONE state. EndTime int64 `json:"endTime,omitempty,string"` diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 75c49a7aa21..4f2f9c18fdb 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -21,28 +21,28 @@ "description": "Private Service: https://www.googleapis.com/auth/chat.bot" }, "https://www.googleapis.com/auth/chat.delete": { - "description": "Delete conversations and spaces \u0026 remove access to associated files in Google Chat" + "description": "Delete conversations and spaces and remove access to associated files in Google Chat" }, "https://www.googleapis.com/auth/chat.import": { "description": "Import spaces, messages, and memberships into Google Chat." }, "https://www.googleapis.com/auth/chat.memberships": { - "description": "View, add, update, and remove members from conversations in Google Chat" + "description": "See, add, update, and remove members from conversations and spaces in Google Chat" }, "https://www.googleapis.com/auth/chat.memberships.app": { - "description": "Add and remove itself from conversations in Google Chat" + "description": "Add and remove itself from conversations and spaces in Google Chat" }, "https://www.googleapis.com/auth/chat.memberships.readonly": { "description": "View members in Google Chat conversations." }, "https://www.googleapis.com/auth/chat.messages": { - "description": "View, compose, send, update, and delete messages, and add, view, and delete reactions to messages." + "description": "See, compose, send, update, and delete messages and their associated attachments, and add, see, and delete reactions to messages." }, "https://www.googleapis.com/auth/chat.messages.create": { "description": "Compose and send messages in Google Chat" }, "https://www.googleapis.com/auth/chat.messages.reactions": { - "description": "View, add, and delete reactions to messages in Google Chat" + "description": "See, add, and delete reactions to messages in Google Chat" }, "https://www.googleapis.com/auth/chat.messages.reactions.create": { "description": "Add reactions to messages in Google Chat" @@ -51,13 +51,13 @@ "description": "View reactions to messages in Google Chat" }, "https://www.googleapis.com/auth/chat.messages.readonly": { - "description": "View messages and reactions in Google Chat" + "description": "See messages and their associated reactions and attachments in Google Chat" }, "https://www.googleapis.com/auth/chat.spaces": { - "description": "Create conversations and spaces and see or edit metadata (including history settings and access settings) in Google Chat" + "description": "Create conversations and spaces and see or update metadata (including history settings and access settings) in Google Chat" }, "https://www.googleapis.com/auth/chat.spaces.create": { - "description": "Create new conversations in Google Chat" + "description": "Create new conversations and spaces in Google Chat" }, "https://www.googleapis.com/auth/chat.spaces.readonly": { "description": "View chat and spaces in Google Chat" @@ -1241,7 +1241,7 @@ } } }, - "revision": "20240709", + "revision": "20240723", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 13b18b8ab71..94959aa1bd1 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -122,30 +122,31 @@ const ( // Private Service: https://www.googleapis.com/auth/chat.bot ChatBotScope = "https://www.googleapis.com/auth/chat.bot" - // Delete conversations and spaces & remove access to associated files in + // Delete conversations and spaces and remove access to associated files in // Google Chat ChatDeleteScope = "https://www.googleapis.com/auth/chat.delete" // Import spaces, messages, and memberships into Google Chat. ChatImportScope = "https://www.googleapis.com/auth/chat.import" - // View, add, update, and remove members from conversations in Google Chat + // See, add, update, and remove members from conversations and spaces in Google + // Chat ChatMembershipsScope = "https://www.googleapis.com/auth/chat.memberships" - // Add and remove itself from conversations in Google Chat + // Add and remove itself from conversations and spaces in Google Chat ChatMembershipsAppScope = "https://www.googleapis.com/auth/chat.memberships.app" // View members in Google Chat conversations. ChatMembershipsReadonlyScope = "https://www.googleapis.com/auth/chat.memberships.readonly" - // View, compose, send, update, and delete messages, and add, view, and delete - // reactions to messages. + // See, compose, send, update, and delete messages and their associated + // attachments, and add, see, and delete reactions to messages. ChatMessagesScope = "https://www.googleapis.com/auth/chat.messages" // Compose and send messages in Google Chat ChatMessagesCreateScope = "https://www.googleapis.com/auth/chat.messages.create" - // View, add, and delete reactions to messages in Google Chat + // See, add, and delete reactions to messages in Google Chat ChatMessagesReactionsScope = "https://www.googleapis.com/auth/chat.messages.reactions" // Add reactions to messages in Google Chat @@ -154,14 +155,14 @@ const ( // View reactions to messages in Google Chat ChatMessagesReactionsReadonlyScope = "https://www.googleapis.com/auth/chat.messages.reactions.readonly" - // View messages and reactions in Google Chat + // See messages and their associated reactions and attachments in Google Chat ChatMessagesReadonlyScope = "https://www.googleapis.com/auth/chat.messages.readonly" - // Create conversations and spaces and see or edit metadata (including history - // settings and access settings) in Google Chat + // Create conversations and spaces and see or update metadata (including + // history settings and access settings) in Google Chat ChatSpacesScope = "https://www.googleapis.com/auth/chat.spaces" - // Create new conversations in Google Chat + // Create new conversations and spaces in Google Chat ChatSpacesCreateScope = "https://www.googleapis.com/auth/chat.spaces.create" // View chat and spaces in Google Chat diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index 0a1f845e1f1..ebade29affb 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -1495,7 +1495,7 @@ "parameters": { "acknowledgeAbuse": { "default": "false", - "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files.", + "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.", "location": "query", "type": "boolean" }, @@ -2380,7 +2380,7 @@ "parameters": { "acknowledgeAbuse": { "default": "false", - "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files.", + "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.", "location": "query", "type": "boolean" }, @@ -3869,7 +3869,7 @@ } } }, - "revision": "20240628", + "revision": "20240722", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index 6db6e654044..6bb8eafad40 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -7164,7 +7164,9 @@ func (r *FilesService) Get(fileId string) *FilesGetCall { // AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the // user is acknowledging the risk of downloading known malware or other abusive -// files. +// files. This is only applicable when the `alt` parameter is set to `media` +// and the user is the owner of the file or an organizer of the shared drive in +// which the file resides. func (c *FilesGetCall) AcknowledgeAbuse(acknowledgeAbuse bool) *FilesGetCall { c.urlParams_.Set("acknowledgeAbuse", fmt.Sprint(acknowledgeAbuse)) return c @@ -9109,7 +9111,9 @@ func (r *FilesService) Watch(fileId string, channel *Channel) *FilesWatchCall { // AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the // user is acknowledging the risk of downloading known malware or other abusive -// files. +// files. This is only applicable when the `alt` parameter is set to `media` +// and the user is the owner of the file or an organizer of the shared drive in +// which the file resides. func (c *FilesWatchCall) AcknowledgeAbuse(acknowledgeAbuse bool) *FilesWatchCall { c.urlParams_.Set("acknowledgeAbuse", fmt.Sprint(acknowledgeAbuse)) return c diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index 3882e2b22c1..91a2518e34c 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -1253,7 +1253,7 @@ "parameters": { "acknowledgeAbuse": { "default": "false", - "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.", + "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.", "location": "query", "type": "boolean" }, @@ -1612,7 +1612,7 @@ "parameters": { "acknowledgeAbuse": { "default": "false", - "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.", + "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.", "location": "query", "type": "boolean" }, @@ -2247,7 +2247,7 @@ "parameters": { "acknowledgeAbuse": { "default": "false", - "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.", + "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.", "location": "query", "type": "boolean" }, @@ -2523,7 +2523,7 @@ } } }, - "revision": "20240628", + "revision": "20240722", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index e24bd6764df..c3c0b48de37 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -6027,7 +6027,9 @@ func (r *FilesService) Get(fileId string) *FilesGetCall { // AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the // user is acknowledging the risk of downloading known malware or other abusive -// files. This is only applicable when alt=media. +// files. This is only applicable when the `alt` parameter is set to `media` +// and the user is the owner of the file or an organizer of the shared drive in +// which the file resides. func (c *FilesGetCall) AcknowledgeAbuse(acknowledgeAbuse bool) *FilesGetCall { c.urlParams_.Set("acknowledgeAbuse", fmt.Sprint(acknowledgeAbuse)) return c @@ -6935,7 +6937,9 @@ func (r *FilesService) Watch(fileId string, channel *Channel) *FilesWatchCall { // AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the // user is acknowledging the risk of downloading known malware or other abusive -// files. This is only applicable when alt=media. +// files. This is only applicable when the `alt` parameter is set to `media` +// and the user is the owner of the file or an organizer of the shared drive in +// which the file resides. func (c *FilesWatchCall) AcknowledgeAbuse(acknowledgeAbuse bool) *FilesWatchCall { c.urlParams_.Set("acknowledgeAbuse", fmt.Sprint(acknowledgeAbuse)) return c @@ -8455,7 +8459,9 @@ func (r *RevisionsService) Get(fileId string, revisionId string) *RevisionsGetCa // AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the // user is acknowledging the risk of downloading known malware or other abusive -// files. This is only applicable when alt=media. +// files. This is only applicable when the `alt` parameter is set to `media` +// and the user is the owner of the file or an organizer of the shared drive in +// which the file resides. func (c *RevisionsGetCall) AcknowledgeAbuse(acknowledgeAbuse bool) *RevisionsGetCall { c.urlParams_.Set("acknowledgeAbuse", fmt.Sprint(acknowledgeAbuse)) return c diff --git a/file/v1/file-api.json b/file/v1/file-api.json index e6e834b277e..020f642b7e6 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -902,7 +902,7 @@ } } }, - "revision": "20240619", + "revision": "20240716", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1118,15 +1118,6 @@ }, "type": "array" }, - "performanceConfig": { - "$ref": "PerformanceConfig", - "description": "Optional. Used to configure performance." - }, - "performanceLimits": { - "$ref": "PerformanceLimits", - "description": "Output only. Used for getting performance limits.", - "readOnly": true - }, "sourceBackup": { "description": "The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.", "type": "string" @@ -1134,18 +1125,6 @@ }, "type": "object" }, - "FixedIOPS": { - "description": "Fixed IOPS parameters.", - "id": "FixedIOPS", - "properties": { - "maxReadIops": { - "description": "Required. Maximum raw read IOPS.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudSaasacceleratorManagementProvidersV1Instance": { "description": "Instance represents the interface for SLM services to actuate the state of control plane resources. Example Instance in JSON, where consumer-project-number=123456, producer-project-id=cloud-sql: ```json Instance: { \"name\": \"projects/123456/locations/us-east1/instances/prod-instance\", \"create_time\": { \"seconds\": 1526406431, }, \"labels\": { \"env\": \"prod\", \"foo\": \"bar\" }, \"state\": READY, \"software_versions\": { \"software_update\": \"cloud-sql-09-28-2018\", }, \"maintenance_policy_names\": { \"UpdatePolicy\": \"projects/123456/locations/us-east1/maintenancePolicies/prod-update-policy\", } \"tenant_project_id\": \"cloud-sql-test-tenant\", \"producer_metadata\": { \"cloud-sql-tier\": \"basic\", \"cloud-sql-instance-size\": \"1G\", }, \"provisioned_resources\": [ { \"resource-type\": \"compute-instance\", \"resource-url\": \"https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1-b/instances/vm-1\", } ], \"maintenance_schedules\": { \"csa_rollout\": { \"start_time\": { \"seconds\": 1526406431, }, \"end_time\": { \"seconds\": 1535406431, }, }, \"ncsa_rollout\": { \"start_time\": { \"seconds\": 1526406431, }, \"end_time\": { \"seconds\": 1535406431, }, } }, \"consumer_defined_name\": \"my-sql-instance1\", } ``` LINT.IfChange", "id": "GoogleCloudSaasacceleratorManagementProvidersV1Instance", @@ -1421,18 +1400,6 @@ }, "type": "object" }, - "IOPSPerGB": { - "description": "IOPS per capacity parameters.", - "id": "IOPSPerGB", - "properties": { - "maxReadIopsPerGb": { - "description": "Required. Maximum read IOPS per GB.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "Instance": { "description": "A Filestore instance.", "id": "Instance", @@ -1971,56 +1938,6 @@ }, "type": "object" }, - "PerformanceConfig": { - "description": "Performance configuration. Used for setting the performance configuration. Defaults to `iops_by_capacity` if unset in instance creation.", - "id": "PerformanceConfig", - "properties": { - "fixedIops": { - "$ref": "FixedIOPS", - "description": "Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the supported range for the instance's capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error." - }, - "iopsByCapacity": { - "description": "Automatically provision maximum available IOPS based on the capacity of the instance. Larger instances will be granted more IOPS. If instance capacity is increased or decreased, IOPS will be automatically adjusted upwards or downwards accordingly. The maximum available IOPS for a given capacity is defined in Filestore documentation.", - "type": "boolean" - }, - "iopsPerGb": { - "$ref": "IOPSPerGB", - "description": "Provision IOPS dynamically based on the capacity of the instance. Provisioned read IOPS will be calculated by by multiplying the capacity of the instance in GiB by the `iops_per_gb` value, and rounding to the nearest 1000. For example, for a 1 TiB instance with an `iops_per_gb` value of 15, the provisioned read IOPS would be `1024 * 15 = 15,360`, rounded to `15,000`. If the calculated value is outside the supported range for the instance's capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error." - } - }, - "type": "object" - }, - "PerformanceLimits": { - "description": "The enforced performance limits, calculated from the instance's performance configuration.", - "id": "PerformanceLimits", - "properties": { - "maxReadIops": { - "description": "Output only. The max read IOPS.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "maxReadThroughput": { - "description": "Output only. The max read throughput.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "maxWriteIops": { - "description": "Output only. The max write IOPS.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "maxWriteThroughput": { - "description": "Output only. The max write throughput.", - "format": "int64", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "PromoteReplicaRequest": { "description": "PromoteReplicaRequest promotes a Filestore standby instance (replica).", "id": "PromoteReplicaRequest", diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 7b2eea50bf7..c512c6665a3 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -443,10 +443,6 @@ type FileShareConfig struct { // NfsExportOptions: Nfs Export Options. There is a limit of 10 export options // per file share. NfsExportOptions []*NfsExportOptions `json:"nfsExportOptions,omitempty"` - // PerformanceConfig: Optional. Used to configure performance. - PerformanceConfig *PerformanceConfig `json:"performanceConfig,omitempty"` - // PerformanceLimits: Output only. Used for getting performance limits. - PerformanceLimits *PerformanceLimits `json:"performanceLimits,omitempty"` // SourceBackup: The resource name of the backup, in the format // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, // that this file share has been restored from. @@ -469,28 +465,6 @@ func (s FileShareConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FixedIOPS: Fixed IOPS parameters. -type FixedIOPS struct { - // MaxReadIops: Required. Maximum raw read IOPS. - MaxReadIops int64 `json:"maxReadIops,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "MaxReadIops") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxReadIops") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s FixedIOPS) MarshalJSON() ([]byte, error) { - type NoMethod FixedIOPS - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudSaasacceleratorManagementProvidersV1Instance: Instance represents // the interface for SLM services to actuate the state of control plane // resources. Example Instance in JSON, where consumer-project-number=123456, @@ -869,28 +843,6 @@ func (s GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IOPSPerGB: IOPS per capacity parameters. -type IOPSPerGB struct { - // MaxReadIopsPerGb: Required. Maximum read IOPS per GB. - MaxReadIopsPerGb int64 `json:"maxReadIopsPerGb,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "MaxReadIopsPerGb") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxReadIopsPerGb") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s IOPSPerGB) MarshalJSON() ([]byte, error) { - type NoMethod IOPSPerGB - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Instance: A Filestore instance. type Instance struct { // CreateTime: Output only. The time when the instance was created. @@ -1462,82 +1414,6 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PerformanceConfig: Performance configuration. Used for setting the -// performance configuration. Defaults to `iops_by_capacity` if unset in -// instance creation. -type PerformanceConfig struct { - // FixedIops: Choose a fixed provisioned IOPS value for the instance, which - // will remain constant regardless of instance capacity. Value must be a - // multiple of 1000. If the chosen value is outside the supported range for the - // instance's capacity during instance creation, instance creation will fail - // with an `InvalidArgument` error. Similarly, if an instance capacity update - // would result in a value outside the supported range, the update will fail - // with an `InvalidArgument` error. - FixedIops *FixedIOPS `json:"fixedIops,omitempty"` - // IopsByCapacity: Automatically provision maximum available IOPS based on the - // capacity of the instance. Larger instances will be granted more IOPS. If - // instance capacity is increased or decreased, IOPS will be automatically - // adjusted upwards or downwards accordingly. The maximum available IOPS for a - // given capacity is defined in Filestore documentation. - IopsByCapacity bool `json:"iopsByCapacity,omitempty"` - // IopsPerGb: Provision IOPS dynamically based on the capacity of the instance. - // Provisioned read IOPS will be calculated by by multiplying the capacity of - // the instance in GiB by the `iops_per_gb` value, and rounding to the nearest - // 1000. For example, for a 1 TiB instance with an `iops_per_gb` value of 15, - // the provisioned read IOPS would be `1024 * 15 = 15,360`, rounded to - // `15,000`. If the calculated value is outside the supported range for the - // instance's capacity during instance creation, instance creation will fail - // with an `InvalidArgument` error. Similarly, if an instance capacity update - // would result in a value outside the supported range, the update will fail - // with an `InvalidArgument` error. - IopsPerGb *IOPSPerGB `json:"iopsPerGb,omitempty"` - // ForceSendFields is a list of field names (e.g. "FixedIops") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FixedIops") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s PerformanceConfig) MarshalJSON() ([]byte, error) { - type NoMethod PerformanceConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// PerformanceLimits: The enforced performance limits, calculated from the -// instance's performance configuration. -type PerformanceLimits struct { - // MaxReadIops: Output only. The max read IOPS. - MaxReadIops int64 `json:"maxReadIops,omitempty,string"` - // MaxReadThroughput: Output only. The max read throughput. - MaxReadThroughput int64 `json:"maxReadThroughput,omitempty,string"` - // MaxWriteIops: Output only. The max write IOPS. - MaxWriteIops int64 `json:"maxWriteIops,omitempty,string"` - // MaxWriteThroughput: Output only. The max write throughput. - MaxWriteThroughput int64 `json:"maxWriteThroughput,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "MaxReadIops") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxReadIops") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s PerformanceLimits) MarshalJSON() ([]byte, error) { - type NoMethod PerformanceLimits - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // PromoteReplicaRequest: PromoteReplicaRequest promotes a Filestore standby // instance (replica). type PromoteReplicaRequest struct { diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index e8fbbd7fc7b..1beeeb63c73 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1069,7 +1069,7 @@ } } }, - "revision": "20240704", + "revision": "20240716", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1311,15 +1311,6 @@ }, "type": "array" }, - "performanceConfig": { - "$ref": "PerformanceConfig", - "description": "Optional. Used to configure performance." - }, - "performanceLimits": { - "$ref": "PerformanceLimits", - "description": "Output only. Used for getting performance limits.", - "readOnly": true - }, "sourceBackup": { "description": "The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.", "type": "string" @@ -1327,18 +1318,6 @@ }, "type": "object" }, - "FixedIOPS": { - "description": "Fixed IOPS parameters.", - "id": "FixedIOPS", - "properties": { - "maxReadIops": { - "description": "Required. Maximum raw read IOPS.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudSaasacceleratorManagementProvidersV1Instance": { "description": "Instance represents the interface for SLM services to actuate the state of control plane resources. Example Instance in JSON, where consumer-project-number=123456, producer-project-id=cloud-sql: ```json Instance: { \"name\": \"projects/123456/locations/us-east1/instances/prod-instance\", \"create_time\": { \"seconds\": 1526406431, }, \"labels\": { \"env\": \"prod\", \"foo\": \"bar\" }, \"state\": READY, \"software_versions\": { \"software_update\": \"cloud-sql-09-28-2018\", }, \"maintenance_policy_names\": { \"UpdatePolicy\": \"projects/123456/locations/us-east1/maintenancePolicies/prod-update-policy\", } \"tenant_project_id\": \"cloud-sql-test-tenant\", \"producer_metadata\": { \"cloud-sql-tier\": \"basic\", \"cloud-sql-instance-size\": \"1G\", }, \"provisioned_resources\": [ { \"resource-type\": \"compute-instance\", \"resource-url\": \"https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1-b/instances/vm-1\", } ], \"maintenance_schedules\": { \"csa_rollout\": { \"start_time\": { \"seconds\": 1526406431, }, \"end_time\": { \"seconds\": 1535406431, }, }, \"ncsa_rollout\": { \"start_time\": { \"seconds\": 1526406431, }, \"end_time\": { \"seconds\": 1535406431, }, } }, \"consumer_defined_name\": \"my-sql-instance1\", } ``` LINT.IfChange", "id": "GoogleCloudSaasacceleratorManagementProvidersV1Instance", @@ -1614,18 +1593,6 @@ }, "type": "object" }, - "IOPSPerGB": { - "description": "IOPS per capacity parameters.", - "id": "IOPSPerGB", - "properties": { - "maxReadIopsPerGb": { - "description": "Required. Maximum read IOPS per GB.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "Instance": { "description": "A Filestore instance.", "id": "Instance", @@ -2269,56 +2236,6 @@ }, "type": "object" }, - "PerformanceConfig": { - "description": "Performance configuration. Used for setting the performance configuration. Defaults to `iops_by_capacity` if unset in instance creation.", - "id": "PerformanceConfig", - "properties": { - "fixedIops": { - "$ref": "FixedIOPS", - "description": "Choose a fixed provisioned IOPS value for the instance, which will remain constant regardless of instance capacity. Value must be a multiple of 1000. If the chosen value is outside the supported range for the instance's capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error." - }, - "iopsByCapacity": { - "description": "Automatically provision maximum available IOPS based on the capacity of the instance. Larger instances will be granted more IOPS. If instance capacity is increased or decreased, IOPS will be automatically adjusted upwards or downwards accordingly. The maximum available IOPS for a given capacity is defined in Filestore documentation.", - "type": "boolean" - }, - "iopsPerGb": { - "$ref": "IOPSPerGB", - "description": "Provision IOPS dynamically based on the capacity of the instance. Provisioned read IOPS will be calculated by by multiplying the capacity of the instance in GiB by the `iops_per_gb` value, and rounding to the nearest 1000. For example, for a 1 TiB instance with an `iops_per_gb` value of 15, the provisioned read IOPS would be `1024 * 15 = 15,360`, rounded to `15,000`. If the calculated value is outside the supported range for the instance's capacity during instance creation, instance creation will fail with an `InvalidArgument` error. Similarly, if an instance capacity update would result in a value outside the supported range, the update will fail with an `InvalidArgument` error." - } - }, - "type": "object" - }, - "PerformanceLimits": { - "description": "The enforced performance limits, calculated from the instance's performance configuration.", - "id": "PerformanceLimits", - "properties": { - "maxReadIops": { - "description": "Output only. The max read IOPS.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "maxReadThroughput": { - "description": "Output only. The max read throughput.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "maxWriteIops": { - "description": "Output only. The max write IOPS.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "maxWriteThroughput": { - "description": "Output only. The max write throughput.", - "format": "int64", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "PromoteReplicaRequest": { "description": "PromoteReplicaRequest promotes a Filestore standby instance (replica).", "id": "PromoteReplicaRequest", diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 65a513d0e2b..df3960857b9 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -487,10 +487,6 @@ type FileShareConfig struct { // NfsExportOptions: Nfs Export Options. There is a limit of 10 export options // per file share. NfsExportOptions []*NfsExportOptions `json:"nfsExportOptions,omitempty"` - // PerformanceConfig: Optional. Used to configure performance. - PerformanceConfig *PerformanceConfig `json:"performanceConfig,omitempty"` - // PerformanceLimits: Output only. Used for getting performance limits. - PerformanceLimits *PerformanceLimits `json:"performanceLimits,omitempty"` // SourceBackup: The resource name of the backup, in the format // `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that // this file share has been restored from. @@ -513,28 +509,6 @@ func (s FileShareConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FixedIOPS: Fixed IOPS parameters. -type FixedIOPS struct { - // MaxReadIops: Required. Maximum raw read IOPS. - MaxReadIops int64 `json:"maxReadIops,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "MaxReadIops") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxReadIops") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s FixedIOPS) MarshalJSON() ([]byte, error) { - type NoMethod FixedIOPS - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudSaasacceleratorManagementProvidersV1Instance: Instance represents // the interface for SLM services to actuate the state of control plane // resources. Example Instance in JSON, where consumer-project-number=123456, @@ -913,28 +887,6 @@ func (s GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IOPSPerGB: IOPS per capacity parameters. -type IOPSPerGB struct { - // MaxReadIopsPerGb: Required. Maximum read IOPS per GB. - MaxReadIopsPerGb int64 `json:"maxReadIopsPerGb,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "MaxReadIopsPerGb") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxReadIopsPerGb") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s IOPSPerGB) MarshalJSON() ([]byte, error) { - type NoMethod IOPSPerGB - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Instance: A Filestore instance. type Instance struct { // CapacityGb: The storage capacity of the instance in gigabytes (GB = 1024^3 @@ -1605,82 +1557,6 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PerformanceConfig: Performance configuration. Used for setting the -// performance configuration. Defaults to `iops_by_capacity` if unset in -// instance creation. -type PerformanceConfig struct { - // FixedIops: Choose a fixed provisioned IOPS value for the instance, which - // will remain constant regardless of instance capacity. Value must be a - // multiple of 1000. If the chosen value is outside the supported range for the - // instance's capacity during instance creation, instance creation will fail - // with an `InvalidArgument` error. Similarly, if an instance capacity update - // would result in a value outside the supported range, the update will fail - // with an `InvalidArgument` error. - FixedIops *FixedIOPS `json:"fixedIops,omitempty"` - // IopsByCapacity: Automatically provision maximum available IOPS based on the - // capacity of the instance. Larger instances will be granted more IOPS. If - // instance capacity is increased or decreased, IOPS will be automatically - // adjusted upwards or downwards accordingly. The maximum available IOPS for a - // given capacity is defined in Filestore documentation. - IopsByCapacity bool `json:"iopsByCapacity,omitempty"` - // IopsPerGb: Provision IOPS dynamically based on the capacity of the instance. - // Provisioned read IOPS will be calculated by by multiplying the capacity of - // the instance in GiB by the `iops_per_gb` value, and rounding to the nearest - // 1000. For example, for a 1 TiB instance with an `iops_per_gb` value of 15, - // the provisioned read IOPS would be `1024 * 15 = 15,360`, rounded to - // `15,000`. If the calculated value is outside the supported range for the - // instance's capacity during instance creation, instance creation will fail - // with an `InvalidArgument` error. Similarly, if an instance capacity update - // would result in a value outside the supported range, the update will fail - // with an `InvalidArgument` error. - IopsPerGb *IOPSPerGB `json:"iopsPerGb,omitempty"` - // ForceSendFields is a list of field names (e.g. "FixedIops") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FixedIops") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s PerformanceConfig) MarshalJSON() ([]byte, error) { - type NoMethod PerformanceConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// PerformanceLimits: The enforced performance limits, calculated from the -// instance's performance configuration. -type PerformanceLimits struct { - // MaxReadIops: Output only. The max read IOPS. - MaxReadIops int64 `json:"maxReadIops,omitempty,string"` - // MaxReadThroughput: Output only. The max read throughput. - MaxReadThroughput int64 `json:"maxReadThroughput,omitempty,string"` - // MaxWriteIops: Output only. The max write IOPS. - MaxWriteIops int64 `json:"maxWriteIops,omitempty,string"` - // MaxWriteThroughput: Output only. The max write throughput. - MaxWriteThroughput int64 `json:"maxWriteThroughput,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "MaxReadIops") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxReadIops") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s PerformanceLimits) MarshalJSON() ([]byte, error) { - type NoMethod PerformanceLimits - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // PromoteReplicaRequest: PromoteReplicaRequest promotes a Filestore standby // instance (replica). type PromoteReplicaRequest struct { diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index 1442f5c4961..daaa28613f6 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -585,9 +585,24 @@ } } }, - "revision": "20240724", + "revision": "20240726", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { + "AndroidxCrawlerOutputPoint": { + "description": "Point for describing bounding boxes tap locations Top left is 0,0", + "id": "AndroidxCrawlerOutputPoint", + "properties": { + "xCoordinate": { + "format": "int32", + "type": "integer" + }, + "yCoordinate": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1Release": { "description": "A release of a Firebase app.", "id": "GoogleFirebaseAppdistroV1Release", @@ -734,6 +749,16 @@ "description": "Captures the results of an AiStep", "id": "GoogleFirebaseAppdistroV1alphaAiStepResult", "properties": { + "assertionDetails": { + "$ref": "GoogleFirebaseAppdistroV1alphaAssertionDetails", + "description": "Output only. Details for an assertion step.", + "readOnly": true + }, + "goalDetails": { + "$ref": "GoogleFirebaseAppdistroV1alphaGoalDetails", + "description": "Output only. Details for a goal step.", + "readOnly": true + }, "state": { "description": "Output only. The current state of the step", "enum": [ @@ -827,6 +852,28 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaAssertionDetails": { + "description": "Details for an assertion step.", + "id": "GoogleFirebaseAppdistroV1alphaAssertionDetails", + "properties": { + "explanation": { + "description": "Output only. An explanation justifying the assertion result.", + "readOnly": true, + "type": "string" + }, + "result": { + "description": "Output only. The result of the assertion.", + "readOnly": true, + "type": "boolean" + }, + "screenshot": { + "$ref": "GoogleFirebaseAppdistroV1alphaScreenshot", + "description": "Output only. The screenshot used in the context of this assertion.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest": { "id": "GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest", "properties": { @@ -842,6 +889,26 @@ "properties": {}, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaDeviceAction": { + "description": "A high level action taken by the AI on the device, potentially involving multiple taps, text entries, waits, etc.", + "id": "GoogleFirebaseAppdistroV1alphaDeviceAction", + "properties": { + "description": { + "description": "Output only. A short description of the high level action taken by the AI agent.", + "readOnly": true, + "type": "string" + }, + "deviceInteractions": { + "description": "Output only. The interactions made with the device as part of this higher level action taken by the agent, such as taps, text entries, waits, etc.", + "items": { + "$ref": "GoogleFirebaseAppdistroV1alphaDeviceInteraction" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaDeviceExecution": { "description": "The results of running an automated test on a particular device.", "id": "GoogleFirebaseAppdistroV1alphaDeviceExecution", @@ -963,6 +1030,68 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaDeviceInteraction": { + "description": "An interaction with the device, such as a tap, text entry, wait, etc.", + "id": "GoogleFirebaseAppdistroV1alphaDeviceInteraction", + "properties": { + "screenshot": { + "$ref": "GoogleFirebaseAppdistroV1alphaScreenshot", + "description": "Output only. The screenshot used in the context of this action. The screen may have changed before the action was actually taken.", + "readOnly": true + }, + "swipe": { + "$ref": "GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe", + "description": "Output only. A swipe action.", + "readOnly": true + }, + "tap": { + "$ref": "AndroidxCrawlerOutputPoint", + "description": "Output only. A tap action.", + "readOnly": true + }, + "textInput": { + "description": "Output only. Text entered for a text entry action.", + "readOnly": true, + "type": "string" + }, + "wait": { + "$ref": "GoogleFirebaseAppdistroV1alphaDeviceInteractionWait", + "description": "Output only. A wait action.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe": { + "description": "A swipe action.", + "id": "GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe", + "properties": { + "end": { + "$ref": "AndroidxCrawlerOutputPoint", + "description": "Output only. The end point of the swipe.", + "readOnly": true + }, + "start": { + "$ref": "AndroidxCrawlerOutputPoint", + "description": "Output only. The start point of the swipe.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1alphaDeviceInteractionWait": { + "description": "A wait action.", + "id": "GoogleFirebaseAppdistroV1alphaDeviceInteractionWait", + "properties": { + "duration": { + "description": "Output only. The duration of the wait.", + "format": "google-duration", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest": { "id": "GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest", "properties": { @@ -1107,6 +1236,43 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaGoalAction": { + "description": "An action taken by the AI agent while attempting to accomplish a goal.", + "id": "GoogleFirebaseAppdistroV1alphaGoalAction", + "properties": { + "deviceAction": { + "$ref": "GoogleFirebaseAppdistroV1alphaDeviceAction", + "description": "Output only. A high level action taken by the AI on the device.", + "readOnly": true + }, + "explanation": { + "description": "Output only. An explanation justifying why the action was taken.", + "readOnly": true, + "type": "string" + }, + "terminalAction": { + "$ref": "GoogleFirebaseAppdistroV1alphaTerminalAction", + "description": "Output only. An action taken by the AI to end the goal.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1alphaGoalDetails": { + "description": "Details for a goal step.", + "id": "GoogleFirebaseAppdistroV1alphaGoalDetails", + "properties": { + "goalActions": { + "description": "Output only. The actions taken by the AI while attempting to accomplish the goal.", + "items": { + "$ref": "GoogleFirebaseAppdistroV1alphaGoalAction" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaJwt": { "id": "GoogleFirebaseAppdistroV1alphaJwt", "properties": { @@ -1321,6 +1487,57 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaScreenshot": { + "description": "A device screenshot taken during a test.", + "id": "GoogleFirebaseAppdistroV1alphaScreenshot", + "properties": { + "height": { + "description": "Output only. The height of the screenshot, in pixels.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "uri": { + "description": "Output only. The URI of the screenshot.", + "readOnly": true, + "type": "string" + }, + "width": { + "description": "Output only. The width of the screenshot, in pixels.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1alphaTerminalAction": { + "description": "An action taken by the AI to end the goal.", + "id": "GoogleFirebaseAppdistroV1alphaTerminalAction", + "properties": { + "reason": { + "description": "Output only. The reason why this goal was ended.", + "enum": [ + "REASON_UNSPECIFIED", + "GOAL_IMPOSSIBLE", + "GOAL_COMPLETE" + ], + "enumDescriptions": [ + "Reason unspecified.", + "The goal was impossible to accomplish.", + "The goal was completed successfully." + ], + "readOnly": true, + "type": "string" + }, + "screenshot": { + "$ref": "GoogleFirebaseAppdistroV1alphaScreenshot", + "description": "Output only. The screenshot used in the context of this terminal action.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaTestConfig": { "description": "Configuration for automated tests", "id": "GoogleFirebaseAppdistroV1alphaTestConfig", diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index 3586844306e..d789eddb255 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -283,6 +283,29 @@ type ProjectsTestersService struct { s *Service } +// AndroidxCrawlerOutputPoint: Point for describing bounding boxes tap +// locations Top left is 0,0 +type AndroidxCrawlerOutputPoint struct { + XCoordinate int64 `json:"xCoordinate,omitempty"` + YCoordinate int64 `json:"yCoordinate,omitempty"` + // ForceSendFields is a list of field names (e.g. "XCoordinate") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "XCoordinate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AndroidxCrawlerOutputPoint) MarshalJSON() ([]byte, error) { + type NoMethod AndroidxCrawlerOutputPoint + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppdistroV1Release: A release of a Firebase app. type GoogleFirebaseAppdistroV1Release struct { // BinaryDownloadUri: Output only. A signed link (which expires in one hour) to @@ -465,6 +488,10 @@ func (s GoogleFirebaseAppdistroV1alphaAiStep) MarshalJSON() ([]byte, error) { // GoogleFirebaseAppdistroV1alphaAiStepResult: Captures the results of an // AiStep type GoogleFirebaseAppdistroV1alphaAiStepResult struct { + // AssertionDetails: Output only. Details for an assertion step. + AssertionDetails *GoogleFirebaseAppdistroV1alphaAssertionDetails `json:"assertionDetails,omitempty"` + // GoalDetails: Output only. Details for a goal step. + GoalDetails *GoogleFirebaseAppdistroV1alphaGoalDetails `json:"goalDetails,omitempty"` // State: Output only. The current state of the step // // Possible values: @@ -475,15 +502,15 @@ type GoogleFirebaseAppdistroV1alphaAiStepResult struct { State string `json:"state,omitempty"` // Step: Required. The step performed by the AI Step *GoogleFirebaseAppdistroV1alphaAiStep `json:"step,omitempty"` - // ForceSendFields is a list of field names (e.g. "State") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "AssertionDetails") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AssertionDetails") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -569,6 +596,34 @@ func (s GoogleFirebaseAppdistroV1alphaAppCrash) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaAssertionDetails: Details for an assertion +// step. +type GoogleFirebaseAppdistroV1alphaAssertionDetails struct { + // Explanation: Output only. An explanation justifying the assertion result. + Explanation string `json:"explanation,omitempty"` + // Result: Output only. The result of the assertion. + Result bool `json:"result,omitempty"` + // Screenshot: Output only. The screenshot used in the context of this + // assertion. + Screenshot *GoogleFirebaseAppdistroV1alphaScreenshot `json:"screenshot,omitempty"` + // ForceSendFields is a list of field names (e.g. "Explanation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Explanation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaAssertionDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaAssertionDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest struct { // ReleaseNotes: The actual release notes body from the user ReleaseNotes *GoogleFirebaseAppdistroV1alphaReleaseNotes `json:"releaseNotes,omitempty"` @@ -595,6 +650,35 @@ type GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse struct { googleapi.ServerResponse `json:"-"` } +// GoogleFirebaseAppdistroV1alphaDeviceAction: A high level action taken by the +// AI on the device, potentially involving multiple taps, text entries, waits, +// etc. +type GoogleFirebaseAppdistroV1alphaDeviceAction struct { + // Description: Output only. A short description of the high level action taken + // by the AI agent. + Description string `json:"description,omitempty"` + // DeviceInteractions: Output only. The interactions made with the device as + // part of this higher level action taken by the agent, such as taps, text + // entries, waits, etc. + DeviceInteractions []*GoogleFirebaseAppdistroV1alphaDeviceInteraction `json:"deviceInteractions,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaDeviceAction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaDeviceAction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppdistroV1alphaDeviceExecution: The results of running an // automated test on a particular device. type GoogleFirebaseAppdistroV1alphaDeviceExecution struct { @@ -678,6 +762,84 @@ func (s GoogleFirebaseAppdistroV1alphaDeviceExecution) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaDeviceInteraction: An interaction with the +// device, such as a tap, text entry, wait, etc. +type GoogleFirebaseAppdistroV1alphaDeviceInteraction struct { + // Screenshot: Output only. The screenshot used in the context of this action. + // The screen may have changed before the action was actually taken. + Screenshot *GoogleFirebaseAppdistroV1alphaScreenshot `json:"screenshot,omitempty"` + // Swipe: Output only. A swipe action. + Swipe *GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe `json:"swipe,omitempty"` + // Tap: Output only. A tap action. + Tap *AndroidxCrawlerOutputPoint `json:"tap,omitempty"` + // TextInput: Output only. Text entered for a text entry action. + TextInput string `json:"textInput,omitempty"` + // Wait: Output only. A wait action. + Wait *GoogleFirebaseAppdistroV1alphaDeviceInteractionWait `json:"wait,omitempty"` + // ForceSendFields is a list of field names (e.g. "Screenshot") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Screenshot") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaDeviceInteraction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaDeviceInteraction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe: A swipe action. +type GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe struct { + // End: Output only. The end point of the swipe. + End *AndroidxCrawlerOutputPoint `json:"end,omitempty"` + // Start: Output only. The start point of the swipe. + Start *AndroidxCrawlerOutputPoint `json:"start,omitempty"` + // ForceSendFields is a list of field names (e.g. "End") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "End") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1alphaDeviceInteractionWait: A wait action. +type GoogleFirebaseAppdistroV1alphaDeviceInteractionWait struct { + // Duration: Output only. The duration of the wait. + Duration string `json:"duration,omitempty"` + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaDeviceInteractionWait) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaDeviceInteractionWait + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest struct { // BuildVersion: Optional. Ignored. Used to be build version of the app release // if an instance identifier was provided for the release_id. @@ -830,6 +992,58 @@ func (s GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaGoalAction: An action taken by the AI agent +// while attempting to accomplish a goal. +type GoogleFirebaseAppdistroV1alphaGoalAction struct { + // DeviceAction: Output only. A high level action taken by the AI on the + // device. + DeviceAction *GoogleFirebaseAppdistroV1alphaDeviceAction `json:"deviceAction,omitempty"` + // Explanation: Output only. An explanation justifying why the action was + // taken. + Explanation string `json:"explanation,omitempty"` + // TerminalAction: Output only. An action taken by the AI to end the goal. + TerminalAction *GoogleFirebaseAppdistroV1alphaTerminalAction `json:"terminalAction,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeviceAction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DeviceAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaGoalAction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaGoalAction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1alphaGoalDetails: Details for a goal step. +type GoogleFirebaseAppdistroV1alphaGoalDetails struct { + // GoalActions: Output only. The actions taken by the AI while attempting to + // accomplish the goal. + GoalActions []*GoogleFirebaseAppdistroV1alphaGoalAction `json:"goalActions,omitempty"` + // ForceSendFields is a list of field names (e.g. "GoalActions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GoalActions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaGoalDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaGoalDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type GoogleFirebaseAppdistroV1alphaJwt struct { Token string `json:"token,omitempty"` @@ -1102,6 +1316,64 @@ func (s GoogleFirebaseAppdistroV1alphaRoboStats) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaScreenshot: A device screenshot taken during a +// test. +type GoogleFirebaseAppdistroV1alphaScreenshot struct { + // Height: Output only. The height of the screenshot, in pixels. + Height int64 `json:"height,omitempty"` + // Uri: Output only. The URI of the screenshot. + Uri string `json:"uri,omitempty"` + // Width: Output only. The width of the screenshot, in pixels. + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Height") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaScreenshot) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaScreenshot + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1alphaTerminalAction: An action taken by the AI to +// end the goal. +type GoogleFirebaseAppdistroV1alphaTerminalAction struct { + // Reason: Output only. The reason why this goal was ended. + // + // Possible values: + // "REASON_UNSPECIFIED" - Reason unspecified. + // "GOAL_IMPOSSIBLE" - The goal was impossible to accomplish. + // "GOAL_COMPLETE" - The goal was completed successfully. + Reason string `json:"reason,omitempty"` + // Screenshot: Output only. The screenshot used in the context of this terminal + // action. + Screenshot *GoogleFirebaseAppdistroV1alphaScreenshot `json:"screenshot,omitempty"` + // ForceSendFields is a list of field names (e.g. "Reason") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Reason") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaTerminalAction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaTerminalAction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppdistroV1alphaTestConfig: Configuration for automated tests type GoogleFirebaseAppdistroV1alphaTestConfig struct { // Name: Identifier. The name of the test configuration resource. Format: diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index 8ab1365acd6..e0456993bb7 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -306,42 +306,6 @@ "https://www.googleapis.com/auth/content" ] }, - "list": { - "description": "Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/accounttax", - "httpMethod": "GET", - "id": "merchantapi.accounts.accounttax.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "The maximum number of tax settings to return in the response, used for paging.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The token returned by the previous request.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent, which owns this collection of account tax. Format: accounts/{account}", - "location": "path", - "pattern": "^accounts/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+parent}/accounttax", - "response": { - "$ref": "ListAccountTaxResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, "patch": { "description": "Updates the tax settings of the account.", "flatPath": "accounts/v1beta/accounts/{accountsId}/accounttax/{accounttaxId}", @@ -1453,7 +1417,7 @@ } } }, - "revision": "20240719", + "revision": "20240728", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AcceptTermsOfService": { @@ -2275,24 +2239,6 @@ }, "type": "object" }, - "ListAccountTaxResponse": { - "description": "Response to account tax list request This method can only be called on a multi-client account, otherwise it'll return an error.", - "id": "ListAccountTaxResponse", - "properties": { - "accountTaxes": { - "description": "Page of accounttax settings", - "items": { - "$ref": "AccountTax" - }, - "type": "array" - }, - "nextPageToken": { - "description": "The token for the retrieval of the next page of account tax settings.", - "type": "string" - } - }, - "type": "object" - }, "ListAccountsResponse": { "description": "Response message for the `ListAccounts` method.", "id": "ListAccountsResponse", diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index d846589c1fd..b78f365a20a 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -1350,35 +1350,6 @@ func (s ListAccountIssuesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAccountTaxResponse: Response to account tax list request This method can -// only be called on a multi-client account, otherwise it'll return an error. -type ListAccountTaxResponse struct { - // AccountTaxes: Page of accounttax settings - AccountTaxes []*AccountTax `json:"accountTaxes,omitempty"` - // NextPageToken: The token for the retrieval of the next page of account tax - // settings. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountTaxes") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccountTaxes") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListAccountTaxResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListAccountTaxResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ListAccountsResponse: Response message for the `ListAccounts` method. type ListAccountsResponse struct { // Accounts: The accounts matching the `ListAccountsRequest`. @@ -4000,152 +3971,6 @@ func (c *AccountsAccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTa return ret, nil } -type AccountsAccounttaxListCall struct { - s *APIService - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists the tax settings of the sub-accounts only in your Merchant -// Center account. This method can only be called on a multi-client account, -// otherwise it'll return an error. -// -// - parent: The parent, which owns this collection of account tax. Format: -// accounts/{account}. -func (r *AccountsAccounttaxService) List(parent string) *AccountsAccounttaxListCall { - c := &AccountsAccounttaxListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of tax -// settings to return in the response, used for paging. -func (c *AccountsAccounttaxListCall) PageSize(pageSize int64) *AccountsAccounttaxListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The token returned by the -// previous request. -func (c *AccountsAccounttaxListCall) PageToken(pageToken string) *AccountsAccounttaxListCall { - 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 -// details. -func (c *AccountsAccounttaxListCall) Fields(s ...googleapi.Field) *AccountsAccounttaxListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an 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. -func (c *AccountsAccounttaxListCall) IfNoneMatch(entityTag string) *AccountsAccounttaxListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsAccounttaxListCall) Context(ctx context.Context) *AccountsAccounttaxListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsAccounttaxListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsAccounttaxListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - 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, "accounts/v1beta/{+parent}/accounttax") - 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 "merchantapi.accounts.accounttax.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListAccountTaxResponse.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 *AccountsAccounttaxListCall) Do(opts ...googleapi.CallOption) (*ListAccountTaxResponse, 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 := &ListAccountTaxResponse{ - 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 -} - -// 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 *AccountsAccounttaxListCall) Pages(ctx context.Context, f func(*ListAccountTaxResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) - } -} - type AccountsAccounttaxPatchCall struct { s *APIService name string diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index 8612d2b1604..044e2a7a78f 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -463,7 +463,7 @@ "type": "string" }, "name": { - "description": "The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.", + "description": "Required. The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -500,7 +500,7 @@ "type": "string" }, "name": { - "description": "The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", + "description": "Required. The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -537,7 +537,7 @@ "type": "string" }, "name": { - "description": "The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", + "description": "Required. The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -574,7 +574,7 @@ "type": "string" }, "name": { - "description": "The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", + "description": "Required. The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -669,7 +669,7 @@ "type": "string" }, "name": { - "description": "The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.", + "description": "Required. The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -753,7 +753,7 @@ } } }, - "revision": "20240707", + "revision": "20240721", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1119,7 +1119,8 @@ "METRIC_LABEL", "USER_METADATA_LABEL", "SYSTEM_METADATA_LABEL", - "GROUP" + "GROUP", + "VALUE_ONLY" ], "enumDescriptions": [ "Filter type is unspecified. This is not valid in a well-formed request.", @@ -1127,21 +1128,48 @@ "Filter on a metrics label value", "Filter on a user metadata label value", "Filter on a system metadata label value", - "Filter on a group id" + "Filter on a group id", + "Filter that only contains a value. The label_key field must be unset for filters of this type." ], "type": "string" }, "labelKey": { - "description": "Required. The key for the label", + "description": "Optional. The key for the label. This must be omitted if the filter_type is VALUE_ONLY but is required otherwise.", "type": "string" }, + "stringArray": { + "$ref": "StringArray", + "description": "A list of possible string values for the filter" + }, + "stringArrayValue": { + "$ref": "StringArray", + "description": "An array of variable-length string values. If this field is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED" + }, "stringValue": { - "description": "A variable-length string value.", + "description": "A variable-length string value. If this field is set, value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED", "type": "string" }, "templateVariable": { "description": "The placeholder text that can be referenced in a filter string or MQL query. If omitted, the dashboard filter will be applied to all relevant widgets in the dashboard.", "type": "string" + }, + "timeSeriesQuery": { + "$ref": "TimeSeriesQuery", + "description": "A query to run to fetch possible values for the filter. Only OpsAnalyticsQueries are supported" + }, + "valueType": { + "description": "The type of the filter value. If value_type is not provided, it will be inferred from the default_value. If neither value_type nor default_value is provided, value_type will be set to STRING by default.", + "enum": [ + "VALUE_TYPE_UNSPECIFIED", + "STRING", + "STRING_ARRAY" + ], + "enumDescriptions": [ + "Value type is unspecified", + "String type", + "String array type" + ], + "type": "string" } }, "type": "object" @@ -2301,6 +2329,20 @@ }, "type": "object" }, + "StringArray": { + "description": "An array of strings", + "id": "StringArray", + "properties": { + "values": { + "description": "The values of the array", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "TableDataSet": { "description": "Groups a time series query definition with table options.", "id": "TableDataSet", diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index 9a7fd2eb8b7..a4fa89a5310 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -920,15 +920,36 @@ type DashboardFilter struct { // "USER_METADATA_LABEL" - Filter on a user metadata label value // "SYSTEM_METADATA_LABEL" - Filter on a system metadata label value // "GROUP" - Filter on a group id + // "VALUE_ONLY" - Filter that only contains a value. The label_key field must + // be unset for filters of this type. FilterType string `json:"filterType,omitempty"` - // LabelKey: Required. The key for the label + // LabelKey: Optional. The key for the label. This must be omitted if the + // filter_type is VALUE_ONLY but is required otherwise. LabelKey string `json:"labelKey,omitempty"` - // StringValue: A variable-length string value. + // StringArray: A list of possible string values for the filter + StringArray *StringArray `json:"stringArray,omitempty"` + // StringArrayValue: An array of variable-length string values. If this field + // is set, value_type must be set to STRING_ARRAY or VALUE_TYPE_UNSPECIFIED + StringArrayValue *StringArray `json:"stringArrayValue,omitempty"` + // StringValue: A variable-length string value. If this field is set, + // value_type must be set to STRING or VALUE_TYPE_UNSPECIFIED StringValue string `json:"stringValue,omitempty"` // TemplateVariable: The placeholder text that can be referenced in a filter // string or MQL query. If omitted, the dashboard filter will be applied to all // relevant widgets in the dashboard. TemplateVariable string `json:"templateVariable,omitempty"` + // TimeSeriesQuery: A query to run to fetch possible values for the filter. + // Only OpsAnalyticsQueries are supported + TimeSeriesQuery *TimeSeriesQuery `json:"timeSeriesQuery,omitempty"` + // ValueType: The type of the filter value. If value_type is not provided, it + // will be inferred from the default_value. If neither value_type nor + // default_value is provided, value_type will be set to STRING by default. + // + // Possible values: + // "VALUE_TYPE_UNSPECIFIED" - Value type is unspecified + // "STRING" - String type + // "STRING_ARRAY" - String array type + ValueType string `json:"valueType,omitempty"` // ForceSendFields is a list of field names (e.g. "FilterType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2516,6 +2537,28 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StringArray: An array of strings +type StringArray struct { + // Values: The values of the array + Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Values") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StringArray) MarshalJSON() ([]byte, error) { + type NoMethod StringArray + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // TableDataSet: Groups a time series query definition with table options. type TableDataSet struct { // MinAlignmentPeriod: Optional. The lower bound on data point frequency for diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index 98185531295..784764f4cd0 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2714,7 +2714,7 @@ } } }, - "revision": "20240630", + "revision": "20240721", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -2928,7 +2928,7 @@ }, "notificationRateLimit": { "$ref": "NotificationRateLimit", - "description": "Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based." + "description": "Required for log-based alert policies, i.e. policies with a LogMatch condition.This limit is not implemented for alert policies that do not have a LogMatch condition." } }, "type": "object" @@ -5639,6 +5639,10 @@ "description": "A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.", "id": "TimeSeries", "properties": { + "description": { + "description": "Input only. A detailed description of the time series that will be associated with the google.api.MetricDescriptor for the metric. Once set, this field cannot be changed through CreateTimeSeries.", + "type": "string" + }, "metadata": { "$ref": "MonitoredResourceMetadata", "description": "Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored." @@ -5675,7 +5679,7 @@ "description": "The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics (https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources)." }, "unit": { - "description": "The units in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the representation of the stored metric values.", + "description": "The units in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the representation of the stored metric values. This field can only be changed through CreateTimeSeries when it is empty or \"1\".", "type": "string" }, "valueType": { diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index bec8e917351..b74f095294c 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -771,9 +771,9 @@ type AlertStrategy struct { // NotificationChannelStrategy: Control how notifications will be sent out, on // a per-channel basis. NotificationChannelStrategy []*NotificationChannelStrategy `json:"notificationChannelStrategy,omitempty"` - // NotificationRateLimit: Required for alert policies with a LogMatch - // condition.This limit is not implemented for alert policies that are not - // log-based. + // NotificationRateLimit: Required for log-based alert policies, i.e. policies + // with a LogMatch condition.This limit is not implemented for alert policies + // that do not have a LogMatch condition. NotificationRateLimit *NotificationRateLimit `json:"notificationRateLimit,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoClose") to // unconditionally include in API requests. By default, fields with empty or @@ -5020,6 +5020,10 @@ func (s TimeInterval) MarshalJSON() ([]byte, error) { // fully-specified monitored resource and a fully-specified metric. This type // is used for both listing and creating time series. type TimeSeries struct { + // Description: Input only. A detailed description of the time series that will + // be associated with the google.api.MetricDescriptor for the metric. Once set, + // this field cannot be changed through CreateTimeSeries. + Description string `json:"description,omitempty"` // Metadata: Output only. The associated monitored resource metadata. When // reading a time series, this field will include metadata labels that are // explicitly named in the reduction. When creating a time series, this field @@ -5061,7 +5065,8 @@ type TimeSeries struct { Resource *MonitoredResource `json:"resource,omitempty"` // Unit: The units in which the metric value is reported. It is only applicable // if the value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the - // representation of the stored metric values. + // representation of the stored metric values. This field can only be changed + // through CreateTimeSeries when it is empty or "1". Unit string `json:"unit,omitempty"` // ValueType: The value type of the time series. When listing time series, this // value type might be different from the value type of the associated metric @@ -5080,13 +5085,13 @@ type TimeSeries struct { // "DISTRIBUTION" - The value is a Distribution. // "MONEY" - The value is money. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Metadata") to + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Metadata") to include in API + // NullFields is a list of field names (e.g. "Description") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/networksecurity/v1beta1/networksecurity-api.json b/networksecurity/v1beta1/networksecurity-api.json index 22283777ad0..12b109214e1 100644 --- a/networksecurity/v1beta1/networksecurity-api.json +++ b/networksecurity/v1beta1/networksecurity-api.json @@ -1729,6 +1729,188 @@ } } }, + "authzPolicies": { + "methods": { + "create": { + "description": "Creates a new AuthzPolicy in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzPolicies", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.authzPolicies.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "authzPolicyId": { + "description": "Required. User-provided ID of the `AuthzPolicy` resource to be created.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the `AuthzPolicy` resource. Must be in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/authzPolicies", + "request": { + "$ref": "AuthzPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single AuthzPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzPolicies/{authzPoliciesId}", + "httpMethod": "DELETE", + "id": "networksecurity.projects.locations.authzPolicies.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the `AuthzPolicy` resource to delete. Must be in the format `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzPolicies/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single AuthzPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzPolicies/{authzPoliciesId}", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.authzPolicies.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the `AuthzPolicy` resource to get. Must be in the format `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "AuthzPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists AuthzPolicies in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzPolicies", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.authzPolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results that the server returns.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the `AuthzPolicy` resources are listed, specified in the following format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/authzPolicies", + "response": { + "$ref": "ListAuthzPoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single AuthzPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzPolicies/{authzPoliciesId}", + "httpMethod": "PATCH", + "id": "networksecurity.projects.locations.authzPolicies.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. Name of the `AuthzPolicy` resource in the following format: `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzPolicies/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Used to specify the fields to be overwritten in the `AuthzPolicy` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "AuthzPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "clientTlsPolicies": { "methods": { "create": { @@ -3162,7 +3344,7 @@ } } }, - "revision": "20240626", + "revision": "20240722", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -3320,6 +3502,336 @@ }, "type": "object" }, + "AuthzPolicy": { + "description": "`AuthzPolicy` is a resource that allows to forward traffic to a callout backend designed to scan the traffic for security purposes.", + "id": "AuthzPolicy", + "properties": { + "action": { + "description": "Required. Can be one of ALLOW, DENY, CUSTOM. When the action is CUSTOM, customProvider must be specified. When the action is ALLOW, only requests matching the policy will be allowed. When the action is DENY, only requests matching the policy will be denied. When a request arrives, the policies are evaluated in the following order: 1. If there is a CUSTOM policy that matches the request, the CUSTOM policy is evaluated using the custom authorization providers and the request is denied if the provider rejects the request. 2. If there are any DENY policies that match the request, the request is denied. 3. If there are no ALLOW policies for the resource or if any of the ALLOW policies match the request, the request is allowed. 4. Else the request is denied by default if none of the configured AuthzPolicies with ALLOW action match the request.", + "enum": [ + "AUTHZ_ACTION_UNSPECIFIED", + "ALLOW", + "DENY", + "CUSTOM" + ], + "enumDescriptions": [ + "Unspecified action.", + "Allow request to pass through to the backend.", + "Deny the request and return a HTTP 404 to the client.", + "Delegate the authorization decision to an external authorization engine." + ], + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "customProvider": { + "$ref": "AuthzPolicyCustomProvider", + "description": "Optional. Required if the action is CUSTOM. Allows delegating authorization decisions to Cloud IAP or to Service Extensions. One of cloudIap or authzExtension must be specified." + }, + "description": { + "description": "Optional. A human-readable description of the resource.", + "type": "string" + }, + "httpRules": { + "description": "Optional. A list of authorization HTTP rules to match against the incoming request. A policy match occurs when at least one HTTP rule matches the request or when no HTTP rules are specified in the policy. At least one HTTP Rule is required for Allow or Deny Action.", + "items": { + "$ref": "AuthzPolicyAuthzRule" + }, + "type": "array" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Set of labels associated with the `AuthzPolicy` resource. The format must comply with [the following requirements](/compute/docs/labeling-resources#requirements).", + "type": "object" + }, + "name": { + "description": "Required. Identifier. Name of the `AuthzPolicy` resource in the following format: `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.", + "type": "string" + }, + "target": { + "$ref": "AuthzPolicyTarget", + "description": "Required. Specifies the set of resources to which this policy should be applied to." + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRule": { + "description": "Conditions to match against the incoming request.", + "id": "AuthzPolicyAuthzRule", + "properties": { + "from": { + "$ref": "AuthzPolicyAuthzRuleFrom", + "description": "Optional. Describes properties of one or more sources of a request." + }, + "to": { + "$ref": "AuthzPolicyAuthzRuleTo", + "description": "Optional. Describes properties of one or more targets of a request." + }, + "when": { + "description": "Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.", + "type": "string" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleFrom": { + "description": "Describes properties of one or more sources of a request.", + "id": "AuthzPolicyAuthzRuleFrom", + "properties": { + "notSources": { + "description": "Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.", + "items": { + "$ref": "AuthzPolicyAuthzRuleFromRequestSource" + }, + "type": "array" + }, + "sources": { + "description": "Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 10 sources. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.", + "items": { + "$ref": "AuthzPolicyAuthzRuleFromRequestSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleFromRequestSource": { + "description": "Describes the properties of a single source.", + "id": "AuthzPolicyAuthzRuleFromRequestSource", + "properties": { + "principals": { + "description": "Optional. A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified. Limited to 10 principals.", + "items": { + "$ref": "AuthzPolicyAuthzRuleStringMatch" + }, + "type": "array" + }, + "resources": { + "description": "Optional. A list of resources to match against the resource of the source VM of a request. Limited to 10 resources.", + "items": { + "$ref": "AuthzPolicyAuthzRuleRequestResource" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleHeaderMatch": { + "description": "Determines how a HTTP header should be matched.", + "id": "AuthzPolicyAuthzRuleHeaderMatch", + "properties": { + "name": { + "description": "Optional. Specifies the name of the header in the request.", + "type": "string" + }, + "value": { + "$ref": "AuthzPolicyAuthzRuleStringMatch", + "description": "Optional. Specifies how the header match will be performed." + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleRequestResource": { + "description": "Describes the properties of a client VM resource accessing the internal application load balancers.", + "id": "AuthzPolicyAuthzRuleRequestResource", + "properties": { + "iamServiceAccount": { + "$ref": "AuthzPolicyAuthzRuleStringMatch", + "description": "Optional. An IAM service account to match against the source service account of the VM sending the request." + }, + "tagValueIdSet": { + "$ref": "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet", + "description": "Optional. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request." + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet": { + "description": "Describes a set of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.", + "id": "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet", + "properties": { + "ids": { + "description": "Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 10 matches.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleStringMatch": { + "description": "Determines how a string value should be matched.", + "id": "AuthzPolicyAuthzRuleStringMatch", + "properties": { + "contains": { + "description": "The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def``", + "type": "string" + }, + "exact": { + "description": "The input string must match exactly the string specified here. Examples: * ``abc`` only matches the value ``abc``.", + "type": "string" + }, + "ignoreCase": { + "description": "If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher ``data`` will match both input string ``Data`` and ``data`` if set to true.", + "type": "boolean" + }, + "prefix": { + "description": "The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``abc.xyz``", + "type": "string" + }, + "suffix": { + "description": "The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc``", + "type": "string" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleTo": { + "description": "Describes properties of one or more targets of a request.", + "id": "AuthzPolicyAuthzRuleTo", + "properties": { + "notOperations": { + "description": "Optional. Describes the negated properties of the targets of a request. Matches requests for operations that do not match the criteria specified in this field. At least one of operations or notOperations must be specified.", + "items": { + "$ref": "AuthzPolicyAuthzRuleToRequestOperation" + }, + "type": "array" + }, + "operations": { + "description": "Optional. Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 10 operations. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.", + "items": { + "$ref": "AuthzPolicyAuthzRuleToRequestOperation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleToRequestOperation": { + "description": "Describes properties of one or more targets of a request.", + "id": "AuthzPolicyAuthzRuleToRequestOperation", + "properties": { + "headerSet": { + "$ref": "AuthzPolicyAuthzRuleToRequestOperationHeaderSet", + "description": "Optional. A list of headers to match against in http header." + }, + "hosts": { + "description": "Optional. A list of HTTP Hosts to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 matches.", + "items": { + "$ref": "AuthzPolicyAuthzRuleStringMatch" + }, + "type": "array" + }, + "methods": { + "description": "Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case sensitive.", + "items": { + "type": "string" + }, + "type": "array" + }, + "paths": { + "description": "Optional. A list of paths to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 matches. Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.", + "items": { + "$ref": "AuthzPolicyAuthzRuleStringMatch" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleToRequestOperationHeaderSet": { + "description": "Describes a set of HTTP headers to match against.", + "id": "AuthzPolicyAuthzRuleToRequestOperationHeaderSet", + "properties": { + "headers": { + "description": "Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 matches.", + "items": { + "$ref": "AuthzPolicyAuthzRuleHeaderMatch" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyCustomProvider": { + "description": "Allows delegating authorization decisions to Cloud IAP or to Service Extensions.", + "id": "AuthzPolicyCustomProvider", + "properties": { + "authzExtension": { + "$ref": "AuthzPolicyCustomProviderAuthzExtension", + "description": "Optional. Delegate authorization decision to user authored Service Extension. Only one of cloudIap or authzExtension can be specified." + }, + "cloudIap": { + "$ref": "AuthzPolicyCustomProviderCloudIap", + "description": "Optional. Delegates authorization decisions to Cloud IAP. Applicable only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings in the BackendService. Enabling IAP in both places will result in request failure. Ensure that IAP is enabled in either the AuthzPolicy or the BackendService but not in both places." + } + }, + "type": "object" + }, + "AuthzPolicyCustomProviderAuthzExtension": { + "description": "Optional. Delegate authorization decision to user authored extension. Only one of cloudIap or authzExtension can be specified.", + "id": "AuthzPolicyCustomProviderAuthzExtension", + "properties": { + "resources": { + "description": "Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyCustomProviderCloudIap": { + "description": "Optional. Delegates authorization decisions to Cloud IAP. Applicable only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings in the BackendService. Enabling IAP in both places will result in request failure. Ensure that IAP is enabled in either the AuthzPolicy or the BackendService but not in both places.", + "id": "AuthzPolicyCustomProviderCloudIap", + "properties": {}, + "type": "object" + }, + "AuthzPolicyTarget": { + "description": "Specifies the set of targets to which this policy should be applied to.", + "id": "AuthzPolicyTarget", + "properties": { + "loadBalancingScheme": { + "description": "Required. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).", + "enum": [ + "LOAD_BALANCING_SCHEME_UNSPECIFIED", + "INTERNAL_MANAGED", + "EXTERNAL_MANAGED", + "INTERNAL_SELF_MANAGED" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "Signifies that this is used for Regional internal or Cross-region internal Application Load Balancing.", + "Signifies that this is used for Global external or Regional external Application Load Balancing.", + "Signifies that this is used for Cloud Service Mesh." + ], + "type": "string" + }, + "resources": { + "description": "Required. A list of references to the Forwarding Rules on which this policy will be applied.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -3982,6 +4494,31 @@ }, "type": "object" }, + "ListAuthzPoliciesResponse": { + "description": "Message for response to listing `AuthzPolicy` resources.", + "id": "ListAuthzPoliciesResponse", + "properties": { + "authzPolicies": { + "description": "The list of `AuthzPolicy` resources.", + "items": { + "$ref": "AuthzPolicy" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results that the server returns.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListClientTlsPoliciesResponse": { "description": "Response returned by the ListClientTlsPolicies method.", "id": "ListClientTlsPoliciesResponse", diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index b2843552264..616f1e2deb0 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -254,6 +254,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.AddressGroups = NewProjectsLocationsAddressGroupsService(s) rs.AuthorizationPolicies = NewProjectsLocationsAuthorizationPoliciesService(s) + rs.AuthzPolicies = NewProjectsLocationsAuthzPoliciesService(s) rs.ClientTlsPolicies = NewProjectsLocationsClientTlsPoliciesService(s) rs.FirewallEndpointAssociations = NewProjectsLocationsFirewallEndpointAssociationsService(s) rs.GatewaySecurityPolicies = NewProjectsLocationsGatewaySecurityPoliciesService(s) @@ -271,6 +272,8 @@ type ProjectsLocationsService struct { AuthorizationPolicies *ProjectsLocationsAuthorizationPoliciesService + AuthzPolicies *ProjectsLocationsAuthzPoliciesService + ClientTlsPolicies *ProjectsLocationsClientTlsPoliciesService FirewallEndpointAssociations *ProjectsLocationsFirewallEndpointAssociationsService @@ -304,6 +307,15 @@ type ProjectsLocationsAuthorizationPoliciesService struct { s *Service } +func NewProjectsLocationsAuthzPoliciesService(s *Service) *ProjectsLocationsAuthzPoliciesService { + rs := &ProjectsLocationsAuthzPoliciesService{s: s} + return rs +} + +type ProjectsLocationsAuthzPoliciesService struct { + s *Service +} + func NewProjectsLocationsClientTlsPoliciesService(s *Service) *ProjectsLocationsClientTlsPoliciesService { rs := &ProjectsLocationsClientTlsPoliciesService{s: s} return rs @@ -525,6 +537,490 @@ func (s AuthorizationPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AuthzPolicy: `AuthzPolicy` is a resource that allows to forward traffic to a +// callout backend designed to scan the traffic for security purposes. +type AuthzPolicy struct { + // Action: Required. Can be one of ALLOW, DENY, CUSTOM. When the action is + // CUSTOM, customProvider must be specified. When the action is ALLOW, only + // requests matching the policy will be allowed. When the action is DENY, only + // requests matching the policy will be denied. When a request arrives, the + // policies are evaluated in the following order: 1. If there is a CUSTOM + // policy that matches the request, the CUSTOM policy is evaluated using the + // custom authorization providers and the request is denied if the provider + // rejects the request. 2. If there are any DENY policies that match the + // request, the request is denied. 3. If there are no ALLOW policies for the + // resource or if any of the ALLOW policies match the request, the request is + // allowed. 4. Else the request is denied by default if none of the configured + // AuthzPolicies with ALLOW action match the request. + // + // Possible values: + // "AUTHZ_ACTION_UNSPECIFIED" - Unspecified action. + // "ALLOW" - Allow request to pass through to the backend. + // "DENY" - Deny the request and return a HTTP 404 to the client. + // "CUSTOM" - Delegate the authorization decision to an external + // authorization engine. + Action string `json:"action,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. + CreateTime string `json:"createTime,omitempty"` + // CustomProvider: Optional. Required if the action is CUSTOM. Allows + // delegating authorization decisions to Cloud IAP or to Service Extensions. + // One of cloudIap or authzExtension must be specified. + CustomProvider *AuthzPolicyCustomProvider `json:"customProvider,omitempty"` + // Description: Optional. A human-readable description of the resource. + Description string `json:"description,omitempty"` + // HttpRules: Optional. A list of authorization HTTP rules to match against the + // incoming request. A policy match occurs when at least one HTTP rule matches + // the request or when no HTTP rules are specified in the policy. At least one + // HTTP Rule is required for Allow or Deny Action. + HttpRules []*AuthzPolicyAuthzRule `json:"httpRules,omitempty"` + // Labels: Optional. Set of labels associated with the `AuthzPolicy` resource. + // The format must comply with the following requirements + // (/compute/docs/labeling-resources#requirements). + Labels map[string]string `json:"labels,omitempty"` + // Name: Required. Identifier. Name of the `AuthzPolicy` resource in the + // following format: + // `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. + Name string `json:"name,omitempty"` + // Target: Required. Specifies the set of resources to which this policy should + // be applied to. + Target *AuthzPolicyTarget `json:"target,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicy) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRule: Conditions to match against the incoming request. +type AuthzPolicyAuthzRule struct { + // From: Optional. Describes properties of one or more sources of a request. + From *AuthzPolicyAuthzRuleFrom `json:"from,omitempty"` + // To: Optional. Describes properties of one or more targets of a request. + To *AuthzPolicyAuthzRuleTo `json:"to,omitempty"` + // When: Optional. CEL expression that describes the conditions to be satisfied + // for the action. The result of the CEL expression is ANDed with the from and + // to. Refer to the CEL language reference for a list of available attributes. + When string `json:"when,omitempty"` + // ForceSendFields is a list of field names (e.g. "From") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "From") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRule) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleFrom: Describes properties of one or more sources of a +// request. +type AuthzPolicyAuthzRuleFrom struct { + // NotSources: Optional. Describes the negated properties of request sources. + // Matches requests from sources that do not match the criteria specified in + // this field. At least one of sources or notSources must be specified. + NotSources []*AuthzPolicyAuthzRuleFromRequestSource `json:"notSources,omitempty"` + // Sources: Optional. Describes the properties of a request's sources. At least + // one of sources or notSources must be specified. Limited to 10 sources. A + // match occurs when ANY source (in sources or notSources) matches the request. + // Within a single source, the match follows AND semantics across fields and OR + // semantics within a single field, i.e. a match occurs when ANY principal + // matches AND ANY ipBlocks match. + Sources []*AuthzPolicyAuthzRuleFromRequestSource `json:"sources,omitempty"` + // ForceSendFields is a list of field names (e.g. "NotSources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NotSources") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleFrom) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleFrom + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleFromRequestSource: Describes the properties of a single +// source. +type AuthzPolicyAuthzRuleFromRequestSource struct { + // Principals: Optional. A list of identities derived from the client's + // certificate. This field will not match on a request unless mutual TLS is + // enabled for the Forwarding rule or Gateway. Each identity is a string whose + // value is matched against the URI SAN, or DNS SAN or the subject field in the + // client's certificate. The match can be exact, prefix, suffix or a substring + // match. One of exact, prefix, suffix or contains must be specified. Limited + // to 10 principals. + Principals []*AuthzPolicyAuthzRuleStringMatch `json:"principals,omitempty"` + // Resources: Optional. A list of resources to match against the resource of + // the source VM of a request. Limited to 10 resources. + Resources []*AuthzPolicyAuthzRuleRequestResource `json:"resources,omitempty"` + // ForceSendFields is a list of field names (e.g. "Principals") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Principals") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleFromRequestSource) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleFromRequestSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleHeaderMatch: Determines how a HTTP header should be +// matched. +type AuthzPolicyAuthzRuleHeaderMatch struct { + // Name: Optional. Specifies the name of the header in the request. + Name string `json:"name,omitempty"` + // Value: Optional. Specifies how the header match will be performed. + Value *AuthzPolicyAuthzRuleStringMatch `json:"value,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleHeaderMatch) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleHeaderMatch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleRequestResource: Describes the properties of a client VM +// resource accessing the internal application load balancers. +type AuthzPolicyAuthzRuleRequestResource struct { + // IamServiceAccount: Optional. An IAM service account to match against the + // source service account of the VM sending the request. + IamServiceAccount *AuthzPolicyAuthzRuleStringMatch `json:"iamServiceAccount,omitempty"` + // TagValueIdSet: Optional. A list of resource tag value permanent IDs to match + // against the resource manager tags value associated with the source VM of a + // request. + TagValueIdSet *AuthzPolicyAuthzRuleRequestResourceTagValueIdSet `json:"tagValueIdSet,omitempty"` + // ForceSendFields is a list of field names (e.g. "IamServiceAccount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IamServiceAccount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleRequestResource) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleRequestResource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleRequestResourceTagValueIdSet: Describes a set of +// resource tag value permanent IDs to match against the resource manager tags +// value associated with the source VM of a request. +type AuthzPolicyAuthzRuleRequestResourceTagValueIdSet struct { + // Ids: Required. A list of resource tag value permanent IDs to match against + // the resource manager tags value associated with the source VM of a request. + // The match follows AND semantics which means all the ids must match. Limited + // to 10 matches. + Ids googleapi.Int64s `json:"ids,omitempty"` + // ForceSendFields is a list of field names (e.g. "Ids") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Ids") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleRequestResourceTagValueIdSet) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleRequestResourceTagValueIdSet + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleStringMatch: Determines how a string value should be +// matched. +type AuthzPolicyAuthzRuleStringMatch struct { + // Contains: The input string must have the substring specified here. Note: + // empty contains match is not allowed, please use regex instead. Examples: * + // ``abc`` matches the value ``xyz.abc.def`` + Contains string `json:"contains,omitempty"` + // Exact: The input string must match exactly the string specified here. + // Examples: * ``abc`` only matches the value ``abc``. + Exact string `json:"exact,omitempty"` + // IgnoreCase: If true, indicates the exact/prefix/suffix/contains matching + // should be case insensitive. For example, the matcher ``data`` will match + // both input string ``Data`` and ``data`` if set to true. + IgnoreCase bool `json:"ignoreCase,omitempty"` + // Prefix: The input string must have the prefix specified here. Note: empty + // prefix is not allowed, please use regex instead. Examples: * ``abc`` matches + // the value ``abc.xyz`` + Prefix string `json:"prefix,omitempty"` + // Suffix: The input string must have the suffix specified here. Note: empty + // prefix is not allowed, please use regex instead. Examples: * ``abc`` matches + // the value ``xyz.abc`` + Suffix string `json:"suffix,omitempty"` + // ForceSendFields is a list of field names (e.g. "Contains") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Contains") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleStringMatch) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleStringMatch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleTo: Describes properties of one or more targets of a +// request. +type AuthzPolicyAuthzRuleTo struct { + // NotOperations: Optional. Describes the negated properties of the targets of + // a request. Matches requests for operations that do not match the criteria + // specified in this field. At least one of operations or notOperations must be + // specified. + NotOperations []*AuthzPolicyAuthzRuleToRequestOperation `json:"notOperations,omitempty"` + // Operations: Optional. Describes properties of one or more targets of a + // request. At least one of operations or notOperations must be specified. + // Limited to 10 operations. A match occurs when ANY operation (in operations + // or notOperations) matches. Within an operation, the match follows AND + // semantics across fields and OR semantics within a field, i.e. a match occurs + // when ANY path matches AND ANY header matches and ANY method matches. + Operations []*AuthzPolicyAuthzRuleToRequestOperation `json:"operations,omitempty"` + // ForceSendFields is a list of field names (e.g. "NotOperations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NotOperations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleTo) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleTo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleToRequestOperation: Describes properties of one or more +// targets of a request. +type AuthzPolicyAuthzRuleToRequestOperation struct { + // HeaderSet: Optional. A list of headers to match against in http header. + HeaderSet *AuthzPolicyAuthzRuleToRequestOperationHeaderSet `json:"headerSet,omitempty"` + // Hosts: Optional. A list of HTTP Hosts to match against. The match can be one + // of exact, prefix, suffix, or contains (substring match). Matches are always + // case sensitive unless the ignoreCase is set. Limited to 10 matches. + Hosts []*AuthzPolicyAuthzRuleStringMatch `json:"hosts,omitempty"` + // Methods: Optional. A list of HTTP methods to match against. Each entry must + // be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). + // It only allows exact match and is always case sensitive. + Methods []string `json:"methods,omitempty"` + // Paths: Optional. A list of paths to match against. The match can be one of + // exact, prefix, suffix, or contains (substring match). Matches are always + // case sensitive unless the ignoreCase is set. Limited to 10 matches. Note + // that this path match includes the query parameters. For gRPC services, this + // should be a fully-qualified name of the form /package.service/method. + Paths []*AuthzPolicyAuthzRuleStringMatch `json:"paths,omitempty"` + // ForceSendFields is a list of field names (e.g. "HeaderSet") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "HeaderSet") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleToRequestOperation) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleToRequestOperation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyAuthzRuleToRequestOperationHeaderSet: Describes a set of HTTP +// headers to match against. +type AuthzPolicyAuthzRuleToRequestOperationHeaderSet struct { + // Headers: Required. A list of headers to match against in http header. The + // match can be one of exact, prefix, suffix, or contains (substring match). + // The match follows AND semantics which means all the headers must match. + // Matches are always case sensitive unless the ignoreCase is set. Limited to + // 10 matches. + Headers []*AuthzPolicyAuthzRuleHeaderMatch `json:"headers,omitempty"` + // ForceSendFields is a list of field names (e.g. "Headers") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Headers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyAuthzRuleToRequestOperationHeaderSet) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyAuthzRuleToRequestOperationHeaderSet + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyCustomProvider: Allows delegating authorization decisions to +// Cloud IAP or to Service Extensions. +type AuthzPolicyCustomProvider struct { + // AuthzExtension: Optional. Delegate authorization decision to user authored + // Service Extension. Only one of cloudIap or authzExtension can be specified. + AuthzExtension *AuthzPolicyCustomProviderAuthzExtension `json:"authzExtension,omitempty"` + // CloudIap: Optional. Delegates authorization decisions to Cloud IAP. + // Applicable only for managed load balancers. Enabling Cloud IAP at the + // AuthzPolicy level is not compatible with Cloud IAP settings in the + // BackendService. Enabling IAP in both places will result in request failure. + // Ensure that IAP is enabled in either the AuthzPolicy or the BackendService + // but not in both places. + CloudIap *AuthzPolicyCustomProviderCloudIap `json:"cloudIap,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthzExtension") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthzExtension") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyCustomProvider) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyCustomProvider + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyCustomProviderAuthzExtension: Optional. Delegate authorization +// decision to user authored extension. Only one of cloudIap or authzExtension +// can be specified. +type AuthzPolicyCustomProviderAuthzExtension struct { + // Resources: Required. A list of references to authorization extensions that + // will be invoked for requests matching this policy. Limited to 1 custom + // provider. + Resources []string `json:"resources,omitempty"` + // ForceSendFields is a list of field names (e.g. "Resources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Resources") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyCustomProviderAuthzExtension) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyCustomProviderAuthzExtension + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AuthzPolicyCustomProviderCloudIap: Optional. Delegates authorization +// decisions to Cloud IAP. Applicable only for managed load balancers. Enabling +// Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings +// in the BackendService. Enabling IAP in both places will result in request +// failure. Ensure that IAP is enabled in either the AuthzPolicy or the +// BackendService but not in both places. +type AuthzPolicyCustomProviderCloudIap struct { +} + +// AuthzPolicyTarget: Specifies the set of targets to which this policy should +// be applied to. +type AuthzPolicyTarget struct { + // LoadBalancingScheme: Required. All gateways and forwarding rules referenced + // by this policy and extensions must share the same load balancing scheme. + // Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more + // information, refer to Choosing a load balancer + // (https://cloud.google.com/load-balancing/docs/backend-service). + // + // Possible values: + // "LOAD_BALANCING_SCHEME_UNSPECIFIED" - Default value. Do not use. + // "INTERNAL_MANAGED" - Signifies that this is used for Regional internal or + // Cross-region internal Application Load Balancing. + // "EXTERNAL_MANAGED" - Signifies that this is used for Global external or + // Regional external Application Load Balancing. + // "INTERNAL_SELF_MANAGED" - Signifies that this is used for Cloud Service + // Mesh. + LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` + // Resources: Required. A list of references to the Forwarding Rules on which + // this policy will be applied. + Resources []string `json:"resources,omitempty"` + // ForceSendFields is a list of field names (e.g. "LoadBalancingScheme") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LoadBalancingScheme") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzPolicyTarget) MarshalJSON() ([]byte, error) { + type NoMethod AuthzPolicyTarget + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } @@ -1530,6 +2026,37 @@ func (s ListAuthorizationPoliciesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListAuthzPoliciesResponse: Message for response to listing `AuthzPolicy` +// resources. +type ListAuthzPoliciesResponse struct { + // AuthzPolicies: The list of `AuthzPolicy` resources. + AuthzPolicies []*AuthzPolicy `json:"authzPolicies,omitempty"` + // NextPageToken: A token identifying a page of results that the server + // returns. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AuthzPolicies") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthzPolicies") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAuthzPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAuthzPoliciesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListClientTlsPoliciesResponse: Response returned by the // ListClientTlsPolicies method. type ListClientTlsPoliciesResponse struct { @@ -8612,6 +9139,640 @@ func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Do(opts . return ret, nil } +type ProjectsLocationsAuthzPoliciesCreateCall struct { + s *Service + parent string + authzpolicy *AuthzPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new AuthzPolicy in a given project and location. +// +// - parent: The parent resource of the `AuthzPolicy` resource. Must be in the +// format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzPoliciesService) Create(parent string, authzpolicy *AuthzPolicy) *ProjectsLocationsAuthzPoliciesCreateCall { + c := &ProjectsLocationsAuthzPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.authzpolicy = authzpolicy + return c +} + +// AuthzPolicyId sets the optional parameter "authzPolicyId": Required. +// User-provided ID of the `AuthzPolicy` resource to be created. +func (c *ProjectsLocationsAuthzPoliciesCreateCall) AuthzPolicyId(authzPolicyId string) *ProjectsLocationsAuthzPoliciesCreateCall { + c.urlParams_.Set("authzPolicyId", authzPolicyId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes since the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzPoliciesCreateCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzPoliciesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.authzpolicy) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/authzPolicies") + 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 "networksecurity.projects.locations.authzPolicies.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsAuthzPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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 +} + +type ProjectsLocationsAuthzPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single AuthzPolicy. +// +// - name: The name of the `AuthzPolicy` resource to delete. Must be in the +// format +// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. +func (r *ProjectsLocationsAuthzPoliciesService) Delete(name string) *ProjectsLocationsAuthzPoliciesDeleteCall { + c := &ProjectsLocationsAuthzPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes after the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "networksecurity.projects.locations.authzPolicies.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsAuthzPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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 +} + +type ProjectsLocationsAuthzPoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single AuthzPolicy. +// +// - name: A name of the `AuthzPolicy` resource to get. Must be in the format +// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. +func (r *ProjectsLocationsAuthzPoliciesService) Get(name string) *ProjectsLocationsAuthzPoliciesGetCall { + c := &ProjectsLocationsAuthzPoliciesGetCall{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 +// details. +func (c *ProjectsLocationsAuthzPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthzPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzPoliciesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzPoliciesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1beta1/{+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 "networksecurity.projects.locations.authzPolicies.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AuthzPolicy.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 *ProjectsLocationsAuthzPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AuthzPolicy, 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 := &AuthzPolicy{ + 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 +} + +type ProjectsLocationsAuthzPoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists AuthzPolicies in a given project and location. +// +// - parent: The project and location from which the `AuthzPolicy` resources +// are listed, specified in the following format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzPoliciesService) List(parent string) *ProjectsLocationsAuthzPoliciesListCall { + c := &ProjectsLocationsAuthzPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsAuthzPoliciesListCall) Filter(filter string) *ProjectsLocationsAuthzPoliciesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsAuthzPoliciesListCall) OrderBy(orderBy string) *ProjectsLocationsAuthzPoliciesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. The +// server might return fewer items than requested. If unspecified, the server +// picks an appropriate default. +func (c *ProjectsLocationsAuthzPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAuthzPoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results that the server returns. +func (c *ProjectsLocationsAuthzPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAuthzPoliciesListCall { + 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 +// details. +func (c *ProjectsLocationsAuthzPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthzPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzPoliciesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzPoliciesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1beta1/{+parent}/authzPolicies") + 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 "networksecurity.projects.locations.authzPolicies.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAuthzPoliciesResponse.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 *ProjectsLocationsAuthzPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAuthzPoliciesResponse, 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 := &ListAuthzPoliciesResponse{ + 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 +} + +// 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 *ProjectsLocationsAuthzPoliciesListCall) Pages(ctx context.Context, f func(*ListAuthzPoliciesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } +} + +type ProjectsLocationsAuthzPoliciesPatchCall struct { + s *Service + name string + authzpolicy *AuthzPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single AuthzPolicy. +// +// - name: Identifier. Name of the `AuthzPolicy` resource in the following +// format: +// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. +func (r *ProjectsLocationsAuthzPoliciesService) Patch(name string, authzpolicy *AuthzPolicy) *ProjectsLocationsAuthzPoliciesPatchCall { + c := &ProjectsLocationsAuthzPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.authzpolicy = authzpolicy + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes since the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzPoliciesPatchCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Used to +// specify the fields to be overwritten in the `AuthzPolicy` resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field is overwritten if it is in the mask. +// If the user does not specify a mask, then all fields are overwritten. +func (c *ProjectsLocationsAuthzPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthzPoliciesPatchCall { + 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 +// details. +func (c *ProjectsLocationsAuthzPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzPoliciesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.authzpolicy) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "networksecurity.projects.locations.authzPolicies.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsAuthzPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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 +} + type ProjectsLocationsClientTlsPoliciesCreateCall struct { s *Service parent string diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index b4f416b649a..266e4f9bb8a 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2681,7 +2681,7 @@ } } }, - "revision": "20240723", + "revision": "20240726", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -5335,6 +5335,13 @@ "$ref": "Image", "description": "The logo image of the pass. This image is displayed in the card detail view in upper left, and also on the list/thumbnail view. If the logo is not present, the first letter of `cardTitle` would be shown as logo." }, + "messages": { + "description": "An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10.", + "items": { + "$ref": "Message" + }, + "type": "array" + }, "notifications": { "$ref": "Notifications", "description": "The notification settings that are enabled for this object." diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index c618f976ddf..a83c880a17d 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -3268,6 +3268,10 @@ type GenericObject struct { // view in upper left, and also on the list/thumbnail view. If the logo is not // present, the first letter of `cardTitle` would be shown as logo. Logo *Image `json:"logo,omitempty"` + // Messages: An array of messages displayed in the app. All users of this + // object will receive its associated messages. The maximum number of these + // fields is 10. + Messages []*Message `json:"messages,omitempty"` // Notifications: The notification settings that are enabled for this object. Notifications *Notifications `json:"notifications,omitempty"` // PassConstraints: Pass constraints for the object. Includes limiting NFC and diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 68992a9122c..944f0a16a89 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -772,7 +772,7 @@ } } }, - "revision": "20240701", + "revision": "20240717", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "AgentCommand": { @@ -1112,7 +1112,7 @@ "id": "ExternalDataSources", "properties": { "assetType": { - "description": "Required. The asset type of the external data source must be one of go/cai-asset-types", + "description": "Required. The asset type of the external data source this can be one of go/cai-asset-types to override the default asset type or it can be a custom type defined by the user custom type must match the asset type in the rule", "type": "string" }, "name": { @@ -1195,6 +1195,10 @@ "IsolationExpectations": { "id": "IsolationExpectations", "properties": { + "requirementOverride": { + "$ref": "RequirementOverride", + "description": "Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic." + }, "ziOrgPolicy": { "enum": [ "ZI_UNSPECIFIED", @@ -1654,6 +1658,44 @@ }, "type": "object" }, + "RequirementOverride": { + "id": "RequirementOverride", + "properties": { + "ziOverride": { + "enum": [ + "ZI_UNSPECIFIED", + "ZI_UNKNOWN", + "ZI_NOT_REQUIRED", + "ZI_PREFERRED", + "ZI_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "", + "" + ], + "type": "string" + }, + "zsOverride": { + "enum": [ + "ZS_UNSPECIFIED", + "ZS_UNKNOWN", + "ZS_NOT_REQUIRED", + "ZS_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "Resource": { "description": "Message represent resource in execution result", "id": "Resource", @@ -2128,14 +2170,36 @@ "INSTANCE_ROLE_ASCS", "INSTANCE_ROLE_ERS", "INSTANCE_ROLE_APP_SERVER", - "INSTANCE_ROLE_DATABASE" + "INSTANCE_ROLE_DATABASE", + "INSTANCE_ROLE_ASCS_ERS", + "INSTANCE_ROLE_ASCS_APP_SERVER", + "INSTANCE_ROLE_ASCS_DATABASE", + "INSTANCE_ROLE_ERS_APP_SERVER", + "INSTANCE_ROLE_ERS_DATABASE", + "INSTANCE_ROLE_APP_SERVER_DATABASE", + "INSTANCE_ROLE_ASCS_ERS_APP_SERVER", + "INSTANCE_ROLE_ASCS_ERS_DATABASE", + "INSTANCE_ROLE_ASCS_APP_SERVER_DATABASE", + "INSTANCE_ROLE_ERS_APP_SERVER_DATABASE", + "INSTANCE_ROLE_ASCS_ERS_APP_SERVER_DATABASE" ], "enumDescriptions": [ "Unspecified instance role.", "Application central services.", "Enqueue replication server.", "Application server.", - "Database node." + "Database node.", + "Combinations of roles. Application central services and enqueue replication server.", + "Application central services and application server.", + "Application central services and database.", + "Enqueue replication server and application server.", + "Enqueue replication server and database.", + "Application server and database.", + "Application central services, enqueue replication server and application server.", + "Application central services, enqueue replication server and database.", + "Application central services, application server and database.", + "Enqueue replication server, application server and database.", + "Application central services, enqueue replication server, application server and database." ], "type": "string" }, diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index a2b6fd5c51f..2845f0708c5 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -608,8 +608,10 @@ func (s ExecutionResult) MarshalJSON() ([]byte, error) { // ExternalDataSources: Message for external data sources type ExternalDataSources struct { - // AssetType: Required. The asset type of the external data source must be one - // of go/cai-asset-types + // AssetType: Required. The asset type of the external data source this can be + // one of go/cai-asset-types to override the default asset type or it can be a + // custom type defined by the user custom type must match the asset type in the + // rule AssetType string `json:"assetType,omitempty"` // Name: Optional. Name of external data source. The name will be used inside // the rego/sql to refer the external data @@ -720,6 +722,9 @@ func (s Insight) MarshalJSON() ([]byte, error) { } type IsolationExpectations struct { + // RequirementOverride: Explicit overrides for ZI and ZS requirements to be + // used for resources that should be excluded from ZI/ZS verification logic. + RequirementOverride *RequirementOverride `json:"requirementOverride,omitempty"` // Possible values: // "ZI_UNSPECIFIED" // "ZI_UNKNOWN" - To be used if tracking is not available @@ -773,15 +778,15 @@ type IsolationExpectations struct { // "ZS_REGION_NOT_ENABLED" // "ZS_REGION_ENABLED" ZsRegionState string `json:"zsRegionState,omitempty"` - // ForceSendFields is a list of field names (e.g. "ZiOrgPolicy") to + // ForceSendFields is a list of field names (e.g. "RequirementOverride") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ZiOrgPolicy") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "RequirementOverride") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -1221,6 +1226,38 @@ func (s RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RequirementOverride struct { + // Possible values: + // "ZI_UNSPECIFIED" + // "ZI_UNKNOWN" - To be used if tracking is not available + // "ZI_NOT_REQUIRED" + // "ZI_PREFERRED" + // "ZI_REQUIRED" + ZiOverride string `json:"ziOverride,omitempty"` + // Possible values: + // "ZS_UNSPECIFIED" + // "ZS_UNKNOWN" - To be used if tracking is not available + // "ZS_NOT_REQUIRED" + // "ZS_REQUIRED" + ZsOverride string `json:"zsOverride,omitempty"` + // ForceSendFields is a list of field names (e.g. "ZiOverride") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ZiOverride") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RequirementOverride) MarshalJSON() ([]byte, error) { + type NoMethod RequirementOverride + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Resource: Message represent resource in execution result type Resource struct { // Name: The name of the resource. @@ -1663,6 +1700,25 @@ type SapDiscoveryResourceInstanceProperties struct { // "INSTANCE_ROLE_ERS" - Enqueue replication server. // "INSTANCE_ROLE_APP_SERVER" - Application server. // "INSTANCE_ROLE_DATABASE" - Database node. + // "INSTANCE_ROLE_ASCS_ERS" - Combinations of roles. Application central + // services and enqueue replication server. + // "INSTANCE_ROLE_ASCS_APP_SERVER" - Application central services and + // application server. + // "INSTANCE_ROLE_ASCS_DATABASE" - Application central services and database. + // "INSTANCE_ROLE_ERS_APP_SERVER" - Enqueue replication server and + // application server. + // "INSTANCE_ROLE_ERS_DATABASE" - Enqueue replication server and database. + // "INSTANCE_ROLE_APP_SERVER_DATABASE" - Application server and database. + // "INSTANCE_ROLE_ASCS_ERS_APP_SERVER" - Application central services, + // enqueue replication server and application server. + // "INSTANCE_ROLE_ASCS_ERS_DATABASE" - Application central services, enqueue + // replication server and database. + // "INSTANCE_ROLE_ASCS_APP_SERVER_DATABASE" - Application central services, + // application server and database. + // "INSTANCE_ROLE_ERS_APP_SERVER_DATABASE" - Enqueue replication server, + // application server and database. + // "INSTANCE_ROLE_ASCS_ERS_APP_SERVER_DATABASE" - Application central + // services, enqueue replication server, application server and database. InstanceRole string `json:"instanceRole,omitempty"` // VirtualHostname: Optional. A virtual hostname of the instance if it has one. VirtualHostname string `json:"virtualHostname,omitempty"`