Debian Codegraph @

docs/dyn/iam_v1.projects.locations.oauthClients.credentials.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="iam_v1.html">Identity and Access Management (IAM) API</a> . <a href="iam_v1.projects.html">projects</a> . <a href="iam_v1.projects.locations.html">locations</a> . <a href="iam_v1.projects.locations.oauthClients.html">oauthClients</a> . <a href="iam_v1.projects.locations.oauthClients.credentials.html">credentials</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, oauthClientCredentialId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new OauthClientCredential.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes an OauthClientCredential. Before deleting an OauthClientCredential, it should first be disabled.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets an individual OauthClientCredential.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all OauthClientCredentials in an OauthClient.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Updates an existing OauthClientCredential.</p>
95 <h3>Method Details</h3>
96 <div class="method">
97 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99 </div>
100
101 <div class="method">
102 <code class="details" id="create">create(parent, body=None, oauthClientCredentialId=None, x__xgafv=None)</code>
103 <pre>Creates a new OauthClientCredential.
104
105 Args:
106 parent: string, Required. The parent resource to create the OauthClientCredential in. (required)
107 body: object, The request body.
108 The object takes the form of:
109
110 { # Represents an OauthClientCredential. Used to authenticate an OauthClient while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
111 &quot;clientSecret&quot;: &quot;A String&quot;, # Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see [OAuth client and credential security risks and mitigations](https://cloud.google.com/iam/docs/workforce-oauth-app#security)
112 &quot;disabled&quot;: True or False, # Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
113 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
114 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
115 }
116
117 oauthClientCredentialId: string, Required. The ID to use for the OauthClientCredential, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.
118 x__xgafv: string, V1 error format.
119 Allowed values
120 1 - v1 error format
121 2 - v2 error format
122
123 Returns:
124 An object of the form:
125
126 { # Represents an OauthClientCredential. Used to authenticate an OauthClient while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
127 &quot;clientSecret&quot;: &quot;A String&quot;, # Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see [OAuth client and credential security risks and mitigations](https://cloud.google.com/iam/docs/workforce-oauth-app#security)
128 &quot;disabled&quot;: True or False, # Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
129 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
130 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
131 }</pre>
132 </div>
133
134 <div class="method">
135 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
136 <pre>Deletes an OauthClientCredential. Before deleting an OauthClientCredential, it should first be disabled.
137
138 Args:
139 name: string, Required. The name of the OauthClientCredential to delete. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`. (required)
140 x__xgafv: string, V1 error format.
141 Allowed values
142 1 - v1 error format
143 2 - v2 error format
144
145 Returns:
146 An object of the form:
147
148 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
149 }</pre>
150 </div>
151
152 <div class="method">
153 <code class="details" id="get">get(name, x__xgafv=None)</code>
154 <pre>Gets an individual OauthClientCredential.
155
156 Args:
157 name: string, Required. The name of the OauthClientCredential to retrieve. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`. (required)
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163 Returns:
164 An object of the form:
165
166 { # Represents an OauthClientCredential. Used to authenticate an OauthClient while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
167 &quot;clientSecret&quot;: &quot;A String&quot;, # Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see [OAuth client and credential security risks and mitigations](https://cloud.google.com/iam/docs/workforce-oauth-app#security)
168 &quot;disabled&quot;: True or False, # Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
169 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
170 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
171 }</pre>
172 </div>
173
174 <div class="method">
175 <code class="details" id="list">list(parent, x__xgafv=None)</code>
176 <pre>Lists all OauthClientCredentials in an OauthClient.
177
178 Args:
179 parent: string, Required. The parent to list OauthClientCredentials for. (required)
180 x__xgafv: string, V1 error format.
181 Allowed values
182 1 - v1 error format
183 2 - v2 error format
184
185 Returns:
186 An object of the form:
187
188 { # Response message for ListOauthClientCredentials.
189 &quot;oauthClientCredentials&quot;: [ # A list of OauthClientCredentials.
190 { # Represents an OauthClientCredential. Used to authenticate an OauthClient while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
191 &quot;clientSecret&quot;: &quot;A String&quot;, # Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see [OAuth client and credential security risks and mitigations](https://cloud.google.com/iam/docs/workforce-oauth-app#security)
192 &quot;disabled&quot;: True or False, # Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
193 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
194 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
195 },
196 ],
197 }</pre>
198 </div>
199
200 <div class="method">
201 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
202 <pre>Updates an existing OauthClientCredential.
203
204 Args:
205 name: string, Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}` (required)
206 body: object, The request body.
207 The object takes the form of:
208
209 { # Represents an OauthClientCredential. Used to authenticate an OauthClient while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
210 &quot;clientSecret&quot;: &quot;A String&quot;, # Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see [OAuth client and credential security risks and mitigations](https://cloud.google.com/iam/docs/workforce-oauth-app#security)
211 &quot;disabled&quot;: True or False, # Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
212 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
213 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
214 }
215
216 updateMask: string, Required. The list of fields to update.
217 x__xgafv: string, V1 error format.
218 Allowed values
219 1 - v1 error format
220 2 - v2 error format
221
222 Returns:
223 An object of the form:
224
225 { # Represents an OauthClientCredential. Used to authenticate an OauthClient while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
226 &quot;clientSecret&quot;: &quot;A String&quot;, # Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see [OAuth client and credential security risks and mitigations](https://cloud.google.com/iam/docs/workforce-oauth-app#security)
227 &quot;disabled&quot;: True or False, # Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
228 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
229 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The resource name of the OauthClientCredential. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}`
230 }</pre>
231 </div>
232
233 </body></html>