Current section

80 Versions

Jump to

Compare versions

5 files changed
+141 additions
-85 deletions
  @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
11 11
12 12 ```elixir
13 13 def deps do
14 - [{:google_api_service_management, "~> 0.33"}]
14 + [{:google_api_service_management, "~> 0.34"}]
15 15 end
16 16 ```
  @@ -6,100 +6,100 @@
6 6 {<<"files">>,
7 7 [<<"lib">>,<<"lib/google_api">>,<<"lib/google_api/service_management">>,
8 8 <<"lib/google_api/service_management/v1">>,
9 - <<"lib/google_api/service_management/v1/connection.ex">>,
10 9 <<"lib/google_api/service_management/v1/api">>,
11 10 <<"lib/google_api/service_management/v1/api/services.ex">>,
12 11 <<"lib/google_api/service_management/v1/api/operations.ex">>,
12 + <<"lib/google_api/service_management/v1/connection.ex">>,
13 13 <<"lib/google_api/service_management/v1/model">>,
14 - <<"lib/google_api/service_management/v1/model/list_service_configs_response.ex">>,
15 - <<"lib/google_api/service_management/v1/model/label_descriptor.ex">>,
16 - <<"lib/google_api/service_management/v1/model/backend.ex">>,
17 - <<"lib/google_api/service_management/v1/model/get_policy_options.ex">>,
18 - <<"lib/google_api/service_management/v1/model/status.ex">>,
19 - <<"lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex">>,
20 - <<"lib/google_api/service_management/v1/model/type.ex">>,
21 - <<"lib/google_api/service_management/v1/model/method.ex">>,
22 - <<"lib/google_api/service_management/v1/model/option.ex">>,
23 - <<"lib/google_api/service_management/v1/model/config_change.ex">>,
24 - <<"lib/google_api/service_management/v1/model/source_context.ex">>,
25 - <<"lib/google_api/service_management/v1/model/test_iam_permissions_request.ex">>,
26 - <<"lib/google_api/service_management/v1/model/usage.ex">>,
27 - <<"lib/google_api/service_management/v1/model/operation_metadata.ex">>,
28 - <<"lib/google_api/service_management/v1/model/config_ref.ex">>,
29 - <<"lib/google_api/service_management/v1/model/submit_config_source_response.ex">>,
30 - <<"lib/google_api/service_management/v1/model/system_parameter.ex">>,
31 - <<"lib/google_api/service_management/v1/model/audit_config.ex">>,
32 - <<"lib/google_api/service_management/v1/model/custom_http_pattern.ex">>,
33 - <<"lib/google_api/service_management/v1/model/disable_service_response.ex">>,
34 - <<"lib/google_api/service_management/v1/model/enum.ex">>,
35 - <<"lib/google_api/service_management/v1/model/billing_destination.ex">>,
36 - <<"lib/google_api/service_management/v1/model/disable_service_request.ex">>,
37 - <<"lib/google_api/service_management/v1/model/context.ex">>,
38 - <<"lib/google_api/service_management/v1/model/service.ex">>,
39 - <<"lib/google_api/service_management/v1/model/logging_destination.ex">>,
40 - <<"lib/google_api/service_management/v1/model/control.ex">>,
41 - <<"lib/google_api/service_management/v1/model/context_rule.ex">>,
42 - <<"lib/google_api/service_management/v1/model/flow_error_details.ex">>,
43 - <<"lib/google_api/service_management/v1/model/monitoring.ex">>,
44 - <<"lib/google_api/service_management/v1/model/list_operations_response.ex">>,
45 - <<"lib/google_api/service_management/v1/model/policy.ex">>,
46 - <<"lib/google_api/service_management/v1/model/page.ex">>,
47 - <<"lib/google_api/service_management/v1/model/step.ex">>,
48 - <<"lib/google_api/service_management/v1/model/logging.ex">>,
49 - <<"lib/google_api/service_management/v1/model/config_source.ex">>,
50 - <<"lib/google_api/service_management/v1/model/system_parameters.ex">>,
51 - <<"lib/google_api/service_management/v1/model/backend_rule.ex">>,
52 - <<"lib/google_api/service_management/v1/model/endpoint.ex">>,
53 - <<"lib/google_api/service_management/v1/model/audit_log_config.ex">>,
54 - <<"lib/google_api/service_management/v1/model/enable_service_request.ex">>,
55 - <<"lib/google_api/service_management/v1/model/http_rule.ex">>,
56 - <<"lib/google_api/service_management/v1/model/rollout.ex">>,
57 - <<"lib/google_api/service_management/v1/model/list_services_response.ex">>,
58 - <<"lib/google_api/service_management/v1/model/metric_descriptor_metadata.ex">>,
59 - <<"lib/google_api/service_management/v1/model/metric_descriptor.ex">>,
60 - <<"lib/google_api/service_management/v1/model/change_report.ex">>,
61 - <<"lib/google_api/service_management/v1/model/traffic_percent_strategy.ex">>,
62 - <<"lib/google_api/service_management/v1/model/billing.ex">>,
63 - <<"lib/google_api/service_management/v1/model/quota.ex">>,
64 - <<"lib/google_api/service_management/v1/model/authentication_rule.ex">>,
65 - <<"lib/google_api/service_management/v1/model/monitoring_destination.ex">>,
66 - <<"lib/google_api/service_management/v1/model/auth_requirement.ex">>,
67 - <<"lib/google_api/service_management/v1/model/test_iam_permissions_response.ex">>,
68 14 <<"lib/google_api/service_management/v1/model/http.ex">>,
69 - <<"lib/google_api/service_management/v1/model/o_auth_requirements.ex">>,
70 - <<"lib/google_api/service_management/v1/model/diagnostic.ex">>,
71 - <<"lib/google_api/service_management/v1/model/usage_rule.ex">>,
72 - <<"lib/google_api/service_management/v1/model/operation.ex">>,
73 - <<"lib/google_api/service_management/v1/model/documentation.ex">>,
74 - <<"lib/google_api/service_management/v1/model/submit_config_source_request.ex">>,
75 - <<"lib/google_api/service_management/v1/model/quota_limit.ex">>,
76 - <<"lib/google_api/service_management/v1/model/documentation_rule.ex">>,
15 + <<"lib/google_api/service_management/v1/model/authentication.ex">>,
77 16 <<"lib/google_api/service_management/v1/model/advice.ex">>,
78 - <<"lib/google_api/service_management/v1/model/managed_service.ex">>,
79 - <<"lib/google_api/service_management/v1/model/binding.ex">>,
80 - <<"lib/google_api/service_management/v1/model/field.ex">>,
81 - <<"lib/google_api/service_management/v1/model/system_parameter_rule.ex">>,
17 + <<"lib/google_api/service_management/v1/model/logging_destination.ex">>,
18 + <<"lib/google_api/service_management/v1/model/logging.ex">>,
82 19 <<"lib/google_api/service_management/v1/model/enum_value.ex">>,
20 + <<"lib/google_api/service_management/v1/model/quota_limit.ex">>,
21 + <<"lib/google_api/service_management/v1/model/generate_config_report_request.ex">>,
22 + <<"lib/google_api/service_management/v1/model/test_iam_permissions_response.ex">>,
23 + <<"lib/google_api/service_management/v1/model/binding.ex">>,
24 + <<"lib/google_api/service_management/v1/model/type.ex">>,
25 + <<"lib/google_api/service_management/v1/model/log_descriptor.ex">>,
83 26 <<"lib/google_api/service_management/v1/model/metric_rule.ex">>,
27 + <<"lib/google_api/service_management/v1/model/system_parameters.ex">>,
28 + <<"lib/google_api/service_management/v1/model/operation.ex">>,
29 + <<"lib/google_api/service_management/v1/model/quota.ex">>,
30 + <<"lib/google_api/service_management/v1/model/config_source.ex">>,
31 + <<"lib/google_api/service_management/v1/model/expr.ex">>,
32 + <<"lib/google_api/service_management/v1/model/system_parameter_rule.ex">>,
84 33 <<"lib/google_api/service_management/v1/model/enable_service_response.ex">>,
85 34 <<"lib/google_api/service_management/v1/model/list_service_rollouts_response.ex">>,
35 + <<"lib/google_api/service_management/v1/model/enum.ex">>,
36 + <<"lib/google_api/service_management/v1/model/auth_requirement.ex">>,
37 + <<"lib/google_api/service_management/v1/model/managed_service.ex">>,
86 38 <<"lib/google_api/service_management/v1/model/custom_error_rule.ex">>,
87 - <<"lib/google_api/service_management/v1/model/delete_service_strategy.ex">>,
88 - <<"lib/google_api/service_management/v1/model/api.ex">>,
89 - <<"lib/google_api/service_management/v1/model/undelete_service_response.ex">>,
90 - <<"lib/google_api/service_management/v1/model/source_info.ex">>,
91 - <<"lib/google_api/service_management/v1/model/mixin.ex">>,
92 - <<"lib/google_api/service_management/v1/model/generate_config_report_request.ex">>,
93 - <<"lib/google_api/service_management/v1/model/config_file.ex">>,
94 - <<"lib/google_api/service_management/v1/model/set_iam_policy_request.ex">>,
95 - <<"lib/google_api/service_management/v1/model/generate_config_report_response.ex">>,
96 - <<"lib/google_api/service_management/v1/model/log_descriptor.ex">>,
97 - <<"lib/google_api/service_management/v1/model/custom_error.ex">>,
39 + <<"lib/google_api/service_management/v1/model/usage.ex">>,
98 40 <<"lib/google_api/service_management/v1/model/auth_provider.ex">>,
41 + <<"lib/google_api/service_management/v1/model/config_file.ex">>,
42 + <<"lib/google_api/service_management/v1/model/http_rule.ex">>,
43 + <<"lib/google_api/service_management/v1/model/billing_destination.ex">>,
99 44 <<"lib/google_api/service_management/v1/model/get_iam_policy_request.ex">>,
100 - <<"lib/google_api/service_management/v1/model/authentication.ex">>,
101 - <<"lib/google_api/service_management/v1/model/expr.ex">>,<<"mix.exs">>,
102 - <<"README.md">>,<<"LICENSE">>]}.
45 + <<"lib/google_api/service_management/v1/model/backend_rule.ex">>,
46 + <<"lib/google_api/service_management/v1/model/custom_http_pattern.ex">>,
47 + <<"lib/google_api/service_management/v1/model/change_report.ex">>,
48 + <<"lib/google_api/service_management/v1/model/o_auth_requirements.ex">>,
49 + <<"lib/google_api/service_management/v1/model/control.ex">>,
50 + <<"lib/google_api/service_management/v1/model/metric_descriptor.ex">>,
51 + <<"lib/google_api/service_management/v1/model/list_operations_response.ex">>,
52 + <<"lib/google_api/service_management/v1/model/config_change.ex">>,
53 + <<"lib/google_api/service_management/v1/model/undelete_service_response.ex">>,
54 + <<"lib/google_api/service_management/v1/model/get_policy_options.ex">>,
55 + <<"lib/google_api/service_management/v1/model/operation_metadata.ex">>,
56 + <<"lib/google_api/service_management/v1/model/rollout.ex">>,
57 + <<"lib/google_api/service_management/v1/model/disable_service_request.ex">>,
58 + <<"lib/google_api/service_management/v1/model/page.ex">>,
59 + <<"lib/google_api/service_management/v1/model/submit_config_source_request.ex">>,
60 + <<"lib/google_api/service_management/v1/model/metric_descriptor_metadata.ex">>,
61 + <<"lib/google_api/service_management/v1/model/api.ex">>,
62 + <<"lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex">>,
63 + <<"lib/google_api/service_management/v1/model/endpoint.ex">>,
64 + <<"lib/google_api/service_management/v1/model/method.ex">>,
65 + <<"lib/google_api/service_management/v1/model/disable_service_response.ex">>,
66 + <<"lib/google_api/service_management/v1/model/context_rule.ex">>,
67 + <<"lib/google_api/service_management/v1/model/status.ex">>,
68 + <<"lib/google_api/service_management/v1/model/documentation_rule.ex">>,
69 + <<"lib/google_api/service_management/v1/model/usage_rule.ex">>,
70 + <<"lib/google_api/service_management/v1/model/label_descriptor.ex">>,
71 + <<"lib/google_api/service_management/v1/model/system_parameter.ex">>,
72 + <<"lib/google_api/service_management/v1/model/custom_error.ex">>,
73 + <<"lib/google_api/service_management/v1/model/diagnostic.ex">>,
74 + <<"lib/google_api/service_management/v1/model/context.ex">>,
75 + <<"lib/google_api/service_management/v1/model/list_services_response.ex">>,
76 + <<"lib/google_api/service_management/v1/model/set_iam_policy_request.ex">>,
77 + <<"lib/google_api/service_management/v1/model/audit_config.ex">>,
78 + <<"lib/google_api/service_management/v1/model/traffic_percent_strategy.ex">>,
79 + <<"lib/google_api/service_management/v1/model/delete_service_strategy.ex">>,
80 + <<"lib/google_api/service_management/v1/model/backend.ex">>,
81 + <<"lib/google_api/service_management/v1/model/monitoring.ex">>,
82 + <<"lib/google_api/service_management/v1/model/documentation.ex">>,
83 + <<"lib/google_api/service_management/v1/model/source_context.ex">>,
84 + <<"lib/google_api/service_management/v1/model/flow_error_details.ex">>,
85 + <<"lib/google_api/service_management/v1/model/source_info.ex">>,
86 + <<"lib/google_api/service_management/v1/model/policy.ex">>,
87 + <<"lib/google_api/service_management/v1/model/service.ex">>,
88 + <<"lib/google_api/service_management/v1/model/field.ex">>,
89 + <<"lib/google_api/service_management/v1/model/enable_service_request.ex">>,
90 + <<"lib/google_api/service_management/v1/model/option.ex">>,
91 + <<"lib/google_api/service_management/v1/model/step.ex">>,
92 + <<"lib/google_api/service_management/v1/model/submit_config_source_response.ex">>,
93 + <<"lib/google_api/service_management/v1/model/config_ref.ex">>,
94 + <<"lib/google_api/service_management/v1/model/billing.ex">>,
95 + <<"lib/google_api/service_management/v1/model/authentication_rule.ex">>,
96 + <<"lib/google_api/service_management/v1/model/audit_log_config.ex">>,
97 + <<"lib/google_api/service_management/v1/model/mixin.ex">>,
98 + <<"lib/google_api/service_management/v1/model/list_service_configs_response.ex">>,
99 + <<"lib/google_api/service_management/v1/model/monitoring_destination.ex">>,
100 + <<"lib/google_api/service_management/v1/model/generate_config_report_response.ex">>,
101 + <<"lib/google_api/service_management/v1/model/test_iam_permissions_request.ex">>,
102 + <<"mix.exs">>,<<"README.md">>,<<"LICENSE">>]}.
103 103 {<<"licenses">>,[<<"Apache 2.0">>]}.
104 104 {<<"links">>,
105 105 [{<<"GitHub">>,
  @@ -112,4 +112,4 @@
112 112 {<<"optional">>,false},
113 113 {<<"repository">>,<<"hexpm">>},
114 114 {<<"requirement">>,<<"~> 0.2">>}]]}.
115 - {<<"version">>,<<"0.33.0">>}.
115 + {<<"version">>,<<"0.34.0">>}.
  @@ -292,6 +292,8 @@ defmodule GoogleApi.ServiceManagement.V1.Model.HttpRule do
292 292 * `additionalBindings` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.HttpRule.t)`, *default:* `nil`) - Additional HTTP bindings for the selector. Nested bindings must
293 293 not contain an `additional_bindings` field themselves (that is,
294 294 the nesting may only be one level deep).
295 + * `allowHalfDuplex` (*type:* `boolean()`, *default:* `nil`) - When this flag is set to true, HTTP requests will be allowed to invoke a
296 + half-duplex streaming method.
295 297 * `body` (*type:* `String.t`, *default:* `nil`) - The name of the request field whose value is mapped to the HTTP request
296 298 body, or `*` for mapping all request fields not captured by the path
297 299 pattern to the HTTP body, or omitted for not having any HTTP request body.
  @@ -323,6 +325,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.HttpRule do
323 325
324 326 @type t :: %__MODULE__{
325 327 :additionalBindings => list(GoogleApi.ServiceManagement.V1.Model.HttpRule.t()),
328 + :allowHalfDuplex => boolean(),
326 329 :body => String.t(),
327 330 :custom => GoogleApi.ServiceManagement.V1.Model.CustomHttpPattern.t(),
328 331 :delete => String.t(),
  @@ -335,6 +338,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.HttpRule do
335 338 }
336 339
337 340 field(:additionalBindings, as: GoogleApi.ServiceManagement.V1.Model.HttpRule, type: :list)
341 + field(:allowHalfDuplex)
338 342 field(:body)
339 343 field(:custom, as: GoogleApi.ServiceManagement.V1.Model.CustomHttpPattern)
340 344 field(:delete)
  @@ -52,7 +52,59 @@ defmodule GoogleApi.ServiceManagement.V1.Model.MetricDescriptor do
52 52 "custom.googleapis.com/invoice/paid/amount"
53 53 "external.googleapis.com/prometheus/up"
54 54 "appengine.googleapis.com/http/server/response_latencies"
55 - * `unit` (*type:* `String.t`, *default:* `nil`) - * `Ki` kibi (2^10)
55 + * `unit` (*type:* `String.t`, *default:* `nil`) - The units in which the metric value is reported. It is only applicable
56 + if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
57 + defines the representation of the stored metric values.
58 +
59 + Different systems may scale the values to be more easily displayed (so a
60 + value of `0.02KBy` _might_ be displayed as `20By`, and a value of
61 + `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
62 + `KBy`, then the value of the metric is always in thousands of bytes, no
63 + matter how it may be displayed..
64 +
65 + If you want a custom metric to record the exact number of CPU-seconds used
66 + by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
67 + `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
68 + CPU-seconds, then the value is written as `12005`.
69 +
70 + Alternatively, if you want a custom metric to record data in a more
71 + granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
72 + `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
73 + or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
74 +
75 + The supported units are a subset of [The Unified Code for Units of
76 + Measure](http://unitsofmeasure.org/ucum.html) standard:
77 +
78 + **Basic units (UNIT)**
79 +
80 + * `bit` bit
81 + * `By` byte
82 + * `s` second
83 + * `min` minute
84 + * `h` hour
85 + * `d` day
86 +
87 + **Prefixes (PREFIX)**
88 +
89 + * `k` kilo (10^3)
90 + * `M` mega (10^6)
91 + * `G` giga (10^9)
92 + * `T` tera (10^12)
93 + * `P` peta (10^15)
94 + * `E` exa (10^18)
95 + * `Z` zetta (10^21)
96 + * `Y` yotta (10^24)
97 +
98 + * `m` milli (10^-3)
99 + * `u` micro (10^-6)
100 + * `n` nano (10^-9)
101 + * `p` pico (10^-12)
102 + * `f` femto (10^-15)
103 + * `a` atto (10^-18)
104 + * `z` zepto (10^-21)
105 + * `y` yocto (10^-24)
106 +
107 + * `Ki` kibi (2^10)
56 108 * `Mi` mebi (2^20)
57 109 * `Gi` gibi (2^30)
58 110 * `Ti` tebi (2^40)
  @@ -18,7 +18,7 @@
18 18 defmodule GoogleApi.ServiceManagement.Mixfile do
19 19 use Mix.Project
20 20
21 - @version "0.33.0"
21 + @version "0.34.0"
22 22
23 23 def project() do
24 24 [