Current section

56 Versions

Jump to

Compare versions

19 files changed
+191 additions
-18 deletions
  @@ -14,6 +14,8 @@
14 14 <<"lib/google_api/pub_sub/v1/model/binding.ex">>,
15 15 <<"lib/google_api/pub_sub/v1/model/create_snapshot_request.ex">>,
16 16 <<"lib/google_api/pub_sub/v1/model/empty.ex">>,
17 + <<"lib/google_api/pub_sub/v1/model/expiration_policy.ex">>,
18 + <<"lib/google_api/pub_sub/v1/model/expr.ex">>,
17 19 <<"lib/google_api/pub_sub/v1/model/list_snapshots_response.ex">>,
18 20 <<"lib/google_api/pub_sub/v1/model/list_subscriptions_response.ex">>,
19 21 <<"lib/google_api/pub_sub/v1/model/list_topic_snapshots_response.ex">>,
  @@ -39,6 +41,7 @@
39 41 <<"lib/google_api/pub_sub/v1/model/topic.ex">>,
40 42 <<"lib/google_api/pub_sub/v1/model/update_snapshot_request.ex">>,
41 43 <<"lib/google_api/pub_sub/v1/model/update_subscription_request.ex">>,
44 + <<"lib/google_api/pub_sub/v1/model/update_topic_request.ex">>,
42 45 <<"lib/google_api/pub_sub/v1/request_builder.ex">>,<<"mix.exs">>,
43 46 <<"README.md">>,<<"LICENSE">>]}.
44 47 {<<"licenses">>,[<<"Apache 2.0">>]}.
  @@ -46,7 +49,6 @@
46 49 [{<<"GitHub">>,
47 50 <<"https://github.com/GoogleCloudPlatform/elixir-google-api/tree/master/clients/pub_sub">>},
48 51 {<<"Homepage">>,<<"https://cloud.google.com/pubsub/">>}]}.
49 - {<<"maintainers">>,[<<"Jeff Ching">>]}.
50 52 {<<"name">>,<<"google_api_pub_sub">>}.
51 53 {<<"requirements">>,
52 54 [[{<<"app">>,<<"google_gax">>},
  @@ -54,4 +56,4 @@
54 56 {<<"optional">>,false},
55 57 {<<"repository">>,<<"hexpm">>},
56 58 {<<"requirement">>,<<"~> 0.1.0">>}]]}.
57 - {<<"version">>,<<"0.1.0">>}.
59 + {<<"version">>,<<"0.2.0">>}.
unknownlib/google_api/pub_sub/v1/api/projects.ex
File is too large to be displayed (100 KB limit).
  @@ -22,17 +22,20 @@ defmodule GoogleApi.PubSub.V1.Model.Binding do
22 22
23 23 ## Attributes
24 24
25 + - condition (Expr): Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. Defaults to: `null`.
25 26 - members ([String.t]): Specifies the identities requesting access for a Cloud Platform resource. &#x60;members&#x60; can have the following values: * &#x60;allUsers&#x60;: A special identifier that represents anyone who is on the internet; with or without a Google account. * &#x60;allAuthenticatedUsers&#x60;: A special identifier that represents anyone who is authenticated with a Google account or a service account. * &#x60;user:{emailid}&#x60;: An email address that represents a specific Google account. For example, &#x60;alice@gmail.com&#x60; . * &#x60;serviceAccount:{emailid}&#x60;: An email address that represents a service account. For example, &#x60;my-other-app@appspot.gserviceaccount.com&#x60;. * &#x60;group:{emailid}&#x60;: An email address that represents a Google group. For example, &#x60;admins@example.com&#x60;. * &#x60;domain:{domain}&#x60;: A Google Apps domain name that represents all the users of that domain. For example, &#x60;google.com&#x60; or &#x60;example.com&#x60;. Defaults to: `null`.
26 - - role (String.t): Role that is assigned to &#x60;members&#x60;. For example, &#x60;roles/viewer&#x60;, &#x60;roles/editor&#x60;, or &#x60;roles/owner&#x60;. Required Defaults to: `null`.
27 + - role (String.t): Role that is assigned to &#x60;members&#x60;. For example, &#x60;roles/viewer&#x60;, &#x60;roles/editor&#x60;, or &#x60;roles/owner&#x60;. Defaults to: `null`.
27 28 """
28 29
29 30 use GoogleApi.Gax.ModelBase
30 31
31 32 @type t :: %__MODULE__{
33 + :condition => GoogleApi.PubSub.V1.Model.Expr.t(),
32 34 :members => list(any()),
33 35 :role => any()
34 36 }
35 37
38 + field(:condition, as: GoogleApi.PubSub.V1.Model.Expr)
36 39 field(:members, type: :list)
37 40 field(:role)
38 41 end
  @@ -18,19 +18,22 @@
18 18
19 19 defmodule GoogleApi.PubSub.V1.Model.CreateSnapshotRequest do
20 20 @moduledoc """
21 - Request for the &#x60;CreateSnapshot&#x60; method.&lt;br&gt;&lt;br&gt; &lt;b&gt;ALPHA:&lt;/b&gt; This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
21 + Request for the &#x60;CreateSnapshot&#x60; method.&lt;br&gt;&lt;br&gt; &lt;b&gt;BETA:&lt;/b&gt; This feature is part of a beta release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
22 22
23 23 ## Attributes
24 24
25 + - labels (%{optional(String.t) &#x3D;&gt; String.t}): See &lt;a href&#x3D;\&quot;https://cloud.google.com/pubsub/docs/labels\&quot;&gt; Creating and managing labels&lt;/a&gt;. Defaults to: `null`.
25 26 - subscription (String.t): The subscription whose backlog the snapshot retains. Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely, this is defined as the messages in the subscription&#39;s backlog that are unacknowledged upon the successful completion of the &#x60;CreateSnapshot&#x60; request; as well as: (b) Any messages published to the subscription&#39;s topic following the successful completion of the CreateSnapshot request. Format is &#x60;projects/{project}/subscriptions/{sub}&#x60;. Defaults to: `null`.
26 27 """
27 28
28 29 use GoogleApi.Gax.ModelBase
29 30
30 31 @type t :: %__MODULE__{
32 + :labels => map(),
31 33 :subscription => any()
32 34 }
33 35
36 + field(:labels, type: :map)
34 37 field(:subscription)
35 38 end
  @@ -0,0 +1,47 @@
1 + # Copyright 2017 Google Inc.
2 + #
3 + # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
4 + # you may not use this file except in compliance with the License.
5 + # You may obtain a copy of the License at
6 + #
7 + # http://www.apache.org/licenses/LICENSE-2.0
8 + #
9 + # Unless required by applicable law or agreed to in writing, software
10 + # distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
11 + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 + # See the License for the specific language governing permissions and
13 + # limitations under the License.
14 +
15 + # NOTE: This class is auto generated by the swagger code generator program.
16 + # https://github.com/swagger-api/swagger-codegen.git
17 + # Do not edit the class manually.
18 +
19 + defmodule GoogleApi.PubSub.V1.Model.ExpirationPolicy do
20 + @moduledoc """
21 + A policy that specifies the conditions for resource expiration (i.e., automatic resource deletion).
22 +
23 + ## Attributes
24 +
25 + - ttl (String.t): Specifies the \&quot;time-to-live\&quot; duration for an associated resource. The resource expires if it is not active for a period of &#x60;ttl&#x60;. The definition of \&quot;activity\&quot; depends on the type of the associated resource. The minimum and maximum allowed values for &#x60;ttl&#x60; depend on the type of the associated resource, as well. If &#x60;ttl&#x60; is not set, the associated resource never expires. Defaults to: `null`.
26 + """
27 +
28 + use GoogleApi.Gax.ModelBase
29 +
30 + @type t :: %__MODULE__{
31 + :ttl => any()
32 + }
33 +
34 + field(:ttl)
35 + end
36 +
37 + defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.ExpirationPolicy do
38 + def decode(value, options) do
39 + GoogleApi.PubSub.V1.Model.ExpirationPolicy.decode(value, options)
40 + end
41 + end
42 +
43 + defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.ExpirationPolicy do
44 + def encode(value, options) do
45 + GoogleApi.Gax.ModelBase.encode(value, options)
46 + end
47 + end
Loading more files…