Skip to content

Commit

Permalink
feat(osconfig): update the api
Browse files Browse the repository at this point in the history
#### 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)
  • Loading branch information
yoshi-automation committed Mar 19, 2024
1 parent 4df586d commit 0932619
Show file tree
Hide file tree
Showing 5 changed files with 237 additions and 3 deletions.
141 changes: 141 additions & 0 deletions docs/dyn/osconfig_v1.projects.locations.global_.html
@@ -0,0 +1,141 @@
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}

body {
font-size: 13px;
padding: 1em;
}

h1 {
font-size: 26px;
margin-bottom: 1em;
}

h2 {
font-size: 24px;
margin-bottom: 1em;
}

h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}

pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
margin-top: 0.5em;
}

h1, h2, h3, p {
font-family: Arial, sans serif;
}

h1, h2, h3 {
border-bottom: solid #CCC 1px;
}

.toc_element {
margin-top: 0.5em;
}

.firstline {
margin-left: 2 em;
}

.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}

.details {
font-weight: bold;
font-size: 14px;
}

</style>

<h1><a href="osconfig_v1.html">OS Config API</a> . <a href="osconfig_v1.projects.html">projects</a> . <a href="osconfig_v1.projects.locations.html">locations</a> . <a href="osconfig_v1.projects.locations.global_.html">global_</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#getProjectFeatureSettings">getProjectFeatureSettings(name, x__xgafv=None)</a></code></p>
<p class="firstline">GetProjectFeatureSettings returns the feature settings for a project</p>
<p class="toc_element">
<code><a href="#updateProjectFeatureSettings">updateProjectFeatureSettings(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">UpdateProjectFeatureSettings sets the feature settings for a project.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="getProjectFeatureSettings">getProjectFeatureSettings(name, x__xgafv=None)</code>
<pre>GetProjectFeatureSettings returns the feature settings for a project

Args:
name: string, Required. Name of the billing config. &quot;projects//locations/global/projectFeatureSettings&quot; (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.
&quot;name&quot;: &quot;A String&quot;, # Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings
&quot;patchAndConfigFeatureSet&quot;: &quot;A String&quot;, # Currently set PatchAndConfigFeatureSet for name.
}</pre>
</div>

<div class="method">
<code class="details" id="updateProjectFeatureSettings">updateProjectFeatureSettings(name, body=None, updateMask=None, x__xgafv=None)</code>
<pre>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.
&quot;name&quot;: &quot;A String&quot;, # Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings
&quot;patchAndConfigFeatureSet&quot;: &quot;A String&quot;, # 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.
&quot;name&quot;: &quot;A String&quot;, # Required. Immutable. Name of the config, e.g. projects/12345/locations/global/projectFeatureSettings
&quot;patchAndConfigFeatureSet&quot;: &quot;A String&quot;, # Currently set PatchAndConfigFeatureSet for name.
}</pre>
</div>

</body></html>
5 changes: 5 additions & 0 deletions docs/dyn/osconfig_v1.projects.locations.html
Expand Up @@ -74,6 +74,11 @@

<h1><a href="osconfig_v1.html">OS Config API</a> . <a href="osconfig_v1.projects.html">projects</a> . <a href="osconfig_v1.projects.locations.html">locations</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="osconfig_v1.projects.locations.global_.html">global_()</a></code>
</p>
<p class="firstline">Returns the global_ Resource.</p>

<p class="toc_element">
<code><a href="osconfig_v1.projects.locations.instances.html">instances()</a></code>
</p>
Expand Down
90 changes: 89 additions & 1 deletion googleapiclient/discovery_cache/documents/osconfig.v1.json
Expand Up @@ -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": {
Expand Down Expand Up @@ -1000,7 +1063,7 @@
}
}
},
"revision": "20240304",
"revision": "20240314",
"rootUrl": "https://osconfig.googleapis.com/",
"schemas": {
"AptSettings": {
Expand Down Expand Up @@ -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",
Expand Down
Expand Up @@ -687,7 +687,7 @@
}
}
},
"revision": "20240304",
"revision": "20240314",
"rootUrl": "https://osconfig.googleapis.com/",
"schemas": {
"CVSSv3": {
Expand Down
Expand Up @@ -689,7 +689,7 @@
}
}
},
"revision": "20240304",
"revision": "20240314",
"rootUrl": "https://osconfig.googleapis.com/",
"schemas": {
"AptRepository": {
Expand Down

0 comments on commit 0932619

Please sign in to comment.