From 0932619d9936780c376b3fa14e49f0fdc6a17ad2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 19 Mar 2024 07:08:23 +0000 Subject: [PATCH] feat(osconfig): update the api #### osconfig:v1 The following keys were added: - resources.projects.resources.locations.resources.global.methods.getProjectFeatureSettings (Total Keys: 11) - resources.projects.resources.locations.resources.global.methods.updateProjectFeatureSettings (Total Keys: 15) - schemas.ProjectFeatureSettings (Total Keys: 4) --- ...sconfig_v1.projects.locations.global_.html | 141 ++++++++++++++++++ docs/dyn/osconfig_v1.projects.locations.html | 5 + .../documents/osconfig.v1.json | 90 ++++++++++- .../documents/osconfig.v1alpha.json | 2 +- .../documents/osconfig.v1beta.json | 2 +- 5 files changed, 237 insertions(+), 3 deletions(-) create mode 100644 docs/dyn/osconfig_v1.projects.locations.global_.html diff --git a/docs/dyn/osconfig_v1.projects.locations.global_.html b/docs/dyn/osconfig_v1.projects.locations.global_.html new file mode 100644 index 00000000000..09f88f5da4b --- /dev/null +++ b/docs/dyn/osconfig_v1.projects.locations.global_.html @@ -0,0 +1,141 @@ + + + +

OS Config API . projects . locations . global_

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

+ getProjectFeatureSettings(name, x__xgafv=None)

+

GetProjectFeatureSettings returns the feature settings for a project

+

+ updateProjectFeatureSettings(name, body=None, updateMask=None, x__xgafv=None)

+

UpdateProjectFeatureSettings sets the feature settings for a project.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ getProjectFeatureSettings(name, x__xgafv=None) +
GetProjectFeatureSettings returns the feature settings for a project
+
+Args:
+  name: string, Required. Name of the billing config. "projects//locations/global/projectFeatureSettings" (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # ProjectFeatureSettings represents the features settings for the VM Manager. The project features settings can be set for a project.
+  "name": "A String", # Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings
+  "patchAndConfigFeatureSet": "A String", # Currently set PatchAndConfigFeatureSet for name.
+}
+
+ +
+ updateProjectFeatureSettings(name, body=None, updateMask=None, x__xgafv=None) +
UpdateProjectFeatureSettings sets the feature settings for a project.
+
+Args:
+  name: string, Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # ProjectFeatureSettings represents the features settings for the VM Manager. The project features settings can be set for a project.
+  "name": "A String", # Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings
+  "patchAndConfigFeatureSet": "A String", # Currently set PatchAndConfigFeatureSet for name.
+}
+
+  updateMask: string, Optional. Field mask that controls which fields of the ProjectFeatureSettings should be updated.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # ProjectFeatureSettings represents the features settings for the VM Manager. The project features settings can be set for a project.
+  "name": "A String", # Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings
+  "patchAndConfigFeatureSet": "A String", # Currently set PatchAndConfigFeatureSet for name.
+}
+
+ + \ No newline at end of file diff --git a/docs/dyn/osconfig_v1.projects.locations.html b/docs/dyn/osconfig_v1.projects.locations.html index 24592b5f665..1042aafbaa9 100644 --- a/docs/dyn/osconfig_v1.projects.locations.html +++ b/docs/dyn/osconfig_v1.projects.locations.html @@ -74,6 +74,11 @@

OS Config API . projects . locations

Instance Methods

+

+ global_() +

+

Returns the global_ Resource.

+

instances()

diff --git a/googleapiclient/discovery_cache/documents/osconfig.v1.json b/googleapiclient/discovery_cache/documents/osconfig.v1.json index 7969ff313a3..76040657ed3 100644 --- a/googleapiclient/discovery_cache/documents/osconfig.v1.json +++ b/googleapiclient/discovery_cache/documents/osconfig.v1.json @@ -109,6 +109,69 @@ "resources": { "locations": { "resources": { +"global": { +"methods": { +"getProjectFeatureSettings": { +"description": "GetProjectFeatureSettings returns the feature settings for a project", +"flatPath": "v1/projects/{projectsId}/locations/global/projectFeatureSettings", +"httpMethod": "GET", +"id": "osconfig.projects.locations.global.getProjectFeatureSettings", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. Name of the billing config. \"projects//locations/global/projectFeatureSettings\"", +"location": "path", +"pattern": "^projects/[^/]+/locations/global/projectFeatureSettings$", +"required": true, +"type": "string" +} +}, +"path": "v1/{+name}", +"response": { +"$ref": "ProjectFeatureSettings" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +}, +"updateProjectFeatureSettings": { +"description": "UpdateProjectFeatureSettings sets the feature settings for a project.", +"flatPath": "v1/projects/{projectsId}/locations/global/projectFeatureSettings", +"httpMethod": "PATCH", +"id": "osconfig.projects.locations.global.updateProjectFeatureSettings", +"parameterOrder": [ +"name" +], +"parameters": { +"name": { +"description": "Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings", +"location": "path", +"pattern": "^projects/[^/]+/locations/global/projectFeatureSettings$", +"required": true, +"type": "string" +}, +"updateMask": { +"description": "Optional. Field mask that controls which fields of the ProjectFeatureSettings should be updated.", +"format": "google-fieldmask", +"location": "query", +"type": "string" +} +}, +"path": "v1/{+name}", +"request": { +"$ref": "ProjectFeatureSettings" +}, +"response": { +"$ref": "ProjectFeatureSettings" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] +} +} +}, "instances": { "resources": { "inventories": { @@ -1000,7 +1063,7 @@ } } }, -"revision": "20240304", +"revision": "20240314", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptSettings": { @@ -3293,6 +3356,31 @@ "properties": {}, "type": "object" }, +"ProjectFeatureSettings": { +"description": "ProjectFeatureSettings represents the features settings for the VM Manager. The project features settings can be set for a project.", +"id": "ProjectFeatureSettings", +"properties": { +"name": { +"description": "Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings", +"type": "string" +}, +"patchAndConfigFeatureSet": { +"description": "Currently set PatchAndConfigFeatureSet for name.", +"enum": [ +"PATCH_AND_CONFIG_FEATURE_SET_UNSPECIFIED", +"OSCONFIG_B", +"OSCONFIG_C" +], +"enumDescriptions": [ +"Not specified placeholder", +"Basic feature set. Enables only the basic set of features.", +"Classic set of functionality." +], +"type": "string" +} +}, +"type": "object" +}, "RecurringSchedule": { "description": "Sets the time for recurring patch deployments.", "id": "RecurringSchedule", diff --git a/googleapiclient/discovery_cache/documents/osconfig.v1alpha.json b/googleapiclient/discovery_cache/documents/osconfig.v1alpha.json index 717b427590c..0e54e9f5d94 100644 --- a/googleapiclient/discovery_cache/documents/osconfig.v1alpha.json +++ b/googleapiclient/discovery_cache/documents/osconfig.v1alpha.json @@ -687,7 +687,7 @@ } } }, -"revision": "20240304", +"revision": "20240314", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "CVSSv3": { diff --git a/googleapiclient/discovery_cache/documents/osconfig.v1beta.json b/googleapiclient/discovery_cache/documents/osconfig.v1beta.json index 7338b2ec222..09d1fe30006 100644 --- a/googleapiclient/discovery_cache/documents/osconfig.v1beta.json +++ b/googleapiclient/discovery_cache/documents/osconfig.v1beta.json @@ -689,7 +689,7 @@ } } }, -"revision": "20240304", +"revision": "20240314", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptRepository": {