Skip to content

Commit 04bbeeb

Browse files
1 parent e0a408f commit 04bbeeb

3 files changed

Lines changed: 175 additions & 6 deletions

File tree

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Dataproc;
19+
20+
class AttachedDiskConfig extends \Google\Model
21+
{
22+
/**
23+
* Required unspecified disk type.
24+
*/
25+
public const DISK_TYPE_DISK_TYPE_UNSPECIFIED = 'DISK_TYPE_UNSPECIFIED';
26+
/**
27+
* Hyperdisk Balanced disk type.
28+
*/
29+
public const DISK_TYPE_HYPERDISK_BALANCED = 'HYPERDISK_BALANCED';
30+
/**
31+
* Hyperdisk Extreme disk type.
32+
*/
33+
public const DISK_TYPE_HYPERDISK_EXTREME = 'HYPERDISK_EXTREME';
34+
/**
35+
* Hyperdisk ML disk type.
36+
*/
37+
public const DISK_TYPE_HYPERDISK_ML = 'HYPERDISK_ML';
38+
/**
39+
* Hyperdisk Throughput disk type.
40+
*/
41+
public const DISK_TYPE_HYPERDISK_THROUGHPUT = 'HYPERDISK_THROUGHPUT';
42+
/**
43+
* Optional. Disk size in GB.
44+
*
45+
* @var int
46+
*/
47+
public $diskSizeGb;
48+
/**
49+
* Optional. Disk type.
50+
*
51+
* @var string
52+
*/
53+
public $diskType;
54+
/**
55+
* Optional. Indicates how many IOPS to provision for the attached disk. This
56+
* sets the number of I/O operations per second that the disk can handle. See
57+
* https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
58+
*
59+
* @var string
60+
*/
61+
public $provisionedIops;
62+
/**
63+
* Optional. Indicates how much throughput to provision for the attached disk.
64+
* This sets the number of throughput mb per second that the disk can handle.
65+
* See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-
66+
* features
67+
*
68+
* @var string
69+
*/
70+
public $provisionedThroughput;
71+
72+
/**
73+
* Optional. Disk size in GB.
74+
*
75+
* @param int $diskSizeGb
76+
*/
77+
public function setDiskSizeGb($diskSizeGb)
78+
{
79+
$this->diskSizeGb = $diskSizeGb;
80+
}
81+
/**
82+
* @return int
83+
*/
84+
public function getDiskSizeGb()
85+
{
86+
return $this->diskSizeGb;
87+
}
88+
/**
89+
* Optional. Disk type.
90+
*
91+
* Accepted values: DISK_TYPE_UNSPECIFIED, HYPERDISK_BALANCED,
92+
* HYPERDISK_EXTREME, HYPERDISK_ML, HYPERDISK_THROUGHPUT
93+
*
94+
* @param self::DISK_TYPE_* $diskType
95+
*/
96+
public function setDiskType($diskType)
97+
{
98+
$this->diskType = $diskType;
99+
}
100+
/**
101+
* @return self::DISK_TYPE_*
102+
*/
103+
public function getDiskType()
104+
{
105+
return $this->diskType;
106+
}
107+
/**
108+
* Optional. Indicates how many IOPS to provision for the attached disk. This
109+
* sets the number of I/O operations per second that the disk can handle. See
110+
* https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
111+
*
112+
* @param string $provisionedIops
113+
*/
114+
public function setProvisionedIops($provisionedIops)
115+
{
116+
$this->provisionedIops = $provisionedIops;
117+
}
118+
/**
119+
* @return string
120+
*/
121+
public function getProvisionedIops()
122+
{
123+
return $this->provisionedIops;
124+
}
125+
/**
126+
* Optional. Indicates how much throughput to provision for the attached disk.
127+
* This sets the number of throughput mb per second that the disk can handle.
128+
* See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-
129+
* features
130+
*
131+
* @param string $provisionedThroughput
132+
*/
133+
public function setProvisionedThroughput($provisionedThroughput)
134+
{
135+
$this->provisionedThroughput = $provisionedThroughput;
136+
}
137+
/**
138+
* @return string
139+
*/
140+
public function getProvisionedThroughput()
141+
{
142+
return $this->provisionedThroughput;
143+
}
144+
}
145+
146+
// Adding a class alias for backwards compatibility with the previous class name.
147+
class_alias(AttachedDiskConfig::class, 'Google_Service_Dataproc_AttachedDiskConfig');

src/Dataproc/DiskConfig.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717

1818
namespace Google\Service\Dataproc;
1919

20-
class DiskConfig extends \Google\Model
20+
class DiskConfig extends \Google\Collection
2121
{
22+
protected $collection_key = 'attachedDiskConfigs';
23+
protected $attachedDiskConfigsType = AttachedDiskConfig::class;
24+
protected $attachedDiskConfigsDataType = 'array';
2225
/**
2326
* Optional. Indicates how many IOPS to provision for the disk. This sets the
2427
* number of I/O operations per second that the disk can handle. This field is
@@ -73,6 +76,22 @@ class DiskConfig extends \Google\Model
7376
*/
7477
public $numLocalSsds;
7578

79+
/**
80+
* Optional. A list of attached disk configs for a group of VM instances.
81+
*
82+
* @param AttachedDiskConfig[] $attachedDiskConfigs
83+
*/
84+
public function setAttachedDiskConfigs($attachedDiskConfigs)
85+
{
86+
$this->attachedDiskConfigs = $attachedDiskConfigs;
87+
}
88+
/**
89+
* @return AttachedDiskConfig[]
90+
*/
91+
public function getAttachedDiskConfigs()
92+
{
93+
return $this->attachedDiskConfigs;
94+
}
7695
/**
7796
* Optional. Indicates how many IOPS to provision for the disk. This sets the
7897
* number of I/O operations per second that the disk can handle. This field is

src/Dataproc/Resource/ProjectsRegionsJobs.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,14 @@ public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParam
131131
* includes only jobs that were submitted to the named cluster.
132132
* @opt_param string filter Optional. A filter constraining the jobs to list.
133133
* Filters are case-sensitive and have the following syntax:field = value AND
134-
* field = value ...where field is status.state or labels.[KEY], and [KEY] is a
135-
* label key. value can be * to match all values. status.state can be either
136-
* ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; space-
137-
* separated items are treated as having an implicit AND operator.Example
138-
* filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *
134+
* field = value ...where field is status.state or insertTime, or labels.[KEY],
135+
* and [KEY] is a label key. value can be * to match all values. status.state
136+
* can be either ACTIVE or NON_ACTIVE. Allows insertTime to be a timestamp in
137+
* RFC 3339 format in double quotes, such as 2025-01-01T00:00:00Z. Only the
138+
* logical AND operator is supported; space-separated items are treated as
139+
* having an implicit AND operator.Example filter:status.state = ACTIVE AND
140+
* labels.env = staging AND labels.starred = * AND insertTime <=
141+
* "2025-01-01T00:00:00Z"
139142
* @opt_param string jobStateMatcher Optional. Specifies enumerated categories
140143
* of jobs to list. (default = match ALL jobs).If filter is provided,
141144
* jobStateMatcher will be ignored.

0 commit comments

Comments
 (0)