strongdm 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +30 -0
- data/doc/Google.html +95 -0
- data/doc/Google/Protobuf.html +95 -0
- data/doc/LICENSE.html +294 -0
- data/doc/Object.html +290 -0
- data/doc/README_md.html +128 -0
- data/doc/SDM.html +143 -0
- data/doc/SDM/AKS.html +347 -0
- data/doc/SDM/AKSBasicAuth.html +279 -0
- data/doc/SDM/AKSServiceAccount.html +262 -0
- data/doc/SDM/AccountAttachment.html +217 -0
- data/doc/SDM/AccountAttachmentCreateOptions.html +182 -0
- data/doc/SDM/AccountAttachmentCreateResponse.html +216 -0
- data/doc/SDM/AccountAttachmentDeleteResponse.html +199 -0
- data/doc/SDM/AccountAttachmentGetResponse.html +215 -0
- data/doc/SDM/AccountAttachments.html +429 -0
- data/doc/SDM/AccountCreateResponse.html +232 -0
- data/doc/SDM/AccountDeleteResponse.html +197 -0
- data/doc/SDM/AccountGetResponse.html +214 -0
- data/doc/SDM/AccountGrant.html +253 -0
- data/doc/SDM/AccountGrantCreateResponse.html +215 -0
- data/doc/SDM/AccountGrantDeleteResponse.html +198 -0
- data/doc/SDM/AccountGrantGetResponse.html +214 -0
- data/doc/SDM/AccountGrants.html +425 -0
- data/doc/SDM/AccountUpdateResponse.html +214 -0
- data/doc/SDM/Accounts.html +492 -0
- data/doc/SDM/AlreadyExistsError.html +161 -0
- data/doc/SDM/AmazonEKS.html +330 -0
- data/doc/SDM/AmazonES.html +296 -0
- data/doc/SDM/Athena.html +296 -0
- data/doc/SDM/AuroraMysql.html +313 -0
- data/doc/SDM/AuroraPostgres.html +330 -0
- data/doc/SDM/AuthenticationError.html +161 -0
- data/doc/SDM/BadRequestError.html +161 -0
- data/doc/SDM/BigQuery.html +296 -0
- data/doc/SDM/Cassandra.html +313 -0
- data/doc/SDM/Client.html +549 -0
- data/doc/SDM/Clustrix.html +313 -0
- data/doc/SDM/Cockroach.html +330 -0
- data/doc/SDM/CreateResponseMetadata.html +156 -0
- data/doc/SDM/DeadlineExceededError.html +161 -0
- data/doc/SDM/DeleteResponseMetadata.html +156 -0
- data/doc/SDM/Druid.html +296 -0
- data/doc/SDM/DynamoDB.html +296 -0
- data/doc/SDM/Elastic.html +313 -0
- data/doc/SDM/ElasticacheRedis.html +296 -0
- data/doc/SDM/Gateway.html +252 -0
- data/doc/SDM/GetResponseMetadata.html +156 -0
- data/doc/SDM/GoogleGKE.html +296 -0
- data/doc/SDM/Greenplum.html +330 -0
- data/doc/SDM/HTTPAuth.html +313 -0
- data/doc/SDM/HTTPBasicAuth.html +330 -0
- data/doc/SDM/HTTPNoAuth.html +296 -0
- data/doc/SDM/InternalError.html +161 -0
- data/doc/SDM/Kubernetes.html +347 -0
- data/doc/SDM/KubernetesBasicAuth.html +279 -0
- data/doc/SDM/KubernetesServiceAccount.html +262 -0
- data/doc/SDM/Maria.html +313 -0
- data/doc/SDM/Memcached.html +262 -0
- data/doc/SDM/Memsql.html +313 -0
- data/doc/SDM/MongoHost.html +330 -0
- data/doc/SDM/MongoLegacyHost.html +347 -0
- data/doc/SDM/MongoLegacyReplicaset.html +364 -0
- data/doc/SDM/MongoReplicaSet.html +364 -0
- data/doc/SDM/Mysql.html +313 -0
- data/doc/SDM/NodeCreateResponse.html +232 -0
- data/doc/SDM/NodeDeleteResponse.html +197 -0
- data/doc/SDM/NodeGetResponse.html +214 -0
- data/doc/SDM/NodeUpdateResponse.html +214 -0
- data/doc/SDM/Nodes.html +493 -0
- data/doc/SDM/NotFoundError.html +161 -0
- data/doc/SDM/Oracle.html +330 -0
- data/doc/SDM/PermissionError.html +161 -0
- data/doc/SDM/Plumbing.html +15821 -0
- data/doc/SDM/Postgres.html +330 -0
- data/doc/SDM/Presto.html +330 -0
- data/doc/SDM/RDP.html +296 -0
- data/doc/SDM/RPCError.html +182 -0
- data/doc/SDM/RateLimitError.html +183 -0
- data/doc/SDM/RateLimitMetadata.html +233 -0
- data/doc/SDM/Redis.html +279 -0
- data/doc/SDM/Redshift.html +330 -0
- data/doc/SDM/Relay.html +216 -0
- data/doc/SDM/ResourceCreateResponse.html +214 -0
- data/doc/SDM/ResourceDeleteResponse.html +197 -0
- data/doc/SDM/ResourceGetResponse.html +214 -0
- data/doc/SDM/ResourceUpdateResponse.html +215 -0
- data/doc/SDM/Resources.html +482 -0
- data/doc/SDM/Role.html +216 -0
- data/doc/SDM/RoleAttachment.html +216 -0
- data/doc/SDM/RoleAttachmentCreateResponse.html +216 -0
- data/doc/SDM/RoleAttachmentDeleteResponse.html +199 -0
- data/doc/SDM/RoleAttachmentGetResponse.html +214 -0
- data/doc/SDM/RoleAttachments.html +427 -0
- data/doc/SDM/RoleCreateResponse.html +215 -0
- data/doc/SDM/RoleDeleteResponse.html +197 -0
- data/doc/SDM/RoleGetResponse.html +214 -0
- data/doc/SDM/RoleGrant.html +214 -0
- data/doc/SDM/RoleGrantCreateResponse.html +215 -0
- data/doc/SDM/RoleGrantDeleteResponse.html +198 -0
- data/doc/SDM/RoleGrantGetResponse.html +214 -0
- data/doc/SDM/RoleGrants.html +427 -0
- data/doc/SDM/RoleUpdateResponse.html +215 -0
- data/doc/SDM/Roles.html +490 -0
- data/doc/SDM/SQLServer.html +347 -0
- data/doc/SDM/SSH.html +296 -0
- data/doc/SDM/Service.html +215 -0
- data/doc/SDM/Snowflake.html +313 -0
- data/doc/SDM/Sybase.html +296 -0
- data/doc/SDM/SybaseIQ.html +296 -0
- data/doc/SDM/Teradata.html +296 -0
- data/doc/SDM/UpdateResponseMetadata.html +156 -0
- data/doc/SDM/User.html +248 -0
- data/doc/V1.html +864 -0
- data/doc/V1/AccountAttachments.html +109 -0
- data/doc/V1/AccountAttachments/Service.html +116 -0
- data/doc/V1/AccountGrants.html +109 -0
- data/doc/V1/AccountGrants/Service.html +117 -0
- data/doc/V1/Accounts.html +109 -0
- data/doc/V1/Accounts/Service.html +122 -0
- data/doc/V1/Nodes.html +109 -0
- data/doc/V1/Nodes/Service.html +124 -0
- data/doc/V1/Resources.html +109 -0
- data/doc/V1/Resources/Service.html +113 -0
- data/doc/V1/RoleAttachments.html +109 -0
- data/doc/V1/RoleAttachments/Service.html +119 -0
- data/doc/V1/RoleGrants.html +109 -0
- data/doc/V1/RoleGrants/Service.html +119 -0
- data/doc/V1/Roles.html +109 -0
- data/doc/V1/Roles/Service.html +120 -0
- data/doc/created.rid +37 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/examples/Gemfile.html +95 -0
- data/doc/examples/Gemfile_lock.html +112 -0
- data/doc/examples/README_md.html +95 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +353 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +98 -0
- data/doc/strongdm_gemspec.html +117 -0
- data/doc/table_of_contents.html +3002 -0
- data/examples/Gemfile +3 -0
- data/examples/Gemfile.lock +14 -0
- data/examples/README.md +5 -0
- data/examples/listUsers.rb +21 -0
- data/examples/panicButton.rb +154 -0
- data/lib/errors/errors.rb +85 -0
- data/lib/grpc/account_attachments_pb.rb +84 -0
- data/lib/grpc/account_attachments_services_pb.rb +44 -0
- data/lib/grpc/account_grants_pb.rb +82 -0
- data/lib/grpc/account_grants_services_pb.rb +44 -0
- data/lib/grpc/accounts_pb.rb +107 -0
- data/lib/grpc/accounts_services_pb.rb +49 -0
- data/lib/grpc/drivers_pb.rb +601 -0
- data/lib/grpc/nodes_pb.rb +107 -0
- data/lib/grpc/nodes_services_pb.rb +49 -0
- data/lib/grpc/options_pb.rb +60 -0
- data/lib/grpc/plumbing.rb +4283 -0
- data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +15 -0
- data/lib/grpc/resources_pb.rb +85 -0
- data/lib/grpc/resources_services_pb.rb +45 -0
- data/lib/grpc/role_attachments_pb.rb +79 -0
- data/lib/grpc/role_attachments_services_pb.rb +47 -0
- data/lib/grpc/role_grants_pb.rb +79 -0
- data/lib/grpc/role_grants_services_pb.rb +47 -0
- data/lib/grpc/roles_pb.rb +91 -0
- data/lib/grpc/roles_services_pb.rb +50 -0
- data/lib/grpc/spec_pb.rb +95 -0
- data/lib/models/porcelain.rb +4033 -0
- data/lib/strongdm.rb +128 -0
- data/lib/svc.rb +1331 -0
- data/lib/version +3 -0
- data/lib/version.rb +17 -0
- data/strongdm.gemspec +23 -0
- metadata +318 -0
@@ -0,0 +1,215 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class SDM::ResourceUpdateResponse - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="../js/jquery.js"></script>
|
14
|
+
<script src="../js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="../index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link"><a href="../Object.html">Object</a>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
</div>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
<main role="main" aria-labelledby="class-SDM::ResourceUpdateResponse">
|
82
|
+
<h1 id="class-SDM::ResourceUpdateResponse" class="class">
|
83
|
+
class SDM::ResourceUpdateResponse
|
84
|
+
</h1>
|
85
|
+
|
86
|
+
<section class="description">
|
87
|
+
|
88
|
+
<p><a href="ResourceUpdateResponse.html">ResourceUpdateResponse</a> returns
|
89
|
+
the fields of a Resource after it has been updated by a
|
90
|
+
ResourceUpdateRequest.</p>
|
91
|
+
|
92
|
+
</section>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<section class="attribute-method-details" class="method-section">
|
106
|
+
<header>
|
107
|
+
<h3>Attributes</h3>
|
108
|
+
</header>
|
109
|
+
|
110
|
+
|
111
|
+
<div id="attribute-i-meta" class="method-detail">
|
112
|
+
<div class="method-heading attribute-method-heading">
|
113
|
+
<span class="method-name">meta</span><span
|
114
|
+
class="attribute-access-type">[RW]</span>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<div class="method-description">
|
118
|
+
|
119
|
+
<p>Reserved for future use.</p>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="attribute-i-rate_limit" class="method-detail">
|
125
|
+
<div class="method-heading attribute-method-heading">
|
126
|
+
<span class="method-name">rate_limit</span><span
|
127
|
+
class="attribute-access-type">[RW]</span>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div class="method-description">
|
131
|
+
|
132
|
+
<p>Rate limit information.</p>
|
133
|
+
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<div id="attribute-i-resource" class="method-detail">
|
138
|
+
<div class="method-heading attribute-method-heading">
|
139
|
+
<span class="method-name">resource</span><span
|
140
|
+
class="attribute-access-type">[RW]</span>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div class="method-description">
|
144
|
+
|
145
|
+
<p>The updated Resource.</p>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
</section>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
155
|
+
<header>
|
156
|
+
<h3>Public Class Methods</h3>
|
157
|
+
</header>
|
158
|
+
|
159
|
+
|
160
|
+
<div id="method-c-new" class="method-detail ">
|
161
|
+
|
162
|
+
<div class="method-heading">
|
163
|
+
<span class="method-name">new</span><span
|
164
|
+
class="method-args">( meta:nil \ , resource:nil \ , rate_limit:nil \ )</span>
|
165
|
+
|
166
|
+
<span class="method-click-advice">click to toggle source</span>
|
167
|
+
|
168
|
+
</div>
|
169
|
+
|
170
|
+
|
171
|
+
<div class="method-description">
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<div class="method-source-code" id="new-source">
|
179
|
+
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line 3676</span>
|
180
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(
|
181
|
+
<span class="ruby-identifier">meta</span><span class="ruby-value">:nil</span> ,
|
182
|
+
<span class="ruby-identifier">resource</span><span class="ruby-value">:nil</span> ,
|
183
|
+
<span class="ruby-identifier">rate_limit</span><span class="ruby-value">:nil</span> )
|
184
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">meta</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
185
|
+
<span class="ruby-ivar">@meta</span> = <span class="ruby-identifier">meta</span>
|
186
|
+
<span class="ruby-keyword">end</span>
|
187
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">resource</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
188
|
+
<span class="ruby-ivar">@resource</span> = <span class="ruby-identifier">resource</span>
|
189
|
+
<span class="ruby-keyword">end</span>
|
190
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">rate_limit</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
191
|
+
<span class="ruby-ivar">@rate_limit</span> = <span class="ruby-identifier">rate_limit</span>
|
192
|
+
<span class="ruby-keyword">end</span>
|
193
|
+
<span class="ruby-keyword">end</span></pre>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
</div>
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
|
204
|
+
</section>
|
205
|
+
|
206
|
+
</section>
|
207
|
+
</main>
|
208
|
+
|
209
|
+
|
210
|
+
<footer id="validator-badges" role="contentinfo">
|
211
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
212
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
213
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
214
|
+
</footer>
|
215
|
+
|
@@ -0,0 +1,482 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class SDM::Resources - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="../js/jquery.js"></script>
|
14
|
+
<script src="../js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="../index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link"><a href="../Object.html">Object</a>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-create">#create</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-delete">#delete</a>
|
78
|
+
|
79
|
+
<li ><a href="#method-i-get">#get</a>
|
80
|
+
|
81
|
+
<li ><a href="#method-i-list">#list</a>
|
82
|
+
|
83
|
+
<li ><a href="#method-i-update">#update</a>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
</div>
|
89
|
+
</nav>
|
90
|
+
|
91
|
+
<main role="main" aria-labelledby="class-SDM::Resources">
|
92
|
+
<h1 id="class-SDM::Resources" class="class">
|
93
|
+
class SDM::Resources
|
94
|
+
</h1>
|
95
|
+
|
96
|
+
<section class="description">
|
97
|
+
|
98
|
+
</section>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
114
|
+
<header>
|
115
|
+
<h3>Public Class Methods</h3>
|
116
|
+
</header>
|
117
|
+
|
118
|
+
|
119
|
+
<div id="method-c-new" class="method-detail ">
|
120
|
+
|
121
|
+
<div class="method-heading">
|
122
|
+
<span class="method-name">new</span><span
|
123
|
+
class="method-args">(host, insecure, parent)</span>
|
124
|
+
|
125
|
+
<span class="method-click-advice">click to toggle source</span>
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
|
130
|
+
<div class="method-description">
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<div class="method-source-code" id="new-source">
|
138
|
+
<pre><span class="ruby-comment"># File lib/svc.rb, line 681</span>
|
139
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>, <span class="ruby-identifier">insecure</span>, <span class="ruby-identifier">parent</span>)
|
140
|
+
<span class="ruby-keyword">begin</span>
|
141
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">insecure</span>
|
142
|
+
<span class="ruby-ivar">@stub</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">Resources</span><span class="ruby-operator">::</span><span class="ruby-constant">Stub</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">host</span>, <span class="ruby-value">:this_channel_is_insecure</span>)
|
143
|
+
<span class="ruby-keyword">else</span>
|
144
|
+
<span class="ruby-identifier">cred</span> = <span class="ruby-constant">GRPC</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span><span class="ruby-operator">::</span><span class="ruby-constant">ChannelCredentials</span>.<span class="ruby-identifier">new</span>()
|
145
|
+
<span class="ruby-ivar">@stub</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">Resources</span><span class="ruby-operator">::</span><span class="ruby-constant">Stub</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">host</span>, <span class="ruby-identifier">cred</span>)
|
146
|
+
<span class="ruby-keyword">end</span>
|
147
|
+
<span class="ruby-keyword">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
148
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
|
149
|
+
<span class="ruby-keyword">end</span>
|
150
|
+
<span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span>
|
151
|
+
<span class="ruby-keyword">end</span></pre>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
</div>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
|
162
|
+
</section>
|
163
|
+
|
164
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
165
|
+
<header>
|
166
|
+
<h3>Public Instance Methods</h3>
|
167
|
+
</header>
|
168
|
+
|
169
|
+
|
170
|
+
<div id="method-i-create" class="method-detail ">
|
171
|
+
|
172
|
+
<div class="method-heading">
|
173
|
+
<span class="method-name">create</span><span
|
174
|
+
class="method-args">( resource \ , deadline:nil)</span>
|
175
|
+
|
176
|
+
<span class="method-click-advice">click to toggle source</span>
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
<div class="method-description">
|
182
|
+
|
183
|
+
<p>Create registers a new Resource.</p>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
<div class="method-source-code" id="create-source">
|
189
|
+
<pre><span class="ruby-comment"># File lib/svc.rb, line 695</span>
|
190
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>(
|
191
|
+
<span class="ruby-identifier">resource</span> ,
|
192
|
+
<span class="ruby-identifier">deadline</span><span class="ruby-value">:nil</span>)
|
193
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">ResourceCreateRequest</span>.<span class="ruby-identifier">new</span>()
|
194
|
+
|
195
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">resource</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">resource_to_plumbing</span>(<span class="ruby-identifier">resource</span>)
|
196
|
+
<span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
|
197
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
|
198
|
+
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
199
|
+
<span class="ruby-keyword">begin</span>
|
200
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">req</span>, <span class="ruby-identifier">metadata</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">'Resources.Create'</span>, <span class="ruby-identifier">req</span>), <span class="ruby-identifier">deadline</span><span class="ruby-value">:deadline</span>)
|
201
|
+
<span class="ruby-keyword">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
202
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
|
203
|
+
<span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
|
204
|
+
<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
|
205
|
+
<span class="ruby-keyword">next</span>
|
206
|
+
<span class="ruby-keyword">end</span>
|
207
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
|
208
|
+
<span class="ruby-keyword">end</span>
|
209
|
+
<span class="ruby-keyword">break</span>
|
210
|
+
<span class="ruby-keyword">end</span>
|
211
|
+
|
212
|
+
|
213
|
+
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">ResourceCreateResponse</span>.<span class="ruby-identifier">new</span>()
|
214
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
|
215
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">resource</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">resource_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">resource</span>)
|
216
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
|
217
|
+
<span class="ruby-identifier">resp</span>
|
218
|
+
<span class="ruby-keyword">end</span></pre>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
<div id="method-i-delete" class="method-detail ">
|
230
|
+
|
231
|
+
<div class="method-heading">
|
232
|
+
<span class="method-name">delete</span><span
|
233
|
+
class="method-args">( id \ , deadline:nil)</span>
|
234
|
+
|
235
|
+
<span class="method-click-advice">click to toggle source</span>
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
<div class="method-description">
|
241
|
+
|
242
|
+
<p>Delete removes a Resource by ID.</p>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<div class="method-source-code" id="delete-source">
|
248
|
+
<pre><span class="ruby-comment"># File lib/svc.rb, line 788</span>
|
249
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete</span>(
|
250
|
+
<span class="ruby-identifier">id</span> ,
|
251
|
+
<span class="ruby-identifier">deadline</span><span class="ruby-value">:nil</span>)
|
252
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">ResourceDeleteRequest</span>.<span class="ruby-identifier">new</span>()
|
253
|
+
|
254
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">id</span> = <span class="ruby-identifier">id</span>
|
255
|
+
<span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
|
256
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
|
257
|
+
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
258
|
+
<span class="ruby-keyword">begin</span>
|
259
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">req</span>, <span class="ruby-identifier">metadata</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">'Resources.Delete'</span>, <span class="ruby-identifier">req</span>), <span class="ruby-identifier">deadline</span><span class="ruby-value">:deadline</span>)
|
260
|
+
<span class="ruby-keyword">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
261
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
|
262
|
+
<span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
|
263
|
+
<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
|
264
|
+
<span class="ruby-keyword">next</span>
|
265
|
+
<span class="ruby-keyword">end</span>
|
266
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
|
267
|
+
<span class="ruby-keyword">end</span>
|
268
|
+
<span class="ruby-keyword">break</span>
|
269
|
+
<span class="ruby-keyword">end</span>
|
270
|
+
|
271
|
+
|
272
|
+
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">ResourceDeleteResponse</span>.<span class="ruby-identifier">new</span>()
|
273
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">delete_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
|
274
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
|
275
|
+
<span class="ruby-identifier">resp</span>
|
276
|
+
<span class="ruby-keyword">end</span></pre>
|
277
|
+
</div>
|
278
|
+
|
279
|
+
</div>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
</div>
|
285
|
+
|
286
|
+
|
287
|
+
<div id="method-i-get" class="method-detail ">
|
288
|
+
|
289
|
+
<div class="method-heading">
|
290
|
+
<span class="method-name">get</span><span
|
291
|
+
class="method-args">( id \ , deadline:nil)</span>
|
292
|
+
|
293
|
+
<span class="method-click-advice">click to toggle source</span>
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
|
298
|
+
<div class="method-description">
|
299
|
+
|
300
|
+
<p>Get reads one Resource by ID.</p>
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
<div class="method-source-code" id="get-source">
|
306
|
+
<pre><span class="ruby-comment"># File lib/svc.rb, line 726</span>
|
307
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get</span>(
|
308
|
+
<span class="ruby-identifier">id</span> ,
|
309
|
+
<span class="ruby-identifier">deadline</span><span class="ruby-value">:nil</span>)
|
310
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">ResourceGetRequest</span>.<span class="ruby-identifier">new</span>()
|
311
|
+
|
312
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">id</span> = <span class="ruby-identifier">id</span>
|
313
|
+
<span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
|
314
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
|
315
|
+
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
316
|
+
<span class="ruby-keyword">begin</span>
|
317
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">req</span>, <span class="ruby-identifier">metadata</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">'Resources.Get'</span>, <span class="ruby-identifier">req</span>), <span class="ruby-identifier">deadline</span><span class="ruby-value">:deadline</span>)
|
318
|
+
<span class="ruby-keyword">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
319
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
|
320
|
+
<span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
|
321
|
+
<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
|
322
|
+
<span class="ruby-keyword">next</span>
|
323
|
+
<span class="ruby-keyword">end</span>
|
324
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
|
325
|
+
<span class="ruby-keyword">end</span>
|
326
|
+
<span class="ruby-keyword">break</span>
|
327
|
+
<span class="ruby-keyword">end</span>
|
328
|
+
|
329
|
+
|
330
|
+
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">ResourceGetResponse</span>.<span class="ruby-identifier">new</span>()
|
331
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">get_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
|
332
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">resource</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">resource_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">resource</span>)
|
333
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
|
334
|
+
<span class="ruby-identifier">resp</span>
|
335
|
+
<span class="ruby-keyword">end</span></pre>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
</div>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
</div>
|
344
|
+
|
345
|
+
|
346
|
+
<div id="method-i-list" class="method-detail ">
|
347
|
+
|
348
|
+
<div class="method-heading">
|
349
|
+
<span class="method-name">list</span><span
|
350
|
+
class="method-args">( filter \ , *args, deadline:nil)</span>
|
351
|
+
|
352
|
+
<span class="method-click-advice">click to toggle source</span>
|
353
|
+
|
354
|
+
</div>
|
355
|
+
|
356
|
+
|
357
|
+
<div class="method-description">
|
358
|
+
|
359
|
+
<p>List gets a list of <a href="Resources.html">Resources</a> matching a given
|
360
|
+
set of criteria.</p>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
<div class="method-source-code" id="list-source">
|
366
|
+
<pre><span class="ruby-comment"># File lib/svc.rb, line 818</span>
|
367
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">list</span>(
|
368
|
+
<span class="ruby-identifier">filter</span> ,
|
369
|
+
<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,
|
370
|
+
<span class="ruby-identifier">deadline</span><span class="ruby-value">:nil</span>)
|
371
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">ResourceListRequest</span>.<span class="ruby-identifier">new</span>()
|
372
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">ListRequestMetadata</span>.<span class="ruby-identifier">new</span>()
|
373
|
+
<span class="ruby-identifier">page_size_option</span> = <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">_test_options</span>[<span class="ruby-string">'PageSize'</span>]
|
374
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">page_size_option</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Integer</span>
|
375
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">limit</span> = <span class="ruby-identifier">page_size_option</span>
|
376
|
+
<span class="ruby-keyword">end</span>
|
377
|
+
|
378
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">filter</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">quote_filter_args</span>(<span class="ruby-identifier">filter</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
379
|
+
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">Enumerator</span><span class="ruby-operator">::</span><span class="ruby-constant">Generator</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">g</span><span class="ruby-operator">|</span>
|
380
|
+
<span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
|
381
|
+
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
382
|
+
<span class="ruby-keyword">begin</span>
|
383
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">list</span>(<span class="ruby-identifier">req</span>, <span class="ruby-identifier">metadata</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">'Resources.List'</span>, <span class="ruby-identifier">req</span>), <span class="ruby-identifier">deadline</span><span class="ruby-value">:deadline</span>)
|
384
|
+
<span class="ruby-keyword">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
385
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
|
386
|
+
<span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
|
387
|
+
<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
|
388
|
+
<span class="ruby-keyword">next</span>
|
389
|
+
<span class="ruby-keyword">end</span>
|
390
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
|
391
|
+
<span class="ruby-keyword">end</span>
|
392
|
+
<span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
|
393
|
+
<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">resources</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">plumbing_item</span><span class="ruby-operator">|</span>
|
394
|
+
<span class="ruby-identifier">g</span>.<span class="ruby-identifier">yield</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">resource_to_porcelain</span>(<span class="ruby-identifier">plumbing_item</span>)
|
395
|
+
<span class="ruby-keyword">end</span>
|
396
|
+
<span class="ruby-keyword">break</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">next_cursor</span> <span class="ruby-operator">==</span> <span class="ruby-string">""</span>
|
397
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">cursor</span> = <span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">next_cursor</span>
|
398
|
+
<span class="ruby-keyword">end</span>
|
399
|
+
}
|
400
|
+
<span class="ruby-identifier">resp</span>
|
401
|
+
<span class="ruby-keyword">end</span></pre>
|
402
|
+
</div>
|
403
|
+
|
404
|
+
</div>
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
</div>
|
410
|
+
|
411
|
+
|
412
|
+
<div id="method-i-update" class="method-detail ">
|
413
|
+
|
414
|
+
<div class="method-heading">
|
415
|
+
<span class="method-name">update</span><span
|
416
|
+
class="method-args">( resource \ , deadline:nil)</span>
|
417
|
+
|
418
|
+
<span class="method-click-advice">click to toggle source</span>
|
419
|
+
|
420
|
+
</div>
|
421
|
+
|
422
|
+
|
423
|
+
<div class="method-description">
|
424
|
+
|
425
|
+
<p>Update patches a Resource by ID.</p>
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
<div class="method-source-code" id="update-source">
|
431
|
+
<pre><span class="ruby-comment"># File lib/svc.rb, line 757</span>
|
432
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>(
|
433
|
+
<span class="ruby-identifier">resource</span> ,
|
434
|
+
<span class="ruby-identifier">deadline</span><span class="ruby-value">:nil</span>)
|
435
|
+
<span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">ResourceUpdateRequest</span>.<span class="ruby-identifier">new</span>()
|
436
|
+
|
437
|
+
<span class="ruby-identifier">req</span>.<span class="ruby-identifier">resource</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">resource_to_plumbing</span>(<span class="ruby-identifier">resource</span>)
|
438
|
+
<span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
|
439
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
|
440
|
+
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
441
|
+
<span class="ruby-keyword">begin</span>
|
442
|
+
<span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">req</span>, <span class="ruby-identifier">metadata</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">'Resources.Update'</span>, <span class="ruby-identifier">req</span>), <span class="ruby-identifier">deadline</span><span class="ruby-value">:deadline</span>)
|
443
|
+
<span class="ruby-keyword">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
444
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
|
445
|
+
<span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
|
446
|
+
<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
|
447
|
+
<span class="ruby-keyword">next</span>
|
448
|
+
<span class="ruby-keyword">end</span>
|
449
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
|
450
|
+
<span class="ruby-keyword">end</span>
|
451
|
+
<span class="ruby-keyword">break</span>
|
452
|
+
<span class="ruby-keyword">end</span>
|
453
|
+
|
454
|
+
|
455
|
+
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">ResourceUpdateResponse</span>.<span class="ruby-identifier">new</span>()
|
456
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">update_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
|
457
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">resource</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">resource_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">resource</span>)
|
458
|
+
<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
|
459
|
+
<span class="ruby-identifier">resp</span>
|
460
|
+
<span class="ruby-keyword">end</span></pre>
|
461
|
+
</div>
|
462
|
+
|
463
|
+
</div>
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
</div>
|
469
|
+
|
470
|
+
|
471
|
+
</section>
|
472
|
+
|
473
|
+
</section>
|
474
|
+
</main>
|
475
|
+
|
476
|
+
|
477
|
+
<footer id="validator-badges" role="contentinfo">
|
478
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
479
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
480
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
481
|
+
</footer>
|
482
|
+
|