Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of ChromePolicy client #10786

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.ChromePolicy.V1 do
API client metadata for GoogleApi.ChromePolicy.V1.
"""

@discovery_revision "20221021"
@discovery_revision "20240310"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1FieldConstraints do
@moduledoc """
Information about any range constraints.

## Attributes

* `numericRangeConstraint` (*type:* `GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1NumericRangeConstraint.t`, *default:* `nil`) - The allowed range for numeric fields.
* `uploadedFileConstraints` (*type:* `GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1UploadedFileConstraints.t`, *default:* `nil`) - Constraints on the uploaded file of a file policy. If present, this policy requires a URL that can be fetched by uploading a file with the constraints specified in this proto.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:numericRangeConstraint =>
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1NumericRangeConstraint.t()
| nil,
:uploadedFileConstraints =>
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1UploadedFileConstraints.t()
| nil
}

field(:numericRangeConstraint,
as: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1NumericRangeConstraint
)

field(:uploadedFileConstraints,
as: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1UploadedFileConstraints
)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1FieldConstraints do
def decode(value, options) do
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1FieldConstraints.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1FieldConstraints do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,22 @@ defmodule GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1ListGroupP

## Attributes

* `policyNamespace` (*type:* `String.t`, *default:* `nil`) - Required. The namespace of the policy type for the request.
* `policyNamespace` (*type:* `String.t`, *default:* `nil`) - The namespace of the policy type for the request.
* `policySchema` (*type:* `String.t`, *default:* `nil`) - The schema name of the policy for the request.
* `policyTargetKey` (*type:* `GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey.t`, *default:* `nil`) - Required. The key of the target for which we want to retrieve the group priority ordering. The target resource must point to an app.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:policyNamespace => String.t() | nil,
:policySchema => String.t() | nil,
:policyTargetKey =>
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey.t() | nil
}

field(:policyNamespace)
field(:policySchema)

field(:policyTargetKey,
as: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1ListGroupP

* `groupIds` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The group IDs, in priority ordering.
* `policyNamespace` (*type:* `String.t`, *default:* `nil`) - Output only. The namespace of the policy type of the group IDs.
* `policySchema` (*type:* `String.t`, *default:* `nil`) - Output only. The schema name of the policy for the group IDs.
* `policyTargetKey` (*type:* `GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey.t`, *default:* `nil`) - Output only. The target resource for which the group priority ordering has been retrieved.
"""

Expand All @@ -31,12 +32,14 @@ defmodule GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1ListGroupP
@type t :: %__MODULE__{
:groupIds => list(String.t()) | nil,
:policyNamespace => String.t() | nil,
:policySchema => String.t() | nil,
:policyTargetKey =>
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey.t() | nil
}

field(:groupIds, type: :list)
field(:policyNamespace)
field(:policySchema)

field(:policyTargetKey,
as: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1NumericRangeConstraint do
@moduledoc """
A constraint on upper and/or lower bounds, with at least one being set.

## Attributes

* `maximum` (*type:* `String.t`, *default:* `nil`) - Maximum value.
* `minimum` (*type:* `String.t`, *default:* `nil`) - Minimum value.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:maximum => String.t() | nil,
:minimum => String.t() | nil
}

field(:maximum)
field(:minimum)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1NumericRangeConstraint do
def decode(value, options) do
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1NumericRangeConstraint.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1NumericRangeConstraint do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,48 @@
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ChromePolicy.V1.Model.ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle do
defmodule GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyApiLifecycle do
@moduledoc """

Lifecycle information.

## Attributes

* `deprecatedInFavorOf` (*type:* `list(String.t)`, *default:* `nil`) - In the event that this policy was deprecated in favor of another policy, the fully qualified namespace(s) of the new policies as they will show in PolicyAPI. Could only be set if policy_api_lifecycle_stage is API_DEPRECATED.
* `description` (*type:* `String.t`, *default:* `nil`) - Description about current life cycle.
* `endSupport` (*type:* `GoogleApi.ChromePolicy.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - End supporting date for current policy.
* `policyApiLifecycleStage` (*type:* `String.t`, *default:* `nil`) - Indicate current life cycle stage of the policy API.
* `endSupport` (*type:* `GoogleApi.ChromePolicy.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - End supporting date for current policy. Attempting to modify a policy after its end support date will result in a Bad Request (400 error). Could only be set if policy_api_lifecycle_stage is API_DEPRECATED.
* `policyApiLifecycleStage` (*type:* `String.t`, *default:* `nil`) - Indicates current life cycle stage of the policy API.
* `scheduledToDeprecatePolicies` (*type:* `list(String.t)`, *default:* `nil`) - Corresponding to deprecated_in_favor_of, the fully qualified namespace(s) of the old policies that will be deprecated because of introduction of this policy. This field should not be manually set but will be set and exposed through PolicyAPI automatically.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:deprecatedInFavorOf => list(String.t()) | nil,
:description => String.t() | nil,
:endSupport => GoogleApi.ChromePolicy.V1.Model.GoogleTypeDate.t() | nil,
:policyApiLifecycleStage => String.t() | nil
:policyApiLifecycleStage => String.t() | nil,
:scheduledToDeprecatePolicies => list(String.t()) | nil
}

field(:deprecatedInFavorOf, type: :list)
field(:description)
field(:endSupport, as: GoogleApi.ChromePolicy.V1.Model.GoogleTypeDate)
field(:policyApiLifecycleStage)
field(:scheduledToDeprecatePolicies, type: :list)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromePolicy.V1.Model.ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle do
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyApiLifecycle do
def decode(value, options) do
GoogleApi.ChromePolicy.V1.Model.ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle.decode(
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyApiLifecycle.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromePolicy.V1.Model.ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle do
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyApiLifecycle do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationError do
@moduledoc """
Error information for a modification request of a specific policy on a specific target.

## Attributes

* `errors` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The non-field errors related to the modification.
* `fieldErrors` (*type:* `list(GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationFieldError.t)`, *default:* `nil`) - Output only. The error messages related to the modification.
* `policySchema` (*type:* `String.t`, *default:* `nil`) - Output only. The specific policy schema modification that had an error.
* `policyTargetKey` (*type:* `GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey.t`, *default:* `nil`) - Output only. The specific policy target modification that had error.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:errors => list(String.t()) | nil,
:fieldErrors =>
list(
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationFieldError.t()
)
| nil,
:policySchema => String.t() | nil,
:policyTargetKey =>
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey.t() | nil
}

field(:errors, type: :list)

field(:fieldErrors,
as: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationFieldError,
type: :list
)

field(:policySchema)

field(:policyTargetKey,
as: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyTargetKey
)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationError do
def decode(value, options) do
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationError.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationError do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationErrorDetails do
@moduledoc """
Details of the errors encountered during a policy modification request. This message will be returned as part of the details of a google.rpc.Status returned to the user when there is an error in their request.

## Attributes

* `modificationErrors` (*type:* `list(GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationError.t)`, *default:* `nil`) - Output only. List of specific policy modifications errors that may have occurred during a modifying request.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:modificationErrors =>
list(
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationError.t()
)
| nil
}

field(:modificationErrors,
as: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationError,
type: :list
)
end

defimpl Poison.Decoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationErrorDetails do
def decode(value, options) do
GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationErrorDetails.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ChromePolicy.V1.Model.GoogleChromePolicyVersionsV1PolicyModificationErrorDetails do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading