From 84c3274020b33b3f7961895031a5e21d5ee6b2af Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 02:35:08 +0000 Subject: [PATCH] feat: Automated regeneration of ServiceManagement client --- .../service_management/v1/metadata.ex | 2 +- .../v1/model/backend_rule.ex | 12 +++ .../service_management/v1/model/binding.ex | 4 +- .../v1/model/client_library_settings.ex | 76 +++++++++++++++++ .../v1/model/common_language_settings.ex | 49 +++++++++++ .../service_management/v1/model/control.ex | 7 +- .../v1/model/cpp_settings.ex | 46 +++++++++++ .../v1/model/documentation.ex | 5 +- .../v1/model/documentation_rule.ex | 3 + .../v1/model/dotnet_settings.ex | 61 ++++++++++++++ .../service_management/v1/model/endpoint.ex | 3 + .../service_management/v1/model/enum.ex | 3 + .../v1/model/field_policy.ex | 52 ++++++++++++ .../v1/model/go_settings.ex | 46 +++++++++++ .../v1/model/java_settings.ex | 52 ++++++++++++ .../v1/model/long_running.ex | 55 +++++++++++++ .../v1/model/method_policy.ex | 49 +++++++++++ .../v1/model/method_settings.ex | 52 ++++++++++++ .../service_management/v1/model/mixin.ex | 2 +- .../v1/model/monitored_resource_descriptor.ex | 2 +- .../v1/model/node_settings.ex | 46 +++++++++++ .../service_management/v1/model/operation.ex | 2 +- .../v1/model/php_settings.ex | 46 +++++++++++ .../service_management/v1/model/policy.ex | 2 +- .../service_management/v1/model/publishing.ex | 82 +++++++++++++++++++ .../v1/model/python_settings.ex | 46 +++++++++++ .../v1/model/ruby_settings.ex | 46 +++++++++++ .../service_management/v1/model/service.ex | 3 + .../service_management/v1/model/type.ex | 3 + 29 files changed, 847 insertions(+), 10 deletions(-) create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/client_library_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/common_language_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/cpp_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/dotnet_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/field_policy.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/go_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/java_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/long_running.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/method_policy.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/method_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/node_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/php_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/publishing.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/python_settings.ex create mode 100644 clients/service_management/lib/google_api/service_management/v1/model/ruby_settings.ex diff --git a/clients/service_management/lib/google_api/service_management/v1/metadata.ex b/clients/service_management/lib/google_api/service_management/v1/metadata.ex index d2ede9047f..01656b8c0e 100644 --- a/clients/service_management/lib/google_api/service_management/v1/metadata.ex +++ b/clients/service_management/lib/google_api/service_management/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ServiceManagement.V1 do API client metadata for GoogleApi.ServiceManagement.V1. """ - @discovery_revision "20220913" + @discovery_revision "20240301" def discovery_revision(), do: @discovery_revision end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/backend_rule.ex b/clients/service_management/lib/google_api/service_management/v1/model/backend_rule.ex index d4727ca5bf..d1d212356d 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/backend_rule.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/backend_rule.ex @@ -25,7 +25,9 @@ defmodule GoogleApi.ServiceManagement.V1.Model.BackendRule do * `deadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment. * `disableAuth` (*type:* `boolean()`, *default:* `nil`) - When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header. * `jwtAudience` (*type:* `String.t`, *default:* `nil`) - The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend. + * `minDeadline` (*type:* `float()`, *default:* `nil`) - Deprecated, do not use. * `operationDeadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for the completion of a long running operation. The default is no deadline. + * `overridesByRequestProtocol` (*type:* `%{optional(String.t) => GoogleApi.ServiceManagement.V1.Model.BackendRule.t}`, *default:* `nil`) - The map between request protocol and the backend address. * `pathTranslation` (*type:* `String.t`, *default:* `nil`) - * `protocol` (*type:* `String.t`, *default:* `nil`) - The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values. * `selector` (*type:* `String.t`, *default:* `nil`) - Selects the methods to which this rule applies. Refer to selector for syntax details. @@ -38,7 +40,10 @@ defmodule GoogleApi.ServiceManagement.V1.Model.BackendRule do :deadline => float() | nil, :disableAuth => boolean() | nil, :jwtAudience => String.t() | nil, + :minDeadline => float() | nil, :operationDeadline => float() | nil, + :overridesByRequestProtocol => + %{optional(String.t()) => GoogleApi.ServiceManagement.V1.Model.BackendRule.t()} | nil, :pathTranslation => String.t() | nil, :protocol => String.t() | nil, :selector => String.t() | nil @@ -48,7 +53,14 @@ defmodule GoogleApi.ServiceManagement.V1.Model.BackendRule do field(:deadline) field(:disableAuth) field(:jwtAudience) + field(:minDeadline) field(:operationDeadline) + + field(:overridesByRequestProtocol, + as: GoogleApi.ServiceManagement.V1.Model.BackendRule, + type: :map + ) + field(:pathTranslation) field(:protocol) field(:selector) diff --git a/clients/service_management/lib/google_api/service_management/v1/model/binding.ex b/clients/service_management/lib/google_api/service_management/v1/model/binding.ex index 7f30d3fea2..4d7cd161ae 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/binding.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.ServiceManagement.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/service_management/lib/google_api/service_management/v1/model/client_library_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/client_library_settings.ex new file mode 100644 index 0000000000..18d5111e1a --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/client_library_settings.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.ClientLibrarySettings do + @moduledoc """ + Details about how and where to publish client libraries. + + ## Attributes + + * `cppSettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.CppSettings.t`, *default:* `nil`) - Settings for C++ client libraries. + * `dotnetSettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.DotnetSettings.t`, *default:* `nil`) - Settings for .NET client libraries. + * `goSettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.GoSettings.t`, *default:* `nil`) - Settings for Go client libraries. + * `javaSettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.JavaSettings.t`, *default:* `nil`) - Settings for legacy Java features, supported in the Service YAML. + * `launchStage` (*type:* `String.t`, *default:* `nil`) - Launch stage of this version of the API. + * `nodeSettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.NodeSettings.t`, *default:* `nil`) - Settings for Node client libraries. + * `phpSettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.PhpSettings.t`, *default:* `nil`) - Settings for PHP client libraries. + * `pythonSettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.PythonSettings.t`, *default:* `nil`) - Settings for Python client libraries. + * `restNumericEnums` (*type:* `boolean()`, *default:* `nil`) - When using transport=rest, the client request will encode enums as numbers rather than strings. + * `rubySettings` (*type:* `GoogleApi.ServiceManagement.V1.Model.RubySettings.t`, *default:* `nil`) - Settings for Ruby client libraries. + * `version` (*type:* `String.t`, *default:* `nil`) - Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cppSettings => GoogleApi.ServiceManagement.V1.Model.CppSettings.t() | nil, + :dotnetSettings => GoogleApi.ServiceManagement.V1.Model.DotnetSettings.t() | nil, + :goSettings => GoogleApi.ServiceManagement.V1.Model.GoSettings.t() | nil, + :javaSettings => GoogleApi.ServiceManagement.V1.Model.JavaSettings.t() | nil, + :launchStage => String.t() | nil, + :nodeSettings => GoogleApi.ServiceManagement.V1.Model.NodeSettings.t() | nil, + :phpSettings => GoogleApi.ServiceManagement.V1.Model.PhpSettings.t() | nil, + :pythonSettings => GoogleApi.ServiceManagement.V1.Model.PythonSettings.t() | nil, + :restNumericEnums => boolean() | nil, + :rubySettings => GoogleApi.ServiceManagement.V1.Model.RubySettings.t() | nil, + :version => String.t() | nil + } + + field(:cppSettings, as: GoogleApi.ServiceManagement.V1.Model.CppSettings) + field(:dotnetSettings, as: GoogleApi.ServiceManagement.V1.Model.DotnetSettings) + field(:goSettings, as: GoogleApi.ServiceManagement.V1.Model.GoSettings) + field(:javaSettings, as: GoogleApi.ServiceManagement.V1.Model.JavaSettings) + field(:launchStage) + field(:nodeSettings, as: GoogleApi.ServiceManagement.V1.Model.NodeSettings) + field(:phpSettings, as: GoogleApi.ServiceManagement.V1.Model.PhpSettings) + field(:pythonSettings, as: GoogleApi.ServiceManagement.V1.Model.PythonSettings) + field(:restNumericEnums) + field(:rubySettings, as: GoogleApi.ServiceManagement.V1.Model.RubySettings) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.ClientLibrarySettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.ClientLibrarySettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.ClientLibrarySettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/common_language_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/common_language_settings.ex new file mode 100644 index 0000000000..ac5016c524 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/common_language_settings.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings do + @moduledoc """ + Required information for every language. + + ## Attributes + + * `destinations` (*type:* `list(String.t)`, *default:* `nil`) - The destination where API teams want this client library to be published. + * `referenceDocsUri` (*type:* `String.t`, *default:* `nil`) - Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :destinations => list(String.t()) | nil, + :referenceDocsUri => String.t() | nil + } + + field(:destinations, type: :list) + field(:referenceDocsUri) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/control.ex b/clients/service_management/lib/google_api/service_management/v1/model/control.ex index ca1d4acd2b..10454f7699 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/control.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/control.ex @@ -17,20 +17,23 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Control do @moduledoc """ - Selects and configures the service controller used by the service. The service controller handles two things: - **What is allowed:** for each API request, Chemist checks the project status, activation status, abuse status, billing status, service status, location restrictions, VPC Service Controls, SuperQuota, and other policies. - **What has happened:** for each API response, Chemist reports the telemetry data to analytics, auditing, billing, eventing, logging, monitoring, sawmill, and tracing. Chemist also accepts telemetry data not associated with API traffic, such as billing metrics. Example: control: environment: servicecontrol.googleapis.com + Selects and configures the service controller used by the service. Example: control: environment: servicecontrol.googleapis.com ## Attributes * `environment` (*type:* `String.t`, *default:* `nil`) - The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com + * `methodPolicies` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.MethodPolicy.t)`, *default:* `nil`) - Defines policies applying to the API methods of the service. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :environment => String.t() | nil + :environment => String.t() | nil, + :methodPolicies => list(GoogleApi.ServiceManagement.V1.Model.MethodPolicy.t()) | nil } field(:environment) + field(:methodPolicies, as: GoogleApi.ServiceManagement.V1.Model.MethodPolicy, type: :list) end defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.Control do diff --git a/clients/service_management/lib/google_api/service_management/v1/model/cpp_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/cpp_settings.ex new file mode 100644 index 0000000000..a9818e3c68 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/cpp_settings.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.CppSettings do + @moduledoc """ + Settings for C++ client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.CppSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.CppSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.CppSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/documentation.ex b/clients/service_management/lib/google_api/service_management/v1/model/documentation.ex index 8b0a52060e..25a419932f 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/documentation.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/documentation.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Documentation do @moduledoc """ - `Documentation` provides the information for describing a service. Example: documentation: summary: > The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages; - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: > ... - selector: google.calendar.Calendar.Put description: > ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The `include` directive includes a markdown file from an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation. + `Documentation` provides the information for describing a service. Example: documentation: summary: > The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: > ... - selector: google.calendar.Calendar.Put description: > ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The `include` directive includes a markdown file from an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation. ## Attributes @@ -25,6 +25,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Documentation do * `overview` (*type:* `String.t`, *default:* `nil`) - Declares a single overview page. For example: documentation: summary: ... overview: (== include overview.md ==) This is a shortcut for the following declaration (using pages style): documentation: summary: ... pages: - name: Overview content: (== include overview.md ==) Note: you cannot specify both `overview` field and `pages` field. * `pages` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.Page.t)`, *default:* `nil`) - The top level pages for the documentation set. * `rules` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.DocumentationRule.t)`, *default:* `nil`) - A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order. + * `sectionOverrides` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.Page.t)`, *default:* `nil`) - Specifies section and content to override boilerplate content provided by go/api-docgen. Currently overrides following sections: 1. rest.service.client_libraries * `serviceRootUrl` (*type:* `String.t`, *default:* `nil`) - Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections that show a base that other urls are relative to. * `summary` (*type:* `String.t`, *default:* `nil`) - A short description of what the service does. The summary must be plain text. It becomes the overview of the service displayed in Google Cloud Console. NOTE: This field is equivalent to the standard field `description`. """ @@ -36,6 +37,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Documentation do :overview => String.t() | nil, :pages => list(GoogleApi.ServiceManagement.V1.Model.Page.t()) | nil, :rules => list(GoogleApi.ServiceManagement.V1.Model.DocumentationRule.t()) | nil, + :sectionOverrides => list(GoogleApi.ServiceManagement.V1.Model.Page.t()) | nil, :serviceRootUrl => String.t() | nil, :summary => String.t() | nil } @@ -44,6 +46,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Documentation do field(:overview) field(:pages, as: GoogleApi.ServiceManagement.V1.Model.Page, type: :list) field(:rules, as: GoogleApi.ServiceManagement.V1.Model.DocumentationRule, type: :list) + field(:sectionOverrides, as: GoogleApi.ServiceManagement.V1.Model.Page, type: :list) field(:serviceRootUrl) field(:summary) end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/documentation_rule.ex b/clients/service_management/lib/google_api/service_management/v1/model/documentation_rule.ex index 1aac2ac7a4..a62aa688c9 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/documentation_rule.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/documentation_rule.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.DocumentationRule do * `deprecationDescription` (*type:* `String.t`, *default:* `nil`) - Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`. * `description` (*type:* `String.t`, *default:* `nil`) - Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element. + * `disableReplacementWords` (*type:* `String.t`, *default:* `nil`) - String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen. * `selector` (*type:* `String.t`, *default:* `nil`) - The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used. """ @@ -31,11 +32,13 @@ defmodule GoogleApi.ServiceManagement.V1.Model.DocumentationRule do @type t :: %__MODULE__{ :deprecationDescription => String.t() | nil, :description => String.t() | nil, + :disableReplacementWords => String.t() | nil, :selector => String.t() | nil } field(:deprecationDescription) field(:description) + field(:disableReplacementWords) field(:selector) end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/dotnet_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/dotnet_settings.ex new file mode 100644 index 0000000000..96620b1e8d --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/dotnet_settings.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.DotnetSettings do + @moduledoc """ + Settings for Dotnet client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + * `forcedNamespaceAliases` (*type:* `list(String.t)`, *default:* `nil`) - Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision + * `handwrittenSignatures` (*type:* `list(String.t)`, *default:* `nil`) - Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however. + * `ignoredResources` (*type:* `list(String.t)`, *default:* `nil`) - List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location" + * `renamedResources` (*type:* `map()`, *default:* `nil`) - Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * `renamedServices` (*type:* `map()`, *default:* `nil`) - Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil, + :forcedNamespaceAliases => list(String.t()) | nil, + :handwrittenSignatures => list(String.t()) | nil, + :ignoredResources => list(String.t()) | nil, + :renamedResources => map() | nil, + :renamedServices => map() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) + field(:forcedNamespaceAliases, type: :list) + field(:handwrittenSignatures, type: :list) + field(:ignoredResources, type: :list) + field(:renamedResources, type: :map) + field(:renamedServices, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.DotnetSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.DotnetSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.DotnetSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/endpoint.ex b/clients/service_management/lib/google_api/service_management/v1/model/endpoint.ex index a70b76e5d8..c33d27b50a 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/endpoint.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/endpoint.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Endpoint do ## Attributes + * `aliases` (*type:* `list(String.t)`, *default:* `nil`) - Unimplemented. Dot not use. DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple google.api.Endpoint for each of the intended aliases. Additional names that this endpoint will be hosted on. * `allowCors` (*type:* `boolean()`, *default:* `nil`) - Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed. * `name` (*type:* `String.t`, *default:* `nil`) - The canonical name of this endpoint. * `target` (*type:* `String.t`, *default:* `nil`) - The specification of an Internet routable address of API frontend that will handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). It should be either a valid IPv4 address or a fully-qualified domain name. For example, "8.8.8.8" or "myservice.appspot.com". @@ -29,11 +30,13 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Endpoint do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :aliases => list(String.t()) | nil, :allowCors => boolean() | nil, :name => String.t() | nil, :target => String.t() | nil } + field(:aliases, type: :list) field(:allowCors) field(:name) field(:target) diff --git a/clients/service_management/lib/google_api/service_management/v1/model/enum.ex b/clients/service_management/lib/google_api/service_management/v1/model/enum.ex index 19e210a6dc..5e706ffc05 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/enum.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/enum.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Enum do ## Attributes + * `edition` (*type:* `String.t`, *default:* `nil`) - The source edition string, only valid when syntax is SYNTAX_EDITIONS. * `enumvalue` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.EnumValue.t)`, *default:* `nil`) - Enum value definitions. * `name` (*type:* `String.t`, *default:* `nil`) - Enum type name. * `options` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.Option.t)`, *default:* `nil`) - Protocol buffer options. @@ -31,6 +32,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Enum do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :edition => String.t() | nil, :enumvalue => list(GoogleApi.ServiceManagement.V1.Model.EnumValue.t()) | nil, :name => String.t() | nil, :options => list(GoogleApi.ServiceManagement.V1.Model.Option.t()) | nil, @@ -38,6 +40,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Enum do :syntax => String.t() | nil } + field(:edition) field(:enumvalue, as: GoogleApi.ServiceManagement.V1.Model.EnumValue, type: :list) field(:name) field(:options, as: GoogleApi.ServiceManagement.V1.Model.Option, type: :list) diff --git a/clients/service_management/lib/google_api/service_management/v1/model/field_policy.ex b/clients/service_management/lib/google_api/service_management/v1/model/field_policy.ex new file mode 100644 index 0000000000..c9a57a29a7 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/field_policy.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.FieldPolicy do + @moduledoc """ + Google API Policy Annotation This message defines a simple API policy annotation that can be used to annotate API request and response message fields with applicable policies. One field may have multiple applicable policies that must all be satisfied before a request can be processed. This policy annotation is used to generate the overall policy that will be used for automatic runtime policy enforcement and documentation generation. + + ## Attributes + + * `resourcePermission` (*type:* `String.t`, *default:* `nil`) - Specifies the required permission(s) for the resource referred to by the field. It requires the field contains a valid resource reference, and the request must pass the permission checks to proceed. For example, "resourcemanager.projects.get". + * `resourceType` (*type:* `String.t`, *default:* `nil`) - Specifies the resource type for the resource referred to by the field. + * `selector` (*type:* `String.t`, *default:* `nil`) - Selects one or more request or response message fields to apply this `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector must be left as empty. The service config generator will automatically fill the correct value. When a `FieldPolicy` is used in service config, the selector must be a comma-separated string with valid request or response field paths, such as "foo.bar" or "foo.bar,foo.baz". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourcePermission => String.t() | nil, + :resourceType => String.t() | nil, + :selector => String.t() | nil + } + + field(:resourcePermission) + field(:resourceType) + field(:selector) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.FieldPolicy do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.FieldPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.FieldPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/go_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/go_settings.ex new file mode 100644 index 0000000000..037456e12e --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/go_settings.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.GoSettings do + @moduledoc """ + Settings for Go client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.GoSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.GoSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.GoSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/java_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/java_settings.ex new file mode 100644 index 0000000000..bf6cf004d9 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/java_settings.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.JavaSettings do + @moduledoc """ + Settings for Java client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + * `libraryPackage` (*type:* `String.t`, *default:* `nil`) - The package name to use in Java. Clobbers the java_package option set in the protobuf. This should be used **only** by APIs who have already set the language_settings.java.package_name" field in gapic.yaml. API teams should use the protobuf java_package option where possible. Example of a YAML configuration:: publishing: java_settings: library_package: com.google.cloud.pubsub.v1 + * `serviceClassNames` (*type:* `map()`, *default:* `nil`) - Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client. Keys are fully-qualified service names as they appear in the protobuf (including the full the language_settings.java.interface_names" field in gapic.yaml. API teams should otherwise use the service name as it appears in the protobuf. Example of a YAML configuration:: publishing: java_settings: service_class_names: - google.pubsub.v1.Publisher: TopicAdmin - google.pubsub.v1.Subscriber: SubscriptionAdmin + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil, + :libraryPackage => String.t() | nil, + :serviceClassNames => map() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) + field(:libraryPackage) + field(:serviceClassNames, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.JavaSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.JavaSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.JavaSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/long_running.ex b/clients/service_management/lib/google_api/service_management/v1/model/long_running.ex new file mode 100644 index 0000000000..f9e4fd3157 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/long_running.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.LongRunning do + @moduledoc """ + Describes settings to use when generating API methods that use the long-running operation pattern. All default values below are from those used in the client library generators (e.g. [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + + ## Attributes + + * `initialPollDelay` (*type:* `String.t`, *default:* `nil`) - Initial delay after which the first poll request will be made. Default value: 5 seconds. + * `maxPollDelay` (*type:* `String.t`, *default:* `nil`) - Maximum time between two subsequent poll requests. Default value: 45 seconds. + * `pollDelayMultiplier` (*type:* `number()`, *default:* `nil`) - Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay. Default value: 1.5. + * `totalPollTimeout` (*type:* `String.t`, *default:* `nil`) - Total polling timeout. Default value: 5 minutes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :initialPollDelay => String.t() | nil, + :maxPollDelay => String.t() | nil, + :pollDelayMultiplier => number() | nil, + :totalPollTimeout => String.t() | nil + } + + field(:initialPollDelay) + field(:maxPollDelay) + field(:pollDelayMultiplier) + field(:totalPollTimeout) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.LongRunning do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.LongRunning.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.LongRunning do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/method_policy.ex b/clients/service_management/lib/google_api/service_management/v1/model/method_policy.ex new file mode 100644 index 0000000000..f30ce01074 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/method_policy.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.MethodPolicy do + @moduledoc """ + Defines policies applying to an RPC method. + + ## Attributes + + * `requestPolicies` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.FieldPolicy.t)`, *default:* `nil`) - Policies that are applicable to the request message. + * `selector` (*type:* `String.t`, *default:* `nil`) - Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler . + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requestPolicies => list(GoogleApi.ServiceManagement.V1.Model.FieldPolicy.t()) | nil, + :selector => String.t() | nil + } + + field(:requestPolicies, as: GoogleApi.ServiceManagement.V1.Model.FieldPolicy, type: :list) + field(:selector) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.MethodPolicy do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.MethodPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.MethodPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/method_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/method_settings.ex new file mode 100644 index 0000000000..6d8e967c3f --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/method_settings.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.MethodSettings do + @moduledoc """ + Describes the generator configuration for a method. + + ## Attributes + + * `autoPopulatedFields` (*type:* `list(String.t)`, *default:* `nil`) - List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id + * `longRunning` (*type:* `GoogleApi.ServiceManagement.V1.Model.LongRunning.t`, *default:* `nil`) - Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes + * `selector` (*type:* `String.t`, *default:* `nil`) - The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :autoPopulatedFields => list(String.t()) | nil, + :longRunning => GoogleApi.ServiceManagement.V1.Model.LongRunning.t() | nil, + :selector => String.t() | nil + } + + field(:autoPopulatedFields, type: :list) + field(:longRunning, as: GoogleApi.ServiceManagement.V1.Model.LongRunning) + field(:selector) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.MethodSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.MethodSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.MethodSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/mixin.ex b/clients/service_management/lib/google_api/service_management/v1/model/mixin.ex index b28894e7d3..3f0ade01a6 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/mixin.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/mixin.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Mixin do @moduledoc """ - Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**}:getAcl"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**}"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; } ... } + Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**}:getAcl"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**}"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; } ... } ## Attributes diff --git a/clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex b/clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex index 6e5d8bcc59..02ac3b1c92 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.MonitoredResourceDescriptor do * `labels` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.LabelDescriptor.t)`, *default:* `nil`) - Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels `"database_id"` and `"zone"`. * `launchStage` (*type:* `String.t`, *default:* `nil`) - Optional. The launch stage of the monitored resource definition. * `name` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type} is the value of the `type` field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format `"monitoredResourceDescriptors/{type}"`. - * `type` (*type:* `String.t`, *default:* `nil`) - Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. For a list of types, see [Monitoring resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. For a list of types, see [Monitored resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list). """ use GoogleApi.Gax.ModelBase diff --git a/clients/service_management/lib/google_api/service_management/v1/model/node_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/node_settings.ex new file mode 100644 index 0000000000..028bec9df9 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/node_settings.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.NodeSettings do + @moduledoc """ + Settings for Node client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.NodeSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.NodeSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.NodeSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/operation.ex b/clients/service_management/lib/google_api/service_management/v1/model/operation.ex index b58573f243..eb02780db9 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/operation.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Operation do * `error` (*type:* `GoogleApi.ServiceManagement.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/service_management/lib/google_api/service_management/v1/model/php_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/php_settings.ex new file mode 100644 index 0000000000..a852c39a47 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/php_settings.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.PhpSettings do + @moduledoc """ + Settings for Php client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.PhpSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.PhpSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.PhpSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/policy.ex b/clients/service_management/lib/google_api/service_management/v1/model/policy.ex index b0b1d91622..650d7c86da 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/policy.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/service_management/lib/google_api/service_management/v1/model/publishing.ex b/clients/service_management/lib/google_api/service_management/v1/model/publishing.ex new file mode 100644 index 0000000000..a0186358a4 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/publishing.ex @@ -0,0 +1,82 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.Publishing do + @moduledoc """ + This message configures the settings for publishing [Google Cloud Client libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) generated from the service config. + + ## Attributes + + * `apiShortName` (*type:* `String.t`, *default:* `nil`) - Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech". + * `codeownerGithubTeams` (*type:* `list(String.t)`, *default:* `nil`) - GitHub teams to be added to CODEOWNERS in the directory in GitHub containing source code for the client libraries for this API. + * `docTagPrefix` (*type:* `String.t`, *default:* `nil`) - A prefix used in sample code when demarking regions to be included in documentation. + * `documentationUri` (*type:* `String.t`, *default:* `nil`) - Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview + * `githubLabel` (*type:* `String.t`, *default:* `nil`) - GitHub label to apply to issues and pull requests opened for this API. + * `librarySettings` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.ClientLibrarySettings.t)`, *default:* `nil`) - Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded. + * `methodSettings` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.MethodSettings.t)`, *default:* `nil`) - A list of API method settings, e.g. the behavior for methods that use the long-running operation pattern. + * `newIssueUri` (*type:* `String.t`, *default:* `nil`) - Link to a *public* URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * `organization` (*type:* `String.t`, *default:* `nil`) - For whom the client library is being published. + * `protoReferenceDocumentationUri` (*type:* `String.t`, *default:* `nil`) - Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc + * `restReferenceDocumentationUri` (*type:* `String.t`, *default:* `nil`) - Optional link to REST reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rest + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apiShortName => String.t() | nil, + :codeownerGithubTeams => list(String.t()) | nil, + :docTagPrefix => String.t() | nil, + :documentationUri => String.t() | nil, + :githubLabel => String.t() | nil, + :librarySettings => + list(GoogleApi.ServiceManagement.V1.Model.ClientLibrarySettings.t()) | nil, + :methodSettings => list(GoogleApi.ServiceManagement.V1.Model.MethodSettings.t()) | nil, + :newIssueUri => String.t() | nil, + :organization => String.t() | nil, + :protoReferenceDocumentationUri => String.t() | nil, + :restReferenceDocumentationUri => String.t() | nil + } + + field(:apiShortName) + field(:codeownerGithubTeams, type: :list) + field(:docTagPrefix) + field(:documentationUri) + field(:githubLabel) + + field(:librarySettings, + as: GoogleApi.ServiceManagement.V1.Model.ClientLibrarySettings, + type: :list + ) + + field(:methodSettings, as: GoogleApi.ServiceManagement.V1.Model.MethodSettings, type: :list) + field(:newIssueUri) + field(:organization) + field(:protoReferenceDocumentationUri) + field(:restReferenceDocumentationUri) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.Publishing do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.Publishing.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.Publishing do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/python_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/python_settings.ex new file mode 100644 index 0000000000..eb47c4fea4 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/python_settings.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.PythonSettings do + @moduledoc """ + Settings for Python client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.PythonSettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.PythonSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.PythonSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/ruby_settings.ex b/clients/service_management/lib/google_api/service_management/v1/model/ruby_settings.ex new file mode 100644 index 0000000000..4a7901e4f7 --- /dev/null +++ b/clients/service_management/lib/google_api/service_management/v1/model/ruby_settings.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceManagement.V1.Model.RubySettings do + @moduledoc """ + Settings for Ruby client libraries. + + ## Attributes + + * `common` (*type:* `GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :common => GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings.t() | nil + } + + field(:common, as: GoogleApi.ServiceManagement.V1.Model.CommonLanguageSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.RubySettings do + def decode(value, options) do + GoogleApi.ServiceManagement.V1.Model.RubySettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.RubySettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_management/lib/google_api/service_management/v1/model/service.ex b/clients/service_management/lib/google_api/service_management/v1/model/service.ex index cd3e7b7d23..1e833671d3 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/service.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/service.ex @@ -41,6 +41,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Service do * `monitoring` (*type:* `GoogleApi.ServiceManagement.V1.Model.Monitoring.t`, *default:* `nil`) - Monitoring configuration. * `name` (*type:* `String.t`, *default:* `nil`) - The service name, which is a DNS-like logical identifier for the service, such as `calendar.googleapis.com`. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name. * `producerProjectId` (*type:* `String.t`, *default:* `nil`) - The Google project that owns this service. + * `publishing` (*type:* `GoogleApi.ServiceManagement.V1.Model.Publishing.t`, *default:* `nil`) - Settings for [Google Cloud Client libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) generated from APIs defined as protocol buffers. * `quota` (*type:* `GoogleApi.ServiceManagement.V1.Model.Quota.t`, *default:* `nil`) - Quota configuration. * `sourceInfo` (*type:* `GoogleApi.ServiceManagement.V1.Model.SourceInfo.t`, *default:* `nil`) - Output only. The source information for this configuration if available. * `systemParameters` (*type:* `GoogleApi.ServiceManagement.V1.Model.SystemParameters.t`, *default:* `nil`) - System parameter configuration. @@ -74,6 +75,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Service do :monitoring => GoogleApi.ServiceManagement.V1.Model.Monitoring.t() | nil, :name => String.t() | nil, :producerProjectId => String.t() | nil, + :publishing => GoogleApi.ServiceManagement.V1.Model.Publishing.t() | nil, :quota => GoogleApi.ServiceManagement.V1.Model.Quota.t() | nil, :sourceInfo => GoogleApi.ServiceManagement.V1.Model.SourceInfo.t() | nil, :systemParameters => GoogleApi.ServiceManagement.V1.Model.SystemParameters.t() | nil, @@ -108,6 +110,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Service do field(:monitoring, as: GoogleApi.ServiceManagement.V1.Model.Monitoring) field(:name) field(:producerProjectId) + field(:publishing, as: GoogleApi.ServiceManagement.V1.Model.Publishing) field(:quota, as: GoogleApi.ServiceManagement.V1.Model.Quota) field(:sourceInfo, as: GoogleApi.ServiceManagement.V1.Model.SourceInfo) field(:systemParameters, as: GoogleApi.ServiceManagement.V1.Model.SystemParameters) diff --git a/clients/service_management/lib/google_api/service_management/v1/model/type.ex b/clients/service_management/lib/google_api/service_management/v1/model/type.ex index e756db62cf..7dce6f77ac 100644 --- a/clients/service_management/lib/google_api/service_management/v1/model/type.ex +++ b/clients/service_management/lib/google_api/service_management/v1/model/type.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Type do ## Attributes + * `edition` (*type:* `String.t`, *default:* `nil`) - The source edition string, only valid when syntax is SYNTAX_EDITIONS. * `fields` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.Field.t)`, *default:* `nil`) - The list of fields. * `name` (*type:* `String.t`, *default:* `nil`) - The fully qualified message name. * `oneofs` (*type:* `list(String.t)`, *default:* `nil`) - The list of types appearing in `oneof` definitions in this type. @@ -32,6 +33,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Type do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :edition => String.t() | nil, :fields => list(GoogleApi.ServiceManagement.V1.Model.Field.t()) | nil, :name => String.t() | nil, :oneofs => list(String.t()) | nil, @@ -40,6 +42,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Type do :syntax => String.t() | nil } + field(:edition) field(:fields, as: GoogleApi.ServiceManagement.V1.Model.Field, type: :list) field(:name) field(:oneofs, type: :list)