mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Last visit setCompose update and Docker
This commit is contained in:
parent
1d091b9571
commit
e116e92e2f
120 changed files with 3852 additions and 380 deletions
35
Dockerfile
35
Dockerfile
|
@ -13,15 +13,15 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||
ARG SOCKET_PORT
|
||||
ARG HTTP_PORT
|
||||
ARG HTTPS_PORT
|
||||
ARG NGINX_RTMP_PORT
|
||||
ARG NGINX_HTTP_PORT
|
||||
ARG NGINX_HTTPS_PORT
|
||||
ARG DB_MYSQL_HOST
|
||||
ARG DB_MYSQL_PORT
|
||||
ARG DB_MYSQL_NAME
|
||||
ARG DB_MYSQL_USER
|
||||
ARG DB_MYSQL_PASSWORD
|
||||
ARG SERVER_NAME
|
||||
ARG ENABLE_PHPMYADMIN
|
||||
ARG PHPMYADMIN_PORT
|
||||
ARG PHPMYADMIN_ENCODER_PORT
|
||||
ARG CREATE_TLS_CERTIFICATE
|
||||
ARG TLS_CERTIFICATE_FILE
|
||||
ARG TLS_CERTIFICATE_KEY
|
||||
|
@ -48,28 +48,11 @@ RUN apt-get update -y && apt-get upgrade -y \
|
|||
&& a2enmod headers
|
||||
|
||||
COPY deploy/apache/avideo.conf /etc/apache2/sites-enabled/000-default.conf
|
||||
COPY deploy/docker-entrypoint /usr/local/bin/docker-entrypoint
|
||||
COPY deploy/wait-for-db.php /usr/local/bin/wait-for-db.php
|
||||
COPY deploy/apache/docker-entrypoint /usr/local/bin/docker-entrypoint
|
||||
COPY deploy/apache/wait-for-db.php /usr/local/bin/wait-for-db.php
|
||||
#COPY deploy/apache/phpmyadmin.conf /etc/apache2/conf-available/phpmyadmin.conf
|
||||
|
||||
# Install nginx
|
||||
RUN apt-get install build-essential libssl-dev libpcre3 libpcre3-dev wget -y \
|
||||
&& apt-get install --reinstall zlib1g zlib1g-dev -y \
|
||||
&& mkdir /var/www/tmp && chmod -R 777 /var/www/tmp \
|
||||
&& mkdir /HLS && mkdir /HLS/live && chmod -R 777 /HLS
|
||||
|
||||
RUN mkdir ~/build \
|
||||
&& cd ~/build \
|
||||
&& git clone https://github.com/arut/nginx-rtmp-module.git \
|
||||
&& git clone https://github.com/nginx/nginx.git \
|
||||
&& cd nginx \
|
||||
&& ./auto/configure --with-http_ssl_module --with-http_stub_status_module --add-module=../nginx-rtmp-module --with-cc-opt="-Wimplicit-fallthrough=0" \
|
||||
&& make \
|
||||
&& make install\
|
||||
&& cd /usr/local/nginx/html && wget https://youphp.tube/docs/stat.xsl
|
||||
|
||||
COPY deploy/nginx/nginx.conf /usr/local/nginx/conf/nginx.conf
|
||||
|
||||
COPY deploy/crontab /etc/cron.d/crontab
|
||||
COPY deploy/apache/crontab /etc/cron.d/crontab
|
||||
RUN dos2unix /etc/cron.d/crontab
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
RUN chmod +x /etc/cron.d/crontab
|
||||
|
@ -100,8 +83,8 @@ WORKDIR /var/www/html/AVideo/
|
|||
EXPOSE $SOCKET_PORT
|
||||
EXPOSE $HTTP_PORT
|
||||
EXPOSE $HTTPS_PORT
|
||||
EXPOSE $NGINX_RTMP_PORT
|
||||
EXPOSE $NGINX_HTTPS_PORT
|
||||
EXPOSE $PHPMYADMIN_PORT
|
||||
EXPOSE $PHPMYADMIN_ENCODER_PORT
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
|
||||
CMD ["apache2-foreground"]
|
||||
|
|
82
Dockerfile.live
Normal file
82
Dockerfile.live
Normal file
|
@ -0,0 +1,82 @@
|
|||
FROM ubuntu:latest
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ARG NGINX_RTMP_PORT
|
||||
ARG NGINX_HTTP_PORT
|
||||
ARG NGINX_HTTPS_PORT
|
||||
ARG SERVER_NAME
|
||||
ARG CREATE_TLS_CERTIFICATE
|
||||
ARG TLS_CERTIFICATE_FILE
|
||||
ARG TLS_CERTIFICATE_KEY
|
||||
|
||||
RUN apt-get update -y && apt-get upgrade -y
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
dos2unix \
|
||||
bash-completion \
|
||||
lsof \
|
||||
rsyslog \
|
||||
cron \
|
||||
rsync \
|
||||
ca-certificates \
|
||||
apt-transport-https \
|
||||
software-properties-common \
|
||||
curl \
|
||||
build-essential \
|
||||
libssl-dev \
|
||||
php-fpm \
|
||||
php-cli \
|
||||
php-curl \
|
||||
libpcre3 \
|
||||
libpcre3-dev \
|
||||
git \
|
||||
python3-certbot-nginx \
|
||||
ffmpeg \
|
||||
zlib1g-dev \
|
||||
wget
|
||||
RUN mkdir ~/build && \
|
||||
cd ~/build && \
|
||||
git clone https://github.com/arut/nginx-rtmp-module.git && \
|
||||
git clone https://github.com/nginx/nginx.git && \
|
||||
cd nginx && \
|
||||
./auto/configure --with-http_ssl_module --with-http_stub_status_module --add-module=../nginx-rtmp-module --with-cc-opt="-Wimplicit-fallthrough=0" && \
|
||||
make && \
|
||||
make install
|
||||
RUN cd /usr/local/nginx/html && \
|
||||
wget https://youphp.tube/docs/stat.xsl --no-check-certificate && \
|
||||
mv /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.old && \
|
||||
cd /usr/local/nginx/conf/ && \
|
||||
wget https://raw.githubusercontent.com/WWBN/AVideo/master/plugin/Live/install/nginx.conf --no-check-certificate && \
|
||||
mkdir /HLS && \
|
||||
mkdir /HLS/live && \
|
||||
mkdir /HLS/low && \
|
||||
mkdir /var/www/tmp/ && \
|
||||
chmod 777 /var/www/tmp
|
||||
|
||||
COPY deploy/nginx/docker-entrypoint-live /usr/local/bin/docker-entrypoint-live
|
||||
COPY deploy/nginx/nginx.conf /usr/local/nginx/conf/nginx.conf
|
||||
|
||||
COPY deploy/nginx/crontab /etc/cron.d/crontab
|
||||
RUN dos2unix /etc/cron.d/crontab
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
RUN chmod +x /etc/cron.d/crontab
|
||||
RUN service cron start
|
||||
RUN crontab /etc/cron.d/crontab
|
||||
|
||||
RUN dos2unix /usr/local/bin/docker-entrypoint-live && \
|
||||
chmod 755 /usr/local/bin/docker-entrypoint-live && \
|
||||
chmod +x /usr/local/bin/docker-entrypoint-live
|
||||
|
||||
VOLUME /var/www/tmp
|
||||
RUN mkdir -p /var/www/tmp && \
|
||||
chmod 777 /var/www/tmp
|
||||
|
||||
EXPOSE $NGINX_RTMP_PORT
|
||||
EXPOSE $NGINX_HTTP_PORT
|
||||
EXPOSE $NGINX_HTTPS_PORT
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint-live"]
|
||||
|
||||
CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]
|
||||
|
||||
#CMD ["bash"]
|
|
@ -45,6 +45,7 @@
|
|||
"symfony/translation": "^5.3",
|
||||
"amphp/amp": "^2.6",
|
||||
"scssphp/scssphp": "^1.11",
|
||||
"vimeo/vimeo-api": "^3.0"
|
||||
"vimeo/vimeo-api": "^3.0",
|
||||
"phpseclib/phpseclib": "^3.0"
|
||||
}
|
||||
}
|
||||
|
|
2
composer.lock
generated
2
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "d187492ec3ae5da5d4905596c18f60a0",
|
||||
"content-hash": "61c7502eaba3f259718a32d5b7f018cf",
|
||||
"packages": [
|
||||
{
|
||||
"name": "abraham/twitteroauth",
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
echo "Starting AVideo Platform..."
|
||||
CONFIG_FILE=/etc/apache2/sites-enabled/000-default.conf
|
||||
CONFIG_NGINX_FILE=/usr/local/nginx/conf/nginx.conf
|
||||
|
||||
if [ "_${CREATE_TLS_CERTIFICATE}_" == "_yes_" ]; then
|
||||
echo "Generate Certificate..."
|
||||
|
@ -45,19 +44,11 @@ fi
|
|||
|
||||
sed -i 's#SERVER_NAME#'${SERVER_NAME}'#' ${CONFIG_FILE}
|
||||
sed -i 's#CONTACT_EMAIL#'${CONTACT_EMAIL}'#' ${CONFIG_FILE}
|
||||
sed -i 's#server_name localhost _#server_name localhost _ '${SERVER_NAME}'#' ${CONFIG_NGINX_FILE}
|
||||
|
||||
echo "Configure Apache..."
|
||||
sed -i 's#TLS_CERTIFICATE_FILE#'${TLS_CERTIFICATE_FILE}'#' ${CONFIG_FILE}
|
||||
sed -i 's#TLS_CERTIFICATE_KEY#'${TLS_CERTIFICATE_KEY}'#' ${CONFIG_FILE}
|
||||
|
||||
echo "Configure Nginx..."
|
||||
sed -i 's#ssl_certificate /etc/apache2/ssl/localhost.crt#ssl_certificate '${TLS_CERTIFICATE_FILE}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#ssl_certificate_key /etc/apache2/ssl/localhost.key#ssl_certificate_key '${TLS_CERTIFICATE_KEY}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#listen 1935#listen '${NGINX_RTMP_PORT}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#listen 8080#listen '${NGINX_HTTP_PORT}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#listen 8443#listen '${NGINX_HTTPS_PORT}'#' ${CONFIG_NGINX_FILE}
|
||||
|
||||
mkdir -p /etc/letsencrypt/live/localhost/
|
||||
|
||||
cp ${TLS_CERTIFICATE_FILE} /etc/letsencrypt/live/localhost/fullchain.pem
|
||||
|
@ -102,25 +93,20 @@ cd /var/www/html/AVideo/install/
|
|||
php ./cli.php
|
||||
cd /var/www/html/AVideo/
|
||||
|
||||
#if [ "_${ENABLE_PHPMYADMIN}_" = "_yes_" ]; then
|
||||
# echo "Enabling local PHPMyAdmin on https://${SERVER_NAME}/phpmyadmin"
|
||||
# cp /etc/apache2/conf-available/phpmyadmin.conf /etc/apache2/conf-enabled/phpmyadmin.conf
|
||||
# a2enmod proxy
|
||||
# a2enmod proxy_http
|
||||
#fi
|
||||
|
||||
echo "lets encrypt apache ${SERVER_NAME}"
|
||||
certbot --apache --non-interactive --agree-tos --register-unsafely-without-email --redirect --keep-until-expiring -d ${SERVER_NAME}
|
||||
|
||||
/etc/init.d/apache2 stop
|
||||
|
||||
if [ -f /usr/local/nginx/sbin/nginx ]; then
|
||||
/usr/local/nginx/sbin/nginx -s stop
|
||||
echo "lets encrypt nginx ${SERVER_NAME}"
|
||||
apt-get install -y --no-install-recommends python3-certbot-nginx
|
||||
mv /usr/sbin/nginx /usr/sbin/nginx.old && cp /usr/local/nginx/sbin/nginx /usr/sbin/nginx
|
||||
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old && cp /usr/local/nginx/conf/nginx.conf /etc/nginx/nginx.conf
|
||||
certbot --nginx --non-interactive --agree-tos --nginx-server-root /usr/local/nginx/conf --no-redirect --register-unsafely-without-email --keep-until-expiring -d $SERVER_NAME
|
||||
sed -i 's/listen 443 ssl/listen 8443 ssl/g' /usr/local/nginx/conf/nginx.conf
|
||||
echo "nginx start"
|
||||
/usr/local/nginx/sbin/nginx -s stop && sleep 3 && /usr/local/nginx/sbin/nginx
|
||||
fi
|
||||
|
||||
echo "Start socket"
|
||||
nohup php /var/www/html/AVideo/plugin/YPTSocket/server.php &
|
||||
echo "socket done"
|
||||
|
||||
echo "Reset log"
|
||||
echo '' > /var/www/html/AVideo/videos/avideo.log
|
||||
|
@ -135,6 +121,9 @@ cd /var/www/html/AVideo/Encoder/install && php reencodeAllVideos.php
|
|||
echo "crontab starting"
|
||||
cron
|
||||
|
||||
bash
|
||||
source /etc/bash_completion
|
||||
|
||||
apache2-foreground
|
||||
echo "apache2-foreground done"
|
||||
|
3
deploy/nginx/crontab
Normal file
3
deploy/nginx/crontab
Normal file
|
@ -0,0 +1,3 @@
|
|||
# m h dom mon dow command
|
||||
# @reboot sleep 60; && /usr/local/nginx/sbin/nginx > /proc/1/fd/1 2>/proc/1/fd/2
|
||||
0 4 * * * /usr/local/nginx/sbin/nginx -s stop && sleep 1 && /usr/local/nginx/sbin/nginx > /proc/1/fd/1 2>/proc/1/fd/2
|
78
deploy/nginx/docker-entrypoint-live
Normal file
78
deploy/nginx/docker-entrypoint-live
Normal file
|
@ -0,0 +1,78 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Starting AVideo Live..."
|
||||
CONFIG_NGINX_FILE=/usr/local/nginx/conf/nginx.conf
|
||||
|
||||
if [ "_${CREATE_TLS_CERTIFICATE}_" == "_yes_" ]; then
|
||||
echo "Generate Certificate..."
|
||||
echo "Certificate file: ${TLS_CERTIFICATE_FILE}"
|
||||
echo "Certificate key: ${TLS_CERTIFICATE_KEY}"
|
||||
|
||||
mkdir -p `dirname ${TLS_CERTIFICATE_FILE}`
|
||||
mkdir -p `dirname ${TLS_CERTIFICATE_KEY}`
|
||||
subjectAltName="IP:127.0.0.1,DNS:${SERVER_NAME}"
|
||||
|
||||
CONFIG=""
|
||||
CONFIG="${CONFIG}[dn]\n"
|
||||
CONFIG="${CONFIG}C=NN\n"
|
||||
CONFIG="${CONFIG}L=Earth\n"
|
||||
CONFIG="${CONFIG}O=AVideo\n"
|
||||
CONFIG="${CONFIG}OU=Development\n"
|
||||
CONFIG="${CONFIG}CN=localhost\n"
|
||||
CONFIG="${CONFIG}\n"
|
||||
CONFIG="${CONFIG}[req]\n"
|
||||
CONFIG="${CONFIG}distinguished_name=dn\n"
|
||||
CONFIG="${CONFIG}\n"
|
||||
CONFIG="${CONFIG}[EXT]\n"
|
||||
CONFIG="${CONFIG}subjectAltName=${subjectAltName}\n"
|
||||
CONFIG="${CONFIG}extendedKeyUsage=serverAuth\n"
|
||||
CONFIG="${CONFIG}\n"
|
||||
|
||||
openssl req -x509 \
|
||||
-out ${TLS_CERTIFICATE_FILE} -keyout ${TLS_CERTIFICATE_KEY} \
|
||||
-newkey rsa:4096 \
|
||||
-nodes \
|
||||
-sha256 \
|
||||
-days 3650 \
|
||||
-subj '/C=NN/L=Earth/O=avideo/OU=DEV/CN=localhost' \
|
||||
-extensions EXT -config <( \
|
||||
printf "${CONFIG}")
|
||||
|
||||
echo "New Certificate config..."
|
||||
openssl x509 -in ${TLS_CERTIFICATE_FILE} -noout -text || true
|
||||
fi
|
||||
|
||||
sed -i 's#server_name localhost _#server_name localhost _ '${SERVER_NAME}'#' ${CONFIG_NGINX_FILE}
|
||||
|
||||
echo "Configure Nginx..."
|
||||
sed -i 's#ssl_certificate /etc/apache2/ssl/localhost.crt#ssl_certificate '${TLS_CERTIFICATE_FILE}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#ssl_certificate_key /etc/apache2/ssl/localhost.key#ssl_certificate_key '${TLS_CERTIFICATE_KEY}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#listen 1935#listen '${NGINX_RTMP_PORT}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#listen 8080#listen '${NGINX_HTTP_PORT}'#' ${CONFIG_NGINX_FILE}
|
||||
sed -i 's#listen 8443#listen '${NGINX_HTTPS_PORT}'#' ${CONFIG_NGINX_FILE}
|
||||
|
||||
mkdir -p /etc/letsencrypt/live/localhost/
|
||||
|
||||
cp ${TLS_CERTIFICATE_FILE} /etc/letsencrypt/live/localhost/fullchain.pem
|
||||
cp ${TLS_CERTIFICATE_KEY} /etc/letsencrypt/live/localhost/privkey.pem
|
||||
|
||||
|
||||
/usr/local/nginx/sbin/nginx -s stop
|
||||
echo "lets encrypt nginx ${SERVER_NAME}"
|
||||
mv /usr/sbin/nginx /usr/sbin/nginx.old && cp /usr/local/nginx/sbin/nginx /usr/sbin/nginx
|
||||
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old && cp /usr/local/nginx/conf/nginx.conf /etc/nginx/nginx.conf
|
||||
certbot --nginx --non-interactive --agree-tos --nginx-server-root /usr/local/nginx/conf --no-redirect --register-unsafely-without-email --keep-until-expiring -d $SERVER_NAME
|
||||
sed -i 's/listen 443 ssl/listen 8443 ssl/g' /usr/local/nginx/conf/nginx.conf
|
||||
|
||||
echo "crontab starting"
|
||||
cron
|
||||
|
||||
bash
|
||||
source /etc/bash_completion
|
||||
|
||||
#echo "nginx start"
|
||||
/usr/local/nginx/sbin/nginx -s stop
|
||||
/usr/local/nginx/sbin/nginx -g "daemon off;"
|
||||
#/usr/local/nginx/sbin/nginx -s stop && sleep 3 && /usr/local/nginx/sbin/nginx
|
||||
|
||||
#eof
|
|
@ -8,15 +8,15 @@ services:
|
|||
SOCKET_PORT: ${SOCKET_PORT}
|
||||
HTTP_PORT: ${HTTP_PORT}
|
||||
HTTPS_PORT: ${HTTPS_PORT}
|
||||
NGINX_RTMP_PORT: ${NGINX_RTMP_PORT}
|
||||
NGINX_HTTP_PORT: ${NGINX_HTTP_PORT}
|
||||
NGINX_HTTPS_PORT: ${NGINX_HTTPS_PORT}
|
||||
DB_MYSQL_HOST: ${DB_MYSQL_HOST}
|
||||
DB_MYSQL_PORT: ${DB_MYSQL_PORT}
|
||||
DB_MYSQL_NAME: ${DB_MYSQL_NAME}
|
||||
DB_MYSQL_USER: ${DB_MYSQL_USER}
|
||||
DB_MYSQL_PASSWORD: ${DB_MYSQL_PASSWORD}
|
||||
SERVER_NAME: ${SERVER_NAME}
|
||||
ENABLE_PHPMYADMIN: ${ENABLE_PHPMYADMIN}
|
||||
PHPMYADMIN_PORT: ${PHPMYADMIN_PORT}
|
||||
PHPMYADMIN_ENCODER_PORT: ${PHPMYADMIN_ENCODER_PORT}
|
||||
CREATE_TLS_CERTIFICATE: ${CREATE_TLS_CERTIFICATE}
|
||||
TLS_CERTIFICATE_FILE: ${TLS_CERTIFICATE_FILE}
|
||||
TLS_CERTIFICATE_KEY: ${TLS_CERTIFICATE_KEY}
|
||||
|
@ -29,15 +29,15 @@ services:
|
|||
SOCKET_PORT: ${SOCKET_PORT:-2053}
|
||||
HTTP_PORT: ${HTTP_PORT:-80}
|
||||
HTTPS_PORT: ${HTTP_PORT:-443}
|
||||
NGINX_RTMP_PORT: ${NGINX_RTMP_PORT:-1935}
|
||||
NGINX_HTTP_PORT: ${NGINX_HTTP_PORT:-8080}
|
||||
NGINX_HTTPS_PORT: ${NGINX_HTTPS_PORT:-8443}
|
||||
DB_MYSQL_HOST: "${DB_MYSQL_HOST:-database}"
|
||||
DB_MYSQL_PORT: ${DB_MYSQL_PORT:-3306}
|
||||
DB_MYSQL_NAME: "${DB_MYSQL_NAME:-avideo}"
|
||||
DB_MYSQL_USER: "${DB_MYSQL_USER:-avideo}"
|
||||
DB_MYSQL_PASSWORD: "${DB_MYSQL_PASSWORD:-avideo}"
|
||||
SERVER_NAME: "${SERVER_NAME:-localhost}"
|
||||
ENABLE_PHPMYADMIN: "${ENABLE_PHPMYADMIN:-yes}"
|
||||
PHPMYADMIN_PORT: ${PHPMYADMIN_PORT:-8081}
|
||||
PHPMYADMIN_ENCODER_PORT: ${PHPMYADMIN_ENCODER_PORT:-8082}
|
||||
CREATE_TLS_CERTIFICATE: "${CREATE_TLS_CERTIFICATE:-yes}"
|
||||
TLS_CERTIFICATE_FILE: "${TLS_CERTIFICATE_FILE:-/etc/apache2/ssl/localhost.crt}"
|
||||
TLS_CERTIFICATE_KEY: "${TLS_CERTIFICATE_KEY:-/etc/apache2/ssl/localhost.key}"
|
||||
|
@ -51,10 +51,9 @@ services:
|
|||
- "${SOCKET_PORT:-2053}:2053"
|
||||
- "${HTTP_PORT:-80}:80"
|
||||
- "${HTTPS_PORT:-443}:443"
|
||||
- "${NGINX_RTMP_PORT:-1935}:1935"
|
||||
- "${NGINX_HTTP_PORT:-8080}:8080"
|
||||
- "${NGINX_HTTPS_PORT:-8443}:8443"
|
||||
volumes:
|
||||
- "./.compose/tmp:/var/www/tmp"
|
||||
- "./.compose/HLS:/HLS"
|
||||
- "./:/var/www/html/AVideo"
|
||||
- "./.compose/videos:/var/www/html/AVideo/videos"
|
||||
- "./.compose/encoder:/var/www/html/AVideo/Encoder"
|
||||
|
@ -65,15 +64,40 @@ services:
|
|||
networks:
|
||||
- app_net
|
||||
|
||||
live:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.live
|
||||
restart: "unless-stopped"
|
||||
volumes:
|
||||
- "./.compose/tmp:/var/www/tmp"
|
||||
- "./.compose/HLS:/HLS"
|
||||
- "./.compose/letsencrypt:/etc/letsencrypt/"
|
||||
environment:
|
||||
SERVER_NAME: "${SERVER_NAME:-localhost}"
|
||||
CREATE_TLS_CERTIFICATE: "${CREATE_TLS_CERTIFICATE:-yes}"
|
||||
TLS_CERTIFICATE_FILE: "${TLS_CERTIFICATE_FILE:-/etc/apache2/ssl/localhost.crt}"
|
||||
TLS_CERTIFICATE_KEY: "${TLS_CERTIFICATE_KEY:-/etc/apache2/ssl/localhost.key}"
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${NGINX_RTMP_PORT:-1935}:1935"
|
||||
- "${NGINX_HTTP_PORT:-8080}:8080"
|
||||
- "${NGINX_HTTPS_PORT:-8443}:8443"
|
||||
depends_on:
|
||||
- avideo
|
||||
networks:
|
||||
- app_net
|
||||
|
||||
database:
|
||||
image: "mariadb:latest"
|
||||
restart: "unless-stopped"
|
||||
environment:
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
|
||||
MYSQL_INITDB_SKIP_TZINFO: 1
|
||||
MYSQL_DATABASE: "avideo"
|
||||
MYSQL_USER: "avideo"
|
||||
MYSQL_PASSWORD: "avideo"
|
||||
MYSQL_DATABASE: "${DB_MYSQL_NAME}"
|
||||
MYSQL_USER: "${DB_MYSQL_USER}"
|
||||
MYSQL_PASSWORD: "${DB_MYSQL_PASSWORD}"
|
||||
volumes:
|
||||
- ./.compose/db:/var/lib/mysql
|
||||
networks:
|
||||
|
@ -85,14 +109,48 @@ services:
|
|||
environment:
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
|
||||
MYSQL_INITDB_SKIP_TZINFO: 1
|
||||
MYSQL_DATABASE: "avideo_encoder"
|
||||
MYSQL_USER: "avideo"
|
||||
MYSQL_PASSWORD: "avideo"
|
||||
MYSQL_DATABASE: "${DB_MYSQL_NAME}_encoder"
|
||||
MYSQL_USER: "${DB_MYSQL_USER}"
|
||||
MYSQL_PASSWORD: "${DB_MYSQL_PASSWORD}"
|
||||
volumes:
|
||||
- ./.compose/db_encoder:/var/lib/mysql
|
||||
networks:
|
||||
- app_net
|
||||
|
||||
#http://localhost:8081
|
||||
phpmyadmin:
|
||||
image: "phpmyadmin/phpmyadmin"
|
||||
restart: "unless-stopped"
|
||||
environment:
|
||||
PMA_HOST: "${DB_MYSQL_HOST}"
|
||||
PMA_PORT: ${DB_MYSQL_PORT}
|
||||
PMA_CONTROLUSER: "${DB_MYSQL_USER}"
|
||||
PMA_CONTROLPASS: "${DB_MYSQL_PASSWORD}"
|
||||
HIDE_PHP_VERSION: "true"
|
||||
ports:
|
||||
- "${PHPMYADMIN_PORT:-8081}:80"
|
||||
depends_on:
|
||||
- database
|
||||
networks:
|
||||
- app_net
|
||||
|
||||
#http://localhost:8082
|
||||
phpmyadmin_encoder:
|
||||
image: "phpmyadmin/phpmyadmin"
|
||||
restart: "unless-stopped"
|
||||
environment:
|
||||
PMA_HOST: "${DB_MYSQL_HOST}_encoder"
|
||||
PMA_PORT: ${DB_MYSQL_PORT}
|
||||
PMA_CONTROLUSER: "${DB_MYSQL_USER}"
|
||||
PMA_CONTROLPASS: "${DB_MYSQL_PASSWORD}"
|
||||
HIDE_PHP_VERSION: "true"
|
||||
ports:
|
||||
- "${PHPMYADMIN_ENCODER_PORT:-8082}:80"
|
||||
depends_on:
|
||||
- database_encoder
|
||||
networks:
|
||||
- app_net
|
||||
|
||||
networks:
|
||||
app_net:
|
||||
driver: bridge
|
|
@ -1,5 +1,7 @@
|
|||
SERVER_NAME=localhost
|
||||
|
||||
ENABLE_PHPMYADMIN=yes
|
||||
PHPMYADMIN_PORT=8081
|
||||
PHPMYADMIN_ENCODER_PORT=8082
|
||||
SOCKET_PORT=2053
|
||||
HTTP_PORT=80
|
||||
HTTPS_PORT=443
|
||||
|
|
|
@ -4441,8 +4441,8 @@ function _session_start(array $options = []) {
|
|||
|
||||
function _session_regenerate_id() {
|
||||
session_regenerate_id(true);
|
||||
_resetcookie('PHPSESSID', session_id(), $expires);
|
||||
_resetcookie(session_name(), session_id(), $expires);
|
||||
_resetcookie('PHPSESSID', session_id());
|
||||
_resetcookie(session_name(), session_id());
|
||||
}
|
||||
|
||||
function debugMemmory($line) {
|
||||
|
@ -4568,7 +4568,11 @@ function _mysql_close() {
|
|||
function _mysql_is_open() {
|
||||
global $global, $mysql_connect_was_closed;
|
||||
try {
|
||||
|
||||
/**
|
||||
*
|
||||
* @var array $global
|
||||
* @var object $global['mysqli']
|
||||
*/
|
||||
//if (is_object($global['mysqli']) && (empty($mysql_connect_was_closed) || !empty(@$global['mysqli']->ping()))) {
|
||||
if (!empty($global['mysqli']) && is_object($global['mysqli']) && empty($mysql_connect_was_closed) && isset($global['mysqli']->server_info) && is_resource($global['mysqli']) && get_resource_type($global['mysqli']) === 'mysql link') {
|
||||
return true;
|
||||
|
|
|
@ -439,6 +439,7 @@ class Scheduler extends PluginAbstract
|
|||
$externalOptions = new stdClass();
|
||||
}
|
||||
$externalOptions->releaseDateTime = $releaseDateTime;
|
||||
$externalOptions->releaseDateTimeZone = date_default_timezone_get();
|
||||
$video->setExternalOptions(json_encode($externalOptions));
|
||||
return $video->save();
|
||||
}
|
||||
|
@ -447,7 +448,8 @@ class Scheduler extends PluginAbstract
|
|||
{
|
||||
$video = new Video('', '', $videos_id);
|
||||
$externalOptions = _json_decode($video->getExternalOptions());
|
||||
return @$externalOptions->releaseDateTime;
|
||||
|
||||
return convertDateFromToTimezone($externalOptions->releaseDateTime, $externalOptions->releaseDateTimeZone, date_default_timezone_get());
|
||||
}
|
||||
|
||||
public static function getLastVisitFile()
|
||||
|
|
|
@ -6,6 +6,6 @@ if (typeof row.externalOptions !== 'undefined' && row.externalOptions) {
|
|||
var json = JSON.parse(row.externalOptions);
|
||||
|
||||
if(!empty(json.releaseDateTime)){
|
||||
$("#releaseDateTime").val(json.releaseDateTime);
|
||||
$("#releaseDateTime").val(convertDateFromTimezoneToLocal(json.releaseDateTime, json.releaseDateTimeZone));
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ $total2 = count($rows);
|
|||
|
||||
$rows2 = Scheduler_commands::getAllScheduledTORepeat();
|
||||
$total3 = count($rows2);
|
||||
_log("There are {$total1} active requests; getAllActiveAndReady={$total2} getAllScheduledTORepeat={$total3} on time ". json_encode(Scheduler_commands::getTimesNow()));
|
||||
//_log("There are {$total1} active requests; getAllActiveAndReady={$total2} getAllScheduledTORepeat={$total3} on time ". json_encode(Scheduler_commands::getTimesNow()));
|
||||
|
||||
foreach ($rows as $value) {
|
||||
_log("getAllActiveAndReady run ". json_encode($value));
|
||||
|
@ -38,7 +38,7 @@ foreach ($rows2 as $value) {
|
|||
}
|
||||
|
||||
if($lastVisitFile = Scheduler::setLastVisit()){
|
||||
_error_log("Last visit set {$lastVisitFile}");
|
||||
//_error_log("Last visit set {$lastVisitFile}");
|
||||
}else{
|
||||
_error_log('ERROR: Last visit NOT set');
|
||||
}
|
||||
|
|
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
|
@ -1048,17 +1048,17 @@
|
|||
},
|
||||
{
|
||||
"name": "google/apiclient-services",
|
||||
"version": "v0.287.0",
|
||||
"version_normalized": "0.287.0.0",
|
||||
"version": "v0.288.0",
|
||||
"version_normalized": "0.288.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/googleapis/google-api-php-client-services.git",
|
||||
"reference": "ed58596d34272a5cd0dc2c0595d9a678b9834880"
|
||||
"reference": "de6cfa1556faf4a23d9ab5844508bb576f44fdd7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/ed58596d34272a5cd0dc2c0595d9a678b9834880",
|
||||
"reference": "ed58596d34272a5cd0dc2c0595d9a678b9834880",
|
||||
"url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/de6cfa1556faf4a23d9ab5844508bb576f44fdd7",
|
||||
"reference": "de6cfa1556faf4a23d9ab5844508bb576f44fdd7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1067,7 +1067,7 @@
|
|||
"require-dev": {
|
||||
"phpunit/phpunit": "^5.7||^8.5.13"
|
||||
},
|
||||
"time": "2023-02-12T01:08:11+00:00",
|
||||
"time": "2023-02-18T01:16:11+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
@ -1089,7 +1089,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/googleapis/google-api-php-client-services/issues",
|
||||
"source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.287.0"
|
||||
"source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.288.0"
|
||||
},
|
||||
"install-path": "../google/apiclient-services"
|
||||
},
|
||||
|
|
10
vendor/composer/installed.php
vendored
10
vendor/composer/installed.php
vendored
|
@ -5,7 +5,7 @@
|
|||
'type' => 'project',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => 'f0314f6e4ea30d9f762110d1d0005edb51a2c42c',
|
||||
'reference' => '1d091b9571e28ee8381f999f54779129f2c163f0',
|
||||
'name' => 'wwbn/avideo',
|
||||
'dev' => true,
|
||||
),
|
||||
|
@ -155,12 +155,12 @@
|
|||
'dev_requirement' => false,
|
||||
),
|
||||
'google/apiclient-services' => array(
|
||||
'pretty_version' => 'v0.287.0',
|
||||
'version' => '0.287.0.0',
|
||||
'pretty_version' => 'v0.288.0',
|
||||
'version' => '0.288.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../google/apiclient-services',
|
||||
'aliases' => array(),
|
||||
'reference' => 'ed58596d34272a5cd0dc2c0595d9a678b9834880',
|
||||
'reference' => 'de6cfa1556faf4a23d9ab5844508bb576f44fdd7',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'google/auth' => array(
|
||||
|
@ -848,7 +848,7 @@
|
|||
'type' => 'project',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => 'f0314f6e4ea30d9f762110d1d0005edb51a2c42c',
|
||||
'reference' => '1d091b9571e28ee8381f999f54779129f2c163f0',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
),
|
||||
|
|
4
vendor/google/apiclient-services/README.md
vendored
4
vendor/google/apiclient-services/README.md
vendored
|
@ -1,6 +1,10 @@
|
|||
Google PHP API Client Services
|
||||
==============================
|
||||
|
||||
**NOTE**: please check to see if the package you'd like to install is available in our
|
||||
list of [Google cloud packages](https://cloud.google.com/php/docs/reference) first, as
|
||||
these are the recommended libraries.
|
||||
|
||||
## Requirements
|
||||
|
||||
[Google API PHP Client](https://github.com/googleapis/google-api-php-client/releases)
|
||||
|
|
|
@ -33,7 +33,7 @@ class Enterprises extends \Google\Service\Resource
|
|||
{
|
||||
/**
|
||||
* Creates an enterprise. This is the last step in the enterprise signup flow.
|
||||
* (enterprises.create)
|
||||
* See also: SigninDetail (enterprises.create)
|
||||
*
|
||||
* @param Enterprise $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
|
@ -120,7 +120,7 @@ class Enterprises extends \Google\Service\Resource
|
|||
return $this->call('list', [$params], ListEnterprisesResponse::class);
|
||||
}
|
||||
/**
|
||||
* Updates an enterprise. (enterprises.patch)
|
||||
* Updates an enterprise. See also: SigninDetail (enterprises.patch)
|
||||
*
|
||||
* @param string $name The name of the enterprise in the form
|
||||
* enterprises/{enterpriseId}.
|
||||
|
|
|
@ -19,41 +19,24 @@ namespace Google\Service\Baremetalsolution;
|
|||
|
||||
class RenameInstanceRequest extends \Google\Model
|
||||
{
|
||||
protected $instanceType = Instance::class;
|
||||
protected $instanceDataType = '';
|
||||
public $instance;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
public $newName;
|
||||
|
||||
/**
|
||||
* @param Instance
|
||||
*/
|
||||
public function setInstance(Instance $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
/**
|
||||
* @return Instance
|
||||
*/
|
||||
public function getInstance()
|
||||
{
|
||||
return $this->instance;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
public function setNewName($newName)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->newName = $newName;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
public function getNewName()
|
||||
{
|
||||
return $this->name;
|
||||
return $this->newName;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -152,19 +152,18 @@ class ProjectsLocationsInstances extends \Google\Service\Resource
|
|||
/**
|
||||
* RenameInstance sets a new name for an instance. (instances.rename)
|
||||
*
|
||||
* @param string $name Immutable. The resource name of this `Instance`. Resource
|
||||
* names are schemeless URIs that follow the conventions in
|
||||
* https://cloud.google.com/apis/design/resource_names. Format:
|
||||
* `projects/{project}/locations/{location}/instances/{instance}`
|
||||
* @param string $name Required. The `name` field is used to identify the
|
||||
* instance. Format:
|
||||
* projects/{project}/locations/{location}/instances/{instance}
|
||||
* @param RenameInstanceRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Operation
|
||||
* @return Instance
|
||||
*/
|
||||
public function rename($name, RenameInstanceRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('rename', [$params], Operation::class);
|
||||
return $this->call('rename', [$params], Instance::class);
|
||||
}
|
||||
/**
|
||||
* Perform an ungraceful, hard reset on a server. Equivalent to shutting the
|
||||
|
|
34
vendor/google/apiclient-services/src/Batch.php
vendored
34
vendor/google/apiclient-services/src/Batch.php
vendored
|
@ -154,20 +154,6 @@ class Batch extends \Google\Service
|
|||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'getIamPolicy' => [
|
||||
'path' => 'v1/{+resource}:getIamPolicy',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => [
|
||||
'resource' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'options.requestedPolicyVersion' => [
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
],
|
||||
],
|
||||
],'list' => [
|
||||
'path' => 'v1/{+parent}/jobs',
|
||||
'httpMethod' => 'GET',
|
||||
|
@ -190,26 +176,6 @@ class Batch extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'setIamPolicy' => [
|
||||
'path' => 'v1/{+resource}:setIamPolicy',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'resource' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'testIamPermissions' => [
|
||||
'path' => 'v1/{+resource}:testIamPermissions',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'resource' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
|
|
|
@ -20,10 +20,6 @@ namespace Google\Service\Batch\Resource;
|
|||
use Google\Service\Batch\Job;
|
||||
use Google\Service\Batch\ListJobsResponse;
|
||||
use Google\Service\Batch\Operation;
|
||||
use Google\Service\Batch\Policy;
|
||||
use Google\Service\Batch\SetIamPolicyRequest;
|
||||
use Google\Service\Batch\TestIamPermissionsRequest;
|
||||
use Google\Service\Batch\TestIamPermissionsResponse;
|
||||
|
||||
/**
|
||||
* The "jobs" collection of methods.
|
||||
|
@ -55,7 +51,7 @@ class ProjectsLocationsJobs extends \Google\Service\Resource
|
|||
* the server will know to ignore the request if it has already been completed.
|
||||
* The server will guarantee that for at least 60 minutes since the first
|
||||
* request. For example, consider a situation where you make an initial request
|
||||
* and t he request times out. If you make the request again with the same
|
||||
* and the request times out. If you make the request again with the same
|
||||
* request ID, the server can check if original operation with the same request
|
||||
* ID was received, and if so, will ignore the second request. This prevents
|
||||
* clients from accidentally creating duplicate commitments. The request ID must
|
||||
|
@ -81,7 +77,7 @@ class ProjectsLocationsJobs extends \Google\Service\Resource
|
|||
* the server will know to ignore the request if it has already been completed.
|
||||
* The server will guarantee that for at least 60 minutes after the first
|
||||
* request. For example, consider a situation where you make an initial request
|
||||
* and t he request times out. If you make the request again with the same
|
||||
* and the request times out. If you make the request again with the same
|
||||
* request ID, the server can check if original operation with the same request
|
||||
* ID was received, and if so, will ignore the second request. This prevents
|
||||
* clients from accidentally creating duplicate commitments. The request ID must
|
||||
|
@ -108,36 +104,6 @@ class ProjectsLocationsJobs extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', [$params], Job::class);
|
||||
}
|
||||
/**
|
||||
* Gets the access control policy for a resource. Returns an empty policy if the
|
||||
* resource exists and does not have a policy set. (jobs.getIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy is being
|
||||
* requested. See [Resource
|
||||
* names](https://cloud.google.com/apis/design/resource_names) for the
|
||||
* appropriate value for this field.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
|
||||
* version that will be used to format the policy. Valid values are 0, 1, and 3.
|
||||
* Requests specifying an invalid value will be rejected. Requests for policies
|
||||
* with any conditional role bindings must specify version 3. Policies with no
|
||||
* conditional role bindings may specify any valid value or leave the field
|
||||
* unset. The policy in the response might use the policy version that you
|
||||
* specified, or it might use a lower policy version. For example, if you
|
||||
* specify version 3, but the policy has no conditional role bindings, the
|
||||
* response uses version 1. To learn which resources support conditions in their
|
||||
* IAM policies, see the [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
* policies).
|
||||
* @return Policy
|
||||
*/
|
||||
public function getIamPolicy($resource, $optParams = [])
|
||||
{
|
||||
$params = ['resource' => $resource];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getIamPolicy', [$params], Policy::class);
|
||||
}
|
||||
/**
|
||||
* List all Jobs for a project within a region. (jobs.listProjectsLocationsJobs)
|
||||
*
|
||||
|
@ -155,46 +121,6 @@ class ProjectsLocationsJobs extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', [$params], ListJobsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Sets the access control policy on the specified resource. Replaces any
|
||||
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
|
||||
* `PERMISSION_DENIED` errors. (jobs.setIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy is being
|
||||
* specified. See [Resource
|
||||
* names](https://cloud.google.com/apis/design/resource_names) for the
|
||||
* appropriate value for this field.
|
||||
* @param SetIamPolicyRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Policy
|
||||
*/
|
||||
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['resource' => $resource, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setIamPolicy', [$params], Policy::class);
|
||||
}
|
||||
/**
|
||||
* Returns permissions that a caller has on the specified resource. If the
|
||||
* resource does not exist, this will return an empty set of permissions, not a
|
||||
* `NOT_FOUND` error. Note: This operation is designed to be used for building
|
||||
* permission-aware UIs and command-line tools, not for authorization checking.
|
||||
* This operation may "fail open" without warning. (jobs.testIamPermissions)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy detail is
|
||||
* being requested. See [Resource
|
||||
* names](https://cloud.google.com/apis/design/resource_names) for the
|
||||
* appropriate value for this field.
|
||||
* @param TestIamPermissionsRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return TestIamPermissionsResponse
|
||||
*/
|
||||
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['resource' => $resource, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -41,6 +41,10 @@ class Dataset extends \Google\Collection
|
|||
* @var string
|
||||
*/
|
||||
public $defaultPartitionExpirationMs;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $defaultRoundingMode;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -185,6 +189,20 @@ class Dataset extends \Google\Collection
|
|||
{
|
||||
return $this->defaultPartitionExpirationMs;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDefaultRoundingMode($defaultRoundingMode)
|
||||
{
|
||||
$this->defaultRoundingMode = $defaultRoundingMode;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDefaultRoundingMode()
|
||||
{
|
||||
return $this->defaultRoundingMode;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -43,6 +43,10 @@ class Table extends \Google\Model
|
|||
* @var string
|
||||
*/
|
||||
public $defaultCollation;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $defaultRoundingMode;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -233,6 +237,20 @@ class Table extends \Google\Model
|
|||
{
|
||||
return $this->defaultCollation;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDefaultRoundingMode($defaultRoundingMode)
|
||||
{
|
||||
$this->defaultRoundingMode = $defaultRoundingMode;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDefaultRoundingMode()
|
||||
{
|
||||
return $this->defaultRoundingMode;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -57,6 +57,10 @@ class TableFieldSchema extends \Google\Collection
|
|||
* @var string
|
||||
*/
|
||||
public $precision;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $roundingMode;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -206,6 +210,20 @@ class TableFieldSchema extends \Google\Collection
|
|||
{
|
||||
return $this->precision;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRoundingMode($roundingMode)
|
||||
{
|
||||
$this->roundingMode = $roundingMode;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRoundingMode()
|
||||
{
|
||||
return $this->roundingMode;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
189
vendor/google/apiclient-services/src/CertificateAuthorityService/NameConstraints.php
vendored
Normal file
189
vendor/google/apiclient-services/src/CertificateAuthorityService/NameConstraints.php
vendored
Normal file
|
@ -0,0 +1,189 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CertificateAuthorityService;
|
||||
|
||||
class NameConstraints extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'permittedUris';
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $critical;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $excludedDnsNames;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $excludedEmailAddresses;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $excludedIpRanges;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $excludedUris;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $permittedDnsNames;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $permittedEmailAddresses;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $permittedIpRanges;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $permittedUris;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setCritical($critical)
|
||||
{
|
||||
$this->critical = $critical;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getCritical()
|
||||
{
|
||||
return $this->critical;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setExcludedDnsNames($excludedDnsNames)
|
||||
{
|
||||
$this->excludedDnsNames = $excludedDnsNames;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getExcludedDnsNames()
|
||||
{
|
||||
return $this->excludedDnsNames;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setExcludedEmailAddresses($excludedEmailAddresses)
|
||||
{
|
||||
$this->excludedEmailAddresses = $excludedEmailAddresses;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getExcludedEmailAddresses()
|
||||
{
|
||||
return $this->excludedEmailAddresses;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setExcludedIpRanges($excludedIpRanges)
|
||||
{
|
||||
$this->excludedIpRanges = $excludedIpRanges;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getExcludedIpRanges()
|
||||
{
|
||||
return $this->excludedIpRanges;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setExcludedUris($excludedUris)
|
||||
{
|
||||
$this->excludedUris = $excludedUris;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getExcludedUris()
|
||||
{
|
||||
return $this->excludedUris;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setPermittedDnsNames($permittedDnsNames)
|
||||
{
|
||||
$this->permittedDnsNames = $permittedDnsNames;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPermittedDnsNames()
|
||||
{
|
||||
return $this->permittedDnsNames;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setPermittedEmailAddresses($permittedEmailAddresses)
|
||||
{
|
||||
$this->permittedEmailAddresses = $permittedEmailAddresses;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPermittedEmailAddresses()
|
||||
{
|
||||
return $this->permittedEmailAddresses;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setPermittedIpRanges($permittedIpRanges)
|
||||
{
|
||||
$this->permittedIpRanges = $permittedIpRanges;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPermittedIpRanges()
|
||||
{
|
||||
return $this->permittedIpRanges;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setPermittedUris($permittedUris)
|
||||
{
|
||||
$this->permittedUris = $permittedUris;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPermittedUris()
|
||||
{
|
||||
return $this->permittedUris;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(NameConstraints::class, 'Google_Service_CertificateAuthorityService_NameConstraints');
|
|
@ -51,7 +51,7 @@ class ProjectsLocationsCaPools extends \Google\Service\Resource
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
@ -77,7 +77,7 @@ class ProjectsLocationsCaPools extends \Google\Service\Resource
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
@ -188,7 +188,7 @@ class ProjectsLocationsCaPools extends \Google\Service\Resource
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
|
|
@ -69,7 +69,7 @@ class ProjectsLocationsCaPoolsCertificateAuthorities extends \Google\Service\Res
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
@ -98,7 +98,7 @@ class ProjectsLocationsCaPoolsCertificateAuthorities extends \Google\Service\Res
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
@ -218,7 +218,7 @@ class ProjectsLocationsCaPoolsCertificateAuthorities extends \Google\Service\Res
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
|
|
@ -121,7 +121,7 @@ class ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationLists e
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
|
|
@ -133,7 +133,7 @@ class ProjectsLocationsCaPoolsCertificates extends \Google\Service\Resource
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
|
|
@ -50,7 +50,7 @@ class ProjectsLocationsCertificateTemplates extends \Google\Service\Resource
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
@ -77,7 +77,7 @@ class ProjectsLocationsCertificateTemplates extends \Google\Service\Resource
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
@ -174,7 +174,7 @@ class ProjectsLocationsCertificateTemplates extends \Google\Service\Resource
|
|||
* unique request ID so that if you must retry your request, the server will
|
||||
* know to ignore the request if it has already been completed. The server will
|
||||
* guarantee that for at least 60 minutes since the first request. For example,
|
||||
* consider a situation where you make an initial request and t he request times
|
||||
* consider a situation where you make an initial request and the request times
|
||||
* out. If you make the request again with the same request ID, the server can
|
||||
* check if original operation with the same request ID was received, and if so,
|
||||
* will ignore the second request. This prevents clients from accidentally
|
||||
|
|
|
@ -33,6 +33,9 @@ class X509Parameters extends \Google\Collection
|
|||
protected $keyUsageType = KeyUsage::class;
|
||||
protected $keyUsageDataType = '';
|
||||
public $keyUsage;
|
||||
protected $nameConstraintsType = NameConstraints::class;
|
||||
protected $nameConstraintsDataType = '';
|
||||
public $nameConstraints;
|
||||
protected $policyIdsType = ObjectId::class;
|
||||
protected $policyIdsDataType = 'array';
|
||||
public $policyIds;
|
||||
|
@ -93,6 +96,20 @@ class X509Parameters extends \Google\Collection
|
|||
{
|
||||
return $this->keyUsage;
|
||||
}
|
||||
/**
|
||||
* @param NameConstraints
|
||||
*/
|
||||
public function setNameConstraints(NameConstraints $nameConstraints)
|
||||
{
|
||||
$this->nameConstraints = $nameConstraints;
|
||||
}
|
||||
/**
|
||||
* @return NameConstraints
|
||||
*/
|
||||
public function getNameConstraints()
|
||||
{
|
||||
return $this->nameConstraints;
|
||||
}
|
||||
/**
|
||||
* @param ObjectId[]
|
||||
*/
|
||||
|
|
|
@ -301,6 +301,66 @@ class ChromeManagement extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'countPrintJobsByPrinter' => [
|
||||
'path' => 'v1/{+customer}/reports:countPrintJobsByPrinter',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => [
|
||||
'customer' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'filter' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'orderBy' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'pageSize' => [
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
],
|
||||
'pageToken' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'printerOrgUnitId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'countPrintJobsByUser' => [
|
||||
'path' => 'v1/{+customer}/reports:countPrintJobsByUser',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => [
|
||||
'customer' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'filter' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'orderBy' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'pageSize' => [
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
],
|
||||
'pageToken' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'printerOrgUnitId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'findInstalledAppDevices' => [
|
||||
'path' => 'v1/{+customer}/reports:findInstalledAppDevices',
|
||||
'httpMethod' => 'GET',
|
||||
|
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementV1CountPrintJobsByPrinterResponse extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'printerReports';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nextPageToken;
|
||||
protected $printerReportsType = GoogleChromeManagementV1PrinterReport::class;
|
||||
protected $printerReportsDataType = 'array';
|
||||
public $printerReports;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $totalSize;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param GoogleChromeManagementV1PrinterReport[]
|
||||
*/
|
||||
public function setPrinterReports($printerReports)
|
||||
{
|
||||
$this->printerReports = $printerReports;
|
||||
}
|
||||
/**
|
||||
* @return GoogleChromeManagementV1PrinterReport[]
|
||||
*/
|
||||
public function getPrinterReports()
|
||||
{
|
||||
return $this->printerReports;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setTotalSize($totalSize)
|
||||
{
|
||||
$this->totalSize = $totalSize;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTotalSize()
|
||||
{
|
||||
return $this->totalSize;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementV1CountPrintJobsByPrinterResponse::class, 'Google_Service_ChromeManagement_GoogleChromeManagementV1CountPrintJobsByPrinterResponse');
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementV1CountPrintJobsByUserResponse extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'userPrintReports';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nextPageToken;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $totalSize;
|
||||
protected $userPrintReportsType = GoogleChromeManagementV1UserPrintReport::class;
|
||||
protected $userPrintReportsDataType = 'array';
|
||||
public $userPrintReports;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setTotalSize($totalSize)
|
||||
{
|
||||
$this->totalSize = $totalSize;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTotalSize()
|
||||
{
|
||||
return $this->totalSize;
|
||||
}
|
||||
/**
|
||||
* @param GoogleChromeManagementV1UserPrintReport[]
|
||||
*/
|
||||
public function setUserPrintReports($userPrintReports)
|
||||
{
|
||||
$this->userPrintReports = $userPrintReports;
|
||||
}
|
||||
/**
|
||||
* @return GoogleChromeManagementV1UserPrintReport[]
|
||||
*/
|
||||
public function getUserPrintReports()
|
||||
{
|
||||
return $this->userPrintReports;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementV1CountPrintJobsByUserResponse::class, 'Google_Service_ChromeManagement_GoogleChromeManagementV1CountPrintJobsByUserResponse');
|
134
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementV1PrinterReport.php
vendored
Normal file
134
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementV1PrinterReport.php
vendored
Normal file
|
@ -0,0 +1,134 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementV1PrinterReport extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $deviceCount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $jobCount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $printer;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $printerId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $printerModel;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $userCount;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDeviceCount($deviceCount)
|
||||
{
|
||||
$this->deviceCount = $deviceCount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceCount()
|
||||
{
|
||||
return $this->deviceCount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setJobCount($jobCount)
|
||||
{
|
||||
$this->jobCount = $jobCount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getJobCount()
|
||||
{
|
||||
return $this->jobCount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setPrinter($printer)
|
||||
{
|
||||
$this->printer = $printer;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPrinter()
|
||||
{
|
||||
return $this->printer;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setPrinterId($printerId)
|
||||
{
|
||||
$this->printerId = $printerId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPrinterId()
|
||||
{
|
||||
return $this->printerId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setPrinterModel($printerModel)
|
||||
{
|
||||
$this->printerModel = $printerModel;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPrinterModel()
|
||||
{
|
||||
return $this->printerModel;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUserCount($userCount)
|
||||
{
|
||||
$this->userCount = $userCount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUserCount()
|
||||
{
|
||||
return $this->userCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementV1PrinterReport::class, 'Google_Service_ChromeManagement_GoogleChromeManagementV1PrinterReport');
|
116
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementV1UserPrintReport.php
vendored
Normal file
116
vendor/google/apiclient-services/src/ChromeManagement/GoogleChromeManagementV1UserPrintReport.php
vendored
Normal file
|
@ -0,0 +1,116 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\ChromeManagement;
|
||||
|
||||
class GoogleChromeManagementV1UserPrintReport extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $deviceCount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $jobCount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $printerCount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $userEmail;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $userId;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setDeviceCount($deviceCount)
|
||||
{
|
||||
$this->deviceCount = $deviceCount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceCount()
|
||||
{
|
||||
return $this->deviceCount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setJobCount($jobCount)
|
||||
{
|
||||
$this->jobCount = $jobCount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getJobCount()
|
||||
{
|
||||
return $this->jobCount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setPrinterCount($printerCount)
|
||||
{
|
||||
$this->printerCount = $printerCount;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPrinterCount()
|
||||
{
|
||||
return $this->printerCount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUserEmail($userEmail)
|
||||
{
|
||||
$this->userEmail = $userEmail;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUserEmail()
|
||||
{
|
||||
return $this->userEmail;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(GoogleChromeManagementV1UserPrintReport::class, 'Google_Service_ChromeManagement_GoogleChromeManagementV1UserPrintReport');
|
|
@ -23,6 +23,8 @@ use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeDevicesTh
|
|||
use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse;
|
||||
use Google\Service\ChromeManagement\GoogleChromeManagementV1CountChromeVersionsResponse;
|
||||
use Google\Service\ChromeManagement\GoogleChromeManagementV1CountInstalledAppsResponse;
|
||||
use Google\Service\ChromeManagement\GoogleChromeManagementV1CountPrintJobsByPrinterResponse;
|
||||
use Google\Service\ChromeManagement\GoogleChromeManagementV1CountPrintJobsByUserResponse;
|
||||
use Google\Service\ChromeManagement\GoogleChromeManagementV1FindInstalledAppDevicesResponse;
|
||||
|
||||
/**
|
||||
|
@ -178,6 +180,69 @@ class CustomersReports extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('countInstalledApps', [$params], GoogleChromeManagementV1CountInstalledAppsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Get a summary of printing done by each printer.
|
||||
* (reports.countPrintJobsByPrinter)
|
||||
*
|
||||
* @param string $customer Required. Customer ID prefixed with "customers/" or
|
||||
* "customers/my_customer" to use the customer associated to the account making
|
||||
* the request.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string filter Query string to filter results, AND-separated fields
|
||||
* in EBNF syntax. Note: OR operations are not supported in this filter. Note:
|
||||
* Only >= and <= comparators are supported in this filter. Supported filter
|
||||
* fields: * completion_time
|
||||
* @opt_param string orderBy Field used to order results. If omitted, results
|
||||
* will be ordered in ascending order of the 'printer' field. Supported order_by
|
||||
* fields: * printer * job_count * device_count * user_count
|
||||
* @opt_param int pageSize Maximum number of results to return. Maximum and
|
||||
* default are 100.
|
||||
* @opt_param string pageToken Token to specify the page of the response to be
|
||||
* returned.
|
||||
* @opt_param string printerOrgUnitId The ID of the organizational unit for
|
||||
* printers. If specified, only data for printers from the specified
|
||||
* organizational unit will be returned. If omitted, data for printers from all
|
||||
* organizational units will be returned.
|
||||
* @return GoogleChromeManagementV1CountPrintJobsByPrinterResponse
|
||||
*/
|
||||
public function countPrintJobsByPrinter($customer, $optParams = [])
|
||||
{
|
||||
$params = ['customer' => $customer];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('countPrintJobsByPrinter', [$params], GoogleChromeManagementV1CountPrintJobsByPrinterResponse::class);
|
||||
}
|
||||
/**
|
||||
* Get a summary of printing done by each user. (reports.countPrintJobsByUser)
|
||||
*
|
||||
* @param string $customer Required. Customer ID prefixed with "customers/" or
|
||||
* "customers/my_customer" to use the customer associated to the account making
|
||||
* the request.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string filter Query string to filter results, AND-separated fields
|
||||
* in EBNF syntax. Note: OR operations are not supported in this filter. Note:
|
||||
* Only >= and <= comparators are supported in this filter. Supported filter
|
||||
* fields: * completion_time
|
||||
* @opt_param string orderBy Field used to order results. If omitted, results
|
||||
* will be ordered in ascending order of the 'user_email' field. Supported
|
||||
* order_by fields: * user_email * job_count * printer_count * device_count
|
||||
* @opt_param int pageSize Maximum number of results to return. Maximum and
|
||||
* default are 100.
|
||||
* @opt_param string pageToken Token to specify the page of the response to be
|
||||
* returned.
|
||||
* @opt_param string printerOrgUnitId The ID of the organizational unit for
|
||||
* printers. If specified, only print jobs initiated with printers from the
|
||||
* specified organizational unit will be counted. If omitted, all print jobs
|
||||
* will be counted.
|
||||
* @return GoogleChromeManagementV1CountPrintJobsByUserResponse
|
||||
*/
|
||||
public function countPrintJobsByUser($customer, $optParams = [])
|
||||
{
|
||||
$params = ['customer' => $customer];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('countPrintJobsByUser', [$params], GoogleChromeManagementV1CountPrintJobsByUserResponse::class);
|
||||
}
|
||||
/**
|
||||
* Generate report of devices that have a specified app installed.
|
||||
* (reports.findInstalledAppDevices)
|
||||
|
|
|
@ -17,8 +17,13 @@
|
|||
|
||||
namespace Google\Service\ChromePolicy;
|
||||
|
||||
class ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle extends \Google\Model
|
||||
class ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'deprecatedInFavorOf';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $deprecatedInFavorOf;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -31,6 +36,20 @@ class ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle extends \Google\Model
|
|||
*/
|
||||
public $policyApiLifecycleStage;
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setDeprecatedInFavorOf($deprecatedInFavorOf)
|
||||
{
|
||||
$this->deprecatedInFavorOf = $deprecatedInFavorOf;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getDeprecatedInFavorOf()
|
||||
{
|
||||
return $this->deprecatedInFavorOf;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -40,7 +40,7 @@ class Feeds extends \Google\Service\Resource
|
|||
* @param string $parent Required. The name of the project/folder/organization
|
||||
* where this feed should be created in. It can only be an organization number
|
||||
* (such as "organizations/123"), a folder number (such as "folders/123"), a
|
||||
* project ID (such as "projects/my-project-id")", or a project number (such as
|
||||
* project ID (such as "projects/my-project-id"), or a project number (such as
|
||||
* "projects/12345").
|
||||
* @param CreateFeedRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
|
|
|
@ -38,8 +38,8 @@ class SavedQueries extends \Google\Service\Resource
|
|||
* @param string $parent Required. The name of the project/folder/organization
|
||||
* where this saved_query should be created in. It can only be an organization
|
||||
* number (such as "organizations/123"), a folder number (such as
|
||||
* "folders/123"), a project ID (such as "projects/my-project-id")", or a
|
||||
* project number (such as "projects/12345").
|
||||
* "folders/123"), a project ID (such as "projects/my-project-id"), or a project
|
||||
* number (such as "projects/12345").
|
||||
* @param SavedQuery $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
|
|
|
@ -267,6 +267,10 @@ class CloudDataplex extends \Google\Service
|
|||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'validateOnly' => [
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
],
|
||||
],
|
||||
],'delete' => [
|
||||
'path' => 'v1/{+name}',
|
||||
|
@ -345,6 +349,10 @@ class CloudDataplex extends \Google\Service
|
|||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'validateOnly' => [
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
],
|
||||
],
|
||||
],'run' => [
|
||||
'path' => 'v1/{+name}:run',
|
||||
|
|
|
@ -19,6 +19,10 @@ namespace Google\Service\CloudDataplex;
|
|||
|
||||
class GoogleCloudDataplexV1AssetResourceStatus extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $managedAccessIdentity;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -32,6 +36,20 @@ class GoogleCloudDataplexV1AssetResourceStatus extends \Google\Model
|
|||
*/
|
||||
public $updateTime;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setManagedAccessIdentity($managedAccessIdentity)
|
||||
{
|
||||
$this->managedAccessIdentity = $managedAccessIdentity;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getManagedAccessIdentity()
|
||||
{
|
||||
return $this->managedAccessIdentity;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -50,6 +50,8 @@ class ProjectsLocationsDataScans extends \Google\Service\Resource
|
|||
* lowercase letters, numbers and hyphens. Must start with a letter. Must end
|
||||
* with a number or a letter. Must be between 1-63 characters. Must be unique
|
||||
* within the customer project / location.
|
||||
* @opt_param bool validateOnly Optional. Only validate the request, but do not
|
||||
* perform mutations. The default is false.
|
||||
* @return GoogleLongrunningOperation
|
||||
*/
|
||||
public function create($parent, GoogleCloudDataplexV1DataScan $postBody, $optParams = [])
|
||||
|
@ -160,6 +162,8 @@ class ProjectsLocationsDataScans extends \Google\Service\Resource
|
|||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. Mask of fields to update.
|
||||
* @opt_param bool validateOnly Optional. Only validate the request, but do not
|
||||
* perform mutations. The default is false.
|
||||
* @return GoogleLongrunningOperation
|
||||
*/
|
||||
public function patch($name, GoogleCloudDataplexV1DataScan $postBody, $optParams = [])
|
||||
|
|
|
@ -31,6 +31,9 @@ class Release extends \Google\Collection
|
|||
protected $buildArtifactsType = BuildArtifact::class;
|
||||
protected $buildArtifactsDataType = 'array';
|
||||
public $buildArtifacts;
|
||||
protected $conditionType = ReleaseCondition::class;
|
||||
protected $conditionDataType = '';
|
||||
public $condition;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -134,6 +137,20 @@ class Release extends \Google\Collection
|
|||
{
|
||||
return $this->buildArtifacts;
|
||||
}
|
||||
/**
|
||||
* @param ReleaseCondition
|
||||
*/
|
||||
public function setCondition(ReleaseCondition $condition)
|
||||
{
|
||||
$this->condition = $condition;
|
||||
}
|
||||
/**
|
||||
* @return ReleaseCondition
|
||||
*/
|
||||
public function getCondition()
|
||||
{
|
||||
return $this->condition;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
60
vendor/google/apiclient-services/src/CloudDeploy/ReleaseCondition.php
vendored
Normal file
60
vendor/google/apiclient-services/src/CloudDeploy/ReleaseCondition.php
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudDeploy;
|
||||
|
||||
class ReleaseCondition extends \Google\Model
|
||||
{
|
||||
protected $releaseReadyConditionType = ReleaseReadyCondition::class;
|
||||
protected $releaseReadyConditionDataType = '';
|
||||
public $releaseReadyCondition;
|
||||
protected $skaffoldSupportedConditionType = SkaffoldSupportedCondition::class;
|
||||
protected $skaffoldSupportedConditionDataType = '';
|
||||
public $skaffoldSupportedCondition;
|
||||
|
||||
/**
|
||||
* @param ReleaseReadyCondition
|
||||
*/
|
||||
public function setReleaseReadyCondition(ReleaseReadyCondition $releaseReadyCondition)
|
||||
{
|
||||
$this->releaseReadyCondition = $releaseReadyCondition;
|
||||
}
|
||||
/**
|
||||
* @return ReleaseReadyCondition
|
||||
*/
|
||||
public function getReleaseReadyCondition()
|
||||
{
|
||||
return $this->releaseReadyCondition;
|
||||
}
|
||||
/**
|
||||
* @param SkaffoldSupportedCondition
|
||||
*/
|
||||
public function setSkaffoldSupportedCondition(SkaffoldSupportedCondition $skaffoldSupportedCondition)
|
||||
{
|
||||
$this->skaffoldSupportedCondition = $skaffoldSupportedCondition;
|
||||
}
|
||||
/**
|
||||
* @return SkaffoldSupportedCondition
|
||||
*/
|
||||
public function getSkaffoldSupportedCondition()
|
||||
{
|
||||
return $this->skaffoldSupportedCondition;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ReleaseCondition::class, 'Google_Service_CloudDeploy_ReleaseCondition');
|
44
vendor/google/apiclient-services/src/CloudDeploy/ReleaseReadyCondition.php
vendored
Normal file
44
vendor/google/apiclient-services/src/CloudDeploy/ReleaseReadyCondition.php
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudDeploy;
|
||||
|
||||
class ReleaseReadyCondition extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $status;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(ReleaseReadyCondition::class, 'Google_Service_CloudDeploy_ReleaseReadyCondition');
|
98
vendor/google/apiclient-services/src/CloudDeploy/SkaffoldSupportedCondition.php
vendored
Normal file
98
vendor/google/apiclient-services/src/CloudDeploy/SkaffoldSupportedCondition.php
vendored
Normal file
|
@ -0,0 +1,98 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudDeploy;
|
||||
|
||||
class SkaffoldSupportedCondition extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $maintenanceModeTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $skaffoldSupportState;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $status;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $supportExpirationTime;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setMaintenanceModeTime($maintenanceModeTime)
|
||||
{
|
||||
$this->maintenanceModeTime = $maintenanceModeTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMaintenanceModeTime()
|
||||
{
|
||||
return $this->maintenanceModeTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSkaffoldSupportState($skaffoldSupportState)
|
||||
{
|
||||
$this->skaffoldSupportState = $skaffoldSupportState;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSkaffoldSupportState()
|
||||
{
|
||||
return $this->skaffoldSupportState;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSupportExpirationTime($supportExpirationTime)
|
||||
{
|
||||
$this->supportExpirationTime = $supportExpirationTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSupportExpirationTime()
|
||||
{
|
||||
return $this->supportExpirationTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(SkaffoldSupportedCondition::class, 'Google_Service_CloudDeploy_SkaffoldSupportedCondition');
|
|
@ -19,14 +19,36 @@ namespace Google\Service\CloudDeploy;
|
|||
|
||||
class SkaffoldVersion extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $maintenanceModeTime;
|
||||
protected $supportEndDateType = Date::class;
|
||||
protected $supportEndDateDataType = '';
|
||||
public $supportEndDate;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $supportExpirationTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $version;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setMaintenanceModeTime($maintenanceModeTime)
|
||||
{
|
||||
$this->maintenanceModeTime = $maintenanceModeTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMaintenanceModeTime()
|
||||
{
|
||||
return $this->maintenanceModeTime;
|
||||
}
|
||||
/**
|
||||
* @param Date
|
||||
*/
|
||||
|
@ -41,6 +63,20 @@ class SkaffoldVersion extends \Google\Model
|
|||
{
|
||||
return $this->supportEndDate;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSupportExpirationTime($supportExpirationTime)
|
||||
{
|
||||
$this->supportExpirationTime = $supportExpirationTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSupportExpirationTime()
|
||||
{
|
||||
return $this->supportExpirationTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -19,6 +19,9 @@ namespace Google\Service\CloudHealthcare;
|
|||
|
||||
class SchemaConfig extends \Google\Model
|
||||
{
|
||||
protected $lastUpdatedPartitionConfigType = TimePartitioning::class;
|
||||
protected $lastUpdatedPartitionConfigDataType = '';
|
||||
public $lastUpdatedPartitionConfig;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -28,6 +31,20 @@ class SchemaConfig extends \Google\Model
|
|||
*/
|
||||
public $schemaType;
|
||||
|
||||
/**
|
||||
* @param TimePartitioning
|
||||
*/
|
||||
public function setLastUpdatedPartitionConfig(TimePartitioning $lastUpdatedPartitionConfig)
|
||||
{
|
||||
$this->lastUpdatedPartitionConfig = $lastUpdatedPartitionConfig;
|
||||
}
|
||||
/**
|
||||
* @return TimePartitioning
|
||||
*/
|
||||
public function getLastUpdatedPartitionConfig()
|
||||
{
|
||||
return $this->lastUpdatedPartitionConfig;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
62
vendor/google/apiclient-services/src/CloudHealthcare/TimePartitioning.php
vendored
Normal file
62
vendor/google/apiclient-services/src/CloudHealthcare/TimePartitioning.php
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudHealthcare;
|
||||
|
||||
class TimePartitioning extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $expirationMs;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setExpirationMs($expirationMs)
|
||||
{
|
||||
$this->expirationMs = $expirationMs;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getExpirationMs()
|
||||
{
|
||||
return $this->expirationMs;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(TimePartitioning::class, 'Google_Service_CloudHealthcare_TimePartitioning');
|
|
@ -32,6 +32,10 @@ class Instance extends \Google\Collection
|
|||
* @var string
|
||||
*/
|
||||
public $authorizedNetwork;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $availableMaintenanceVersions;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -70,6 +74,10 @@ class Instance extends \Google\Collection
|
|||
protected $maintenanceScheduleType = MaintenanceSchedule::class;
|
||||
protected $maintenanceScheduleDataType = '';
|
||||
public $maintenanceSchedule;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $maintenanceVersion;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -190,6 +198,20 @@ class Instance extends \Google\Collection
|
|||
{
|
||||
return $this->authorizedNetwork;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setAvailableMaintenanceVersions($availableMaintenanceVersions)
|
||||
{
|
||||
$this->availableMaintenanceVersions = $availableMaintenanceVersions;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getAvailableMaintenanceVersions()
|
||||
{
|
||||
return $this->availableMaintenanceVersions;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
@ -330,6 +352,20 @@ class Instance extends \Google\Collection
|
|||
{
|
||||
return $this->maintenanceSchedule;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setMaintenanceVersion($maintenanceVersion)
|
||||
{
|
||||
$this->maintenanceVersion = $maintenanceVersion;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMaintenanceVersion()
|
||||
{
|
||||
return $this->maintenanceVersion;
|
||||
}
|
||||
/**
|
||||
* @param int
|
||||
*/
|
||||
|
|
|
@ -49,6 +49,9 @@ class AppsDynamiteSharedSpaceInfo extends \Google\Model
|
|||
* @var int
|
||||
*/
|
||||
public $numMembers;
|
||||
protected $segmentedMembershipCountsType = AppsDynamiteSharedSegmentedMembershipCounts::class;
|
||||
protected $segmentedMembershipCountsDataType = '';
|
||||
public $segmentedMembershipCounts;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -166,6 +169,20 @@ class AppsDynamiteSharedSpaceInfo extends \Google\Model
|
|||
{
|
||||
return $this->numMembers;
|
||||
}
|
||||
/**
|
||||
* @param AppsDynamiteSharedSegmentedMembershipCounts
|
||||
*/
|
||||
public function setSegmentedMembershipCounts(AppsDynamiteSharedSegmentedMembershipCounts $segmentedMembershipCounts)
|
||||
{
|
||||
$this->segmentedMembershipCounts = $segmentedMembershipCounts;
|
||||
}
|
||||
/**
|
||||
* @return AppsDynamiteSharedSegmentedMembershipCounts
|
||||
*/
|
||||
public function getSegmentedMembershipCounts()
|
||||
{
|
||||
return $this->segmentedMembershipCounts;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -35,6 +35,10 @@ class AppsDynamiteStorageAction extends \Google\Collection
|
|||
protected $parametersType = AppsDynamiteStorageActionActionParameter::class;
|
||||
protected $parametersDataType = 'array';
|
||||
public $parameters;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $persistValues;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
|
@ -92,6 +96,20 @@ class AppsDynamiteStorageAction extends \Google\Collection
|
|||
{
|
||||
return $this->parameters;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setPersistValues($persistValues)
|
||||
{
|
||||
$this->persistValues = $persistValues;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getPersistValues()
|
||||
{
|
||||
return $this->persistValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -19,13 +19,16 @@ namespace Google\Service\CloudSearch;
|
|||
|
||||
class MessageDeleted extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'messageKeys';
|
||||
protected $collection_key = 'wonderCardMappings';
|
||||
protected $imapSyncMappingsType = ImapSyncDelete::class;
|
||||
protected $imapSyncMappingsDataType = 'array';
|
||||
public $imapSyncMappings;
|
||||
protected $messageKeysType = MultiKey::class;
|
||||
protected $messageKeysDataType = 'array';
|
||||
public $messageKeys;
|
||||
protected $wonderCardMappingsType = WonderCardDelete::class;
|
||||
protected $wonderCardMappingsDataType = 'array';
|
||||
public $wonderCardMappings;
|
||||
|
||||
/**
|
||||
* @param ImapSyncDelete[]
|
||||
|
@ -55,6 +58,20 @@ class MessageDeleted extends \Google\Collection
|
|||
{
|
||||
return $this->messageKeys;
|
||||
}
|
||||
/**
|
||||
* @param WonderCardDelete[]
|
||||
*/
|
||||
public function setWonderCardMappings($wonderCardMappings)
|
||||
{
|
||||
$this->wonderCardMappings = $wonderCardMappings;
|
||||
}
|
||||
/**
|
||||
* @return WonderCardDelete[]
|
||||
*/
|
||||
public function getWonderCardMappings()
|
||||
{
|
||||
return $this->wonderCardMappings;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -37,6 +37,10 @@ class UserMentionMetadata extends \Google\Model
|
|||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $userMentionError;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
|
@ -108,6 +112,20 @@ class UserMentionMetadata extends \Google\Model
|
|||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUserMentionError($userMentionError)
|
||||
{
|
||||
$this->userMentionError = $userMentionError;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUserMentionError()
|
||||
{
|
||||
return $this->userMentionError;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
61
vendor/google/apiclient-services/src/CloudSearch/WonderCardDelete.php
vendored
Normal file
61
vendor/google/apiclient-services/src/CloudSearch/WonderCardDelete.php
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudSearch;
|
||||
|
||||
class WonderCardDelete extends \Google\Model
|
||||
{
|
||||
protected $messageMappingsType = WonderMessageMapping::class;
|
||||
protected $messageMappingsDataType = 'map';
|
||||
public $messageMappings;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $msgId;
|
||||
|
||||
/**
|
||||
* @param WonderMessageMapping[]
|
||||
*/
|
||||
public function setMessageMappings($messageMappings)
|
||||
{
|
||||
$this->messageMappings = $messageMappings;
|
||||
}
|
||||
/**
|
||||
* @return WonderMessageMapping[]
|
||||
*/
|
||||
public function getMessageMappings()
|
||||
{
|
||||
return $this->messageMappings;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setMsgId($msgId)
|
||||
{
|
||||
$this->msgId = $msgId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMsgId()
|
||||
{
|
||||
return $this->msgId;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(WonderCardDelete::class, 'Google_Service_CloudSearch_WonderCardDelete');
|
45
vendor/google/apiclient-services/src/CloudSearch/WonderMessageMapping.php
vendored
Normal file
45
vendor/google/apiclient-services/src/CloudSearch/WonderMessageMapping.php
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\CloudSearch;
|
||||
|
||||
class WonderMessageMapping extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'wonderCardMessageId';
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $wonderCardMessageId;
|
||||
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
public function setWonderCardMessageId($wonderCardMessageId)
|
||||
{
|
||||
$this->wonderCardMessageId = $wonderCardMessageId;
|
||||
}
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getWonderCardMessageId()
|
||||
{
|
||||
return $this->wonderCardMessageId;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(WonderMessageMapping::class, 'Google_Service_CloudSearch_WonderMessageMapping');
|
|
@ -40,7 +40,8 @@ class ProjectsLocationsWorkstationClusters extends \Google\Service\Resource
|
|||
*
|
||||
* @opt_param bool validateOnly If set, validate the request and preview the
|
||||
* review, but do not actually apply it.
|
||||
* @opt_param string workstationClusterId Required. ID to use for the cluster.
|
||||
* @opt_param string workstationClusterId Required. ID to use for the
|
||||
* workstation cluster.
|
||||
* @return Operation
|
||||
*/
|
||||
public function create($parent, WorkstationCluster $postBody, $optParams = [])
|
||||
|
@ -52,16 +53,16 @@ class ProjectsLocationsWorkstationClusters extends \Google\Service\Resource
|
|||
/**
|
||||
* Deletes the specified workstation cluster. (workstationClusters.delete)
|
||||
*
|
||||
* @param string $name Required. Name of the cluster to delete.
|
||||
* @param string $name Required. Name of the workstation cluster to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string etag If set, the request will be rejected if the latest
|
||||
* version of the cluster on the server does not have this etag.
|
||||
* version of the workstation cluster on the server does not have this etag.
|
||||
* @opt_param bool force If set, any workstation configurations and workstations
|
||||
* in the cluster will also be deleted. Otherwise, the request will work only if
|
||||
* the cluster has no configurations or workstations.
|
||||
* in the workstation cluster are also deleted. Otherwise, the request only
|
||||
* works if the workstation cluster has no configurations or workstations.
|
||||
* @opt_param bool validateOnly If set, validate the request and preview the
|
||||
* review, but do not actually apply it.
|
||||
* review, but do not apply it.
|
||||
* @return Operation
|
||||
*/
|
||||
public function delete($name, $optParams = [])
|
||||
|
@ -108,10 +109,11 @@ class ProjectsLocationsWorkstationClusters extends \Google\Service\Resource
|
|||
* @param WorkstationCluster $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool allowMissing If set, and the cluster is not found, a new
|
||||
* cluster will be created. In this situation, update_mask is ignored.
|
||||
* @opt_param string updateMask Required. Mask specifying which fields in the
|
||||
* cluster should be updated.
|
||||
* @opt_param bool allowMissing If set, and the workstation cluster is not
|
||||
* found, a new workstation cluster will be created. In this situation,
|
||||
* update_mask is ignored.
|
||||
* @opt_param string updateMask Required. Mask that specifies which fields in
|
||||
* the workstation cluster should be updated.
|
||||
* @opt_param bool validateOnly If set, validate the request and preview the
|
||||
* review, but do not actually apply it.
|
||||
* @return Operation
|
||||
|
|
169
vendor/google/apiclient-services/src/Compute.php
vendored
169
vendor/google/apiclient-services/src/Compute.php
vendored
|
@ -107,6 +107,7 @@ class Compute extends \Google\Service
|
|||
public $regionHealthChecks;
|
||||
public $regionInstanceGroupManagers;
|
||||
public $regionInstanceGroups;
|
||||
public $regionInstanceTemplates;
|
||||
public $regionInstances;
|
||||
public $regionNetworkEndpointGroups;
|
||||
public $regionNetworkFirewallPolicies;
|
||||
|
@ -4454,7 +4455,41 @@ class Compute extends \Google\Service
|
|||
'instanceTemplates',
|
||||
[
|
||||
'methods' => [
|
||||
'delete' => [
|
||||
'aggregatedList' => [
|
||||
'path' => 'projects/{project}/aggregated/instanceTemplates',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => [
|
||||
'project' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'filter' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'includeAllScopes' => [
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
],
|
||||
'maxResults' => [
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
],
|
||||
'orderBy' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'pageToken' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'returnPartialSuccess' => [
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
],
|
||||
],
|
||||
],'delete' => [
|
||||
'path' => 'projects/{project}/global/instanceTemplates/{instanceTemplate}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => [
|
||||
|
@ -5373,6 +5408,30 @@ class Compute extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'setName' => [
|
||||
'path' => 'projects/{project}/zones/{zone}/instances/{instance}/setName',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'project' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'zone' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'instance' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'requestId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'setScheduling' => [
|
||||
'path' => 'projects/{project}/zones/{zone}/instances/{instance}/setScheduling',
|
||||
'httpMethod' => 'POST',
|
||||
|
@ -10915,6 +10974,114 @@ class Compute extends \Google\Service
|
|||
]
|
||||
]
|
||||
);
|
||||
$this->regionInstanceTemplates = new Compute\Resource\RegionInstanceTemplates(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'regionInstanceTemplates',
|
||||
[
|
||||
'methods' => [
|
||||
'delete' => [
|
||||
'path' => 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => [
|
||||
'project' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'region' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'instanceTemplate' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'requestId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'get' => [
|
||||
'path' => 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => [
|
||||
'project' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'region' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'instanceTemplate' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'insert' => [
|
||||
'path' => 'projects/{project}/regions/{region}/instanceTemplates',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'project' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'region' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'requestId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'list' => [
|
||||
'path' => 'projects/{project}/regions/{region}/instanceTemplates',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => [
|
||||
'project' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'region' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'filter' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'maxResults' => [
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
],
|
||||
'orderBy' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'pageToken' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
'returnPartialSuccess' => [
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
);
|
||||
$this->regionInstances = new Compute\Resource\RegionInstances(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
|
|
|
@ -42,6 +42,10 @@ class InstanceTemplate extends \Google\Model
|
|||
protected $propertiesType = InstanceProperties::class;
|
||||
protected $propertiesDataType = '';
|
||||
public $properties;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $region;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -138,6 +142,20 @@ class InstanceTemplate extends \Google\Model
|
|||
{
|
||||
return $this->properties;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setRegion($region)
|
||||
{
|
||||
$this->region = $region;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRegion()
|
||||
{
|
||||
return $this->region;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
132
vendor/google/apiclient-services/src/Compute/InstanceTemplateAggregatedList.php
vendored
Normal file
132
vendor/google/apiclient-services/src/Compute/InstanceTemplateAggregatedList.php
vendored
Normal file
|
@ -0,0 +1,132 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute;
|
||||
|
||||
class InstanceTemplateAggregatedList extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $id;
|
||||
protected $itemsType = InstanceTemplatesScopedList::class;
|
||||
protected $itemsDataType = 'map';
|
||||
public $items;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $kind;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nextPageToken;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $selfLink;
|
||||
protected $warningType = InstanceTemplateAggregatedListWarning::class;
|
||||
protected $warningDataType = '';
|
||||
public $warning;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
/**
|
||||
* @param InstanceTemplatesScopedList[]
|
||||
*/
|
||||
public function setItems($items)
|
||||
{
|
||||
$this->items = $items;
|
||||
}
|
||||
/**
|
||||
* @return InstanceTemplatesScopedList[]
|
||||
*/
|
||||
public function getItems()
|
||||
{
|
||||
return $this->items;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setSelfLink($selfLink)
|
||||
{
|
||||
$this->selfLink = $selfLink;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSelfLink()
|
||||
{
|
||||
return $this->selfLink;
|
||||
}
|
||||
/**
|
||||
* @param InstanceTemplateAggregatedListWarning
|
||||
*/
|
||||
public function setWarning(InstanceTemplateAggregatedListWarning $warning)
|
||||
{
|
||||
$this->warning = $warning;
|
||||
}
|
||||
/**
|
||||
* @return InstanceTemplateAggregatedListWarning
|
||||
*/
|
||||
public function getWarning()
|
||||
{
|
||||
return $this->warning;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(InstanceTemplateAggregatedList::class, 'Google_Service_Compute_InstanceTemplateAggregatedList');
|
80
vendor/google/apiclient-services/src/Compute/InstanceTemplateAggregatedListWarning.php
vendored
Normal file
80
vendor/google/apiclient-services/src/Compute/InstanceTemplateAggregatedListWarning.php
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute;
|
||||
|
||||
class InstanceTemplateAggregatedListWarning extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'data';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
protected $dataType = InstanceTemplateAggregatedListWarningData::class;
|
||||
protected $dataDataType = 'array';
|
||||
public $data;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
/**
|
||||
* @param InstanceTemplateAggregatedListWarningData[]
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
/**
|
||||
* @return InstanceTemplateAggregatedListWarningData[]
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(InstanceTemplateAggregatedListWarning::class, 'Google_Service_Compute_InstanceTemplateAggregatedListWarning');
|
62
vendor/google/apiclient-services/src/Compute/InstanceTemplateAggregatedListWarningData.php
vendored
Normal file
62
vendor/google/apiclient-services/src/Compute/InstanceTemplateAggregatedListWarningData.php
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute;
|
||||
|
||||
class InstanceTemplateAggregatedListWarningData extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $key;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $value;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(InstanceTemplateAggregatedListWarningData::class, 'Google_Service_Compute_InstanceTemplateAggregatedListWarningData');
|
61
vendor/google/apiclient-services/src/Compute/InstanceTemplatesScopedList.php
vendored
Normal file
61
vendor/google/apiclient-services/src/Compute/InstanceTemplatesScopedList.php
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute;
|
||||
|
||||
class InstanceTemplatesScopedList extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'instanceTemplates';
|
||||
protected $instanceTemplatesType = InstanceTemplate::class;
|
||||
protected $instanceTemplatesDataType = 'array';
|
||||
public $instanceTemplates;
|
||||
protected $warningType = InstanceTemplatesScopedListWarning::class;
|
||||
protected $warningDataType = '';
|
||||
public $warning;
|
||||
|
||||
/**
|
||||
* @param InstanceTemplate[]
|
||||
*/
|
||||
public function setInstanceTemplates($instanceTemplates)
|
||||
{
|
||||
$this->instanceTemplates = $instanceTemplates;
|
||||
}
|
||||
/**
|
||||
* @return InstanceTemplate[]
|
||||
*/
|
||||
public function getInstanceTemplates()
|
||||
{
|
||||
return $this->instanceTemplates;
|
||||
}
|
||||
/**
|
||||
* @param InstanceTemplatesScopedListWarning
|
||||
*/
|
||||
public function setWarning(InstanceTemplatesScopedListWarning $warning)
|
||||
{
|
||||
$this->warning = $warning;
|
||||
}
|
||||
/**
|
||||
* @return InstanceTemplatesScopedListWarning
|
||||
*/
|
||||
public function getWarning()
|
||||
{
|
||||
return $this->warning;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(InstanceTemplatesScopedList::class, 'Google_Service_Compute_InstanceTemplatesScopedList');
|
80
vendor/google/apiclient-services/src/Compute/InstanceTemplatesScopedListWarning.php
vendored
Normal file
80
vendor/google/apiclient-services/src/Compute/InstanceTemplatesScopedListWarning.php
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute;
|
||||
|
||||
class InstanceTemplatesScopedListWarning extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'data';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
protected $dataType = InstanceTemplatesScopedListWarningData::class;
|
||||
protected $dataDataType = 'array';
|
||||
public $data;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
/**
|
||||
* @param InstanceTemplatesScopedListWarningData[]
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
/**
|
||||
* @return InstanceTemplatesScopedListWarningData[]
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(InstanceTemplatesScopedListWarning::class, 'Google_Service_Compute_InstanceTemplatesScopedListWarning');
|
62
vendor/google/apiclient-services/src/Compute/InstanceTemplatesScopedListWarningData.php
vendored
Normal file
62
vendor/google/apiclient-services/src/Compute/InstanceTemplatesScopedListWarningData.php
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute;
|
||||
|
||||
class InstanceTemplatesScopedListWarningData extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $key;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $value;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(InstanceTemplatesScopedListWarningData::class, 'Google_Service_Compute_InstanceTemplatesScopedListWarningData');
|
62
vendor/google/apiclient-services/src/Compute/InstancesSetNameRequest.php
vendored
Normal file
62
vendor/google/apiclient-services/src/Compute/InstancesSetNameRequest.php
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute;
|
||||
|
||||
class InstancesSetNameRequest extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $currentName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCurrentName($currentName)
|
||||
{
|
||||
$this->currentName = $currentName;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCurrentName()
|
||||
{
|
||||
return $this->currentName;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(InstancesSetNameRequest::class, 'Google_Service_Compute_InstancesSetNameRequest');
|
|
@ -106,9 +106,11 @@ class Images extends \Google\Service\Resource
|
|||
}
|
||||
/**
|
||||
* Returns the latest image that is part of an image family and is not
|
||||
* deprecated. (images.getFromFamily)
|
||||
* deprecated. For more information on image families, see Public image families
|
||||
* documentation. (images.getFromFamily)
|
||||
*
|
||||
* @param string $project Project ID for this request.
|
||||
* @param string $project The image project that the image belongs to. For
|
||||
* example, to get a CentOS image, specify centos-cloud as the image project.
|
||||
* @param string $family Name of the image family to search for.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Image
|
||||
|
|
|
@ -19,6 +19,7 @@ namespace Google\Service\Compute\Resource;
|
|||
|
||||
use Google\Service\Compute\GlobalSetPolicyRequest;
|
||||
use Google\Service\Compute\InstanceTemplate;
|
||||
use Google\Service\Compute\InstanceTemplateAggregatedList;
|
||||
use Google\Service\Compute\InstanceTemplateList;
|
||||
use Google\Service\Compute\Operation;
|
||||
use Google\Service\Compute\Policy;
|
||||
|
@ -35,6 +36,78 @@ use Google\Service\Compute\TestPermissionsResponse;
|
|||
*/
|
||||
class InstanceTemplates extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Retrieves the list of all InstanceTemplates resources, regional and global,
|
||||
* available to the specified project. (instanceTemplates.aggregatedList)
|
||||
*
|
||||
* @param string $project Name of the project scoping this request.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string filter A filter expression that filters resources listed in
|
||||
* the response. Most Compute resources support two types of filter expressions:
|
||||
* expressions that support regular expressions and expressions that follow API
|
||||
* improvement proposal AIP-160. If you want to use AIP-160, your expression
|
||||
* must specify the field name, an operator, and the value that you want to use
|
||||
* for filtering. The value must be a string, a number, or a boolean. The
|
||||
* operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example,
|
||||
* if you are filtering Compute Engine instances, you can exclude instances
|
||||
* named `example-instance` by specifying `name != example-instance`. The `:`
|
||||
* operator can be used with string fields to match substrings. For non-string
|
||||
* fields it is equivalent to the `=` operator. The `:*` comparison can be used
|
||||
* to test whether a key has been defined. For example, to find all objects with
|
||||
* `owner` label use: ``` labels.owner:* ``` You can also filter nested fields.
|
||||
* For example, you could specify `scheduling.automaticRestart = false` to
|
||||
* include instances only if they are not scheduled for automatic restarts. You
|
||||
* can use filtering on nested fields to filter based on resource labels. To
|
||||
* filter on multiple expressions, provide each separate expression within
|
||||
* parentheses. For example: ``` (scheduling.automaticRestart = true)
|
||||
* (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
||||
* expression. However, you can include `AND` and `OR` expressions explicitly.
|
||||
* For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
||||
* Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a
|
||||
* regular expression, use the `eq` (equal) or `ne` (not equal) operator against
|
||||
* a single un-parenthesized expression with or without quotes or against
|
||||
* multiple parenthesized expressions. Examples: `fieldname eq unquoted literal`
|
||||
* `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
|
||||
* `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
||||
* interpreted as a regular expression using Google RE2 library syntax. The
|
||||
* literal value must match the entire field. For example, to filter for
|
||||
* instances that do not end with name "instance", you would use `name ne
|
||||
* .*instance`.
|
||||
* @opt_param bool includeAllScopes Indicates whether every visible scope for
|
||||
* each scope type (zone, region, global) should be included in the response.
|
||||
* For new resource types added after this field, the flag has no effect as new
|
||||
* resource types will always include every visible scope for each scope type in
|
||||
* response. For resource types which predate this field, if this flag is
|
||||
* omitted or false, only scopes of the scope types where the resource type is
|
||||
* expected to be found will be included.
|
||||
* @opt_param string maxResults The maximum number of results per page that
|
||||
* should be returned. If the number of available results is larger than
|
||||
* `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
|
||||
* get the next page of results in subsequent list requests. Acceptable values
|
||||
* are `0` to `500`, inclusive. (Default: `500`)
|
||||
* @opt_param string orderBy Sorts list results by a certain order. By default,
|
||||
* results are returned in alphanumerical order based on the resource name. You
|
||||
* can also sort results in descending order based on the creation timestamp
|
||||
* using `orderBy="creationTimestamp desc"`. This sorts results based on the
|
||||
* `creationTimestamp` field in reverse chronological order (newest result
|
||||
* first). Use this to sort resources like operations so that the newest
|
||||
* operation is returned first. Currently, only sorting by `name` or
|
||||
* `creationTimestamp desc` is supported.
|
||||
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
|
||||
* the `nextPageToken` returned by a previous list request to get the next page
|
||||
* of results.
|
||||
* @opt_param bool returnPartialSuccess Opt-in for partial success behavior
|
||||
* which provides partial results in case of failure. The default value is
|
||||
* false.
|
||||
* @return InstanceTemplateAggregatedList
|
||||
*/
|
||||
public function aggregatedList($project, $optParams = [])
|
||||
{
|
||||
$params = ['project' => $project];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('aggregatedList', [$params], InstanceTemplateAggregatedList::class);
|
||||
}
|
||||
/**
|
||||
* Deletes the specified instance template. Deleting an instance template is
|
||||
* permanent and cannot be undone. It is not possible to delete templates that
|
||||
|
|
|
@ -33,6 +33,7 @@ use Google\Service\Compute\InstancesSetLabelsRequest;
|
|||
use Google\Service\Compute\InstancesSetMachineResourcesRequest;
|
||||
use Google\Service\Compute\InstancesSetMachineTypeRequest;
|
||||
use Google\Service\Compute\InstancesSetMinCpuPlatformRequest;
|
||||
use Google\Service\Compute\InstancesSetNameRequest;
|
||||
use Google\Service\Compute\InstancesSetServiceAccountRequest;
|
||||
use Google\Service\Compute\InstancesStartWithEncryptionKeyRequest;
|
||||
use Google\Service\Compute\Metadata;
|
||||
|
@ -964,6 +965,33 @@ class Instances extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setMinCpuPlatform', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Sets name of an instance. (instances.setName)
|
||||
*
|
||||
* @param string $project Project ID for this request.
|
||||
* @param string $zone The name of the zone for this request.
|
||||
* @param string $instance The instance name for this request.
|
||||
* @param InstancesSetNameRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string requestId An optional request ID to identify requests.
|
||||
* Specify a unique request ID so that if you must retry your request, the
|
||||
* server will know to ignore the request if it has already been completed. For
|
||||
* example, consider a situation where you make an initial request and the
|
||||
* request times out. If you make the request again with the same request ID,
|
||||
* the server can check if original operation with the same request ID was
|
||||
* received, and if so, will ignore the second request. This prevents clients
|
||||
* from accidentally creating duplicate commitments. The request ID must be a
|
||||
* valid UUID with the exception that zero UUID is not supported (
|
||||
* 00000000-0000-0000-0000-000000000000).
|
||||
* @return Operation
|
||||
*/
|
||||
public function setName($project, $zone, $instance, InstancesSetNameRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setName', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Sets an instance's scheduling options. You can only call this method on a
|
||||
* stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
|
||||
|
|
175
vendor/google/apiclient-services/src/Compute/Resource/RegionInstanceTemplates.php
vendored
Normal file
175
vendor/google/apiclient-services/src/Compute/Resource/RegionInstanceTemplates.php
vendored
Normal file
|
@ -0,0 +1,175 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Compute\Resource;
|
||||
|
||||
use Google\Service\Compute\InstanceTemplate;
|
||||
use Google\Service\Compute\InstanceTemplateList;
|
||||
use Google\Service\Compute\Operation;
|
||||
|
||||
/**
|
||||
* The "regionInstanceTemplates" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $computeService = new Google\Service\Compute(...);
|
||||
* $regionInstanceTemplates = $computeService->regionInstanceTemplates;
|
||||
* </code>
|
||||
*/
|
||||
class RegionInstanceTemplates extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Deletes the specified instance template. Deleting an instance template is
|
||||
* permanent and cannot be undone. (regionInstanceTemplates.delete)
|
||||
*
|
||||
* @param string $project Project ID for this request.
|
||||
* @param string $region The name of the region for this request.
|
||||
* @param string $instanceTemplate The name of the instance template to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string requestId An optional request ID to identify requests.
|
||||
* Specify a unique request ID so that if you must retry your request, the
|
||||
* server will know to ignore the request if it has already been completed. For
|
||||
* example, consider a situation where you make an initial request and the
|
||||
* request times out. If you make the request again with the same request ID,
|
||||
* the server can check if original operation with the same request ID was
|
||||
* received, and if so, will ignore the second request. This prevents clients
|
||||
* from accidentally creating duplicate commitments. The request ID must be a
|
||||
* valid UUID with the exception that zero UUID is not supported (
|
||||
* 00000000-0000-0000-0000-000000000000).
|
||||
* @return Operation
|
||||
*/
|
||||
public function delete($project, $region, $instanceTemplate, $optParams = [])
|
||||
{
|
||||
$params = ['project' => $project, 'region' => $region, 'instanceTemplate' => $instanceTemplate];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Returns the specified instance template. Gets a list of available instance
|
||||
* templates by making a list() request. (regionInstanceTemplates.get)
|
||||
*
|
||||
* @param string $project Project ID for this request.
|
||||
* @param string $region The name of the region for this request.
|
||||
* @param string $instanceTemplate The name of the instance template.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return InstanceTemplate
|
||||
*/
|
||||
public function get($project, $region, $instanceTemplate, $optParams = [])
|
||||
{
|
||||
$params = ['project' => $project, 'region' => $region, 'instanceTemplate' => $instanceTemplate];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', [$params], InstanceTemplate::class);
|
||||
}
|
||||
/**
|
||||
* Creates an instance template in the specified project and region using the
|
||||
* global instance template whose URL is included in the request.
|
||||
* (regionInstanceTemplates.insert)
|
||||
*
|
||||
* @param string $project Project ID for this request.
|
||||
* @param string $region The name of the region for this request.
|
||||
* @param InstanceTemplate $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string requestId An optional request ID to identify requests.
|
||||
* Specify a unique request ID so that if you must retry your request, the
|
||||
* server will know to ignore the request if it has already been completed. For
|
||||
* example, consider a situation where you make an initial request and the
|
||||
* request times out. If you make the request again with the same request ID,
|
||||
* the server can check if original operation with the same request ID was
|
||||
* received, and if so, will ignore the second request. This prevents clients
|
||||
* from accidentally creating duplicate commitments. The request ID must be a
|
||||
* valid UUID with the exception that zero UUID is not supported (
|
||||
* 00000000-0000-0000-0000-000000000000).
|
||||
* @return Operation
|
||||
*/
|
||||
public function insert($project, $region, InstanceTemplate $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Retrieves a list of instance templates that are contained within the
|
||||
* specified project and region.
|
||||
* (regionInstanceTemplates.listRegionInstanceTemplates)
|
||||
*
|
||||
* @param string $project Project ID for this request.
|
||||
* @param string $region The name of the regions for this request.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string filter A filter expression that filters resources listed in
|
||||
* the response. Most Compute resources support two types of filter expressions:
|
||||
* expressions that support regular expressions and expressions that follow API
|
||||
* improvement proposal AIP-160. If you want to use AIP-160, your expression
|
||||
* must specify the field name, an operator, and the value that you want to use
|
||||
* for filtering. The value must be a string, a number, or a boolean. The
|
||||
* operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example,
|
||||
* if you are filtering Compute Engine instances, you can exclude instances
|
||||
* named `example-instance` by specifying `name != example-instance`. The `:`
|
||||
* operator can be used with string fields to match substrings. For non-string
|
||||
* fields it is equivalent to the `=` operator. The `:*` comparison can be used
|
||||
* to test whether a key has been defined. For example, to find all objects with
|
||||
* `owner` label use: ``` labels.owner:* ``` You can also filter nested fields.
|
||||
* For example, you could specify `scheduling.automaticRestart = false` to
|
||||
* include instances only if they are not scheduled for automatic restarts. You
|
||||
* can use filtering on nested fields to filter based on resource labels. To
|
||||
* filter on multiple expressions, provide each separate expression within
|
||||
* parentheses. For example: ``` (scheduling.automaticRestart = true)
|
||||
* (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
||||
* expression. However, you can include `AND` and `OR` expressions explicitly.
|
||||
* For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
||||
* Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a
|
||||
* regular expression, use the `eq` (equal) or `ne` (not equal) operator against
|
||||
* a single un-parenthesized expression with or without quotes or against
|
||||
* multiple parenthesized expressions. Examples: `fieldname eq unquoted literal`
|
||||
* `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
|
||||
* `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
||||
* interpreted as a regular expression using Google RE2 library syntax. The
|
||||
* literal value must match the entire field. For example, to filter for
|
||||
* instances that do not end with name "instance", you would use `name ne
|
||||
* .*instance`.
|
||||
* @opt_param string maxResults The maximum number of results per page that
|
||||
* should be returned. If the number of available results is larger than
|
||||
* `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
|
||||
* get the next page of results in subsequent list requests. Acceptable values
|
||||
* are `0` to `500`, inclusive. (Default: `500`)
|
||||
* @opt_param string orderBy Sorts list results by a certain order. By default,
|
||||
* results are returned in alphanumerical order based on the resource name. You
|
||||
* can also sort results in descending order based on the creation timestamp
|
||||
* using `orderBy="creationTimestamp desc"`. This sorts results based on the
|
||||
* `creationTimestamp` field in reverse chronological order (newest result
|
||||
* first). Use this to sort resources like operations so that the newest
|
||||
* operation is returned first. Currently, only sorting by `name` or
|
||||
* `creationTimestamp desc` is supported.
|
||||
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
|
||||
* the `nextPageToken` returned by a previous list request to get the next page
|
||||
* of results.
|
||||
* @opt_param bool returnPartialSuccess Opt-in for partial success behavior
|
||||
* which provides partial results in case of failure. The default value is
|
||||
* false.
|
||||
* @return InstanceTemplateList
|
||||
*/
|
||||
public function listRegionInstanceTemplates($project, $region, $optParams = [])
|
||||
{
|
||||
$params = ['project' => $project, 'region' => $region];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', [$params], InstanceTemplateList::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(RegionInstanceTemplates::class, 'Google_Service_Compute_Resource_RegionInstanceTemplates');
|
|
@ -39,6 +39,10 @@ class DriveCapabilities extends \Google\Model
|
|||
* @var bool
|
||||
*/
|
||||
public $canChangeDriveMembersOnlyRestriction;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
|
@ -166,6 +170,20 @@ class DriveCapabilities extends \Google\Model
|
|||
{
|
||||
return $this->canChangeDriveMembersOnlyRestriction;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction($canChangeSharingFoldersRequiresOrganizerPermissionRestriction)
|
||||
{
|
||||
$this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction = $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction()
|
||||
{
|
||||
return $this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
|
|
|
@ -35,6 +35,10 @@ class DriveRestrictions extends \Google\Model
|
|||
* @var bool
|
||||
*/
|
||||
public $driveMembersOnly;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $sharingFoldersRequiresOrganizerPermission;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
|
@ -92,6 +96,20 @@ class DriveRestrictions extends \Google\Model
|
|||
{
|
||||
return $this->driveMembersOnly;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setSharingFoldersRequiresOrganizerPermission($sharingFoldersRequiresOrganizerPermission)
|
||||
{
|
||||
$this->sharingFoldersRequiresOrganizerPermission = $sharingFoldersRequiresOrganizerPermission;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getSharingFoldersRequiresOrganizerPermission()
|
||||
{
|
||||
return $this->sharingFoldersRequiresOrganizerPermission;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -31,6 +31,10 @@ class TeamDriveCapabilities extends \Google\Model
|
|||
* @var bool
|
||||
*/
|
||||
public $canChangeDomainUsersOnlyRestriction;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
|
@ -142,6 +146,20 @@ class TeamDriveCapabilities extends \Google\Model
|
|||
{
|
||||
return $this->canChangeDomainUsersOnlyRestriction;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction($canChangeSharingFoldersRequiresOrganizerPermissionRestriction)
|
||||
{
|
||||
$this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction = $canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction()
|
||||
{
|
||||
return $this->canChangeSharingFoldersRequiresOrganizerPermissionRestriction;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
|
|
|
@ -31,6 +31,10 @@ class TeamDriveRestrictions extends \Google\Model
|
|||
* @var bool
|
||||
*/
|
||||
public $domainUsersOnly;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $sharingFoldersRequiresOrganizerPermission;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
|
@ -78,6 +82,20 @@ class TeamDriveRestrictions extends \Google\Model
|
|||
{
|
||||
return $this->domainUsersOnly;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setSharingFoldersRequiresOrganizerPermission($sharingFoldersRequiresOrganizerPermission)
|
||||
{
|
||||
$this->sharingFoldersRequiresOrganizerPermission = $sharingFoldersRequiresOrganizerPermission;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getSharingFoldersRequiresOrganizerPermission()
|
||||
{
|
||||
return $this->sharingFoldersRequiresOrganizerPermission;
|
||||
}
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
|
|
|
@ -122,9 +122,9 @@ class Accounts extends \Google\Service\Resource
|
|||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. The list of fields to be updated.
|
||||
* Field names must be in snake case (e.g., "field_to_update"). Omitted fields
|
||||
* will not be updated. To replace the entire entity, use one path with the
|
||||
* string "*" to match all fields.
|
||||
* Field names must be in snake case (for example, "field_to_update"). Omitted
|
||||
* fields will not be updated. To replace the entire entity, use one path with
|
||||
* the string "*" to match all fields.
|
||||
* @return GoogleAnalyticsAdminV1betaAccount
|
||||
*/
|
||||
public function patch($name, GoogleAnalyticsAdminV1betaAccount $postBody, $optParams = [])
|
||||
|
|
|
@ -36,7 +36,7 @@ class Properties extends \Google\Service\Resource
|
|||
/**
|
||||
* Acknowledges the terms of user data collection for the specified property.
|
||||
* This acknowledgement must be completed (either in the Google Analytics UI or
|
||||
* via this API) before MeasurementProtocolSecret resources may be created.
|
||||
* through this API) before MeasurementProtocolSecret resources may be created.
|
||||
* (properties.acknowledgeUserDataCollection)
|
||||
*
|
||||
* @param string $property Required. The property for which to acknowledge user
|
||||
|
|
|
@ -35,6 +35,9 @@ use Google\Client;
|
|||
*/
|
||||
class HangoutsChat extends \Google\Service
|
||||
{
|
||||
/** Private Service: https://www.googleapis.com/auth/chat.bot. */
|
||||
const CHAT_BOT =
|
||||
"https://www.googleapis.com/auth/chat.bot";
|
||||
/** View, add, and remove members from conversations in Google Chat. */
|
||||
const CHAT_MEMBERSHIPS =
|
||||
"https://www.googleapis.com/auth/chat.memberships";
|
||||
|
|
|
@ -19,6 +19,10 @@ namespace Google\Service\HangoutsChat;
|
|||
|
||||
class Space extends \Google\Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $adminInstalled;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -47,6 +51,20 @@ class Space extends \Google\Model
|
|||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setAdminInstalled($adminInstalled)
|
||||
{
|
||||
$this->adminInstalled = $adminInstalled;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getAdminInstalled()
|
||||
{
|
||||
return $this->adminInstalled;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
140
vendor/google/apiclient-services/src/Logging.php
vendored
140
vendor/google/apiclient-services/src/Logging.php
vendored
|
@ -278,6 +278,20 @@ class Logging extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'createAsync' => [
|
||||
'path' => 'v2/{+parent}/buckets:createAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'parent' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'bucketId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'delete' => [
|
||||
'path' => 'v2/{+name}',
|
||||
'httpMethod' => 'DELETE',
|
||||
|
@ -340,6 +354,20 @@ class Logging extends \Google\Service
|
|||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'updateAsync' => [
|
||||
'path' => 'v2/{+name}:updateAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'name' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'updateMask' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
|
@ -922,6 +950,20 @@ class Logging extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'createAsync' => [
|
||||
'path' => 'v2/{+parent}/buckets:createAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'parent' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'bucketId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'delete' => [
|
||||
'path' => 'v2/{+name}',
|
||||
'httpMethod' => 'DELETE',
|
||||
|
@ -984,6 +1026,20 @@ class Logging extends \Google\Service
|
|||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'updateAsync' => [
|
||||
'path' => 'v2/{+name}:updateAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'name' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'updateMask' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
|
@ -1352,6 +1408,20 @@ class Logging extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'createAsync' => [
|
||||
'path' => 'v2/{+parent}/buckets:createAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'parent' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'bucketId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'delete' => [
|
||||
'path' => 'v2/{+name}',
|
||||
'httpMethod' => 'DELETE',
|
||||
|
@ -1414,6 +1484,20 @@ class Logging extends \Google\Service
|
|||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'updateAsync' => [
|
||||
'path' => 'v2/{+name}:updateAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'name' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'updateMask' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
|
@ -1804,6 +1888,20 @@ class Logging extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'createAsync' => [
|
||||
'path' => 'v2/{+parent}/buckets:createAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'parent' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'bucketId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'delete' => [
|
||||
'path' => 'v2/{+name}',
|
||||
'httpMethod' => 'DELETE',
|
||||
|
@ -1866,6 +1964,20 @@ class Logging extends \Google\Service
|
|||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'updateAsync' => [
|
||||
'path' => 'v2/{+name}:updateAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'name' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'updateMask' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
|
@ -2336,6 +2448,20 @@ class Logging extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'createAsync' => [
|
||||
'path' => 'v2/{+parent}/buckets:createAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'parent' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'bucketId' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'delete' => [
|
||||
'path' => 'v2/{+name}',
|
||||
'httpMethod' => 'DELETE',
|
||||
|
@ -2398,6 +2524,20 @@ class Logging extends \Google\Service
|
|||
'required' => true,
|
||||
],
|
||||
],
|
||||
],'updateAsync' => [
|
||||
'path' => 'v2/{+name}:updateAsync',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [
|
||||
'name' => [
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
],
|
||||
'updateMask' => [
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
|
|
114
vendor/google/apiclient-services/src/Logging/BucketMetadata.php
vendored
Normal file
114
vendor/google/apiclient-services/src/Logging/BucketMetadata.php
vendored
Normal file
|
@ -0,0 +1,114 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Logging;
|
||||
|
||||
class BucketMetadata extends \Google\Model
|
||||
{
|
||||
protected $createBucketRequestType = CreateBucketRequest::class;
|
||||
protected $createBucketRequestDataType = '';
|
||||
public $createBucketRequest;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $endTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $startTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $state;
|
||||
protected $updateBucketRequestType = UpdateBucketRequest::class;
|
||||
protected $updateBucketRequestDataType = '';
|
||||
public $updateBucketRequest;
|
||||
|
||||
/**
|
||||
* @param CreateBucketRequest
|
||||
*/
|
||||
public function setCreateBucketRequest(CreateBucketRequest $createBucketRequest)
|
||||
{
|
||||
$this->createBucketRequest = $createBucketRequest;
|
||||
}
|
||||
/**
|
||||
* @return CreateBucketRequest
|
||||
*/
|
||||
public function getCreateBucketRequest()
|
||||
{
|
||||
return $this->createBucketRequest;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->startTime;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setState($state)
|
||||
{
|
||||
$this->state = $state;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getState()
|
||||
{
|
||||
return $this->state;
|
||||
}
|
||||
/**
|
||||
* @param UpdateBucketRequest
|
||||
*/
|
||||
public function setUpdateBucketRequest(UpdateBucketRequest $updateBucketRequest)
|
||||
{
|
||||
$this->updateBucketRequest = $updateBucketRequest;
|
||||
}
|
||||
/**
|
||||
* @return UpdateBucketRequest
|
||||
*/
|
||||
public function getUpdateBucketRequest()
|
||||
{
|
||||
return $this->updateBucketRequest;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(BucketMetadata::class, 'Google_Service_Logging_BucketMetadata');
|
79
vendor/google/apiclient-services/src/Logging/CreateBucketRequest.php
vendored
Normal file
79
vendor/google/apiclient-services/src/Logging/CreateBucketRequest.php
vendored
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Logging;
|
||||
|
||||
class CreateBucketRequest extends \Google\Model
|
||||
{
|
||||
protected $bucketType = LogBucket::class;
|
||||
protected $bucketDataType = '';
|
||||
public $bucket;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bucketId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $parent;
|
||||
|
||||
/**
|
||||
* @param LogBucket
|
||||
*/
|
||||
public function setBucket(LogBucket $bucket)
|
||||
{
|
||||
$this->bucket = $bucket;
|
||||
}
|
||||
/**
|
||||
* @return LogBucket
|
||||
*/
|
||||
public function getBucket()
|
||||
{
|
||||
return $this->bucket;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setBucketId($bucketId)
|
||||
{
|
||||
$this->bucketId = $bucketId;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBucketId()
|
||||
{
|
||||
return $this->bucketId;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setParent($parent)
|
||||
{
|
||||
$this->parent = $parent;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getParent()
|
||||
{
|
||||
return $this->parent;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(CreateBucketRequest::class, 'Google_Service_Logging_CreateBucketRequest');
|
|
@ -20,6 +20,10 @@ namespace Google\Service\Logging;
|
|||
class LogBucket extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'restrictedFields';
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $analyticsEnabled;
|
||||
protected $cmekSettingsType = CmekSettings::class;
|
||||
protected $cmekSettingsDataType = '';
|
||||
public $cmekSettings;
|
||||
|
@ -59,6 +63,20 @@ class LogBucket extends \Google\Collection
|
|||
*/
|
||||
public $updateTime;
|
||||
|
||||
/**
|
||||
* @param bool
|
||||
*/
|
||||
public function setAnalyticsEnabled($analyticsEnabled)
|
||||
{
|
||||
$this->analyticsEnabled = $analyticsEnabled;
|
||||
}
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getAnalyticsEnabled()
|
||||
{
|
||||
return $this->analyticsEnabled;
|
||||
}
|
||||
/**
|
||||
* @param CmekSettings
|
||||
*/
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace Google\Service\Logging\Resource;
|
|||
use Google\Service\Logging\ListBucketsResponse;
|
||||
use Google\Service\Logging\LogBucket;
|
||||
use Google\Service\Logging\LoggingEmpty;
|
||||
use Google\Service\Logging\Operation;
|
||||
use Google\Service\Logging\UndeleteBucketRequest;
|
||||
|
||||
/**
|
||||
|
@ -53,6 +54,28 @@ class BillingAccountsLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', [$params], LogBucket::class);
|
||||
}
|
||||
/**
|
||||
* Creates a log bucket asynchronously that can be used to store log
|
||||
* entries.After a bucket has been created, the bucket's location cannot be
|
||||
* changed. (buckets.createAsync)
|
||||
*
|
||||
* @param string $parent Required. The resource in which to create the log
|
||||
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects
|
||||
* /my-project/locations/global"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string bucketId Required. A client-assigned identifier such as
|
||||
* "my-bucket". Identifiers are limited to 100 characters and can include only
|
||||
* letters, digits, underscores, hyphens, and periods.
|
||||
* @return Operation
|
||||
*/
|
||||
public function createAsync($parent, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('createAsync', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
||||
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
||||
|
@ -119,10 +142,7 @@ class BillingAccountsLocationsBuckets extends \Google\Service\Resource
|
|||
return $this->call('list', [$params], ListBucketsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket. This method replaces the following fields in the
|
||||
* existing bucket with values from the new bucket: retention_periodIf the
|
||||
* retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
||||
* will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
|
||||
* the bucket's location cannot be changed. (buckets.patch)
|
||||
*
|
||||
|
@ -170,6 +190,36 @@ class BillingAccountsLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('undelete', [$params], LoggingEmpty::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
||||
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
|
||||
* has been created, the bucket's location cannot be changed.
|
||||
* (buckets.updateAsync)
|
||||
*
|
||||
* @param string $name Required. The full resource name of the bucket to update.
|
||||
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
|
||||
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
|
||||
* example:"projects/my-project/locations/global/buckets/my-bucket"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. Field mask that specifies the fields
|
||||
* in bucket that need an update. A bucket field will be overwritten if, and
|
||||
* only if, it is in the update mask. name and output only fields cannot be
|
||||
* updated.For a detailed FieldMask definition, see:
|
||||
* https://developers.google.com/protocol-
|
||||
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
|
||||
* updateMask=retention_days
|
||||
* @return Operation
|
||||
*/
|
||||
public function updateAsync($name, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateAsync', [$params], Operation::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace Google\Service\Logging\Resource;
|
|||
use Google\Service\Logging\ListBucketsResponse;
|
||||
use Google\Service\Logging\LogBucket;
|
||||
use Google\Service\Logging\LoggingEmpty;
|
||||
use Google\Service\Logging\Operation;
|
||||
use Google\Service\Logging\UndeleteBucketRequest;
|
||||
|
||||
/**
|
||||
|
@ -53,6 +54,28 @@ class FoldersLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', [$params], LogBucket::class);
|
||||
}
|
||||
/**
|
||||
* Creates a log bucket asynchronously that can be used to store log
|
||||
* entries.After a bucket has been created, the bucket's location cannot be
|
||||
* changed. (buckets.createAsync)
|
||||
*
|
||||
* @param string $parent Required. The resource in which to create the log
|
||||
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects
|
||||
* /my-project/locations/global"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string bucketId Required. A client-assigned identifier such as
|
||||
* "my-bucket". Identifiers are limited to 100 characters and can include only
|
||||
* letters, digits, underscores, hyphens, and periods.
|
||||
* @return Operation
|
||||
*/
|
||||
public function createAsync($parent, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('createAsync', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
||||
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
||||
|
@ -119,10 +142,7 @@ class FoldersLocationsBuckets extends \Google\Service\Resource
|
|||
return $this->call('list', [$params], ListBucketsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket. This method replaces the following fields in the
|
||||
* existing bucket with values from the new bucket: retention_periodIf the
|
||||
* retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
||||
* will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
|
||||
* the bucket's location cannot be changed. (buckets.patch)
|
||||
*
|
||||
|
@ -170,6 +190,36 @@ class FoldersLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('undelete', [$params], LoggingEmpty::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
||||
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
|
||||
* has been created, the bucket's location cannot be changed.
|
||||
* (buckets.updateAsync)
|
||||
*
|
||||
* @param string $name Required. The full resource name of the bucket to update.
|
||||
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
|
||||
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
|
||||
* example:"projects/my-project/locations/global/buckets/my-bucket"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. Field mask that specifies the fields
|
||||
* in bucket that need an update. A bucket field will be overwritten if, and
|
||||
* only if, it is in the update mask. name and output only fields cannot be
|
||||
* updated.For a detailed FieldMask definition, see:
|
||||
* https://developers.google.com/protocol-
|
||||
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
|
||||
* updateMask=retention_days
|
||||
* @return Operation
|
||||
*/
|
||||
public function updateAsync($name, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateAsync', [$params], Operation::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace Google\Service\Logging\Resource;
|
|||
use Google\Service\Logging\ListBucketsResponse;
|
||||
use Google\Service\Logging\LogBucket;
|
||||
use Google\Service\Logging\LoggingEmpty;
|
||||
use Google\Service\Logging\Operation;
|
||||
use Google\Service\Logging\UndeleteBucketRequest;
|
||||
|
||||
/**
|
||||
|
@ -53,6 +54,28 @@ class LocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', [$params], LogBucket::class);
|
||||
}
|
||||
/**
|
||||
* Creates a log bucket asynchronously that can be used to store log
|
||||
* entries.After a bucket has been created, the bucket's location cannot be
|
||||
* changed. (buckets.createAsync)
|
||||
*
|
||||
* @param string $parent Required. The resource in which to create the log
|
||||
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects
|
||||
* /my-project/locations/global"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string bucketId Required. A client-assigned identifier such as
|
||||
* "my-bucket". Identifiers are limited to 100 characters and can include only
|
||||
* letters, digits, underscores, hyphens, and periods.
|
||||
* @return Operation
|
||||
*/
|
||||
public function createAsync($parent, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('createAsync', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
||||
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
||||
|
@ -119,10 +142,7 @@ class LocationsBuckets extends \Google\Service\Resource
|
|||
return $this->call('list', [$params], ListBucketsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket. This method replaces the following fields in the
|
||||
* existing bucket with values from the new bucket: retention_periodIf the
|
||||
* retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
||||
* will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
|
||||
* the bucket's location cannot be changed. (buckets.patch)
|
||||
*
|
||||
|
@ -170,6 +190,36 @@ class LocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('undelete', [$params], LoggingEmpty::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
||||
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
|
||||
* has been created, the bucket's location cannot be changed.
|
||||
* (buckets.updateAsync)
|
||||
*
|
||||
* @param string $name Required. The full resource name of the bucket to update.
|
||||
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
|
||||
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
|
||||
* example:"projects/my-project/locations/global/buckets/my-bucket"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. Field mask that specifies the fields
|
||||
* in bucket that need an update. A bucket field will be overwritten if, and
|
||||
* only if, it is in the update mask. name and output only fields cannot be
|
||||
* updated.For a detailed FieldMask definition, see:
|
||||
* https://developers.google.com/protocol-
|
||||
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
|
||||
* updateMask=retention_days
|
||||
* @return Operation
|
||||
*/
|
||||
public function updateAsync($name, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateAsync', [$params], Operation::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace Google\Service\Logging\Resource;
|
|||
use Google\Service\Logging\ListBucketsResponse;
|
||||
use Google\Service\Logging\LogBucket;
|
||||
use Google\Service\Logging\LoggingEmpty;
|
||||
use Google\Service\Logging\Operation;
|
||||
use Google\Service\Logging\UndeleteBucketRequest;
|
||||
|
||||
/**
|
||||
|
@ -53,6 +54,28 @@ class OrganizationsLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', [$params], LogBucket::class);
|
||||
}
|
||||
/**
|
||||
* Creates a log bucket asynchronously that can be used to store log
|
||||
* entries.After a bucket has been created, the bucket's location cannot be
|
||||
* changed. (buckets.createAsync)
|
||||
*
|
||||
* @param string $parent Required. The resource in which to create the log
|
||||
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects
|
||||
* /my-project/locations/global"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string bucketId Required. A client-assigned identifier such as
|
||||
* "my-bucket". Identifiers are limited to 100 characters and can include only
|
||||
* letters, digits, underscores, hyphens, and periods.
|
||||
* @return Operation
|
||||
*/
|
||||
public function createAsync($parent, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('createAsync', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
||||
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
||||
|
@ -119,10 +142,7 @@ class OrganizationsLocationsBuckets extends \Google\Service\Resource
|
|||
return $this->call('list', [$params], ListBucketsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket. This method replaces the following fields in the
|
||||
* existing bucket with values from the new bucket: retention_periodIf the
|
||||
* retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
||||
* will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
|
||||
* the bucket's location cannot be changed. (buckets.patch)
|
||||
*
|
||||
|
@ -170,6 +190,36 @@ class OrganizationsLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('undelete', [$params], LoggingEmpty::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
||||
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
|
||||
* has been created, the bucket's location cannot be changed.
|
||||
* (buckets.updateAsync)
|
||||
*
|
||||
* @param string $name Required. The full resource name of the bucket to update.
|
||||
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
|
||||
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
|
||||
* example:"projects/my-project/locations/global/buckets/my-bucket"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. Field mask that specifies the fields
|
||||
* in bucket that need an update. A bucket field will be overwritten if, and
|
||||
* only if, it is in the update mask. name and output only fields cannot be
|
||||
* updated.For a detailed FieldMask definition, see:
|
||||
* https://developers.google.com/protocol-
|
||||
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
|
||||
* updateMask=retention_days
|
||||
* @return Operation
|
||||
*/
|
||||
public function updateAsync($name, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateAsync', [$params], Operation::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace Google\Service\Logging\Resource;
|
|||
use Google\Service\Logging\ListBucketsResponse;
|
||||
use Google\Service\Logging\LogBucket;
|
||||
use Google\Service\Logging\LoggingEmpty;
|
||||
use Google\Service\Logging\Operation;
|
||||
use Google\Service\Logging\UndeleteBucketRequest;
|
||||
|
||||
/**
|
||||
|
@ -53,6 +54,28 @@ class ProjectsLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', [$params], LogBucket::class);
|
||||
}
|
||||
/**
|
||||
* Creates a log bucket asynchronously that can be used to store log
|
||||
* entries.After a bucket has been created, the bucket's location cannot be
|
||||
* changed. (buckets.createAsync)
|
||||
*
|
||||
* @param string $parent Required. The resource in which to create the log
|
||||
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects
|
||||
* /my-project/locations/global"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string bucketId Required. A client-assigned identifier such as
|
||||
* "my-bucket". Identifiers are limited to 100 characters and can include only
|
||||
* letters, digits, underscores, hyphens, and periods.
|
||||
* @return Operation
|
||||
*/
|
||||
public function createAsync($parent, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['parent' => $parent, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('createAsync', [$params], Operation::class);
|
||||
}
|
||||
/**
|
||||
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
||||
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
||||
|
@ -119,10 +142,7 @@ class ProjectsLocationsBuckets extends \Google\Service\Resource
|
|||
return $this->call('list', [$params], ListBucketsResponse::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket. This method replaces the following fields in the
|
||||
* existing bucket with values from the new bucket: retention_periodIf the
|
||||
* retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
||||
* will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
||||
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
|
||||
* the bucket's location cannot be changed. (buckets.patch)
|
||||
*
|
||||
|
@ -170,6 +190,36 @@ class ProjectsLocationsBuckets extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('undelete', [$params], LoggingEmpty::class);
|
||||
}
|
||||
/**
|
||||
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
||||
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
|
||||
* has been created, the bucket's location cannot be changed.
|
||||
* (buckets.updateAsync)
|
||||
*
|
||||
* @param string $name Required. The full resource name of the bucket to update.
|
||||
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
||||
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
|
||||
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
|
||||
* example:"projects/my-project/locations/global/buckets/my-bucket"
|
||||
* @param LogBucket $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask Required. Field mask that specifies the fields
|
||||
* in bucket that need an update. A bucket field will be overwritten if, and
|
||||
* only if, it is in the update mask. name and output only fields cannot be
|
||||
* updated.For a detailed FieldMask definition, see:
|
||||
* https://developers.google.com/protocol-
|
||||
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
|
||||
* updateMask=retention_days
|
||||
* @return Operation
|
||||
*/
|
||||
public function updateAsync($name, LogBucket $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['name' => $name, 'postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateAsync', [$params], Operation::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
79
vendor/google/apiclient-services/src/Logging/UpdateBucketRequest.php
vendored
Normal file
79
vendor/google/apiclient-services/src/Logging/UpdateBucketRequest.php
vendored
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\Logging;
|
||||
|
||||
class UpdateBucketRequest extends \Google\Model
|
||||
{
|
||||
protected $bucketType = LogBucket::class;
|
||||
protected $bucketDataType = '';
|
||||
public $bucket;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $updateMask;
|
||||
|
||||
/**
|
||||
* @param LogBucket
|
||||
*/
|
||||
public function setBucket(LogBucket $bucket)
|
||||
{
|
||||
$this->bucket = $bucket;
|
||||
}
|
||||
/**
|
||||
* @return LogBucket
|
||||
*/
|
||||
public function getBucket()
|
||||
{
|
||||
return $this->bucket;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setUpdateMask($updateMask)
|
||||
{
|
||||
$this->updateMask = $updateMask;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUpdateMask()
|
||||
{
|
||||
return $this->updateMask;
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(UpdateBucketRequest::class, 'Google_Service_Logging_UpdateBucketRequest');
|
|
@ -34,6 +34,10 @@ class HttpCheck extends \Google\Collection
|
|||
* @var string
|
||||
*/
|
||||
public $contentType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $customContentType;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
|
@ -122,6 +126,20 @@ class HttpCheck extends \Google\Collection
|
|||
{
|
||||
return $this->contentType;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public function setCustomContentType($customContentType)
|
||||
{
|
||||
$this->customContentType = $customContentType;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomContentType()
|
||||
{
|
||||
return $this->customContentType;
|
||||
}
|
||||
/**
|
||||
* @param string[]
|
||||
*/
|
||||
|
|
|
@ -141,8 +141,7 @@ class ProjectsLocationsNetworkconnectivityGlobalHubs extends \Google\Service\Res
|
|||
* @opt_param string filter An expression that filters the results listed in the
|
||||
* response.
|
||||
* @opt_param string orderBy Sort the results by a certain order.
|
||||
* @opt_param int pageSize The maximum number of results per page that should be
|
||||
* returned.
|
||||
* @opt_param int pageSize The maximum number of results per page to return.
|
||||
* @opt_param string pageToken The page token.
|
||||
* @return ListHubsResponse
|
||||
*/
|
||||
|
|
|
@ -140,8 +140,7 @@ class ProjectsLocationsSpokes extends \Google\Service\Resource
|
|||
* @opt_param string filter An expression that filters the results listed in the
|
||||
* response.
|
||||
* @opt_param string orderBy Sort the results by a certain order.
|
||||
* @opt_param int pageSize The maximum number of results per page that should be
|
||||
* returned.
|
||||
* @opt_param int pageSize The maximum number of results to return per page.
|
||||
* @opt_param string pageToken The page token.
|
||||
* @return ListSpokesResponse
|
||||
*/
|
||||
|
|
|
@ -24,6 +24,9 @@ class VulnerabilityOccurrence extends \Google\Collection
|
|||
* @var float
|
||||
*/
|
||||
public $cvssScore;
|
||||
protected $cvssV2Type = CVSS::class;
|
||||
protected $cvssV2DataType = '';
|
||||
public $cvssV2;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -76,6 +79,20 @@ class VulnerabilityOccurrence extends \Google\Collection
|
|||
{
|
||||
return $this->cvssScore;
|
||||
}
|
||||
/**
|
||||
* @param CVSS
|
||||
*/
|
||||
public function setCvssV2(CVSS $cvssV2)
|
||||
{
|
||||
$this->cvssV2 = $cvssV2;
|
||||
}
|
||||
/**
|
||||
* @return CVSS
|
||||
*/
|
||||
public function getCvssV2()
|
||||
{
|
||||
return $this->cvssV2;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -20,6 +20,9 @@ namespace Google\Service\PaymentsResellerSubscription;
|
|||
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem extends \Google\Collection
|
||||
{
|
||||
protected $collection_key = 'lineItemPromotionSpecs';
|
||||
protected $amountType = GoogleCloudPaymentsResellerSubscriptionV1Amount::class;
|
||||
protected $amountDataType = '';
|
||||
public $amount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -50,6 +53,20 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem extends \Goo
|
|||
*/
|
||||
public $state;
|
||||
|
||||
/**
|
||||
* @param GoogleCloudPaymentsResellerSubscriptionV1Amount
|
||||
*/
|
||||
public function setAmount(GoogleCloudPaymentsResellerSubscriptionV1Amount $amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
}
|
||||
/**
|
||||
* @return GoogleCloudPaymentsResellerSubscriptionV1Amount
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
|
|
|
@ -118,6 +118,10 @@ class SASPortalTesting extends \Google\Service
|
|||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],'provisionDeployment' => [
|
||||
'path' => 'v1alpha1/customers:provisionDeployment',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => [],
|
||||
],
|
||||
]
|
||||
]
|
||||
|
|
|
@ -19,6 +19,8 @@ namespace Google\Service\SASPortalTesting\Resource;
|
|||
|
||||
use Google\Service\SASPortalTesting\SasPortalCustomer;
|
||||
use Google\Service\SASPortalTesting\SasPortalListCustomersResponse;
|
||||
use Google\Service\SASPortalTesting\SasPortalProvisionDeploymentRequest;
|
||||
use Google\Service\SASPortalTesting\SasPortalProvisionDeploymentResponse;
|
||||
|
||||
/**
|
||||
* The "customers" collection of methods.
|
||||
|
@ -76,6 +78,21 @@ class Customers extends \Google\Service\Resource
|
|||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', [$params], SasPortalCustomer::class);
|
||||
}
|
||||
/**
|
||||
* Creates a new SAS deployment through the GCP workflow. Creates a SAS
|
||||
* organization if an organization match is not found.
|
||||
* (customers.provisionDeployment)
|
||||
*
|
||||
* @param SasPortalProvisionDeploymentRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return SasPortalProvisionDeploymentResponse
|
||||
*/
|
||||
public function provisionDeployment(SasPortalProvisionDeploymentRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('provisionDeployment', [$params], SasPortalProvisionDeploymentResponse::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
|
|
51
vendor/google/apiclient-services/src/SASPortalTesting/Resource/Provisioning.php
vendored
Normal file
51
vendor/google/apiclient-services/src/SASPortalTesting/Resource/Provisioning.php
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\SASPortalTesting\Resource;
|
||||
|
||||
use Google\Service\SASPortalTesting\SasPortalProvisionDeploymentRequest;
|
||||
use Google\Service\SASPortalTesting\SasPortalProvisionDeploymentResponse;
|
||||
|
||||
/**
|
||||
* The "provisioning" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $prod_tt_sasportalService = new Google\Service\SASPortalTesting(...);
|
||||
* $provisioning = $prod_tt_sasportalService->provisioning;
|
||||
* </code>
|
||||
*/
|
||||
class Provisioning extends \Google\Service\Resource
|
||||
{
|
||||
/**
|
||||
* Creates a new SAS deployment through the GCP workflow. Creates a SAS
|
||||
* organization if an organization match is not found.
|
||||
* (provisioning.provisionDeployment)
|
||||
*
|
||||
* @param SasPortalProvisionDeploymentRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return SasPortalProvisionDeploymentResponse
|
||||
*/
|
||||
public function provisionDeployment(SasPortalProvisionDeploymentRequest $postBody, $optParams = [])
|
||||
{
|
||||
$params = ['postBody' => $postBody];
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('provisionDeployment', [$params], SasPortalProvisionDeploymentResponse::class);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(Provisioning::class, 'Google_Service_SASPortalTesting_Resource_Provisioning');
|
25
vendor/google/apiclient-services/src/SASPortalTesting/SasPortalProvisionDeploymentRequest.php
vendored
Normal file
25
vendor/google/apiclient-services/src/SASPortalTesting/SasPortalProvisionDeploymentRequest.php
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
namespace Google\Service\SASPortalTesting;
|
||||
|
||||
class SasPortalProvisionDeploymentRequest extends \Google\Model
|
||||
{
|
||||
}
|
||||
|
||||
// Adding a class alias for backwards compatibility with the previous class name.
|
||||
class_alias(SasPortalProvisionDeploymentRequest::class, 'Google_Service_SASPortalTesting_SasPortalProvisionDeploymentRequest');
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue