diff --git a/docs/dyn/advisorynotifications_v1.organizations.locations.html b/docs/dyn/advisorynotifications_v1.organizations.locations.html index c648cdcd41..8a255ef4ea 100644 --- a/docs/dyn/advisorynotifications_v1.organizations.locations.html +++ b/docs/dyn/advisorynotifications_v1.organizations.locations.html @@ -99,7 +99,7 @@

Method Details

Get notification settings.
 
 Args:
-  name: string, Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings. (required)
+  name: string, Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. (required)
   x__xgafv: string, V1 error format.
     Allowed values
       1 - v1 error format
@@ -110,7 +110,7 @@ 

Method Details

{ # Settings for Advisory Notifications. "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle. - "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings. + "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type. "a_key": { # Settings for each NotificationType. "enabled": True or False, # Whether the associated NotificationType is enabled. @@ -124,13 +124,13 @@

Method Details

Update notification settings.
 
 Args:
-  name: string, Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings. (required)
+  name: string, Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. (required)
   body: object, The request body.
     The object takes the form of:
 
 { # Settings for Advisory Notifications.
   "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
-  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings.
+  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
   "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
     "a_key": { # Settings for each NotificationType.
       "enabled": True or False, # Whether the associated NotificationType is enabled.
@@ -148,7 +148,7 @@ 

Method Details

{ # Settings for Advisory Notifications. "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle. - "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings. + "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type. "a_key": { # Settings for each NotificationType. "enabled": True or False, # Whether the associated NotificationType is enabled. diff --git a/docs/dyn/advisorynotifications_v1.organizations.locations.notifications.html b/docs/dyn/advisorynotifications_v1.organizations.locations.notifications.html index 5d36d56211..e28a19d768 100644 --- a/docs/dyn/advisorynotifications_v1.organizations.locations.notifications.html +++ b/docs/dyn/advisorynotifications_v1.organizations.locations.notifications.html @@ -156,7 +156,7 @@

Method Details

Lists notifications under a given parent.
 
 Args:
-  parent: string, Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}" (required)
+  parent: string, Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}". (required)
   languageCode: string, ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.
   pageSize: integer, The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.
   pageToken: string, A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.
diff --git a/docs/dyn/advisorynotifications_v1.projects.locations.html b/docs/dyn/advisorynotifications_v1.projects.locations.html
index e5e496fd8a..621fe7a366 100644
--- a/docs/dyn/advisorynotifications_v1.projects.locations.html
+++ b/docs/dyn/advisorynotifications_v1.projects.locations.html
@@ -82,10 +82,79 @@ 

Instance Methods

close()

Close httplib2 connections.

+

+ getSettings(name, x__xgafv=None)

+

Get notification settings.

+

+ updateSettings(name, body=None, x__xgafv=None)

+

Update notification settings.

Method Details

close()
Close httplib2 connections.
+
+ getSettings(name, x__xgafv=None) +
Get notification settings.
+
+Args:
+  name: string, Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Settings for Advisory Notifications.
+  "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
+  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
+  "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
+    "a_key": { # Settings for each NotificationType.
+      "enabled": True or False, # Whether the associated NotificationType is enabled.
+    },
+  },
+}
+
+ +
+ updateSettings(name, body=None, x__xgafv=None) +
Update notification settings.
+
+Args:
+  name: string, Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Settings for Advisory Notifications.
+  "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
+  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
+  "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
+    "a_key": { # Settings for each NotificationType.
+      "enabled": True or False, # Whether the associated NotificationType is enabled.
+    },
+  },
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Settings for Advisory Notifications.
+  "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
+  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
+  "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
+    "a_key": { # Settings for each NotificationType.
+      "enabled": True or False, # Whether the associated NotificationType is enabled.
+    },
+  },
+}
+
+ \ No newline at end of file diff --git a/docs/dyn/advisorynotifications_v1.projects.locations.notifications.html b/docs/dyn/advisorynotifications_v1.projects.locations.notifications.html index e557207f12..f6f9d3fd5b 100644 --- a/docs/dyn/advisorynotifications_v1.projects.locations.notifications.html +++ b/docs/dyn/advisorynotifications_v1.projects.locations.notifications.html @@ -156,7 +156,7 @@

Method Details

Lists notifications under a given parent.
 
 Args:
-  parent: string, Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}" (required)
+  parent: string, Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}". (required)
   languageCode: string, ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.
   pageSize: integer, The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.
   pageToken: string, A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.
diff --git a/googleapiclient/discovery_cache/documents/advisorynotifications.v1.json b/googleapiclient/discovery_cache/documents/advisorynotifications.v1.json
index ad0a4ed437..683166ef3e 100644
--- a/googleapiclient/discovery_cache/documents/advisorynotifications.v1.json
+++ b/googleapiclient/discovery_cache/documents/advisorynotifications.v1.json
@@ -119,7 +119,7 @@
 ],
 "parameters": {
 "name": {
-"description": "Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings.",
+"description": "Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.",
 "location": "path",
 "pattern": "^organizations/[^/]+/locations/[^/]+/settings$",
 "required": true,
@@ -144,7 +144,7 @@
 ],
 "parameters": {
 "name": {
-"description": "Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings.",
+"description": "Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.",
 "location": "path",
 "pattern": "^organizations/[^/]+/locations/[^/]+/settings$",
 "required": true,
@@ -222,7 +222,7 @@
 "type": "string"
 },
 "parent": {
-"description": "Required. The parent, which owns this collection of notifications. Must be of the form \"organizations/{organization}/locations/{location}\" or \"projects/{project}/locations/{location}\"",
+"description": "Required. The parent, which owns this collection of notifications. Must be of the form \"organizations/{organization}/locations/{location}\" or \"projects/{project}/locations/{location}\".",
 "location": "path",
 "pattern": "^organizations/[^/]+/locations/[^/]+$",
 "required": true,
@@ -261,6 +261,61 @@
 "projects": {
 "resources": {
 "locations": {
+"methods": {
+"getSettings": {
+"description": "Get notification settings.",
+"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/settings",
+"httpMethod": "GET",
+"id": "advisorynotifications.projects.locations.getSettings",
+"parameterOrder": [
+"name"
+],
+"parameters": {
+"name": {
+"description": "Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.",
+"location": "path",
+"pattern": "^projects/[^/]+/locations/[^/]+/settings$",
+"required": true,
+"type": "string"
+}
+},
+"path": "v1/{+name}",
+"response": {
+"$ref": "GoogleCloudAdvisorynotificationsV1Settings"
+},
+"scopes": [
+"https://www.googleapis.com/auth/cloud-platform"
+]
+},
+"updateSettings": {
+"description": "Update notification settings.",
+"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/settings",
+"httpMethod": "PATCH",
+"id": "advisorynotifications.projects.locations.updateSettings",
+"parameterOrder": [
+"name"
+],
+"parameters": {
+"name": {
+"description": "Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.",
+"location": "path",
+"pattern": "^projects/[^/]+/locations/[^/]+/settings$",
+"required": true,
+"type": "string"
+}
+},
+"path": "v1/{+name}",
+"request": {
+"$ref": "GoogleCloudAdvisorynotificationsV1Settings"
+},
+"response": {
+"$ref": "GoogleCloudAdvisorynotificationsV1Settings"
+},
+"scopes": [
+"https://www.googleapis.com/auth/cloud-platform"
+]
+}
+},
 "resources": {
 "notifications": {
 "methods": {
@@ -320,7 +375,7 @@
 "type": "string"
 },
 "parent": {
-"description": "Required. The parent, which owns this collection of notifications. Must be of the form \"organizations/{organization}/locations/{location}\" or \"projects/{project}/locations/{location}\"",
+"description": "Required. The parent, which owns this collection of notifications. Must be of the form \"organizations/{organization}/locations/{location}\" or \"projects/{project}/locations/{location}\".",
 "location": "path",
 "pattern": "^projects/[^/]+/locations/[^/]+$",
 "required": true,
@@ -357,7 +412,7 @@
 }
 }
 },
-"revision": "20240324",
+"revision": "20240331",
 "rootUrl": "https://advisorynotifications.googleapis.com/",
 "schemas": {
 "GoogleCloudAdvisorynotificationsV1Attachment": {
@@ -538,7 +593,7 @@
 "type": "string"
 },
 "name": {
-"description": "Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings.",
+"description": "Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.",
 "type": "string"
 },
 "notificationSettings": {