Skip to content

Commit bd9bcf4

Browse files
feat: Automated regeneration of VMwareEngine client (googleapis#13027)
Auto-created at 2025-02-23 13:13:54 +0000 using the toys pull request generator.
1 parent bafdeb9 commit bd9bcf4

File tree

14 files changed

+965
-3
lines changed

14 files changed

+965
-3
lines changed

clients/v_mware_engine/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_v_mware_engine, "~> 0.4"}]
14+
[{:google_api_v_mware_engine, "~> 0.5"}]
1515
end
1616
```
1717

clients/v_mware_engine/lib/google_api/v_mware_engine/v1/api/projects.ex

Lines changed: 374 additions & 0 deletions
Large diffs are not rendered by default.

clients/v_mware_engine/lib/google_api/v_mware_engine/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.VMwareEngine.V1 do
2020
API client metadata for GoogleApi.VMwareEngine.V1.
2121
"""
2222

23-
@discovery_revision "20241009"
23+
@discovery_revision "20250218"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.VMwareEngine.V1.Model.Announcement do
19+
@moduledoc """
20+
Announcement for the resources of Vmware Engine.
21+
22+
## Attributes
23+
24+
* `activityType` (*type:* `String.t`, *default:* `nil`) - Optional. Activity type of the announcement There can be only one active announcement for a given activity type and target resource.
25+
* `cluster` (*type:* `String.t`, *default:* `nil`) - A Cluster resource name.
26+
* `code` (*type:* `String.t`, *default:* `nil`) - Required. Code of the announcement. Indicates the presence of a VMware Engine related announcement and corresponds to a related message in the `description` field.
27+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Creation time of this resource. It also serves as start time of notification.
28+
* `description` (*type:* `String.t`, *default:* `nil`) - Output only. Description of the announcement.
29+
* `metadata` (*type:* `map()`, *default:* `nil`) - Output only. Additional structured details about this announcement.
30+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the announcement. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-west1-a/announcements/my-announcement-id`
31+
* `privateCloud` (*type:* `String.t`, *default:* `nil`) - A Private Cloud resource name.
32+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the resource. New values may be added to this enum when appropriate.
33+
* `targetResourceType` (*type:* `String.t`, *default:* `nil`) - Output only. Target Resource Type defines the type of the target for the announcement
34+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Last update time of this resource.
35+
"""
36+
37+
use GoogleApi.Gax.ModelBase
38+
39+
@type t :: %__MODULE__{
40+
:activityType => String.t() | nil,
41+
:cluster => String.t() | nil,
42+
:code => String.t() | nil,
43+
:createTime => DateTime.t() | nil,
44+
:description => String.t() | nil,
45+
:metadata => map() | nil,
46+
:name => String.t() | nil,
47+
:privateCloud => String.t() | nil,
48+
:state => String.t() | nil,
49+
:targetResourceType => String.t() | nil,
50+
:updateTime => DateTime.t() | nil
51+
}
52+
53+
field(:activityType)
54+
field(:cluster)
55+
field(:code)
56+
field(:createTime, as: DateTime)
57+
field(:description)
58+
field(:metadata, type: :map)
59+
field(:name)
60+
field(:privateCloud)
61+
field(:state)
62+
field(:targetResourceType)
63+
field(:updateTime, as: DateTime)
64+
end
65+
66+
defimpl Poison.Decoder, for: GoogleApi.VMwareEngine.V1.Model.Announcement do
67+
def decode(value, options) do
68+
GoogleApi.VMwareEngine.V1.Model.Announcement.decode(value, options)
69+
end
70+
end
71+
72+
defimpl Poison.Encoder, for: GoogleApi.VMwareEngine.V1.Model.Announcement do
73+
def encode(value, options) do
74+
GoogleApi.Gax.ModelBase.encode(value, options)
75+
end
76+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.VMwareEngine.V1.Model.Constraints do
19+
@moduledoc """
20+
Constraints to be applied while editing a schedule. These constraints ensure that `Upgrade` specific requirements are met.
21+
22+
## Attributes
23+
24+
* `minHoursDay` (*type:* `integer()`, *default:* `nil`) - Output only. Minimum number of hours must be allotted for the upgrade activities for each selected day. This is a minimum; the upgrade schedule can allot more hours for the given day.
25+
* `minHoursWeek` (*type:* `integer()`, *default:* `nil`) - Output only. The minimum number of weekly hours must be allotted for the upgrade activities. This is just a minimum; the schedule can assign more weekly hours.
26+
* `rescheduleDateRange` (*type:* `GoogleApi.VMwareEngine.V1.Model.Interval.t`, *default:* `nil`) - Output only. Output Only. The user can only reschedule an upgrade that starts within this range.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:minHoursDay => integer() | nil,
33+
:minHoursWeek => integer() | nil,
34+
:rescheduleDateRange => GoogleApi.VMwareEngine.V1.Model.Interval.t() | nil
35+
}
36+
37+
field(:minHoursDay)
38+
field(:minHoursWeek)
39+
field(:rescheduleDateRange, as: GoogleApi.VMwareEngine.V1.Model.Interval)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.VMwareEngine.V1.Model.Constraints do
43+
def decode(value, options) do
44+
GoogleApi.VMwareEngine.V1.Model.Constraints.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.VMwareEngine.V1.Model.Constraints do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.VMwareEngine.V1.Model.Interval do
19+
@moduledoc """
20+
Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
21+
22+
## Attributes
23+
24+
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
25+
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:endTime => DateTime.t() | nil,
32+
:startTime => DateTime.t() | nil
33+
}
34+
35+
field(:endTime, as: DateTime)
36+
field(:startTime, as: DateTime)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.VMwareEngine.V1.Model.Interval do
40+
def decode(value, options) do
41+
GoogleApi.VMwareEngine.V1.Model.Interval.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.VMwareEngine.V1.Model.Interval do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.VMwareEngine.V1.Model.ListAnnouncementsResponse do
19+
@moduledoc """
20+
Response message for VmwareEngine.ListAnnouncements
21+
22+
## Attributes
23+
24+
* `announcements` (*type:* `list(GoogleApi.VMwareEngine.V1.Model.Announcement.t)`, *default:* `nil`) - A list of announcement runs.
25+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
26+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - list of unreachable locations
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:announcements => list(GoogleApi.VMwareEngine.V1.Model.Announcement.t()) | nil,
33+
:nextPageToken => String.t() | nil,
34+
:unreachable => list(String.t()) | nil
35+
}
36+
37+
field(:announcements, as: GoogleApi.VMwareEngine.V1.Model.Announcement, type: :list)
38+
field(:nextPageToken)
39+
field(:unreachable, type: :list)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.VMwareEngine.V1.Model.ListAnnouncementsResponse do
43+
def decode(value, options) do
44+
GoogleApi.VMwareEngine.V1.Model.ListAnnouncementsResponse.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.VMwareEngine.V1.Model.ListAnnouncementsResponse do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.VMwareEngine.V1.Model.ListUpgradesResponse do
19+
@moduledoc """
20+
Response message for VmwareEngine.ListUpgrades.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
25+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - List of unreachable resources.
26+
* `upgrades` (*type:* `list(GoogleApi.VMwareEngine.V1.Model.Upgrade.t)`, *default:* `nil`) - A list of `Upgrades`.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:nextPageToken => String.t() | nil,
33+
:unreachable => list(String.t()) | nil,
34+
:upgrades => list(GoogleApi.VMwareEngine.V1.Model.Upgrade.t()) | nil
35+
}
36+
37+
field(:nextPageToken)
38+
field(:unreachable, type: :list)
39+
field(:upgrades, as: GoogleApi.VMwareEngine.V1.Model.Upgrade, type: :list)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.VMwareEngine.V1.Model.ListUpgradesResponse do
43+
def decode(value, options) do
44+
GoogleApi.VMwareEngine.V1.Model.ListUpgradesResponse.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.VMwareEngine.V1.Model.ListUpgradesResponse do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.VMwareEngine.V1.Model.Schedule do
19+
@moduledoc """
20+
Schedule for the upgrade.
21+
22+
## Attributes
23+
24+
* `constraints` (*type:* `GoogleApi.VMwareEngine.V1.Model.Constraints.t`, *default:* `nil`) - Output only. Output Only. Constraints applied to the schedule. These constraints should be applicable at the time of any rescheduling.
25+
* `editWindow` (*type:* `GoogleApi.VMwareEngine.V1.Model.Interval.t`, *default:* `nil`) - Output only. Output Only. The schedule is open for edits during this time interval or window.
26+
* `lastEditor` (*type:* `String.t`, *default:* `nil`) - Output only. Output Only. Indicates who most recently edited the upgrade schedule. The value is updated whenever the upgrade is rescheduled.
27+
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The scheduled start time for the upgrade.
28+
* `weeklyWindows` (*type:* `list(GoogleApi.VMwareEngine.V1.Model.TimeWindow.t)`, *default:* `nil`) - Required. Weekly time windows for upgrade activities. The server performs upgrade activities during these time windows to minimize disruptions.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:constraints => GoogleApi.VMwareEngine.V1.Model.Constraints.t() | nil,
35+
:editWindow => GoogleApi.VMwareEngine.V1.Model.Interval.t() | nil,
36+
:lastEditor => String.t() | nil,
37+
:startTime => DateTime.t() | nil,
38+
:weeklyWindows => list(GoogleApi.VMwareEngine.V1.Model.TimeWindow.t()) | nil
39+
}
40+
41+
field(:constraints, as: GoogleApi.VMwareEngine.V1.Model.Constraints)
42+
field(:editWindow, as: GoogleApi.VMwareEngine.V1.Model.Interval)
43+
field(:lastEditor)
44+
field(:startTime, as: DateTime)
45+
field(:weeklyWindows, as: GoogleApi.VMwareEngine.V1.Model.TimeWindow, type: :list)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.VMwareEngine.V1.Model.Schedule do
49+
def decode(value, options) do
50+
GoogleApi.VMwareEngine.V1.Model.Schedule.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.VMwareEngine.V1.Model.Schedule do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end

0 commit comments

Comments
 (0)