blob: 10bd96034fb2e5a592e937c7293029c46d69fd72 [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="sourcerepo_v1.html">Cloud Source Repositories API</a> . <a href="sourcerepo_v1.projects.html">projects</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="sourcerepo_v1.projects.repos.html">repos()</a></code>
79</p>
80<p class="firstline">Returns the repos Resource.</p>
81
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="toc_element">
83 <code><a href="#getConfig">getConfig(name, x__xgafv=None)</a></code></p>
84<p class="firstline">Returns the Cloud Source Repositories configuration of the project.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#updateConfig">updateConfig(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Updates the Cloud Source Repositories configuration of the project.</p>
88<h3>Method Details</h3>
89<div class="method">
90 <code class="details" id="getConfig">getConfig(name, x__xgafv=None)</code>
91 <pre>Returns the Cloud Source Repositories configuration of the project.
92
93Args:
94 name: string, The name of the requested project. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -070095`projects/&lt;project&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096 x__xgafv: string, V1 error format.
97 Allowed values
98 1 - v1 error format
99 2 - v2 error format
100
101Returns:
102 An object of the form:
103
104 { # Cloud Source Repositories configuration of a project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700105 &quot;enablePrivateKeyCheck&quot;: True or False, # Reject a Git push that contains a private key.
Bu Sun Kim65020912020-05-20 12:08:20 -0700106 &quot;pubsubConfigs&quot;: { # How this project publishes a change in the repositories through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700109 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
110 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
111 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700112 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 # messages. This service account needs to be in the same project as the
115 # PubsubConfig. When added, the caller needs to have
116 # iam.serviceAccounts.actAs permission on this service account. If
117 # unspecified, it defaults to the compute engine default service account.
118 },
119 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;name&quot;: &quot;A String&quot;, # The name of the project. Values are of the form `projects/&lt;project&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 }</pre>
122</div>
123
124<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 <code class="details" id="updateConfig">updateConfig(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 <pre>Updates the Cloud Source Repositories configuration of the project.
127
128Args:
129 name: string, The name of the requested project. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700130`projects/&lt;project&gt;`. (required)
131 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132 The object takes the form of:
133
134{ # Request for UpdateProjectConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &quot;updateMask&quot;: &quot;A String&quot;, # A FieldMask specifying which fields of the project_config to modify. Only
136 # the fields in the mask will be modified. If no mask is provided, this
137 # request is no-op.
138 &quot;projectConfig&quot;: { # Cloud Source Repositories configuration of a project. # The new configuration for the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700139 &quot;enablePrivateKeyCheck&quot;: True or False, # Reject a Git push that contains a private key.
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;pubsubConfigs&quot;: { # How this project publishes a change in the repositories through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700143 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
144 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
145 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700146 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 # messages. This service account needs to be in the same project as the
149 # PubsubConfig. When added, the caller needs to have
150 # iam.serviceAccounts.actAs permission on this service account. If
151 # unspecified, it defaults to the compute engine default service account.
152 },
153 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700154 &quot;name&quot;: &quot;A String&quot;, # The name of the project. Values are of the form `projects/&lt;project&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156 }
157
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163Returns:
164 An object of the form:
165
166 { # Cloud Source Repositories configuration of a project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;enablePrivateKeyCheck&quot;: True or False, # Reject a Git push that contains a private key.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;pubsubConfigs&quot;: { # How this project publishes a change in the repositories through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700169 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700171 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
172 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
173 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700174 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700176 # messages. This service account needs to be in the same project as the
177 # PubsubConfig. When added, the caller needs to have
178 # iam.serviceAccounts.actAs permission on this service account. If
179 # unspecified, it defaults to the compute engine default service account.
180 },
181 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 &quot;name&quot;: &quot;A String&quot;, # The name of the project. Values are of the form `projects/&lt;project&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700183 }</pre>
184</div>
185
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400186</body></html>