Autogenerated update (2017-09-28)

Update:
- appengine_v1
- cloudfunctions_v1beta2
- container_v1
- container_v1beta1
- iam_v1
- logging_v2
This commit is contained in:
Google APIs 2017-09-28 00:36:04 +00:00
parent 104c08fa2a
commit 5ccf545cdd
30 changed files with 5555 additions and 73 deletions

View File

@ -6503,6 +6503,12 @@
"/appengine:v1/BasicScaling": basic_scaling
"/appengine:v1/BasicScaling/idleTimeout": idle_timeout
"/appengine:v1/BasicScaling/maxInstances": max_instances
"/appengine:v1/BatchUpdateIngressRulesRequest": batch_update_ingress_rules_request
"/appengine:v1/BatchUpdateIngressRulesRequest/ingressRules": ingress_rules
"/appengine:v1/BatchUpdateIngressRulesRequest/ingressRules/ingress_rule": ingress_rule
"/appengine:v1/BatchUpdateIngressRulesResponse": batch_update_ingress_rules_response
"/appengine:v1/BatchUpdateIngressRulesResponse/ingressRules": ingress_rules
"/appengine:v1/BatchUpdateIngressRulesResponse/ingressRules/ingress_rule": ingress_rule
"/appengine:v1/CertificateRawData": certificate_raw_data
"/appengine:v1/CertificateRawData/privateKey": private_key
"/appengine:v1/CertificateRawData/publicCertificate": public_certificate
@ -6543,6 +6549,11 @@
"/appengine:v1/FileInfo/mimeType": mime_type
"/appengine:v1/FileInfo/sha1Sum": sha1_sum
"/appengine:v1/FileInfo/sourceUrl": source_url
"/appengine:v1/FirewallRule": firewall_rule
"/appengine:v1/FirewallRule/action": action
"/appengine:v1/FirewallRule/description": description
"/appengine:v1/FirewallRule/priority": priority
"/appengine:v1/FirewallRule/sourceRange": source_range
"/appengine:v1/HealthCheck": health_check
"/appengine:v1/HealthCheck/checkInterval": check_interval
"/appengine:v1/HealthCheck/disableHealthCheck": disable_health_check
@ -6588,6 +6599,10 @@
"/appengine:v1/ListDomainMappingsResponse/domainMappings": domain_mappings
"/appengine:v1/ListDomainMappingsResponse/domainMappings/domain_mapping": domain_mapping
"/appengine:v1/ListDomainMappingsResponse/nextPageToken": next_page_token
"/appengine:v1/ListIngressRulesResponse": list_ingress_rules_response
"/appengine:v1/ListIngressRulesResponse/ingressRules": ingress_rules
"/appengine:v1/ListIngressRulesResponse/ingressRules/ingress_rule": ingress_rule
"/appengine:v1/ListIngressRulesResponse/nextPageToken": next_page_token
"/appengine:v1/ListInstancesResponse": list_instances_response
"/appengine:v1/ListInstancesResponse/instances": instances
"/appengine:v1/ListInstancesResponse/instances/instance": instance
@ -6840,6 +6855,25 @@
"/appengine:v1/appengine.apps.domainMappings.patch/appsId": apps_id
"/appengine:v1/appengine.apps.domainMappings.patch/domainMappingsId": domain_mappings_id
"/appengine:v1/appengine.apps.domainMappings.patch/updateMask": update_mask
"/appengine:v1/appengine.apps.firewall.ingressRules.batchUpdate": batch_update_ingress_rules
"/appengine:v1/appengine.apps.firewall.ingressRules.batchUpdate/appsId": apps_id
"/appengine:v1/appengine.apps.firewall.ingressRules.create": create_app_firewall_ingress_rule
"/appengine:v1/appengine.apps.firewall.ingressRules.create/appsId": apps_id
"/appengine:v1/appengine.apps.firewall.ingressRules.delete": delete_app_firewall_ingress_rule
"/appengine:v1/appengine.apps.firewall.ingressRules.delete/appsId": apps_id
"/appengine:v1/appengine.apps.firewall.ingressRules.delete/ingressRulesId": ingress_rules_id
"/appengine:v1/appengine.apps.firewall.ingressRules.get": get_app_firewall_ingress_rule
"/appengine:v1/appengine.apps.firewall.ingressRules.get/appsId": apps_id
"/appengine:v1/appengine.apps.firewall.ingressRules.get/ingressRulesId": ingress_rules_id
"/appengine:v1/appengine.apps.firewall.ingressRules.list": list_app_firewall_ingress_rules
"/appengine:v1/appengine.apps.firewall.ingressRules.list/appsId": apps_id
"/appengine:v1/appengine.apps.firewall.ingressRules.list/matchingAddress": matching_address
"/appengine:v1/appengine.apps.firewall.ingressRules.list/pageSize": page_size
"/appengine:v1/appengine.apps.firewall.ingressRules.list/pageToken": page_token
"/appengine:v1/appengine.apps.firewall.ingressRules.patch": patch_app_firewall_ingress_rule
"/appengine:v1/appengine.apps.firewall.ingressRules.patch/appsId": apps_id
"/appengine:v1/appengine.apps.firewall.ingressRules.patch/ingressRulesId": ingress_rules_id
"/appengine:v1/appengine.apps.firewall.ingressRules.patch/updateMask": update_mask
"/appengine:v1/appengine.apps.get": get_app
"/appengine:v1/appengine.apps.get/appsId": apps_id
"/appengine:v1/appengine.apps.locations.get": get_app_location
@ -12390,6 +12424,332 @@
"/cloudfunctions:v1beta2/fields": fields
"/cloudfunctions:v1beta2/key": key
"/cloudfunctions:v1beta2/quotaUser": quota_user
"/cloudiot:v1/AuditConfig": audit_config
"/cloudiot:v1/AuditConfig/auditLogConfigs": audit_log_configs
"/cloudiot:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
"/cloudiot:v1/AuditConfig/exemptedMembers": exempted_members
"/cloudiot:v1/AuditConfig/exemptedMembers/exempted_member": exempted_member
"/cloudiot:v1/AuditConfig/service": service
"/cloudiot:v1/AuditLogConfig": audit_log_config
"/cloudiot:v1/AuditLogConfig/exemptedMembers": exempted_members
"/cloudiot:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
"/cloudiot:v1/AuditLogConfig/logType": log_type
"/cloudiot:v1/Binding": binding
"/cloudiot:v1/Binding/condition": condition
"/cloudiot:v1/Binding/members": members
"/cloudiot:v1/Binding/members/member": member
"/cloudiot:v1/Binding/role": role
"/cloudiot:v1/Device": device
"/cloudiot:v1/Device/blocked": blocked
"/cloudiot:v1/Device/config": config
"/cloudiot:v1/Device/credentials": credentials
"/cloudiot:v1/Device/credentials/credential": credential
"/cloudiot:v1/Device/id": id
"/cloudiot:v1/Device/lastConfigAckTime": last_config_ack_time
"/cloudiot:v1/Device/lastConfigSendTime": last_config_send_time
"/cloudiot:v1/Device/lastErrorStatus": last_error_status
"/cloudiot:v1/Device/lastErrorTime": last_error_time
"/cloudiot:v1/Device/lastEventTime": last_event_time
"/cloudiot:v1/Device/lastHeartbeatTime": last_heartbeat_time
"/cloudiot:v1/Device/lastStateTime": last_state_time
"/cloudiot:v1/Device/metadata": metadata
"/cloudiot:v1/Device/metadata/metadatum": metadatum
"/cloudiot:v1/Device/name": name
"/cloudiot:v1/Device/numId": num_id
"/cloudiot:v1/Device/state": state
"/cloudiot:v1/DeviceConfig": device_config
"/cloudiot:v1/DeviceConfig/binaryData": binary_data
"/cloudiot:v1/DeviceConfig/cloudUpdateTime": cloud_update_time
"/cloudiot:v1/DeviceConfig/deviceAckTime": device_ack_time
"/cloudiot:v1/DeviceConfig/version": version
"/cloudiot:v1/DeviceCredential": device_credential
"/cloudiot:v1/DeviceCredential/expirationTime": expiration_time
"/cloudiot:v1/DeviceCredential/publicKey": public_key
"/cloudiot:v1/DeviceRegistry": device_registry
"/cloudiot:v1/DeviceRegistry/credentials": credentials
"/cloudiot:v1/DeviceRegistry/credentials/credential": credential
"/cloudiot:v1/DeviceRegistry/eventNotificationConfigs": event_notification_configs
"/cloudiot:v1/DeviceRegistry/eventNotificationConfigs/event_notification_config": event_notification_config
"/cloudiot:v1/DeviceRegistry/httpConfig": http_config
"/cloudiot:v1/DeviceRegistry/id": id
"/cloudiot:v1/DeviceRegistry/mqttConfig": mqtt_config
"/cloudiot:v1/DeviceRegistry/name": name
"/cloudiot:v1/DeviceRegistry/stateNotificationConfig": state_notification_config
"/cloudiot:v1/DeviceState": device_state
"/cloudiot:v1/DeviceState/binaryData": binary_data
"/cloudiot:v1/DeviceState/updateTime": update_time
"/cloudiot:v1/Empty": empty
"/cloudiot:v1/EventNotificationConfig": event_notification_config
"/cloudiot:v1/EventNotificationConfig/pubsubTopicName": pubsub_topic_name
"/cloudiot:v1/Expr": expr
"/cloudiot:v1/Expr/description": description
"/cloudiot:v1/Expr/expression": expression
"/cloudiot:v1/Expr/location": location
"/cloudiot:v1/Expr/title": title
"/cloudiot:v1/GetIamPolicyRequest": get_iam_policy_request
"/cloudiot:v1/HttpConfig": http_config
"/cloudiot:v1/HttpConfig/httpEnabledState": http_enabled_state
"/cloudiot:v1/ListDeviceConfigVersionsResponse": list_device_config_versions_response
"/cloudiot:v1/ListDeviceConfigVersionsResponse/deviceConfigs": device_configs
"/cloudiot:v1/ListDeviceConfigVersionsResponse/deviceConfigs/device_config": device_config
"/cloudiot:v1/ListDeviceRegistriesResponse": list_device_registries_response
"/cloudiot:v1/ListDeviceRegistriesResponse/deviceRegistries": device_registries
"/cloudiot:v1/ListDeviceRegistriesResponse/deviceRegistries/device_registry": device_registry
"/cloudiot:v1/ListDeviceRegistriesResponse/nextPageToken": next_page_token
"/cloudiot:v1/ListDeviceStatesResponse": list_device_states_response
"/cloudiot:v1/ListDeviceStatesResponse/deviceStates": device_states
"/cloudiot:v1/ListDeviceStatesResponse/deviceStates/device_state": device_state
"/cloudiot:v1/ListDevicesResponse": list_devices_response
"/cloudiot:v1/ListDevicesResponse/devices": devices
"/cloudiot:v1/ListDevicesResponse/devices/device": device
"/cloudiot:v1/ListDevicesResponse/nextPageToken": next_page_token
"/cloudiot:v1/ModifyCloudToDeviceConfigRequest": modify_cloud_to_device_config_request
"/cloudiot:v1/ModifyCloudToDeviceConfigRequest/binaryData": binary_data
"/cloudiot:v1/ModifyCloudToDeviceConfigRequest/versionToUpdate": version_to_update
"/cloudiot:v1/MqttConfig": mqtt_config
"/cloudiot:v1/MqttConfig/mqttEnabledState": mqtt_enabled_state
"/cloudiot:v1/Policy": policy
"/cloudiot:v1/Policy/auditConfigs": audit_configs
"/cloudiot:v1/Policy/auditConfigs/audit_config": audit_config
"/cloudiot:v1/Policy/bindings": bindings
"/cloudiot:v1/Policy/bindings/binding": binding
"/cloudiot:v1/Policy/etag": etag
"/cloudiot:v1/Policy/iamOwned": iam_owned
"/cloudiot:v1/Policy/version": version
"/cloudiot:v1/PublicKeyCertificate": public_key_certificate
"/cloudiot:v1/PublicKeyCertificate/certificate": certificate
"/cloudiot:v1/PublicKeyCertificate/format": format
"/cloudiot:v1/PublicKeyCertificate/x509Details": x509_details
"/cloudiot:v1/PublicKeyCredential": public_key_credential
"/cloudiot:v1/PublicKeyCredential/format": format
"/cloudiot:v1/PublicKeyCredential/key": key
"/cloudiot:v1/RegistryCredential": registry_credential
"/cloudiot:v1/RegistryCredential/publicKeyCertificate": public_key_certificate
"/cloudiot:v1/SetIamPolicyRequest": set_iam_policy_request
"/cloudiot:v1/SetIamPolicyRequest/policy": policy
"/cloudiot:v1/SetIamPolicyRequest/updateMask": update_mask
"/cloudiot:v1/StateNotificationConfig": state_notification_config
"/cloudiot:v1/StateNotificationConfig/pubsubTopicName": pubsub_topic_name
"/cloudiot:v1/Status": status
"/cloudiot:v1/Status/code": code
"/cloudiot:v1/Status/details": details
"/cloudiot:v1/Status/details/detail": detail
"/cloudiot:v1/Status/details/detail/detail": detail
"/cloudiot:v1/Status/message": message
"/cloudiot:v1/TestIamPermissionsRequest": test_iam_permissions_request
"/cloudiot:v1/TestIamPermissionsRequest/permissions": permissions
"/cloudiot:v1/TestIamPermissionsRequest/permissions/permission": permission
"/cloudiot:v1/TestIamPermissionsResponse": test_iam_permissions_response
"/cloudiot:v1/TestIamPermissionsResponse/permissions": permissions
"/cloudiot:v1/TestIamPermissionsResponse/permissions/permission": permission
"/cloudiot:v1/X509CertificateDetails": x509_certificate_details
"/cloudiot:v1/X509CertificateDetails/expiryTime": expiry_time
"/cloudiot:v1/X509CertificateDetails/issuer": issuer
"/cloudiot:v1/X509CertificateDetails/publicKeyType": public_key_type
"/cloudiot:v1/X509CertificateDetails/signatureAlgorithm": signature_algorithm
"/cloudiot:v1/X509CertificateDetails/startTime": start_time
"/cloudiot:v1/X509CertificateDetails/subject": subject
"/cloudiot:v1/cloudiot.projects.locations.registries.create": create_project_location_registry
"/cloudiot:v1/cloudiot.projects.locations.registries.create/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.delete": delete_project_location_registry
"/cloudiot:v1/cloudiot.projects.locations.registries.delete/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.configVersions.list": list_project_location_registry_device_config_versions
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.configVersions.list/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.configVersions.list/numVersions": num_versions
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.create": create_project_location_registry_device
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.create/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.delete": delete_project_location_registry_device
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.delete/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.get": get_project_location_registry_device
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.get/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list": list_project_location_registry_devices
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceIds": device_ids
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceNumIds": device_num_ids
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/fieldMask": field_mask
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageSize": page_size
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageToken": page_token
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.modifyCloudToDeviceConfig": modify_cloud_to_device_config
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.modifyCloudToDeviceConfig/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.patch": patch_project_location_registry_device
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.patch/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.patch/updateMask": update_mask
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.states.list": list_project_location_registry_device_states
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.states.list/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.states.list/numStates": num_states
"/cloudiot:v1/cloudiot.projects.locations.registries.get": get_project_location_registry
"/cloudiot:v1/cloudiot.projects.locations.registries.get/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.getIamPolicy": get_registry_iam_policy
"/cloudiot:v1/cloudiot.projects.locations.registries.getIamPolicy/resource": resource
"/cloudiot:v1/cloudiot.projects.locations.registries.list": list_project_location_registries
"/cloudiot:v1/cloudiot.projects.locations.registries.list/pageSize": page_size
"/cloudiot:v1/cloudiot.projects.locations.registries.list/pageToken": page_token
"/cloudiot:v1/cloudiot.projects.locations.registries.list/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.patch": patch_project_location_registry
"/cloudiot:v1/cloudiot.projects.locations.registries.patch/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.patch/updateMask": update_mask
"/cloudiot:v1/cloudiot.projects.locations.registries.setIamPolicy": set_registry_iam_policy
"/cloudiot:v1/cloudiot.projects.locations.registries.setIamPolicy/resource": resource
"/cloudiot:v1/cloudiot.projects.locations.registries.testIamPermissions": test_registry_iam_permissions
"/cloudiot:v1/cloudiot.projects.locations.registries.testIamPermissions/resource": resource
"/cloudiot:v1/fields": fields
"/cloudiot:v1/key": key
"/cloudiot:v1/quotaUser": quota_user
"/cloudiot:v1beta1/AuditConfig": audit_config
"/cloudiot:v1beta1/AuditConfig/auditLogConfigs": audit_log_configs
"/cloudiot:v1beta1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
"/cloudiot:v1beta1/AuditConfig/exemptedMembers": exempted_members
"/cloudiot:v1beta1/AuditConfig/exemptedMembers/exempted_member": exempted_member
"/cloudiot:v1beta1/AuditConfig/service": service
"/cloudiot:v1beta1/AuditLogConfig": audit_log_config
"/cloudiot:v1beta1/AuditLogConfig/exemptedMembers": exempted_members
"/cloudiot:v1beta1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
"/cloudiot:v1beta1/AuditLogConfig/logType": log_type
"/cloudiot:v1beta1/Binding": binding
"/cloudiot:v1beta1/Binding/condition": condition
"/cloudiot:v1beta1/Binding/members": members
"/cloudiot:v1beta1/Binding/members/member": member
"/cloudiot:v1beta1/Binding/role": role
"/cloudiot:v1beta1/Device": device
"/cloudiot:v1beta1/Device/config": config
"/cloudiot:v1beta1/Device/credentials": credentials
"/cloudiot:v1beta1/Device/credentials/credential": credential
"/cloudiot:v1beta1/Device/enabledState": enabled_state
"/cloudiot:v1beta1/Device/id": id
"/cloudiot:v1beta1/Device/lastConfigAckTime": last_config_ack_time
"/cloudiot:v1beta1/Device/lastErrorStatus": last_error_status
"/cloudiot:v1beta1/Device/lastErrorTime": last_error_time
"/cloudiot:v1beta1/Device/lastEventTime": last_event_time
"/cloudiot:v1beta1/Device/lastHeartbeatTime": last_heartbeat_time
"/cloudiot:v1beta1/Device/name": name
"/cloudiot:v1beta1/Device/numId": num_id
"/cloudiot:v1beta1/DeviceConfig": device_config
"/cloudiot:v1beta1/DeviceConfig/cloudUpdateTime": cloud_update_time
"/cloudiot:v1beta1/DeviceConfig/data": data
"/cloudiot:v1beta1/DeviceConfig/deviceAckTime": device_ack_time
"/cloudiot:v1beta1/DeviceConfig/version": version
"/cloudiot:v1beta1/DeviceConfigData": device_config_data
"/cloudiot:v1beta1/DeviceConfigData/binaryData": binary_data
"/cloudiot:v1beta1/DeviceCredential": device_credential
"/cloudiot:v1beta1/DeviceCredential/expirationTime": expiration_time
"/cloudiot:v1beta1/DeviceCredential/publicKey": public_key
"/cloudiot:v1beta1/DeviceRegistry": device_registry
"/cloudiot:v1beta1/DeviceRegistry/eventNotificationConfig": event_notification_config
"/cloudiot:v1beta1/DeviceRegistry/id": id
"/cloudiot:v1beta1/DeviceRegistry/mqttConfig": mqtt_config
"/cloudiot:v1beta1/DeviceRegistry/name": name
"/cloudiot:v1beta1/Empty": empty
"/cloudiot:v1beta1/Expr": expr
"/cloudiot:v1beta1/Expr/description": description
"/cloudiot:v1beta1/Expr/expression": expression
"/cloudiot:v1beta1/Expr/location": location
"/cloudiot:v1beta1/Expr/title": title
"/cloudiot:v1beta1/GetIamPolicyRequest": get_iam_policy_request
"/cloudiot:v1beta1/HttpDeviceConfig": http_device_config
"/cloudiot:v1beta1/HttpDeviceConfig/binaryData": binary_data
"/cloudiot:v1beta1/HttpDeviceConfig/version": version
"/cloudiot:v1beta1/HttpDeviceState": http_device_state
"/cloudiot:v1beta1/HttpDeviceState/binaryData": binary_data
"/cloudiot:v1beta1/HttpPublishEventRequest": http_publish_event_request
"/cloudiot:v1beta1/HttpPublishEventRequest/binaryData": binary_data
"/cloudiot:v1beta1/HttpPublishEventRequest/subFolder": sub_folder
"/cloudiot:v1beta1/HttpPublishEventResponse": http_publish_event_response
"/cloudiot:v1beta1/HttpSetDeviceStateRequest": http_set_device_state_request
"/cloudiot:v1beta1/HttpSetDeviceStateRequest/state": state
"/cloudiot:v1beta1/ListDeviceConfigVersionsResponse": list_device_config_versions_response
"/cloudiot:v1beta1/ListDeviceConfigVersionsResponse/deviceConfigs": device_configs
"/cloudiot:v1beta1/ListDeviceConfigVersionsResponse/deviceConfigs/device_config": device_config
"/cloudiot:v1beta1/ListDeviceRegistriesResponse": list_device_registries_response
"/cloudiot:v1beta1/ListDeviceRegistriesResponse/deviceRegistries": device_registries
"/cloudiot:v1beta1/ListDeviceRegistriesResponse/deviceRegistries/device_registry": device_registry
"/cloudiot:v1beta1/ListDeviceRegistriesResponse/nextPageToken": next_page_token
"/cloudiot:v1beta1/ListDevicesResponse": list_devices_response
"/cloudiot:v1beta1/ListDevicesResponse/devices": devices
"/cloudiot:v1beta1/ListDevicesResponse/devices/device": device
"/cloudiot:v1beta1/ListDevicesResponse/nextPageToken": next_page_token
"/cloudiot:v1beta1/ModifyCloudToDeviceConfigRequest": modify_cloud_to_device_config_request
"/cloudiot:v1beta1/ModifyCloudToDeviceConfigRequest/data": data
"/cloudiot:v1beta1/ModifyCloudToDeviceConfigRequest/versionToUpdate": version_to_update
"/cloudiot:v1beta1/MqttConfig": mqtt_config
"/cloudiot:v1beta1/MqttConfig/mqttConfigState": mqtt_config_state
"/cloudiot:v1beta1/NotificationConfig": notification_config
"/cloudiot:v1beta1/NotificationConfig/pubsubTopicName": pubsub_topic_name
"/cloudiot:v1beta1/Policy": policy
"/cloudiot:v1beta1/Policy/auditConfigs": audit_configs
"/cloudiot:v1beta1/Policy/auditConfigs/audit_config": audit_config
"/cloudiot:v1beta1/Policy/bindings": bindings
"/cloudiot:v1beta1/Policy/bindings/binding": binding
"/cloudiot:v1beta1/Policy/etag": etag
"/cloudiot:v1beta1/Policy/iamOwned": iam_owned
"/cloudiot:v1beta1/Policy/version": version
"/cloudiot:v1beta1/PublicKeyCredential": public_key_credential
"/cloudiot:v1beta1/PublicKeyCredential/format": format
"/cloudiot:v1beta1/PublicKeyCredential/key": key
"/cloudiot:v1beta1/SetIamPolicyRequest": set_iam_policy_request
"/cloudiot:v1beta1/SetIamPolicyRequest/policy": policy
"/cloudiot:v1beta1/SetIamPolicyRequest/updateMask": update_mask
"/cloudiot:v1beta1/Status": status
"/cloudiot:v1beta1/Status/code": code
"/cloudiot:v1beta1/Status/details": details
"/cloudiot:v1beta1/Status/details/detail": detail
"/cloudiot:v1beta1/Status/details/detail/detail": detail
"/cloudiot:v1beta1/Status/message": message
"/cloudiot:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request
"/cloudiot:v1beta1/TestIamPermissionsRequest/permissions": permissions
"/cloudiot:v1beta1/TestIamPermissionsRequest/permissions/permission": permission
"/cloudiot:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response
"/cloudiot:v1beta1/TestIamPermissionsResponse/permissions": permissions
"/cloudiot:v1beta1/TestIamPermissionsResponse/permissions/permission": permission
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.create": create_project_location_registry
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.create/parent": parent
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.delete": delete_project_location_registry
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.delete/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.configVersions.list": list_project_location_registry_device_config_versions
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.configVersions.list/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.configVersions.list/numVersions": num_versions
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.create": create_project_location_registry_device
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.create/parent": parent
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.delete": delete_project_location_registry_device
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.delete/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.get": get_project_location_registry_device
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.get/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.getConfig": get_project_location_registry_device_config
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.getConfig/localVersion": local_version
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.getConfig/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.list": list_project_location_registry_devices
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.list/deviceIds": device_ids
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.list/deviceNumIds": device_num_ids
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.list/fieldMask": field_mask
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.list/pageSize": page_size
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.list/pageToken": page_token
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.list/parent": parent
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.modifyCloudToDeviceConfig": modify_cloud_to_device_config
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.modifyCloudToDeviceConfig/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.patch": patch_project_location_registry_device
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.patch/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.patch/updateMask": update_mask
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.publishEvent": publish_project_location_registry_device_event
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.publishEvent/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.setState": set_project_location_registry_device_state
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.devices.setState/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.get": get_project_location_registry
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.get/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.getIamPolicy": get_registry_iam_policy
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.getIamPolicy/resource": resource
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.list": list_project_location_registries
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.list/pageSize": page_size
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.list/pageToken": page_token
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.list/parent": parent
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.patch": patch_project_location_registry
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.patch/name": name
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.patch/updateMask": update_mask
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.setIamPolicy": set_registry_iam_policy
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.setIamPolicy/resource": resource
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.testIamPermissions": test_registry_iam_permissions
"/cloudiot:v1beta1/cloudiot.projects.locations.registries.testIamPermissions/resource": resource
"/cloudiot:v1beta1/fields": fields
"/cloudiot:v1beta1/key": key
"/cloudiot:v1beta1/quotaUser": quota_user
"/cloudkms:v1/AuditConfig": audit_config
"/cloudkms:v1/AuditConfig/auditLogConfigs": audit_log_configs
"/cloudkms:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
@ -26868,6 +27228,7 @@
"/container:v1/AddonsConfig/horizontalPodAutoscaling": horizontal_pod_autoscaling
"/container:v1/AddonsConfig/httpLoadBalancing": http_load_balancing
"/container:v1/AddonsConfig/kubernetesDashboard": kubernetes_dashboard
"/container:v1/AddonsConfig/networkPolicyConfig": network_policy_config
"/container:v1/AutoUpgradeOptions": auto_upgrade_options
"/container:v1/AutoUpgradeOptions/autoUpgradeStartTime": auto_upgrade_start_time
"/container:v1/AutoUpgradeOptions/description": description
@ -26988,6 +27349,8 @@
"/container:v1/NetworkPolicy": network_policy
"/container:v1/NetworkPolicy/enabled": enabled
"/container:v1/NetworkPolicy/provider": provider
"/container:v1/NetworkPolicyConfig": network_policy_config
"/container:v1/NetworkPolicyConfig/disabled": disabled
"/container:v1/NodeConfig": node_config
"/container:v1/NodeConfig/accelerators": accelerators
"/container:v1/NodeConfig/accelerators/accelerator": accelerator
@ -27219,6 +27582,7 @@
"/container:v1beta1/AddonsConfig/horizontalPodAutoscaling": horizontal_pod_autoscaling
"/container:v1beta1/AddonsConfig/httpLoadBalancing": http_load_balancing
"/container:v1beta1/AddonsConfig/kubernetesDashboard": kubernetes_dashboard
"/container:v1beta1/AddonsConfig/networkPolicyConfig": network_policy_config
"/container:v1beta1/AutoUpgradeOptions": auto_upgrade_options
"/container:v1beta1/AutoUpgradeOptions/autoUpgradeStartTime": auto_upgrade_start_time
"/container:v1beta1/AutoUpgradeOptions/description": description
@ -27349,6 +27713,8 @@
"/container:v1beta1/NetworkPolicy": network_policy
"/container:v1beta1/NetworkPolicy/enabled": enabled
"/container:v1beta1/NetworkPolicy/provider": provider
"/container:v1beta1/NetworkPolicyConfig": network_policy_config
"/container:v1beta1/NetworkPolicyConfig/disabled": disabled
"/container:v1beta1/NodeConfig": node_config
"/container:v1beta1/NodeConfig/accelerators": accelerators
"/container:v1beta1/NodeConfig/accelerators/accelerator": accelerator

View File

@ -50,7 +50,7 @@ module Google
def initialize
super('https://www.googleapis.com/', 'analytics/v3/')
@batch_path = 'batch/analytics/v3'
@batch_path = 'batch'
end
# Returns Analytics data for a view (profile).

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20170901'
REVISION = '20170926'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -420,6 +420,44 @@ module Google
end
end
# Request message for Firewall.BatchUpdateIngressRules.
class BatchUpdateIngressRulesRequest
include Google::Apis::Core::Hashable
# A list of FirewallRules to replace the existing set.
# Corresponds to the JSON property `ingressRules`
# @return [Array<Google::Apis::AppengineV1::FirewallRule>]
attr_accessor :ingress_rules
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ingress_rules = args[:ingress_rules] if args.key?(:ingress_rules)
end
end
# Response message for Firewall.UpdateAllIngressRules.
class BatchUpdateIngressRulesResponse
include Google::Apis::Core::Hashable
# The full list of ingress FirewallRules for this application.
# Corresponds to the JSON property `ingressRules`
# @return [Array<Google::Apis::AppengineV1::FirewallRule>]
attr_accessor :ingress_rules
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ingress_rules = args[:ingress_rules] if args.key?(:ingress_rules)
end
end
# An SSL certificate obtained from a certificate authority.
class CertificateRawData
include Google::Apis::Core::Hashable
@ -772,6 +810,54 @@ module Google
end
end
# A single firewall rule that is evaluated against incoming traffic and provides
# an action to take on matched requests.
class FirewallRule
include Google::Apis::Core::Hashable
# The action to take on matched requests.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# An optional string description of this rule. This field has a maximum length
# of 100 characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A positive integer between 1, Int32.MaxValue-1 that defines the order of rule
# evaluation. Rules with the lowest priority are evaluated first.A default rule
# at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous
# rule matches. Only the action of this rule can be modified by the user.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
# IP address or range, defined using CIDR notation, of requests that this rule
# applies to. You can use the wildcard character "*" to match all IPs equivalent
# to "0/0" and "::/0" together. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001:
# db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334.<p>Truncation will be
# silently performed on addresses which are not properly truncated. For example,
# 1.2.3.4/24 is accepted as the same address as 1.2.3.0/24. Similarly, for IPv6,
# 2001:db8::1/32 is accepted as the same address as 2001:db8::/32.
# Corresponds to the JSON property `sourceRange`
# @return [String]
attr_accessor :source_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@description = args[:description] if args.key?(:description)
@priority = args[:priority] if args.key?(:priority)
@source_range = args[:source_range] if args.key?(:source_range)
end
end
# Health checking configuration for VM instances. Unhealthy instances are killed
# and replaced with new instances. Only applicable for instances in App Engine
# flexible environment.
@ -1094,6 +1180,31 @@ module Google
end
end
# Response message for Firewall.ListIngressRules.
class ListIngressRulesResponse
include Google::Apis::Core::Hashable
# The ingress FirewallRules for this application.
# Corresponds to the JSON property `ingressRules`
# @return [Array<Google::Apis::AppengineV1::FirewallRule>]
attr_accessor :ingress_rules
# Continuation token for fetching the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ingress_rules = args[:ingress_rules] if args.key?(:ingress_rules)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for Instances.ListInstances.
class ListInstancesResponse
include Google::Apis::Core::Hashable

View File

@ -64,6 +64,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BatchUpdateIngressRulesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchUpdateIngressRulesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CertificateRawData
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,6 +148,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FirewallRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,6 +196,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListIngressRulesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -475,6 +499,22 @@ module Google
end
end
class BatchUpdateIngressRulesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ingress_rules, as: 'ingressRules', class: Google::Apis::AppengineV1::FirewallRule, decorator: Google::Apis::AppengineV1::FirewallRule::Representation
end
end
class BatchUpdateIngressRulesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ingress_rules, as: 'ingressRules', class: Google::Apis::AppengineV1::FirewallRule, decorator: Google::Apis::AppengineV1::FirewallRule::Representation
end
end
class CertificateRawData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -578,6 +618,16 @@ module Google
end
end
class FirewallRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :description, as: 'description'
property :priority, as: 'priority'
property :source_range, as: 'sourceRange'
end
end
class HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -658,6 +708,15 @@ module Google
end
end
class ListIngressRulesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ingress_rules, as: 'ingressRules', class: Google::Apis::AppengineV1::FirewallRule, decorator: Google::Apis::AppengineV1::FirewallRule::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -597,6 +597,226 @@ module Google
execute_or_queue_command(command, &block)
end
# Replaces the entire firewall ruleset in one bulk operation. This overrides and
# replaces the rules of an existing firewall with the new rules.If the final
# rule does not match traffic with the '*' wildcard IP range, then an "allow all"
# rule is explicitly added to the end of the list.
# @param [String] apps_id
# Part of `name`. Name of the Firewall collection to set. Example: apps/myapp/
# firewall/ingressRules.
# @param [Google::Apis::AppengineV1::BatchUpdateIngressRulesRequest] batch_update_ingress_rules_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::BatchUpdateIngressRulesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::BatchUpdateIngressRulesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_update_ingress_rules(apps_id, batch_update_ingress_rules_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}/firewall/ingressRules:batchUpdate', options)
command.request_representation = Google::Apis::AppengineV1::BatchUpdateIngressRulesRequest::Representation
command.request_object = batch_update_ingress_rules_request_object
command.response_representation = Google::Apis::AppengineV1::BatchUpdateIngressRulesResponse::Representation
command.response_class = Google::Apis::AppengineV1::BatchUpdateIngressRulesResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a firewall rule for the application.
# @param [String] apps_id
# Part of `parent`. Name of the parent Firewall collection in which to create a
# new rule. Example: apps/myapp/firewall/ingressRules.
# @param [Google::Apis::AppengineV1::FirewallRule] firewall_rule_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::FirewallRule] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::FirewallRule]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_app_firewall_ingress_rule(apps_id, firewall_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}/firewall/ingressRules', options)
command.request_representation = Google::Apis::AppengineV1::FirewallRule::Representation
command.request_object = firewall_rule_object
command.response_representation = Google::Apis::AppengineV1::FirewallRule::Representation
command.response_class = Google::Apis::AppengineV1::FirewallRule
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified firewall rule.
# @param [String] apps_id
# Part of `name`. Name of the Firewall resource to delete. Example: apps/myapp/
# firewall/ingressRules/100.
# @param [String] ingress_rules_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_app_firewall_ingress_rule(apps_id, ingress_rules_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}', options)
command.response_representation = Google::Apis::AppengineV1::Empty::Representation
command.response_class = Google::Apis::AppengineV1::Empty
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['ingressRulesId'] = ingress_rules_id unless ingress_rules_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the specified firewall rule.
# @param [String] apps_id
# Part of `name`. Name of the Firewall resource to retrieve. Example: apps/myapp/
# firewall/ingressRules/100.
# @param [String] ingress_rules_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::FirewallRule] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::FirewallRule]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_firewall_ingress_rule(apps_id, ingress_rules_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}', options)
command.response_representation = Google::Apis::AppengineV1::FirewallRule::Representation
command.response_class = Google::Apis::AppengineV1::FirewallRule
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['ingressRulesId'] = ingress_rules_id unless ingress_rules_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the firewall rules of an application.
# @param [String] apps_id
# Part of `parent`. Name of the Firewall collection to retrieve. Example: apps/
# myapp/firewall/ingressRules.
# @param [String] matching_address
# A valid IP Address. If set, only rules matching this address will be returned.
# The first returned rule will be the rule that fires on requests from this IP.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::ListIngressRulesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListIngressRulesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_app_firewall_ingress_rules(apps_id, matching_address: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/firewall/ingressRules', options)
command.response_representation = Google::Apis::AppengineV1::ListIngressRulesResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListIngressRulesResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['matchingAddress'] = matching_address unless matching_address.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the specified firewall rule.
# @param [String] apps_id
# Part of `name`. Name of the Firewall resource to update. Example: apps/myapp/
# firewall/ingressRules/100.
# @param [String] ingress_rules_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1::FirewallRule] firewall_rule_object
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::FirewallRule] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::FirewallRule]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_app_firewall_ingress_rule(apps_id, ingress_rules_id, firewall_rule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}', options)
command.request_representation = Google::Apis::AppengineV1::FirewallRule::Representation
command.request_object = firewall_rule_object
command.response_representation = Google::Apis::AppengineV1::FirewallRule::Representation
command.response_class = Google::Apis::AppengineV1::FirewallRule
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['ingressRulesId'] = ingress_rules_id unless ingress_rules_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get information about a location.
# @param [String] apps_id
# Part of `name`. Resource name for the location.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions
module CloudfunctionsV1beta2
VERSION = 'V1beta2'
REVISION = '20170914'
REVISION = '20170926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -146,11 +146,11 @@ module Google
# To refer to a specific commit:
# `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
# To refer to a moveable alias (branch):
# `https://source.developers.google.com/projects/*/repos/*/aliases/movable/*/
# `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/
# paths/*`
# In particular, to refer to HEAD use `master` moveable alias.
# To refer to a specific fixed alias (tag):
# `https://source.developers.google.com/projects/*/repos/*/aliases/fixed/*/paths/
# `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/
# *`
# You may omit `paths/*` if you want to use the main directory.
# Corresponds to the JSON property `sourceRepositoryUrl`
@ -217,7 +217,7 @@ module Google
# Handle an object changing in Google Cloud Storage
# `providers/cloud.storage/eventTypes/object.change`
# Handle a write to the Firebase Realtime Database
# `providers/firebase.database/eventTypes/data.write`
# `providers/google.firebase.database/eventTypes/ref.write`
# Corresponds to the JSON property `eventType`
# @return [String]
attr_accessor :event_type

View File

@ -0,0 +1,38 @@
# Copyright 2015 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.
require 'google/apis/cloudiot_v1/service.rb'
require 'google/apis/cloudiot_v1/classes.rb'
require 'google/apis/cloudiot_v1/representations.rb'
module Google
module Apis
# Google Cloud IoT API
#
# Registers and manages IoT (Internet of Things) devices that connect to the
# Google Cloud Platform.
#
# @see https://cloud.google.com/iot
module CloudiotV1
VERSION = 'V1'
REVISION = '20170922'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Register and manage devices in the Google Cloud IoT service
AUTH_CLOUDIOT = 'https://www.googleapis.com/auth/cloudiot'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,473 @@
# Copyright 2015 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.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudiotV1
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceCredential
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceRegistry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventNotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceConfigVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceRegistriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceStatesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ModifyCloudToDeviceConfigRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MqttConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PublicKeyCertificate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PublicKeyCredential
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegistryCredential
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StateNotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class X509CertificateDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudiotV1::AuditLogConfig, decorator: Google::Apis::CloudiotV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudiotV1::Expr, decorator: Google::Apis::CloudiotV1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :blocked, as: 'blocked'
property :config, as: 'config', class: Google::Apis::CloudiotV1::DeviceConfig, decorator: Google::Apis::CloudiotV1::DeviceConfig::Representation
collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1::DeviceCredential, decorator: Google::Apis::CloudiotV1::DeviceCredential::Representation
property :id, as: 'id'
property :last_config_ack_time, as: 'lastConfigAckTime'
property :last_config_send_time, as: 'lastConfigSendTime'
property :last_error_status, as: 'lastErrorStatus', class: Google::Apis::CloudiotV1::Status, decorator: Google::Apis::CloudiotV1::Status::Representation
property :last_error_time, as: 'lastErrorTime'
property :last_event_time, as: 'lastEventTime'
property :last_heartbeat_time, as: 'lastHeartbeatTime'
property :last_state_time, as: 'lastStateTime'
hash :metadata, as: 'metadata'
property :name, as: 'name'
property :num_id, :numeric_string => true, as: 'numId'
property :state, as: 'state', class: Google::Apis::CloudiotV1::DeviceState, decorator: Google::Apis::CloudiotV1::DeviceState::Representation
end
end
class DeviceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :cloud_update_time, as: 'cloudUpdateTime'
property :device_ack_time, as: 'deviceAckTime'
property :version, :numeric_string => true, as: 'version'
end
end
class DeviceCredential
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expiration_time, as: 'expirationTime'
property :public_key, as: 'publicKey', class: Google::Apis::CloudiotV1::PublicKeyCredential, decorator: Google::Apis::CloudiotV1::PublicKeyCredential::Representation
end
end
class DeviceRegistry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1::RegistryCredential, decorator: Google::Apis::CloudiotV1::RegistryCredential::Representation
collection :event_notification_configs, as: 'eventNotificationConfigs', class: Google::Apis::CloudiotV1::EventNotificationConfig, decorator: Google::Apis::CloudiotV1::EventNotificationConfig::Representation
property :http_config, as: 'httpConfig', class: Google::Apis::CloudiotV1::HttpConfig, decorator: Google::Apis::CloudiotV1::HttpConfig::Representation
property :id, as: 'id'
property :mqtt_config, as: 'mqttConfig', class: Google::Apis::CloudiotV1::MqttConfig, decorator: Google::Apis::CloudiotV1::MqttConfig::Representation
property :name, as: 'name'
property :state_notification_config, as: 'stateNotificationConfig', class: Google::Apis::CloudiotV1::StateNotificationConfig, decorator: Google::Apis::CloudiotV1::StateNotificationConfig::Representation
end
end
class DeviceState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :update_time, as: 'updateTime'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class EventNotificationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pubsub_topic_name, as: 'pubsubTopicName'
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class HttpConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :http_enabled_state, as: 'httpEnabledState'
end
end
class ListDeviceConfigVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device_configs, as: 'deviceConfigs', class: Google::Apis::CloudiotV1::DeviceConfig, decorator: Google::Apis::CloudiotV1::DeviceConfig::Representation
end
end
class ListDeviceRegistriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device_registries, as: 'deviceRegistries', class: Google::Apis::CloudiotV1::DeviceRegistry, decorator: Google::Apis::CloudiotV1::DeviceRegistry::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListDeviceStatesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device_states, as: 'deviceStates', class: Google::Apis::CloudiotV1::DeviceState, decorator: Google::Apis::CloudiotV1::DeviceState::Representation
end
end
class ListDevicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :devices, as: 'devices', class: Google::Apis::CloudiotV1::Device, decorator: Google::Apis::CloudiotV1::Device::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ModifyCloudToDeviceConfigRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :version_to_update, :numeric_string => true, as: 'versionToUpdate'
end
end
class MqttConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mqtt_enabled_state, as: 'mqttEnabledState'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudiotV1::AuditConfig, decorator: Google::Apis::CloudiotV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudiotV1::Binding, decorator: Google::Apis::CloudiotV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
property :version, as: 'version'
end
end
class PublicKeyCertificate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :certificate, as: 'certificate'
property :format, as: 'format'
property :x509_details, as: 'x509Details', class: Google::Apis::CloudiotV1::X509CertificateDetails, decorator: Google::Apis::CloudiotV1::X509CertificateDetails::Representation
end
end
class PublicKeyCredential
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :format, as: 'format'
property :key, as: 'key'
end
end
class RegistryCredential
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :public_key_certificate, as: 'publicKeyCertificate', class: Google::Apis::CloudiotV1::PublicKeyCertificate, decorator: Google::Apis::CloudiotV1::PublicKeyCertificate::Representation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudiotV1::Policy, decorator: Google::Apis::CloudiotV1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class StateNotificationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pubsub_topic_name, as: 'pubsubTopicName'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class X509CertificateDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expiry_time, as: 'expiryTime'
property :issuer, as: 'issuer'
property :public_key_type, as: 'publicKeyType'
property :signature_algorithm, as: 'signatureAlgorithm'
property :start_time, as: 'startTime'
property :subject, as: 'subject'
end
end
end
end
end

View File

@ -0,0 +1,657 @@
# Copyright 2015 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.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudiotV1
# Google Cloud IoT API
#
# Registers and manages IoT (Internet of Things) devices that connect to the
# Google Cloud Platform.
#
# @example
# require 'google/apis/cloudiot_v1'
#
# Cloudiot = Google::Apis::CloudiotV1 # Alias the module
# service = Cloudiot::CloudIotService.new
#
# @see https://cloud.google.com/iot
class CloudIotService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://cloudiot.googleapis.com/', '')
@batch_path = 'batch'
end
# Creates a device registry that contains devices.
# @param [String] parent
# The project and cloud region where this device registry must be created.
# For example, `projects/example-project/locations/us-central1`.
# @param [Google::Apis::CloudiotV1::DeviceRegistry] device_registry_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::DeviceRegistry] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::DeviceRegistry]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_registry(parent, device_registry_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/registries', options)
command.request_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
command.request_object = device_registry_object
command.response_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
command.response_class = Google::Apis::CloudiotV1::DeviceRegistry
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a device registry configuration.
# @param [String] name
# The name of the device registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_registry(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1::Empty::Representation
command.response_class = Google::Apis::CloudiotV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a device registry configuration.
# @param [String] name
# The name of the device registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::DeviceRegistry] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::DeviceRegistry]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_registry(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
command.response_class = Google::Apis::CloudiotV1::DeviceRegistry
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_registry_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists device registries.
# @param [String] parent
# The project and cloud region path. For example,
# `projects/example-project/locations/us-central1`.
# @param [Fixnum] page_size
# The maximum number of registries to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# @param [String] page_token
# The value returned by the last `ListDeviceRegistriesResponse`; indicates
# that this is a continuation of a prior `ListDeviceRegistries` call, and
# that the system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::ListDeviceRegistriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDeviceRegistriesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/registries', options)
command.response_representation = Google::Apis::CloudiotV1::ListDeviceRegistriesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDeviceRegistriesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a device registry configuration.
# @param [String] name
# The resource path name. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1::DeviceRegistry] device_registry_object
# @param [String] update_mask
# Only updates the `device_registry` fields indicated by this mask.
# The field mask must not be empty, and it must not contain fields that
# are immutable or only set by the server.
# Mutable top-level fields: `event_notification_config`, `mqtt_config`, and
# `state_notification_config`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::DeviceRegistry] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::DeviceRegistry]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_registry(name, device_registry_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
command.request_object = device_registry_object
command.response_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
command.response_class = Google::Apis::CloudiotV1::DeviceRegistry
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_registry_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# 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.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_registry_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudiotV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudiotV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a device in a device registry.
# @param [String] parent
# The name of the device registry where this device should be created.
# For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1::Device] device_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_registry_device(parent, device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/devices', options)
command.request_representation = Google::Apis::CloudiotV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
command.response_class = Google::Apis::CloudiotV1::Device
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1::Empty::Representation
command.response_class = Google::Apis::CloudiotV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details about a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
command.response_class = Google::Apis::CloudiotV1::Device
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List devices in a device registry.
# @param [String] parent
# The device registry path. Required. For example,
# `projects/my-project/locations/us-central1/registries/my-registry`.
# @param [Array<String>, String] device_ids
# A list of device string identifiers. If empty, it will ignore this field.
# For example, `['device0', 'device12']`. This field cannot hold more than
# 10,000 entries.
# @param [Array<Fixnum>, Fixnum] device_num_ids
# A list of device numerical ids. If empty, it will ignore this field. This
# field cannot hold more than 10,000 entries.
# @param [String] field_mask
# The fields of the `Device` resource to be returned in the response. The
# fields `id`, and `num_id` are always returned by default, along with any
# other fields specified.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# @param [String] page_token
# The value returned by the last `ListDevicesResponse`; indicates
# that this is a continuation of a prior `ListDevices` call, and
# that the system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::ListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDevicesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
command.params['parent'] = parent unless parent.nil?
command.query['deviceIds'] = device_ids unless device_ids.nil?
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Modifies the configuration for the device, which is eventually sent from
# the Cloud IoT Core servers. Returns the modified configuration version and
# its metadata.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::DeviceConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::DeviceConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def modify_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:modifyCloudToDeviceConfig', options)
command.request_representation = Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest::Representation
command.request_object = modify_cloud_to_device_config_request_object
command.response_representation = Google::Apis::CloudiotV1::DeviceConfig::Representation
command.response_class = Google::Apis::CloudiotV1::DeviceConfig
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a device.
# @param [String] name
# The resource path name. For example,
# `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
# `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``.
# When `name` is populated as a response from the service, it always ends
# in the device numeric ID.
# @param [Google::Apis::CloudiotV1::Device] device_object
# @param [String] update_mask
# Only updates the `device` fields indicated by this mask.
# The field mask must not be empty, and it must not contain fields that
# are immutable or only set by the server.
# Mutable top-level fields: `credentials`, `enabled_state`, and `metadata`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_registry_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudiotV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
command.response_class = Google::Apis::CloudiotV1::Device
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the last few versions of the device configuration in descending
# order (i.e.: newest first).
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Fixnum] num_versions
# The number of versions to list. Versions are listed in decreasing order of
# the version number. The maximum number of versions retained is 10. If this
# value is zero, it will return all the versions available.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/configVersions', options)
command.response_representation = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse
command.params['name'] = name unless name.nil?
command.query['numVersions'] = num_versions unless num_versions.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the last few versions of the device state in descending order (i.e.:
# newest first).
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Fixnum] num_states
# The number of states to list. States are listed in descending order of
# update time. The maximum number of states retained is 10. If this
# value is zero, it will return all the states available.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::ListDeviceStatesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDeviceStatesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_device_states(name, num_states: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/states', options)
command.response_representation = Google::Apis::CloudiotV1::ListDeviceStatesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDeviceStatesResponse
command.params['name'] = name unless name.nil?
command.query['numStates'] = num_states unless num_states.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -0,0 +1,38 @@
# Copyright 2015 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.
require 'google/apis/cloudiot_v1beta1/service.rb'
require 'google/apis/cloudiot_v1beta1/classes.rb'
require 'google/apis/cloudiot_v1beta1/representations.rb'
module Google
module Apis
# Google Cloud IoT API
#
# Registers and manages IoT (Internet of Things) devices that connect to the
# Google Cloud Platform.
#
# @see https://cloud.google.com/iot
module CloudiotV1beta1
VERSION = 'V1beta1'
REVISION = '20170922'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Register and manage devices in the Google Cloud IoT service
AUTH_CLOUDIOT = 'https://www.googleapis.com/auth/cloudiot'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,442 @@
# Copyright 2015 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.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudiotV1beta1
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceConfigData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceCredential
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceRegistry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpDeviceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpDeviceState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpPublishEventRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpPublishEventResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpSetDeviceStateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceConfigVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceRegistriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ModifyCloudToDeviceConfigRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MqttConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PublicKeyCredential
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudiotV1beta1::AuditLogConfig, decorator: Google::Apis::CloudiotV1beta1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudiotV1beta1::Expr, decorator: Google::Apis::CloudiotV1beta1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :config, as: 'config', class: Google::Apis::CloudiotV1beta1::DeviceConfig, decorator: Google::Apis::CloudiotV1beta1::DeviceConfig::Representation
collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1beta1::DeviceCredential, decorator: Google::Apis::CloudiotV1beta1::DeviceCredential::Representation
property :enabled_state, as: 'enabledState'
property :id, as: 'id'
property :last_config_ack_time, as: 'lastConfigAckTime'
property :last_error_status, as: 'lastErrorStatus', class: Google::Apis::CloudiotV1beta1::Status, decorator: Google::Apis::CloudiotV1beta1::Status::Representation
property :last_error_time, as: 'lastErrorTime'
property :last_event_time, as: 'lastEventTime'
property :last_heartbeat_time, as: 'lastHeartbeatTime'
property :name, as: 'name'
property :num_id, :numeric_string => true, as: 'numId'
end
end
class DeviceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_update_time, as: 'cloudUpdateTime'
property :data, as: 'data', class: Google::Apis::CloudiotV1beta1::DeviceConfigData, decorator: Google::Apis::CloudiotV1beta1::DeviceConfigData::Representation
property :device_ack_time, as: 'deviceAckTime'
property :version, :numeric_string => true, as: 'version'
end
end
class DeviceConfigData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
end
end
class DeviceCredential
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expiration_time, as: 'expirationTime'
property :public_key, as: 'publicKey', class: Google::Apis::CloudiotV1beta1::PublicKeyCredential, decorator: Google::Apis::CloudiotV1beta1::PublicKeyCredential::Representation
end
end
class DeviceRegistry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_notification_config, as: 'eventNotificationConfig', class: Google::Apis::CloudiotV1beta1::NotificationConfig, decorator: Google::Apis::CloudiotV1beta1::NotificationConfig::Representation
property :id, as: 'id'
property :mqtt_config, as: 'mqttConfig', class: Google::Apis::CloudiotV1beta1::MqttConfig, decorator: Google::Apis::CloudiotV1beta1::MqttConfig::Representation
property :name, as: 'name'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class HttpDeviceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :version, :numeric_string => true, as: 'version'
end
end
class HttpDeviceState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
end
end
class HttpPublishEventRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :sub_folder, as: 'subFolder'
end
end
class HttpPublishEventResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class HttpSetDeviceStateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state', class: Google::Apis::CloudiotV1beta1::HttpDeviceState, decorator: Google::Apis::CloudiotV1beta1::HttpDeviceState::Representation
end
end
class ListDeviceConfigVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device_configs, as: 'deviceConfigs', class: Google::Apis::CloudiotV1beta1::DeviceConfig, decorator: Google::Apis::CloudiotV1beta1::DeviceConfig::Representation
end
end
class ListDeviceRegistriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device_registries, as: 'deviceRegistries', class: Google::Apis::CloudiotV1beta1::DeviceRegistry, decorator: Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListDevicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :devices, as: 'devices', class: Google::Apis::CloudiotV1beta1::Device, decorator: Google::Apis::CloudiotV1beta1::Device::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ModifyCloudToDeviceConfigRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data, as: 'data', class: Google::Apis::CloudiotV1beta1::DeviceConfigData, decorator: Google::Apis::CloudiotV1beta1::DeviceConfigData::Representation
property :version_to_update, :numeric_string => true, as: 'versionToUpdate'
end
end
class MqttConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mqtt_config_state, as: 'mqttConfigState'
end
end
class NotificationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pubsub_topic_name, as: 'pubsubTopicName'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudiotV1beta1::AuditConfig, decorator: Google::Apis::CloudiotV1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudiotV1beta1::Binding, decorator: Google::Apis::CloudiotV1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
property :version, as: 'version'
end
end
class PublicKeyCredential
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :format, as: 'format'
property :key, as: 'key'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudiotV1beta1::Policy, decorator: Google::Apis::CloudiotV1beta1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
end
end
end

View File

@ -0,0 +1,725 @@
# Copyright 2015 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.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudiotV1beta1
# Google Cloud IoT API
#
# Registers and manages IoT (Internet of Things) devices that connect to the
# Google Cloud Platform.
#
# @example
# require 'google/apis/cloudiot_v1beta1'
#
# Cloudiot = Google::Apis::CloudiotV1beta1 # Alias the module
# service = Cloudiot::CloudIotService.new
#
# @see https://cloud.google.com/iot
class CloudIotService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://cloudiot.googleapis.com/', '')
@batch_path = 'batch'
end
# Creates a device registry that contains devices.
# @param [String] parent
# The project and cloud region where this device registry must be created.
# For example, `projects/example-project/locations/us-central1`.
# @param [Google::Apis::CloudiotV1beta1::DeviceRegistry] device_registry_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::DeviceRegistry] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::DeviceRegistry]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_registry(parent, device_registry_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/registries', options)
command.request_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
command.request_object = device_registry_object
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
command.response_class = Google::Apis::CloudiotV1beta1::DeviceRegistry
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a device registry configuration.
# @param [String] name
# The name of the device registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_registry(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a device registry configuration.
# @param [String] name
# The name of the device registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::DeviceRegistry] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::DeviceRegistry]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_registry(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
command.response_class = Google::Apis::CloudiotV1beta1::DeviceRegistry
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_registry_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists device registries.
# @param [String] parent
# The project and cloud region path. For example,
# `projects/example-project/locations/us-central1`.
# @param [Fixnum] page_size
# The maximum number of registries to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# @param [String] page_token
# The value returned by the last `ListDeviceRegistriesResponse`; indicates
# that this is a continuation of a prior `ListDeviceRegistries` call, and
# that the system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/registries', options)
command.response_representation = Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse::Representation
command.response_class = Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a device registry configuration.
# @param [String] name
# The resource path name. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1beta1::DeviceRegistry] device_registry_object
# @param [String] update_mask
# Only updates the `device_registry` fields indicated by this mask.
# The field mask must not be empty, and it must not contain fields that
# are immutable or only set by the server.
# Mutable top-level fields: `event_notification_config` and `mqtt_config`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::DeviceRegistry] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::DeviceRegistry]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_registry(name, device_registry_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
command.request_object = device_registry_object
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
command.response_class = Google::Apis::CloudiotV1beta1::DeviceRegistry
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_registry_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# 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.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_registry_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudiotV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a device in a device registry.
# @param [String] parent
# The name of the device registry where this device should be created.
# For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1beta1::Device] device_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_registry_device(parent, device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/devices', options)
command.request_representation = Google::Apis::CloudiotV1beta1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::CloudiotV1beta1::Device::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Device
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details about a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1beta1::Device::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Device
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the configuration of a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
# @param [Fixnum] local_version
# If zero, returns the current device configuration from Cloud IoT Core.
# If nonzero, specifies the local version of the configuration on the device.
# The server returns config data only if a higher (newer) version is
# available from Cloud IoT Core.
# If this value is higher than the latest version available in Cloud IoT
# Core, returns an `OUT_OF_RANGE` error.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::HttpDeviceConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::HttpDeviceConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_registry_device_config(name, local_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/config', options)
command.response_representation = Google::Apis::CloudiotV1beta1::HttpDeviceConfig::Representation
command.response_class = Google::Apis::CloudiotV1beta1::HttpDeviceConfig
command.params['name'] = name unless name.nil?
command.query['localVersion'] = local_version unless local_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List devices in a device registry.
# @param [String] parent
# The device registry path. Required. For example,
# `projects/my-project/locations/us-central1/registries/my-registry`.
# @param [Array<String>, String] device_ids
# A list of device string identifiers. If empty, it will ignore this field.
# For example, `['device0', 'device12']`. This field cannot hold more than
# 10,000 entries.
# @param [Array<Fixnum>, Fixnum] device_num_ids
# A list of device numerical ids. If empty, it will ignore this field. This
# field cannot hold more than 10,000 entries.
# @param [String] field_mask
# The fields of the `Device` resource to be returned in the response. The
# fields `id`, and `num_id` are always returned by default, along with any
# other fields specified.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# @param [String] page_token
# The value returned by the last `ListDevicesResponse`; indicates
# that this is a continuation of a prior `ListDevices` call, and
# that the system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::ListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::ListDevicesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/devices', options)
command.response_representation = Google::Apis::CloudiotV1beta1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudiotV1beta1::ListDevicesResponse
command.params['parent'] = parent unless parent.nil?
command.query['deviceIds'] = device_ids unless device_ids.nil?
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Modifies the configuration for the device, which is eventually sent from
# the Cloud IoT servers. Returns the modified configuration version and its
# meta-data.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Google::Apis::CloudiotV1beta1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::DeviceConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::DeviceConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def modify_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:modifyCloudToDeviceConfig', options)
command.request_representation = Google::Apis::CloudiotV1beta1::ModifyCloudToDeviceConfigRequest::Representation
command.request_object = modify_cloud_to_device_config_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceConfig::Representation
command.response_class = Google::Apis::CloudiotV1beta1::DeviceConfig
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a device.
# @param [String] name
# The resource path name. For example,
# `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
# `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``.
# When `name` is populated as a response from the service, it always ends
# in the device numeric ID.
# @param [Google::Apis::CloudiotV1beta1::Device] device_object
# @param [String] update_mask
# Only updates the `device` fields indicated by this mask.
# The field mask must not be empty, and it must not contain fields that
# are immutable or only set by the server.
# Mutable top-level fields: `credentials` and `enabled_state`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_registry_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::CloudiotV1beta1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::CloudiotV1beta1::Device::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Device
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Publishes a telemetry event for a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
# @param [Google::Apis::CloudiotV1beta1::HttpPublishEventRequest] http_publish_event_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::HttpPublishEventResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::HttpPublishEventResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def publish_project_location_registry_device_event(name, http_publish_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:publishEvent', options)
command.request_representation = Google::Apis::CloudiotV1beta1::HttpPublishEventRequest::Representation
command.request_object = http_publish_event_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::HttpPublishEventResponse::Representation
command.response_class = Google::Apis::CloudiotV1beta1::HttpPublishEventResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the state of a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
# @param [Google::Apis::CloudiotV1beta1::HttpSetDeviceStateRequest] http_set_device_state_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_project_location_registry_device_state(name, http_set_device_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:setState', options)
command.request_representation = Google::Apis::CloudiotV1beta1::HttpSetDeviceStateRequest::Representation
command.request_object = http_set_device_state_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the last few versions of the device configuration in descending
# order (i.e.: newest first).
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Fixnum] num_versions
# The number of versions to list. Versions are listed in decreasing order of
# the version number. The maximum number of versions retained is 10. If this
# value is zero, it will return all the versions available.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/configVersions', options)
command.response_representation = Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse
command.params['name'] = name unless name.nil?
command.query['numVersions'] = num_versions unless num_versions.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -50,7 +50,7 @@ module Google
def initialize
super('https://www.googleapis.com/', 'cloudmonitoring/v2beta2/projects/')
@batch_path = 'batch/cloudmonitoring/v2beta2'
@batch_path = 'batch'
end
# Create a new metric.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1
VERSION = 'V1'
REVISION = '20170908'
REVISION = '20170915'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -71,6 +71,13 @@ module Google
# @return [Google::Apis::ContainerV1::KubernetesDashboard]
attr_accessor :kubernetes_dashboard
# Configuration for NetworkPolicy. This only tracks whether the addon
# is enabled or not on the Master, it does not track whether network policy
# is enabled for the nodes.
# Corresponds to the JSON property `networkPolicyConfig`
# @return [Google::Apis::ContainerV1::NetworkPolicyConfig]
attr_accessor :network_policy_config
def initialize(**args)
update!(**args)
end
@ -80,6 +87,7 @@ module Google
@horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
@kubernetes_dashboard = args[:kubernetes_dashboard] if args.key?(:kubernetes_dashboard)
@network_policy_config = args[:network_policy_config] if args.key?(:network_policy_config)
end
end
@ -1099,6 +1107,28 @@ module Google
end
end
# Configuration for NetworkPolicy. This only tracks whether the addon
# is enabled or not on the Master, it does not track whether network policy
# is enabled for the nodes.
class NetworkPolicyConfig
include Google::Apis::Core::Hashable
# Whether NetworkPolicy is enabled for this cluster.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled = args[:disabled] if args.key?(:disabled)
end
end
# Parameters that describe the nodes in a cluster.
class NodeConfig
include Google::Apis::Core::Hashable
@ -1167,13 +1197,13 @@ module Google
# @return [Hash<String,String>]
attr_accessor :metadata
# Minimum cpu/platform to be used by this instance. The instance may be
# scheduled on the specified or newer cpu/platform. Applicable values are the
# Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
# <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read <a href="/compute/docs/instances/specify-min-cpu-platform">
# Specifying a Minimum CPU Platform</a>.
# information, read [how to specify min CPU platform](https://cloud.google.com/
# compute/docs/instances/specify-min-cpu-platform)
# Corresponds to the JSON property `minCpuPlatform`
# @return [String]
attr_accessor :min_cpu_platform

View File

@ -178,6 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NetworkPolicyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -333,6 +339,8 @@ module Google
property :kubernetes_dashboard, as: 'kubernetesDashboard', class: Google::Apis::ContainerV1::KubernetesDashboard, decorator: Google::Apis::ContainerV1::KubernetesDashboard::Representation
property :network_policy_config, as: 'networkPolicyConfig', class: Google::Apis::ContainerV1::NetworkPolicyConfig, decorator: Google::Apis::ContainerV1::NetworkPolicyConfig::Representation
end
end
@ -586,6 +594,13 @@ module Google
end
end
class NetworkPolicyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled, as: 'disabled'
end
end
class NodeConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20170908'
REVISION = '20170915'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -71,6 +71,13 @@ module Google
# @return [Google::Apis::ContainerV1beta1::KubernetesDashboard]
attr_accessor :kubernetes_dashboard
# Configuration for NetworkPolicy. This only tracks whether the addon
# is enabled or not on the Master, it does not track whether network policy
# is enabled for the nodes.
# Corresponds to the JSON property `networkPolicyConfig`
# @return [Google::Apis::ContainerV1beta1::NetworkPolicyConfig]
attr_accessor :network_policy_config
def initialize(**args)
update!(**args)
end
@ -80,6 +87,7 @@ module Google
@horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
@kubernetes_dashboard = args[:kubernetes_dashboard] if args.key?(:kubernetes_dashboard)
@network_policy_config = args[:network_policy_config] if args.key?(:network_policy_config)
end
end
@ -1176,6 +1184,28 @@ module Google
end
end
# Configuration for NetworkPolicy. This only tracks whether the addon
# is enabled or not on the Master, it does not track whether network policy
# is enabled for the nodes.
class NetworkPolicyConfig
include Google::Apis::Core::Hashable
# Whether NetworkPolicy is enabled for this cluster.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled = args[:disabled] if args.key?(:disabled)
end
end
# Parameters that describe the nodes in a cluster.
class NodeConfig
include Google::Apis::Core::Hashable
@ -1244,13 +1274,13 @@ module Google
# @return [Hash<String,String>]
attr_accessor :metadata
# Minimum cpu/platform to be used by this instance. The instance may be
# scheduled on the specified or newer cpu/platform. Applicable values are the
# Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
# <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read <a href="/compute/docs/instances/specify-min-cpu-platform">
# Specifying a Minimum CPU Platform</a>.
# information, read [how to specify min CPU platform](https://cloud.google.com/
# compute/docs/instances/specify-min-cpu-platform)
# Corresponds to the JSON property `minCpuPlatform`
# @return [String]
attr_accessor :min_cpu_platform

View File

@ -172,6 +172,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NetworkPolicyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -285,6 +291,8 @@ module Google
property :kubernetes_dashboard, as: 'kubernetesDashboard', class: Google::Apis::ContainerV1beta1::KubernetesDashboard, decorator: Google::Apis::ContainerV1beta1::KubernetesDashboard::Representation
property :network_policy_config, as: 'networkPolicyConfig', class: Google::Apis::ContainerV1beta1::NetworkPolicyConfig, decorator: Google::Apis::ContainerV1beta1::NetworkPolicyConfig::Representation
end
end
@ -543,6 +551,13 @@ module Google
end
end
class NetworkPolicyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled, as: 'disabled'
end
end
class NodeConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/
module IamV1
VERSION = 'V1'
REVISION = '20170811'
REVISION = '20170922'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -201,12 +201,12 @@ module Google
# `unique_id`.
# If the account already exists, the account's resource name is returned
# in util::Status's ResourceInfo.resource_name in the format of
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
# projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller can
# use the name in other methods to access the account.
# All other methods can identify the service account using the format
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# Corresponds to the JSON property `serviceAccount`
# @return [Google::Apis::IamV1::ServiceAccount]
@ -695,12 +695,12 @@ module Google
# `unique_id`.
# If the account already exists, the account's resource name is returned
# in util::Status's ResourceInfo.resource_name in the format of
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
# projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller can
# use the name in other methods to access the account.
# All other methods can identify the service account using the format
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
class ServiceAccount
include Google::Apis::Core::Hashable
@ -723,12 +723,12 @@ module Google
attr_accessor :etag
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Requests using `-` as a wildcard for the project will infer the project
# from the `account` and the `account` value can be the `email` address or
# the `unique_id` of the service account.
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Requests using `-` as a wildcard for the `PROJECT_ID` will infer the
# project from the `account` and the `ACCOUNT` value can be the `email`
# address or the `unique_id` of the service account.
# In responses the resource name will always be in the format
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -787,7 +787,7 @@ module Google
attr_accessor :key_algorithm
# The resource name of the service account key in the following format
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -574,9 +574,9 @@ module Google
# Deletes a ServiceAccount.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -608,9 +608,9 @@ module Google
# Gets a ServiceAccount.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -750,9 +750,9 @@ module Google
# Signs a blob using a service account's system-managed private key.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
# @param [String] fields
@ -790,9 +790,9 @@ module Google
# more than one hour, the request will fail.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [Google::Apis::IamV1::SignJwtRequest] sign_jwt_request_object
# @param [String] fields
@ -865,12 +865,12 @@ module Google
# The `etag` is mandatory.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Requests using `-` as a wildcard for the project will infer the project
# from the `account` and the `account` value can be the `email` address or
# the `unique_id` of the service account.
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Requests using `-` as a wildcard for the `PROJECT_ID` will infer the
# project from the `account` and the `ACCOUNT` value can be the `email`
# address or the `unique_id` of the service account.
# In responses the resource name will always be in the format
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# @param [Google::Apis::IamV1::ServiceAccount] service_account_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -905,9 +905,9 @@ module Google
# and returns it.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
# @param [String] fields
@ -942,9 +942,9 @@ module Google
# Deletes a ServiceAccountKey.
# @param [String] name
# The resource name of the service account key in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -977,9 +977,9 @@ module Google
# by key id.
# @param [String] name
# The resource name of the service account key in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
# Using `-` as a wildcard for the project will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [String] public_key_type
# The output format of the public key requested.
@ -1015,9 +1015,9 @@ module Google
# Lists ServiceAccountKeys.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
# Using `-` as a wildcard for the project, will infer the project from
# the account. The `account` value can be the `email` address or the
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# @param [Array<String>, String] key_types
# Filters the types of keys the user wants to include in the list

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2
VERSION = 'V2'
REVISION = '20170905'
REVISION = '20170926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -625,15 +625,17 @@ module Google
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
# [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
# 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must
# be less than 512 characters long and can only include the following characters:
# upper and lower case alphanumeric characters, forward-slash, underscore,
# hyphen, and period.For backward compatibility, if log_name begins with a
# forward-slash, such as /projects/..., then the log entry is ingested as usual
# but the forward-slash is removed. Listing the log entry will not show the
# leading slash and filtering for a log name with a leading slash will never
# return any results.
# A project number may optionally be used in place of PROJECT_ID. The project
# number is translated to its corresponding PROJECT_ID internally and the
# log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be
# URL-encoded within log_name. Example: "organizations/1234567890/logs/
# cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must be less than
# 512 characters long and can only include the following characters: upper and
# lower case alphanumeric characters, forward-slash, underscore, hyphen, and
# period.For backward compatibility, if log_name begins with a forward-slash,
# such as /projects/..., then the log entry is ingested as usual but the forward-
# slash is removed. Listing the log entry will not show the leading slash and
# filtering for a log name with a leading slash will never return any results.
# Corresponds to the JSON property `logName`
# @return [String]
attr_accessor :log_name

View File

@ -51,7 +51,7 @@ module Google
def initialize
super('https://www.googleapis.com/', 'resourceviews/v1beta1/projects/')
@batch_path = 'batch/resourceviews/v1beta1'
@batch_path = 'batch'
end
# Add resources to the view.

View File

@ -50,7 +50,7 @@ module Google
def initialize
super('https://www.googleapis.com/', 'taskqueue/v1beta2/projects/')
@batch_path = 'batch/taskqueue/v1beta2'
@batch_path = 'batch'
end
# Get detailed information about a TaskQueue.